]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Another iteration of configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 TRUEPRG
805 FALSEPRG
806 VERSION
807 DATE
808 LSMDATE
809 BACULA
810 post_host
811 CC
812 CFLAGS
813 LDFLAGS
814 CPPFLAGS
815 ac_ct_CC
816 EXEEXT
817 OBJEXT
818 CXX
819 CXXFLAGS
820 ac_ct_CXX
821 CPP
822 GREP
823 EGREP
824 INSTALL_PROGRAM
825 INSTALL_SCRIPT
826 INSTALL_DATA
827 MV
828 REMOVE
829 CP
830 SED
831 ECHO
832 CMP
833 TBL
834 AR
835 OPENSSL
836 MTX
837 DD
838 MKISOFS
839 PYTHON
840 GROWISOFS
841 DVDRWMEDIAINFO
842 DVDRWFORMAT
843 PKGCONFIG
844 QMAKE
845 QMAKEQT4
846 WXCONFIG
847 WXFLAGS
848 CDRECORD
849 PIDOF
850 AWK
851 ARFLAGS
852 MAKE_SHELL
853 LOCAL_LIBS
854 LOCAL_CFLAGS
855 LOCAL_LDFLAGS
856 LOCAL_DEFS
857 LIBTOOL
858 build
859 build_cpu
860 build_vendor
861 build_os
862 host
863 host_cpu
864 host_vendor
865 host_os
866 FGREP
867 LD
868 DUMPBIN
869 ac_ct_DUMPBIN
870 NM
871 LN_S
872 OBJDUMP
873 STRIP
874 RANLIB
875 lt_ECHO
876 DSYMUTIL
877 NMEDIT
878 LIPO
879 OTOOL
880 OTOOL64
881 CXXCPP
882 DEFAULT_OBJECT_TYPE
883 DEFAULT_ARCHIVE_TYPE
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
887 LIBTOOL_CLEAN_TARGET
888 INCLUDE_INSTALL_TARGET
889 INCLUDE_UNINSTALL_TARGET
890 QMAKE_LIBTOOL
891 HAVE_SUN_OS_TRUE
892 HAVE_SUN_OS_FALSE
893 HAVE_OSF1_OS_TRUE
894 HAVE_OSF1_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_AIX_OS_FALSE
897 HAVE_HPUX_OS_TRUE
898 HAVE_HPUX_OS_FALSE
899 HAVE_LINUX_OS_TRUE
900 HAVE_LINUX_OS_FALSE
901 HAVE_FREEBSD_OS_TRUE
902 HAVE_FREEBSD_OS_FALSE
903 HAVE_NETBSD_OS_TRUE
904 HAVE_NETBSD_OS_FALSE
905 HAVE_OPENBSD_OS_TRUE
906 HAVE_OPENBSD_OS_FALSE
907 HAVE_BSDI_OS_TRUE
908 HAVE_BSDI_OS_FALSE
909 HAVE_SGI_OS_TRUE
910 HAVE_SGI_OS_FALSE
911 HAVE_IRIX_OS_TRUE
912 HAVE_IRIX_OS_FALSE
913 HAVE_DARWIN_OS_TRUE
914 HAVE_DARWIN_OS_FALSE
915 SET_MAKE
916 MKINSTALLDIRS
917 USE_NLS
918 MSGFMT
919 GMSGFMT
920 XGETTEXT
921 MSGMERGE
922 INTL_MACOSX_LIBS
923 LIBICONV
924 LTLIBICONV
925 INTLLIBS
926 LIBINTL
927 LTLIBINTL
928 POSUB
929 GLIBC2
930 ALLOCA
931 GLIBC21
932 HAVE_POSIX_PRINTF
933 HAVE_ASPRINTF
934 HAVE_SNPRINTF
935 HAVE_WPRINTF
936 INTLBISON
937 BUILD_INCLUDED_LIBINTL
938 USE_INCLUDED_LIBINTL
939 CATOBJEXT
940 DATADIRNAME
941 INSTOBJEXT
942 GENCAT
943 INTLOBJS
944 INTL_LIBTOOL_SUFFIX_PREFIX
945 GNOME_INCLUDEDIR
946 GNOMEUI_LIBS
947 GNOME_LIBDIR
948 GNOME_LIBS
949 GNOME_DIR
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 scriptdir
985 plugindir
986 dump_email
987 job_email
988 smtp_host
989 piddir
990 subsysdir
991 baseport
992 dir_port
993 fd_port
994 sd_port
995 dir_password
996 fd_password
997 sd_password
998 mon_dir_password
999 mon_fd_password
1000 mon_sd_password
1001 db_name
1002 db_user
1003 db_password
1004 db_port
1005 dir_user
1006 dir_group
1007 sd_user
1008 sd_group
1009 fd_user
1010 fd_group
1011 SBINPERM
1012 SQL_LFLAGS
1013 SQL_INCLUDE
1014 SQL_BINDIR
1015 DBI_DBD_DRIVERDIR
1016 uncomment_dbi
1017 DB_PROG
1018 DB_PROG_LIB
1019 cats
1020 DB_TYPE
1021 GETCONF
1022 XMKMF
1023 X_CFLAGS
1024 X_PRE_LIBS
1025 X_LIBS
1026 X_EXTRA_LIBS
1027 LIBOBJS
1028 FDLIBS
1029 DEBUG
1030 DINCLUDE
1031 DLIB
1032 DB_LIBS
1033 WCFLAGS
1034 WLDFLAGS
1035 WRAPLIBS
1036 OBJLIST
1037 hostname
1038 TAPEDRIVE
1039 PSCMD
1040 WIN32
1041 MACOSX
1042 DISTNAME
1043 DISTVER
1044 LTLIBOBJS'
1045 ac_subst_files='MCOMMON'
1046       ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CPP
1058 WXCONFIG
1059 WXFLAGS
1060 CXXCPP
1061 XMKMF'
1062
1063
1064 # Initialize some variables set by options.
1065 ac_init_help=
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1070 exec_prefix=NONE
1071 no_create=
1072 no_recursion=
1073 prefix=NONE
1074 program_prefix=NONE
1075 program_suffix=NONE
1076 program_transform_name=s,x,x,
1077 silent=
1078 site=
1079 srcdir=
1080 verbose=
1081 x_includes=NONE
1082 x_libraries=NONE
1083
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114   # If the previous option needs an argument, assign it.
1115   if test -n "$ac_prev"; then
1116     eval $ac_prev=\$ac_option
1117     ac_prev=
1118     continue
1119   fi
1120
1121   case $ac_option in
1122   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123   *)    ac_optarg=yes ;;
1124   esac
1125
1126   # Accept the important Cygnus configure options, so we can diagnose typos.
1127
1128   case $ac_dashdash$ac_option in
1129   --)
1130     ac_dashdash=yes ;;
1131
1132   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133     ac_prev=bindir ;;
1134   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135     bindir=$ac_optarg ;;
1136
1137   -build | --build | --buil | --bui | --bu)
1138     ac_prev=build_alias ;;
1139   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140     build_alias=$ac_optarg ;;
1141
1142   -cache-file | --cache-file | --cache-fil | --cache-fi \
1143   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144     ac_prev=cache_file ;;
1145   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147     cache_file=$ac_optarg ;;
1148
1149   --config-cache | -C)
1150     cache_file=config.cache ;;
1151
1152   -datadir | --datadir | --datadi | --datad)
1153     ac_prev=datadir ;;
1154   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155     datadir=$ac_optarg ;;
1156
1157   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158   | --dataroo | --dataro | --datar)
1159     ac_prev=datarootdir ;;
1160   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162     datarootdir=$ac_optarg ;;
1163
1164   -disable-* | --disable-*)
1165     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169    { (exit 1); exit 1; }; }
1170     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171     eval enable_$ac_feature=no ;;
1172
1173   -docdir | --docdir | --docdi | --doc | --do)
1174     ac_prev=docdir ;;
1175   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176     docdir=$ac_optarg ;;
1177
1178   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1179     ac_prev=dvidir ;;
1180   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181     dvidir=$ac_optarg ;;
1182
1183   -enable-* | --enable-*)
1184     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190     eval enable_$ac_feature=\$ac_optarg ;;
1191
1192   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194   | --exec | --exe | --ex)
1195     ac_prev=exec_prefix ;;
1196   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198   | --exec=* | --exe=* | --ex=*)
1199     exec_prefix=$ac_optarg ;;
1200
1201   -gas | --gas | --ga | --g)
1202     # Obsolete; use --with-gas.
1203     with_gas=yes ;;
1204
1205   -help | --help | --hel | --he | -h)
1206     ac_init_help=long ;;
1207   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208     ac_init_help=recursive ;;
1209   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210     ac_init_help=short ;;
1211
1212   -host | --host | --hos | --ho)
1213     ac_prev=host_alias ;;
1214   -host=* | --host=* | --hos=* | --ho=*)
1215     host_alias=$ac_optarg ;;
1216
1217   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1218     ac_prev=htmldir ;;
1219   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1220   | --ht=*)
1221     htmldir=$ac_optarg ;;
1222
1223   -includedir | --includedir | --includedi | --included | --include \
1224   | --includ | --inclu | --incl | --inc)
1225     ac_prev=includedir ;;
1226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227   | --includ=* | --inclu=* | --incl=* | --inc=*)
1228     includedir=$ac_optarg ;;
1229
1230   -infodir | --infodir | --infodi | --infod | --info | --inf)
1231     ac_prev=infodir ;;
1232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233     infodir=$ac_optarg ;;
1234
1235   -libdir | --libdir | --libdi | --libd)
1236     ac_prev=libdir ;;
1237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238     libdir=$ac_optarg ;;
1239
1240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241   | --libexe | --libex | --libe)
1242     ac_prev=libexecdir ;;
1243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244   | --libexe=* | --libex=* | --libe=*)
1245     libexecdir=$ac_optarg ;;
1246
1247   -localedir | --localedir | --localedi | --localed | --locale)
1248     ac_prev=localedir ;;
1249   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250     localedir=$ac_optarg ;;
1251
1252   -localstatedir | --localstatedir | --localstatedi | --localstated \
1253   | --localstate | --localstat | --localsta | --localst | --locals)
1254     ac_prev=localstatedir ;;
1255   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257     localstatedir=$ac_optarg ;;
1258
1259   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1260     ac_prev=mandir ;;
1261   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262     mandir=$ac_optarg ;;
1263
1264   -nfp | --nfp | --nf)
1265     # Obsolete; use --without-fp.
1266     with_fp=no ;;
1267
1268   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269   | --no-cr | --no-c | -n)
1270     no_create=yes ;;
1271
1272   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1274     no_recursion=yes ;;
1275
1276   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278   | --oldin | --oldi | --old | --ol | --o)
1279     ac_prev=oldincludedir ;;
1280   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283     oldincludedir=$ac_optarg ;;
1284
1285   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1286     ac_prev=prefix ;;
1287   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288     prefix=$ac_optarg ;;
1289
1290   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291   | --program-pre | --program-pr | --program-p)
1292     ac_prev=program_prefix ;;
1293   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295     program_prefix=$ac_optarg ;;
1296
1297   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298   | --program-suf | --program-su | --program-s)
1299     ac_prev=program_suffix ;;
1300   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302     program_suffix=$ac_optarg ;;
1303
1304   -program-transform-name | --program-transform-name \
1305   | --program-transform-nam | --program-transform-na \
1306   | --program-transform-n | --program-transform- \
1307   | --program-transform | --program-transfor \
1308   | --program-transfo | --program-transf \
1309   | --program-trans | --program-tran \
1310   | --progr-tra | --program-tr | --program-t)
1311     ac_prev=program_transform_name ;;
1312   -program-transform-name=* | --program-transform-name=* \
1313   | --program-transform-nam=* | --program-transform-na=* \
1314   | --program-transform-n=* | --program-transform-=* \
1315   | --program-transform=* | --program-transfor=* \
1316   | --program-transfo=* | --program-transf=* \
1317   | --program-trans=* | --program-tran=* \
1318   | --progr-tra=* | --program-tr=* | --program-t=*)
1319     program_transform_name=$ac_optarg ;;
1320
1321   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1322     ac_prev=pdfdir ;;
1323   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324     pdfdir=$ac_optarg ;;
1325
1326   -psdir | --psdir | --psdi | --psd | --ps)
1327     ac_prev=psdir ;;
1328   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1329     psdir=$ac_optarg ;;
1330
1331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332   | -silent | --silent | --silen | --sile | --sil)
1333     silent=yes ;;
1334
1335   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1336     ac_prev=sbindir ;;
1337   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1338   | --sbi=* | --sb=*)
1339     sbindir=$ac_optarg ;;
1340
1341   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343   | --sharedst | --shareds | --shared | --share | --shar \
1344   | --sha | --sh)
1345     ac_prev=sharedstatedir ;;
1346   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1349   | --sha=* | --sh=*)
1350     sharedstatedir=$ac_optarg ;;
1351
1352   -site | --site | --sit)
1353     ac_prev=site ;;
1354   -site=* | --site=* | --sit=*)
1355     site=$ac_optarg ;;
1356
1357   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1358     ac_prev=srcdir ;;
1359   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360     srcdir=$ac_optarg ;;
1361
1362   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363   | --syscon | --sysco | --sysc | --sys | --sy)
1364     ac_prev=sysconfdir ;;
1365   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367     sysconfdir=$ac_optarg ;;
1368
1369   -target | --target | --targe | --targ | --tar | --ta | --t)
1370     ac_prev=target_alias ;;
1371   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372     target_alias=$ac_optarg ;;
1373
1374   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375     verbose=yes ;;
1376
1377   -version | --version | --versio | --versi | --vers | -V)
1378     ac_init_version=: ;;
1379
1380   -with-* | --with-*)
1381     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393       { echo "$as_me: error: invalid package name: $ac_package" >&2
1394    { (exit 1); exit 1; }; }
1395     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396     eval with_$ac_package=no ;;
1397
1398   --x)
1399     # Obsolete; use --with-x.
1400     with_x=yes ;;
1401
1402   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403   | --x-incl | --x-inc | --x-in | --x-i)
1404     ac_prev=x_includes ;;
1405   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407     x_includes=$ac_optarg ;;
1408
1409   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411     ac_prev=x_libraries ;;
1412   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414     x_libraries=$ac_optarg ;;
1415
1416   -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418    { (exit 1); exit 1; }; }
1419     ;;
1420
1421   *=*)
1422     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423     # Reject names that are not valid shell variable names.
1424     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426    { (exit 1); exit 1; }; }
1427     eval $ac_envvar=\$ac_optarg
1428     export $ac_envvar ;;
1429
1430   *)
1431     # FIXME: should be removed in autoconf 3.0.
1432     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436     ;;
1437
1438   esac
1439 done
1440
1441 if test -n "$ac_prev"; then
1442   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443   { echo "$as_me: error: missing argument to $ac_option" >&2
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 # Be sure to have absolute directory names.
1448 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449                 datadir sysconfdir sharedstatedir localstatedir includedir \
1450                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451                 libdir localedir mandir
1452 do
1453   eval ac_val=\$$ac_var
1454   case $ac_val in
1455     [\\/$]* | ?:[\\/]* )  continue;;
1456     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457   esac
1458   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459    { (exit 1); exit 1; }; }
1460 done
1461
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1465 build=$build_alias
1466 host=$host_alias
1467 target=$target_alias
1468
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471   if test "x$build_alias" = x; then
1472     cross_compiling=maybe
1473     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474     If a cross compiler is detected then cross compile mode will be used." >&2
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   { echo "$as_me: error: Working directory cannot be determined" >&2
1490    { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492   { echo "$as_me: error: pwd does not report name of working directory" >&2
1493    { (exit 1); exit 1; }; }
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$0" : 'X\(//\)[^/]' \| \
1503          X"$0" : 'X\(//\)$' \| \
1504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1505 echo X"$0" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538    { (exit 1); exit 1; }; }
1539         pwd)`
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542   srcdir=.
1543 fi
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1547 case $srcdir in
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 esac
1550 for ac_var in $ac_precious_vars; do
1551   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_env_${ac_var}_value=\$${ac_var}
1553   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 done
1556
1557 #
1558 # Report the --help message.
1559 #
1560 if test "$ac_init_help" = "long"; then
1561   # Omit some internal or obsolete options to make the list less imposing.
1562   # This message is too long to be a string in the A/UX 3.1 sh.
1563   cat <<_ACEOF
1564 \`configure' configures this package to adapt to many kinds of systems.
1565
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1567
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE.  See below for descriptions of some of the useful variables.
1570
1571 Defaults for the options are specified in brackets.
1572
1573 Configuration:
1574   -h, --help              display this help and exit
1575       --help=short        display options specific to this package
1576       --help=recursive    display the short help of all the included packages
1577   -V, --version           display version information and exit
1578   -q, --quiet, --silent   do not print \`checking...' messages
1579       --cache-file=FILE   cache test results in FILE [disabled]
1580   -C, --config-cache      alias for \`--cache-file=config.cache'
1581   -n, --no-create         do not create output files
1582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1583
1584 Installation directories:
1585   --prefix=PREFIX         install architecture-independent files in PREFIX
1586                           [$ac_default_prefix]
1587   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1588                           [PREFIX]
1589
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1594
1595 For better control, use the options below.
1596
1597 Fine tuning of the installation directories:
1598   --bindir=DIR           user executables [EPREFIX/bin]
1599   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1600   --libexecdir=DIR       program executables [EPREFIX/libexec]
1601   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1602   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1603   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1604   --libdir=DIR           object code libraries [EPREFIX/lib]
1605   --includedir=DIR       C header files [PREFIX/include]
1606   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1607   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1608   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1609   --infodir=DIR          info documentation [DATAROOTDIR/info]
1610   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1611   --mandir=DIR           man documentation [DATAROOTDIR/man]
1612   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1613   --htmldir=DIR          html documentation [DOCDIR]
1614   --dvidir=DIR           dvi documentation [DOCDIR]
1615   --pdfdir=DIR           pdf documentation [DOCDIR]
1616   --psdir=DIR            ps documentation [DOCDIR]
1617 _ACEOF
1618
1619   cat <<\_ACEOF
1620
1621 X features:
1622   --x-includes=DIR    X include files are in DIR
1623   --x-libraries=DIR   X library files are in DIR
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1637   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1638   --enable-shared[=PKGS]  build shared libraries [default=yes]
1639   --enable-static[=PKGS]  build static libraries [default=no]
1640   --enable-fast-install[=PKGS]
1641                           optimize for fast installation [default=yes]
1642   --disable-libtool-lock  avoid locking (might break parallel builds)
1643   --enable-libtool        enable building using GNU libtool [default=yes]
1644   --disable-nls           do not use Native Language Support
1645   --disable-rpath         do not hardcode runtime library paths
1646   --enable-gnome          enable build of bgnome-console GUI [default=no]
1647   --enable-bat            enable build of bat Qt4 GUI [default=no]
1648   --enable-bwx-console    enable build of wxWidgets console [default=no]
1649   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1650                           KDE [default=no]
1651   --enable-smartalloc     enable smartalloc debugging support [default=no]
1652   --enable-static-tools   enable static tape tools [default=no]
1653   --enable-static-fd      enable static File daemon [default=no]
1654   --enable-static-sd      enable static Storage daemon [default=no]
1655   --enable-static-dir     enable static Director [default=no]
1656   --enable-static-cons    enable static Console [default=no]
1657   --enable-client-only    build client (File daemon) only [default=no]
1658   --enable-build-dird     enable building of dird (Director) [default=yes]
1659   --enable-build-stored   enable building of stored (Storage daemon)
1660                           [default=yes]
1661   --disable-conio         disable conio support [default=no]
1662   --enable-ipv6           enable ipv6 support [default=yes]
1663   --disable-readline      disable readline support [default=yes]
1664   --enable-batch-insert   enable the DB batch insert code [default=no]
1665   --disable-largefile     omit support for large files
1666
1667 Optional Packages:
1668   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1669   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1670   --with-pic              try to use only PIC/non-PIC objects [default=use
1671                           both]
1672   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1673   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1674   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1675   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1676   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1677   --without-libintl-prefix     don't search for libintl in includedir and libdir
1678   --with-included-gettext use the GNU gettext library included here
1679   --with-qwt[=DIR]        specify qwt library directory
1680   --with-readline[=DIR]   specify readline library directory
1681   --with-python[=DIR]     Include Python support. DIR is the Python base
1682                           install directory, default is to search through a
1683                           number of common places for the Python files.
1684   --with-tcp-wrappers[=DIR]
1685                           enable tcpwrappers support
1686   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1687   --with-working-dir=PATH specify path of Bacula working directory
1688   --with-archivedir=PATH  specify path of SD archive directory
1689   --with-scriptdir=PATH   specify path of Bacula scripts directory
1690   --with-plugindir=PATH   specify path of Bacula plugins directory
1691   --with-dump-email=EMAIL dump email address
1692   --with-job-email=EMAIL  job output email address
1693   --with-smtp-host=HOST   SMTP mail host address
1694   --with-pid-dir=PATH     specify location of Bacula pid files
1695   --with-subsys-dir=PATH  specify location of Bacula subsys file
1696   --with-baseport=PORT    specify base port address for daemons
1697   --with-dir-password=PASSWORD
1698                           specify Director's password
1699   --with-fd-password=PASSWORD
1700                           specify Client's password
1701   --with-sd-password=PASSWORD
1702                           specify Storage daemon's password
1703   --with-mon-dir-password=PASSWORD
1704                           specify Director's password used by the monitor
1705   --with-mon-fd-password=PASSWORD
1706                           specify Client's password used by the monitor
1707   --with-mon-sd-password=PASSWORD
1708                           specify Storage daemon's password used by the
1709                           monitor
1710   --with-db-name=DBNAME   specify database name [default=bacula]
1711   --with-db-user=UNAME    specify database user [default=bacula]
1712   --with-db-password=PWD  specify database password [default=*none*]
1713   --with-db-port=DBPORT   specify a database port [default=null]
1714   --with-dir-user=USER    specify user for Director daemon
1715   --with-dir-group=GROUP  specify group for Director daemon
1716   --with-sd-user=USER     specify user for Storage daemon
1717   --with-sd-group=GROUP   specify group for Storage daemon
1718   --with-fd-user=USER     specify user for File daemon
1719   --with-fd-group=GROUP   specify group for File daemon
1720   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1721   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1722                           base install directory, [default=/usr/local/pgsql]
1723   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1724                           directory, default is to search through a number of
1725                           common places for the MySQL files.
1726   --with-embedded-mysql[=DIR]
1727                           Include MySQL support. DIR is the MySQL base install
1728                           directory, default is to search through a number of
1729                           common places for the MySQL files.
1730   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1731                           install directory, default is to search through a
1732                           number of common places for the SQLite3 files.
1733   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1734                           install directory, default is to search through a
1735                           number of common places for the SQLite files.
1736   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1737                           directory, default is to search through a number of
1738                           common places for the DBI files.
1739   --with-dbi-driver[=DRIVER]
1740                           Suport for DBI driver. DRIVER is the one DBI driver
1741                           like Mysql, Postgresql, others. Default is to not
1742                           configure any driver.
1743   --with-x                use the X Window System
1744
1745 Some influential environment variables:
1746   CC          C compiler command
1747   CFLAGS      C compiler flags
1748   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1749               nonstandard directory <lib dir>
1750   LIBS        libraries to pass to the linker, e.g. -l<library>
1751   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1752               you have headers in a nonstandard directory <include dir>
1753   CXX         C++ compiler command
1754   CXXFLAGS    C++ compiler flags
1755   CPP         C preprocessor
1756   WXCONFIG    wx-config command. On some systems, you must set it to
1757               wx-config-2.6 to use wxWidgets 2.6.
1758   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1759   CXXCPP      C++ preprocessor
1760   XMKMF       Path to xmkmf, Makefile generator for X Window System
1761
1762 Use these variables to override the choices made by `configure' or to help
1763 it to find libraries and programs with nonstandard names/locations.
1764
1765 _ACEOF
1766 ac_status=$?
1767 fi
1768
1769 if test "$ac_init_help" = "recursive"; then
1770   # If there are subdirs, report their specific --help.
1771   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1772     test -d "$ac_dir" || continue
1773     ac_builddir=.
1774
1775 case "$ac_dir" in
1776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 *)
1778   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1779   # A ".." for each directory in $ac_dir_suffix.
1780   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1781   case $ac_top_builddir_sub in
1782   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784   esac ;;
1785 esac
1786 ac_abs_top_builddir=$ac_pwd
1787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir=$ac_top_build_prefix
1790
1791 case $srcdir in
1792   .)  # We are building in place.
1793     ac_srcdir=.
1794     ac_top_srcdir=$ac_top_builddir_sub
1795     ac_abs_top_srcdir=$ac_pwd ;;
1796   [\\/]* | ?:[\\/]* )  # Absolute name.
1797     ac_srcdir=$srcdir$ac_dir_suffix;
1798     ac_top_srcdir=$srcdir
1799     ac_abs_top_srcdir=$srcdir ;;
1800   *) # Relative name.
1801     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802     ac_top_srcdir=$ac_top_build_prefix$srcdir
1803     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 esac
1805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1806
1807     cd "$ac_dir" || { ac_status=$?; continue; }
1808     # Check for guested configure.
1809     if test -f "$ac_srcdir/configure.gnu"; then
1810       echo &&
1811       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812     elif test -f "$ac_srcdir/configure"; then
1813       echo &&
1814       $SHELL "$ac_srcdir/configure" --help=recursive
1815     else
1816       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817     fi || ac_status=$?
1818     cd "$ac_pwd" || { ac_status=$?; break; }
1819   done
1820 fi
1821
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1824   cat <<\_ACEOF
1825 configure
1826 generated by GNU Autoconf 2.61
1827
1828 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1829 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1830 This configure script is free software; the Free Software Foundation
1831 gives unlimited permission to copy, distribute and modify it.
1832 _ACEOF
1833   exit
1834 fi
1835 cat >config.log <<_ACEOF
1836 This file contains any messages produced by compilers while
1837 running configure, to aid debugging if configure makes a mistake.
1838
1839 It was created by $as_me, which was
1840 generated by GNU Autoconf 2.61.  Invocation command line was
1841
1842   $ $0 $@
1843
1844 _ACEOF
1845 exec 5>>config.log
1846 {
1847 cat <<_ASUNAME
1848 ## --------- ##
1849 ## Platform. ##
1850 ## --------- ##
1851
1852 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857
1858 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1860
1861 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1862 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1863 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1865 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1866 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1867 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1868
1869 _ASUNAME
1870
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874   IFS=$as_save_IFS
1875   test -z "$as_dir" && as_dir=.
1876   echo "PATH: $as_dir"
1877 done
1878 IFS=$as_save_IFS
1879
1880 } >&5
1881
1882 cat >&5 <<_ACEOF
1883
1884
1885 ## ----------- ##
1886 ## Core tests. ##
1887 ## ----------- ##
1888
1889 _ACEOF
1890
1891
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1897 ac_configure_args=
1898 ac_configure_args0=
1899 ac_configure_args1=
1900 ac_must_keep_next=false
1901 for ac_pass in 1 2
1902 do
1903   for ac_arg
1904   do
1905     case $ac_arg in
1906     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908     | -silent | --silent | --silen | --sile | --sil)
1909       continue ;;
1910     *\'*)
1911       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912     esac
1913     case $ac_pass in
1914     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1915     2)
1916       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1917       if test $ac_must_keep_next = true; then
1918         ac_must_keep_next=false # Got value, back to normal.
1919       else
1920         case $ac_arg in
1921           *=* | --config-cache | -C | -disable-* | --disable-* \
1922           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924           | -with-* | --with-* | -without-* | --without-* | --x)
1925             case "$ac_configure_args0 " in
1926               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927             esac
1928             ;;
1929           -* ) ac_must_keep_next=true ;;
1930         esac
1931       fi
1932       ac_configure_args="$ac_configure_args '$ac_arg'"
1933       ;;
1934     esac
1935   done
1936 done
1937 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1938 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1939
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log.  We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946   # Save into config.log some information that might help in debugging.
1947   {
1948     echo
1949
1950     cat <<\_ASBOX
1951 ## ---------------- ##
1952 ## Cache variables. ##
1953 ## ---------------- ##
1954 _ASBOX
1955     echo
1956     # The following way of writing the cache mishandles newlines in values,
1957 (
1958   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959     eval ac_val=\$$ac_var
1960     case $ac_val in #(
1961     *${as_nl}*)
1962       case $ac_var in #(
1963       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1964 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1965       esac
1966       case $ac_var in #(
1967       _ | IFS | as_nl) ;; #(
1968       *) $as_unset $ac_var ;;
1969       esac ;;
1970     esac
1971   done
1972   (set) 2>&1 |
1973     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1974     *${as_nl}ac_space=\ *)
1975       sed -n \
1976         "s/'\''/'\''\\\\'\'''\''/g;
1977           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1978       ;; #(
1979     *)
1980       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1981       ;;
1982     esac |
1983     sort
1984 )
1985     echo
1986
1987     cat <<\_ASBOX
1988 ## ----------------- ##
1989 ## Output variables. ##
1990 ## ----------------- ##
1991 _ASBOX
1992     echo
1993     for ac_var in $ac_subst_vars
1994     do
1995       eval ac_val=\$$ac_var
1996       case $ac_val in
1997       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998       esac
1999       echo "$ac_var='\''$ac_val'\''"
2000     done | sort
2001     echo
2002
2003     if test -n "$ac_subst_files"; then
2004       cat <<\_ASBOX
2005 ## ------------------- ##
2006 ## File substitutions. ##
2007 ## ------------------- ##
2008 _ASBOX
2009       echo
2010       for ac_var in $ac_subst_files
2011       do
2012         eval ac_val=\$$ac_var
2013         case $ac_val in
2014         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015         esac
2016         echo "$ac_var='\''$ac_val'\''"
2017       done | sort
2018       echo
2019     fi
2020
2021     if test -s confdefs.h; then
2022       cat <<\_ASBOX
2023 ## ----------- ##
2024 ## confdefs.h. ##
2025 ## ----------- ##
2026 _ASBOX
2027       echo
2028       cat confdefs.h
2029       echo
2030     fi
2031     test "$ac_signal" != 0 &&
2032       echo "$as_me: caught signal $ac_signal"
2033     echo "$as_me: exit $exit_status"
2034   } >&5
2035   rm -f core *.core core.conftest.* &&
2036     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2037     exit $exit_status
2038 ' 0
2039 for ac_signal in 1 2 13 15; do
2040   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2041 done
2042 ac_signal=0
2043
2044 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2045 rm -f -r conftest* confdefs.h
2046
2047 # Predefined preprocessor variables.
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_NAME "$PACKAGE_NAME"
2051 _ACEOF
2052
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2056 _ACEOF
2057
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2061 _ACEOF
2062
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_STRING "$PACKAGE_STRING"
2066 _ACEOF
2067
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2071 _ACEOF
2072
2073
2074 # Let the site file select an alternate cache file if it wants to.
2075 # Prefer explicitly selected file to automatically selected ones.
2076 if test -n "$CONFIG_SITE"; then
2077   set x "$CONFIG_SITE"
2078 elif test "x$prefix" != xNONE; then
2079   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2080 else
2081   set x "$ac_default_prefix/share/config.site" \
2082         "$ac_default_prefix/etc/config.site"
2083 fi
2084 shift
2085 for ac_site_file
2086 do
2087   if test -r "$ac_site_file"; then
2088     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2089 echo "$as_me: loading site script $ac_site_file" >&6;}
2090     sed 's/^/| /' "$ac_site_file" >&5
2091     . "$ac_site_file"
2092   fi
2093 done
2094
2095 if test -r "$cache_file"; then
2096   # Some versions of bash will fail to source /dev/null (special
2097   # files actually), so we avoid doing that.
2098   if test -f "$cache_file"; then
2099     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2100 echo "$as_me: loading cache $cache_file" >&6;}
2101     case $cache_file in
2102       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103       *)                      . "./$cache_file";;
2104     esac
2105   fi
2106 else
2107   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2108 echo "$as_me: creating cache $cache_file" >&6;}
2109   >$cache_file
2110 fi
2111
2112 # Check that the precious variables saved in the cache have kept the same
2113 # value.
2114 ac_cache_corrupted=false
2115 for ac_var in $ac_precious_vars; do
2116   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117   eval ac_new_set=\$ac_env_${ac_var}_set
2118   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119   eval ac_new_val=\$ac_env_${ac_var}_value
2120   case $ac_old_set,$ac_new_set in
2121     set,)
2122       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2124       ac_cache_corrupted=: ;;
2125     ,set)
2126       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2127 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2128       ac_cache_corrupted=: ;;
2129     ,);;
2130     *)
2131       if test "x$ac_old_val" != "x$ac_new_val"; then
2132         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2133 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2134         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2135 echo "$as_me:   former value:  $ac_old_val" >&2;}
2136         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2137 echo "$as_me:   current value: $ac_new_val" >&2;}
2138         ac_cache_corrupted=:
2139       fi;;
2140   esac
2141   # Pass precious variables to config.status.
2142   if test "$ac_new_set" = set; then
2143     case $ac_new_val in
2144     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2145     *) ac_arg=$ac_var=$ac_new_val ;;
2146     esac
2147     case " $ac_configure_args " in
2148       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2149       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2150     esac
2151   fi
2152 done
2153 if $ac_cache_corrupted; then
2154   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2155 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2156   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2157 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2158    { (exit 1); exit 1; }; }
2159 fi
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177 ac_ext=c
2178 ac_cpp='$CPP $CPPFLAGS'
2179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182
2183
2184 BUILD_DIR=`pwd`
2185 cd ..
2186 TOP_DIR=`pwd`
2187 cd ${BUILD_DIR}
2188
2189
2190 ac_aux_dir=
2191 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2192   if test -f "$ac_dir/install-sh"; then
2193     ac_aux_dir=$ac_dir
2194     ac_install_sh="$ac_aux_dir/install-sh -c"
2195     break
2196   elif test -f "$ac_dir/install.sh"; then
2197     ac_aux_dir=$ac_dir
2198     ac_install_sh="$ac_aux_dir/install.sh -c"
2199     break
2200   elif test -f "$ac_dir/shtool"; then
2201     ac_aux_dir=$ac_dir
2202     ac_install_sh="$ac_aux_dir/shtool install -c"
2203     break
2204   fi
2205 done
2206 if test -z "$ac_aux_dir"; then
2207   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2208 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2209    { (exit 1); exit 1; }; }
2210 fi
2211
2212 # These three variables are undocumented and unsupported,
2213 # and are intended to be withdrawn in a future Autoconf release.
2214 # They can cause serious problems if a builder's source tree is in a directory
2215 # whose full name contains unusual characters.
2216 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2217 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2218 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2219
2220
2221 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2222
2223
2224
2225
2226
2227 for ac_prog in true
2228 do
2229   # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 set dummy $ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   case $TRUEPRG in
2237   [\\/]* | ?:[\\/]*)
2238   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2239   ;;
2240   *)
2241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254 IFS=$as_save_IFS
2255
2256   ;;
2257 esac
2258 fi
2259 TRUEPRG=$ac_cv_path_TRUEPRG
2260 if test -n "$TRUEPRG"; then
2261   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2262 echo "${ECHO_T}$TRUEPRG" >&6; }
2263 else
2264   { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269   test -n "$TRUEPRG" && break
2270 done
2271 test -n "$TRUEPRG" || TRUEPRG=":"
2272
2273 for ac_prog in false
2274 do
2275   # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   case $FALSEPRG in
2283   [\\/]* | ?:[\\/]*)
2284   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2285   ;;
2286   *)
2287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300 IFS=$as_save_IFS
2301
2302   ;;
2303 esac
2304 fi
2305 FALSEPRG=$ac_cv_path_FALSEPRG
2306 if test -n "$FALSEPRG"; then
2307   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2308 echo "${ECHO_T}$FALSEPRG" >&6; }
2309 else
2310   { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2312 fi
2313
2314
2315   test -n "$FALSEPRG" && break
2316 done
2317 test -n "$FALSEPRG" || FALSEPRG=":"
2318
2319
2320
2321 post_host=
2322 if test "x$BACULA" != x; then
2323    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2324 fi
2325 BACULA=${BACULA-Bacula}
2326 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2329 echo "configuring for ${BACULA} $VERSION ($DATE)"
2330
2331
2332 ac_ext=c
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 if test -n "$ac_tool_prefix"; then
2338   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   if test -n "$CC"; then
2346   ac_cv_prog_CC="$CC" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351   IFS=$as_save_IFS
2352   test -z "$as_dir" && as_dir=.
2353   for ac_exec_ext in '' $ac_executable_extensions; do
2354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357     break 2
2358   fi
2359 done
2360 done
2361 IFS=$as_save_IFS
2362
2363 fi
2364 fi
2365 CC=$ac_cv_prog_CC
2366 if test -n "$CC"; then
2367   { echo "$as_me:$LINENO: result: $CC" >&5
2368 echo "${ECHO_T}$CC" >&6; }
2369 else
2370   { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2372 fi
2373
2374
2375 fi
2376 if test -z "$ac_cv_prog_CC"; then
2377   ac_ct_CC=$CC
2378   # Extract the first word of "gcc", so it can be a program name with args.
2379 set dummy gcc; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   if test -n "$ac_ct_CC"; then
2386   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391   IFS=$as_save_IFS
2392   test -z "$as_dir" && as_dir=.
2393   for ac_exec_ext in '' $ac_executable_extensions; do
2394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395     ac_cv_prog_ac_ct_CC="gcc"
2396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397     break 2
2398   fi
2399 done
2400 done
2401 IFS=$as_save_IFS
2402
2403 fi
2404 fi
2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406 if test -n "$ac_ct_CC"; then
2407   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408 echo "${ECHO_T}$ac_ct_CC" >&6; }
2409 else
2410   { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2412 fi
2413
2414   if test "x$ac_ct_CC" = x; then
2415     CC=""
2416   else
2417     case $cross_compiling:$ac_tool_warned in
2418 yes:)
2419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet.  If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&5
2422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet.  If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2425 ac_tool_warned=yes ;;
2426 esac
2427     CC=$ac_ct_CC
2428   fi
2429 else
2430   CC="$ac_cv_prog_CC"
2431 fi
2432
2433 if test -z "$CC"; then
2434           if test -n "$ac_tool_prefix"; then
2435     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}cc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_CC="${ac_tool_prefix}cc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464   { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2469 fi
2470
2471
2472   fi
2473 fi
2474 if test -z "$CC"; then
2475   # Extract the first word of "cc", so it can be a program name with args.
2476 set dummy cc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$CC"; then
2483   ac_cv_prog_CC="$CC" # Let the user override the test.
2484 else
2485   ac_prog_rejected=no
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2494        ac_prog_rejected=yes
2495        continue
2496      fi
2497     ac_cv_prog_CC="cc"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 if test $ac_prog_rejected = yes; then
2506   # We found a bogon in the path, so make sure we never use it.
2507   set dummy $ac_cv_prog_CC
2508   shift
2509   if test $# != 0; then
2510     # We chose a different compiler from the bogus one.
2511     # However, it has the same basename, so the bogon will be chosen
2512     # first if we set CC to just the basename; use the full file name.
2513     shift
2514     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2515   fi
2516 fi
2517 fi
2518 fi
2519 CC=$ac_cv_prog_CC
2520 if test -n "$CC"; then
2521   { echo "$as_me:$LINENO: result: $CC" >&5
2522 echo "${ECHO_T}$CC" >&6; }
2523 else
2524   { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2526 fi
2527
2528
2529 fi
2530 if test -z "$CC"; then
2531   if test -n "$ac_tool_prefix"; then
2532   for ac_prog in cl.exe
2533   do
2534     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   if test -n "$CC"; then
2542   ac_cv_prog_CC="$CC" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547   IFS=$as_save_IFS
2548   test -z "$as_dir" && as_dir=.
2549   for ac_exec_ext in '' $ac_executable_extensions; do
2550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553     break 2
2554   fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 fi
2560 fi
2561 CC=$ac_cv_prog_CC
2562 if test -n "$CC"; then
2563   { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2565 else
2566   { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2568 fi
2569
2570
2571     test -n "$CC" && break
2572   done
2573 fi
2574 if test -z "$CC"; then
2575   ac_ct_CC=$CC
2576   for ac_prog in cl.exe
2577 do
2578   # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   if test -n "$ac_ct_CC"; then
2586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593   for ac_exec_ext in '' $ac_executable_extensions; do
2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595     ac_cv_prog_ac_ct_CC="$ac_prog"
2596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606 if test -n "$ac_ct_CC"; then
2607   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2608 echo "${ECHO_T}$ac_ct_CC" >&6; }
2609 else
2610   { echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6; }
2612 fi
2613
2614
2615   test -n "$ac_ct_CC" && break
2616 done
2617
2618   if test "x$ac_ct_CC" = x; then
2619     CC=""
2620   else
2621     case $cross_compiling:$ac_tool_warned in
2622 yes:)
2623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet.  If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet.  If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2630 esac
2631     CC=$ac_ct_CC
2632   fi
2633 fi
2634
2635 fi
2636
2637
2638 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: no acceptable C compiler found in \$PATH
2641 See \`config.log' for more details." >&2;}
2642    { (exit 1); exit 1; }; }
2643
2644 # Provide some information about the compiler.
2645 echo "$as_me:$LINENO: checking for C compiler version" >&5
2646 ac_compiler=`set X $ac_compile; echo $2`
2647 { (ac_try="$ac_compiler --version >&5"
2648 case "(($ac_try" in
2649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650   *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653   (eval "$ac_compiler --version >&5") 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }
2657 { (ac_try="$ac_compiler -v >&5"
2658 case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663   (eval "$ac_compiler -v >&5") 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }
2667 { (ac_try="$ac_compiler -V >&5"
2668 case "(($ac_try" in
2669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670   *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673   (eval "$ac_compiler -V >&5") 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }
2677
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684
2685 int
2686 main ()
2687 {
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 ac_clean_files_save=$ac_clean_files
2694 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2695 # Try to create an executable without -o first, disregard a.out.
2696 # It will help us diagnose broken compilers, and finding out an intuition
2697 # of exeext.
2698 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2699 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2700 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2701 #
2702 # List of possible output files, starting from the most likely.
2703 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2704 # only as a last resort.  b.out is created by i960 compilers.
2705 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2706 #
2707 # The IRIX 6 linker writes into existing files which may not be
2708 # executable, retaining their permissions.  Remove them first so a
2709 # subsequent execution test works.
2710 ac_rmfiles=
2711 for ac_file in $ac_files
2712 do
2713   case $ac_file in
2714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2715     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2716   esac
2717 done
2718 rm -f $ac_rmfiles
2719
2720 if { (ac_try="$ac_link_default"
2721 case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_link_default") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; then
2730   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2731 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2732 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2733 # so that the user can short-circuit this test for compilers unknown to
2734 # Autoconf.
2735 for ac_file in $ac_files ''
2736 do
2737   test -f "$ac_file" || continue
2738   case $ac_file in
2739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2740         ;;
2741     [ab].out )
2742         # We found the default executable, but exeext='' is most
2743         # certainly right.
2744         break;;
2745     *.* )
2746         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2747         then :; else
2748            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749         fi
2750         # We set ac_cv_exeext here because the later test for it is not
2751         # safe: cross compilers may not add the suffix if given an `-o'
2752         # argument, so we may need to know it at that point already.
2753         # Even if this section looks crufty: it has the advantage of
2754         # actually working.
2755         break;;
2756     * )
2757         break;;
2758   esac
2759 done
2760 test "$ac_cv_exeext" = no && ac_cv_exeext=
2761
2762 else
2763   ac_file=''
2764 fi
2765
2766 { echo "$as_me:$LINENO: result: $ac_file" >&5
2767 echo "${ECHO_T}$ac_file" >&6; }
2768 if test -z "$ac_file"; then
2769   echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2773 See \`config.log' for more details." >&5
2774 echo "$as_me: error: C compiler cannot create executables
2775 See \`config.log' for more details." >&2;}
2776    { (exit 77); exit 77; }; }
2777 fi
2778
2779 ac_exeext=$ac_cv_exeext
2780
2781 # Check that the compiler produces executables we can run.  If not, either
2782 # the compiler is broken, or we cross compile.
2783 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2786 # If not cross compiling, check that we can run a simple program.
2787 if test "$cross_compiling" != yes; then
2788   if { ac_try='./$ac_file'
2789   { (case "(($ac_try" in
2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791   *) ac_try_echo=$ac_try;;
2792 esac
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794   (eval "$ac_try") 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798     cross_compiling=no
2799   else
2800     if test "$cross_compiling" = maybe; then
2801         cross_compiling=yes
2802     else
2803         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2804 If you meant to cross compile, use \`--host'.
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&2;}
2809    { (exit 1); exit 1; }; }
2810     fi
2811   fi
2812 fi
2813 { echo "$as_me:$LINENO: result: yes" >&5
2814 echo "${ECHO_T}yes" >&6; }
2815
2816 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2817 ac_clean_files=$ac_clean_files_save
2818 # Check that the compiler produces executables we can run.  If not, either
2819 # the compiler is broken, or we cross compile.
2820 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2821 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2822 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2823 echo "${ECHO_T}$cross_compiling" >&6; }
2824
2825 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2826 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2827 if { (ac_try="$ac_link"
2828 case "(($ac_try" in
2829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830   *) ac_try_echo=$ac_try;;
2831 esac
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833   (eval "$ac_link") 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; then
2837   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2838 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2839 # work properly (i.e., refer to `conftest.exe'), while it won't with
2840 # `rm'.
2841 for ac_file in conftest.exe conftest conftest.*; do
2842   test -f "$ac_file" || continue
2843   case $ac_file in
2844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2845     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846           break;;
2847     * ) break;;
2848   esac
2849 done
2850 else
2851   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2854 See \`config.log' for more details." >&2;}
2855    { (exit 1); exit 1; }; }
2856 fi
2857
2858 rm -f conftest$ac_cv_exeext
2859 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2860 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2861
2862 rm -f conftest.$ac_ext
2863 EXEEXT=$ac_cv_exeext
2864 ac_exeext=$EXEEXT
2865 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2866 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2867 if test "${ac_cv_objext+set}" = set; then
2868   echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870   cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876
2877 int
2878 main ()
2879 {
2880
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 rm -f conftest.o conftest.obj
2886 if { (ac_try="$ac_compile"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_compile") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; then
2896   for ac_file in conftest.o conftest.obj conftest.*; do
2897   test -f "$ac_file" || continue;
2898   case $ac_file in
2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2900     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2901        break;;
2902   esac
2903 done
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2911 See \`config.log' for more details." >&2;}
2912    { (exit 1); exit 1; }; }
2913 fi
2914
2915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2916 fi
2917 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2918 echo "${ECHO_T}$ac_cv_objext" >&6; }
2919 OBJEXT=$ac_cv_objext
2920 ac_objext=$OBJEXT
2921 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2922 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2923 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932
2933 int
2934 main ()
2935 {
2936 #ifndef __GNUC__
2937        choke me
2938 #endif
2939
2940   ;
2941   return 0;
2942 }
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (ac_try="$ac_compile"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_compile") 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } && {
2958          test -z "$ac_c_werror_flag" ||
2959          test ! -s conftest.err
2960        } && test -s conftest.$ac_objext; then
2961   ac_compiler_gnu=yes
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966         ac_compiler_gnu=no
2967 fi
2968
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2971
2972 fi
2973 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2975 GCC=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CFLAGS=${CFLAGS+set}
2977 ac_save_CFLAGS=$CFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2979 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cc_g+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   ac_save_c_werror_flag=$ac_c_werror_flag
2984    ac_c_werror_flag=yes
2985    ac_cv_prog_cc_g=no
2986    CFLAGS="-g"
2987    cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h.  */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_compile") 2>conftest.er1
3010   ac_status=$?
3011   grep -v '^ *+' conftest.er1 >conftest.err
3012   rm -f conftest.er1
3013   cat conftest.err >&5
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } && {
3016          test -z "$ac_c_werror_flag" ||
3017          test ! -s conftest.err
3018        } && test -s conftest.$ac_objext; then
3019   ac_cv_prog_cc_g=yes
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024         CFLAGS=""
3025       cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031
3032 int
3033 main ()
3034 {
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compile") 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } && {
3054          test -z "$ac_c_werror_flag" ||
3055          test ! -s conftest.err
3056        } && test -s conftest.$ac_objext; then
3057   :
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062         ac_c_werror_flag=$ac_save_c_werror_flag
3063          CFLAGS="-g"
3064          cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } && {
3093          test -z "$ac_c_werror_flag" ||
3094          test ! -s conftest.err
3095        } && test -s conftest.$ac_objext; then
3096   ac_cv_prog_cc_g=yes
3097 else
3098   echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101
3102 fi
3103
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 fi
3106
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111    ac_c_werror_flag=$ac_save_c_werror_flag
3112 fi
3113 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3115 if test "$ac_test_CFLAGS" = set; then
3116   CFLAGS=$ac_save_CFLAGS
3117 elif test $ac_cv_prog_cc_g = yes; then
3118   if test "$GCC" = yes; then
3119     CFLAGS="-g -O2"
3120   else
3121     CFLAGS="-g"
3122   fi
3123 else
3124   if test "$GCC" = yes; then
3125     CFLAGS="-O2"
3126   else
3127     CFLAGS=
3128   fi
3129 fi
3130 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3131 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3132 if test "${ac_cv_prog_cc_c89+set}" = set; then
3133   echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135   ac_cv_prog_cc_c89=no
3136 ac_save_CC=$CC
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 #include <stdarg.h>
3144 #include <stdio.h>
3145 #include <sys/types.h>
3146 #include <sys/stat.h>
3147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3148 struct buf { int x; };
3149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3150 static char *e (p, i)
3151      char **p;
3152      int i;
3153 {
3154   return p[i];
3155 }
3156 static char *f (char * (*g) (char **, int), char **p, ...)
3157 {
3158   char *s;
3159   va_list v;
3160   va_start (v,p);
3161   s = g (p, va_arg (v,int));
3162   va_end (v);
3163   return s;
3164 }
3165
3166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3167    function prototypes and stuff, but not '\xHH' hex character constants.
3168    These don't provoke an error unfortunately, instead are silently treated
3169    as 'x'.  The following induces an error, until -std is added to get
3170    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3171    array size at least.  It's necessary to write '\x00'==0 to get something
3172    that's true only with -std.  */
3173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3174
3175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3176    inside strings and character constants.  */
3177 #define FOO(x) 'x'
3178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3179
3180 int test (int i, double x);
3181 struct s1 {int (*f) (int a);};
3182 struct s2 {int (*f) (double a);};
3183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3184 int argc;
3185 char **argv;
3186 int
3187 main ()
3188 {
3189 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3195         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196 do
3197   CC="$ac_save_CC $ac_arg"
3198   rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compile") 2>conftest.er1
3206   ac_status=$?
3207   grep -v '^ *+' conftest.er1 >conftest.err
3208   rm -f conftest.er1
3209   cat conftest.err >&5
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); } && {
3212          test -z "$ac_c_werror_flag" ||
3213          test ! -s conftest.err
3214        } && test -s conftest.$ac_objext; then
3215   ac_cv_prog_cc_c89=$ac_arg
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
3221 fi
3222
3223 rm -f core conftest.err conftest.$ac_objext
3224   test "x$ac_cv_prog_cc_c89" != "xno" && break
3225 done
3226 rm -f conftest.$ac_ext
3227 CC=$ac_save_CC
3228
3229 fi
3230 # AC_CACHE_VAL
3231 case "x$ac_cv_prog_cc_c89" in
3232   x)
3233     { echo "$as_me:$LINENO: result: none needed" >&5
3234 echo "${ECHO_T}none needed" >&6; } ;;
3235   xno)
3236     { echo "$as_me:$LINENO: result: unsupported" >&5
3237 echo "${ECHO_T}unsupported" >&6; } ;;
3238   *)
3239     CC="$CC $ac_cv_prog_cc_c89"
3240     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3241 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3242 esac
3243
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251 ac_ext=cpp
3252 ac_cpp='$CXXCPP $CPPFLAGS'
3253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3256 if test -z "$CXX"; then
3257   if test -n "$CCC"; then
3258     CXX=$CCC
3259   else
3260     if test -n "$ac_tool_prefix"; then
3261   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3262   do
3263     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_CXX+set}" = set; then
3268   echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270   if test -n "$CXX"; then
3271   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276   IFS=$as_save_IFS
3277   test -z "$as_dir" && as_dir=.
3278   for ac_exec_ext in '' $ac_executable_extensions; do
3279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282     break 2
3283   fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CXX=$ac_cv_prog_CXX
3291 if test -n "$CXX"; then
3292   { echo "$as_me:$LINENO: result: $CXX" >&5
3293 echo "${ECHO_T}$CXX" >&6; }
3294 else
3295   { echo "$as_me:$LINENO: result: no" >&5
3296 echo "${ECHO_T}no" >&6; }
3297 fi
3298
3299
3300     test -n "$CXX" && break
3301   done
3302 fi
3303 if test -z "$CXX"; then
3304   ac_ct_CXX=$CXX
3305   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3306 do
3307   # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3311 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3312   echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314   if test -n "$ac_ct_CXX"; then
3315   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322   for ac_exec_ext in '' $ac_executable_extensions; do
3323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324     ac_cv_prog_ac_ct_CXX="$ac_prog"
3325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3335 if test -n "$ac_ct_CXX"; then
3336   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3337 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3338 else
3339   { echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6; }
3341 fi
3342
3343
3344   test -n "$ac_ct_CXX" && break
3345 done
3346
3347   if test "x$ac_ct_CXX" = x; then
3348     CXX="g++"
3349   else
3350     case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3353 whose name does not start with the host triplet.  If you think this
3354 configuration is useful to you, please write to autoconf@gnu.org." >&5
3355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet.  If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3358 ac_tool_warned=yes ;;
3359 esac
3360     CXX=$ac_ct_CXX
3361   fi
3362 fi
3363
3364   fi
3365 fi
3366 # Provide some information about the compiler.
3367 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3368 ac_compiler=`set X $ac_compile; echo $2`
3369 { (ac_try="$ac_compiler --version >&5"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_compiler --version >&5") 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }
3379 { (ac_try="$ac_compiler -v >&5"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_compiler -v >&5") 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }
3389 { (ac_try="$ac_compiler -V >&5"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395   (eval "$ac_compiler -V >&5") 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); }
3399
3400 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3401 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3402 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405   cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h.  */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h.  */
3411
3412 int
3413 main ()
3414 {
3415 #ifndef __GNUC__
3416        choke me
3417 #endif
3418
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430   (eval "$ac_compile") 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } && {
3437          test -z "$ac_cxx_werror_flag" ||
3438          test ! -s conftest.err
3439        } && test -s conftest.$ac_objext; then
3440   ac_compiler_gnu=yes
3441 else
3442   echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445         ac_compiler_gnu=no
3446 fi
3447
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3450
3451 fi
3452 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3453 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3454 GXX=`test $ac_compiler_gnu = yes && echo yes`
3455 ac_test_CXXFLAGS=${CXXFLAGS+set}
3456 ac_save_CXXFLAGS=$CXXFLAGS
3457 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3458 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3459 if test "${ac_cv_prog_cxx_g+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3463    ac_cxx_werror_flag=yes
3464    ac_cv_prog_cxx_g=no
3465    CXXFLAGS="-g"
3466    cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_compile") 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } && {
3495          test -z "$ac_cxx_werror_flag" ||
3496          test ! -s conftest.err
3497        } && test -s conftest.$ac_objext; then
3498   ac_cv_prog_cxx_g=yes
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503         CXXFLAGS=""
3504       cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510
3511 int
3512 main ()
3513 {
3514
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3521 case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526   (eval "$ac_compile") 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } && {
3533          test -z "$ac_cxx_werror_flag" ||
3534          test ! -s conftest.err
3535        } && test -s conftest.$ac_objext; then
3536   :
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3542          CXXFLAGS="-g"
3543          cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549
3550 int
3551 main ()
3552 {
3553
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_compile") 2>conftest.er1
3566   ac_status=$?
3567   grep -v '^ *+' conftest.er1 >conftest.err
3568   rm -f conftest.er1
3569   cat conftest.err >&5
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } && {
3572          test -z "$ac_cxx_werror_flag" ||
3573          test ! -s conftest.err
3574        } && test -s conftest.$ac_objext; then
3575   ac_cv_prog_cxx_g=yes
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580
3581 fi
3582
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3591 fi
3592 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3593 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3594 if test "$ac_test_CXXFLAGS" = set; then
3595   CXXFLAGS=$ac_save_CXXFLAGS
3596 elif test $ac_cv_prog_cxx_g = yes; then
3597   if test "$GXX" = yes; then
3598     CXXFLAGS="-g -O2"
3599   else
3600     CXXFLAGS="-g"
3601   fi
3602 else
3603   if test "$GXX" = yes; then
3604     CXXFLAGS="-O2"
3605   else
3606     CXXFLAGS=
3607   fi
3608 fi
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615 if test "x$CC" != xcc; then
3616   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3617 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3618 else
3619   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3620 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3621 fi
3622 set dummy $CC; ac_cc=`echo $2 |
3623                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3624 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633
3634 int
3635 main ()
3636 {
3637
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 # Make sure it works both with $CC and with simple cc.
3643 # We do the test twice because some compilers refuse to overwrite an
3644 # existing .o file with -o, though they will create one.
3645 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3646 rm -f conftest2.*
3647 if { (case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652   (eval "$ac_try") 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); } &&
3656    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658   *) ac_try_echo=$ac_try;;
3659 esac
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661   (eval "$ac_try") 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); };
3665 then
3666   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3667   if test "x$CC" != xcc; then
3668     # Test first that cc exists at all.
3669     if { ac_try='cc -c conftest.$ac_ext >&5'
3670   { (case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_try") 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; }; then
3679       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3680       rm -f conftest2.*
3681       if { (case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_try") 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); } &&
3690          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695   (eval "$ac_try") 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); };
3699       then
3700         # cc works too.
3701         :
3702       else
3703         # cc exists but doesn't like -o.
3704         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3705       fi
3706     fi
3707   fi
3708 else
3709   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3710 fi
3711 rm -f core conftest*
3712
3713 fi
3714 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3715   { echo "$as_me:$LINENO: result: yes" >&5
3716 echo "${ECHO_T}yes" >&6; }
3717 else
3718   { echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6; }
3720
3721 cat >>confdefs.h <<\_ACEOF
3722 #define NO_MINUS_C_MINUS_O 1
3723 _ACEOF
3724
3725 fi
3726
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3733 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3736   CPP=
3737 fi
3738 if test -z "$CPP"; then
3739   if test "${ac_cv_prog_CPP+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742       # Double quotes because CPP needs to be expanded
3743     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3744     do
3745       ac_preproc_ok=false
3746 for ac_c_preproc_warn_flag in '' yes
3747 do
3748   # Use a header file that comes with gcc, so configuring glibc
3749   # with a fresh cross-compiler works.
3750   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751   # <limits.h> exists even on freestanding compilers.
3752   # On the NeXT, cc -E runs the code through the compiler's parser,
3753   # not just through cpp. "Syntax error" is here to catch this case.
3754   cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h.  */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h.  */
3760 #ifdef __STDC__
3761 # include <limits.h>
3762 #else
3763 # include <assert.h>
3764 #endif
3765                      Syntax error
3766 _ACEOF
3767 if { (ac_try="$ac_cpp conftest.$ac_ext"
3768 case "(($ac_try" in
3769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770   *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } >/dev/null && {
3780          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3781          test ! -s conftest.err
3782        }; then
3783   :
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788   # Broken: fails on valid input.
3789 continue
3790 fi
3791
3792 rm -f conftest.err conftest.$ac_ext
3793
3794   # OK, works on sane cases.  Now check whether nonexistent headers
3795   # can be detected and how.
3796   cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h.  */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h.  */
3802 #include <ac_nonexistent.h>
3803 _ACEOF
3804 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 case "(($ac_try" in
3806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807   *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811   ac_status=$?
3812   grep -v '^ *+' conftest.er1 >conftest.err
3813   rm -f conftest.er1
3814   cat conftest.err >&5
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); } >/dev/null && {
3817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818          test ! -s conftest.err
3819        }; then
3820   # Broken: success on invalid input.
3821 continue
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826   # Passes both tests.
3827 ac_preproc_ok=:
3828 break
3829 fi
3830
3831 rm -f conftest.err conftest.$ac_ext
3832
3833 done
3834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835 rm -f conftest.err conftest.$ac_ext
3836 if $ac_preproc_ok; then
3837   break
3838 fi
3839
3840     done
3841     ac_cv_prog_CPP=$CPP
3842
3843 fi
3844   CPP=$ac_cv_prog_CPP
3845 else
3846   ac_cv_prog_CPP=$CPP
3847 fi
3848 { echo "$as_me:$LINENO: result: $CPP" >&5
3849 echo "${ECHO_T}$CPP" >&6; }
3850 ac_preproc_ok=false
3851 for ac_c_preproc_warn_flag in '' yes
3852 do
3853   # Use a header file that comes with gcc, so configuring glibc
3854   # with a fresh cross-compiler works.
3855   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856   # <limits.h> exists even on freestanding compilers.
3857   # On the NeXT, cc -E runs the code through the compiler's parser,
3858   # not just through cpp. "Syntax error" is here to catch this case.
3859   cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h.  */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h.  */
3865 #ifdef __STDC__
3866 # include <limits.h>
3867 #else
3868 # include <assert.h>
3869 #endif
3870                      Syntax error
3871 _ACEOF
3872 if { (ac_try="$ac_cpp conftest.$ac_ext"
3873 case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3879   ac_status=$?
3880   grep -v '^ *+' conftest.er1 >conftest.err
3881   rm -f conftest.er1
3882   cat conftest.err >&5
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); } >/dev/null && {
3885          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886          test ! -s conftest.err
3887        }; then
3888   :
3889 else
3890   echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3892
3893   # Broken: fails on valid input.
3894 continue
3895 fi
3896
3897 rm -f conftest.err conftest.$ac_ext
3898
3899   # OK, works on sane cases.  Now check whether nonexistent headers
3900   # can be detected and how.
3901   cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907 #include <ac_nonexistent.h>
3908 _ACEOF
3909 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 case "(($ac_try" in
3911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912   *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916   ac_status=$?
3917   grep -v '^ *+' conftest.er1 >conftest.err
3918   rm -f conftest.er1
3919   cat conftest.err >&5
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } >/dev/null && {
3922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923          test ! -s conftest.err
3924        }; then
3925   # Broken: success on invalid input.
3926 continue
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931   # Passes both tests.
3932 ac_preproc_ok=:
3933 break
3934 fi
3935
3936 rm -f conftest.err conftest.$ac_ext
3937
3938 done
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then
3942   :
3943 else
3944   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details." >&5
3946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details." >&2;}
3948    { (exit 1); exit 1; }; }
3949 fi
3950
3951 ac_ext=c
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956
3957
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_prog in grep ggrep; do
3977   for ac_exec_ext in '' $ac_executable_extensions; do
3978     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3980     # Check for GNU ac_path_GREP and select it if it is found.
3981   # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3983 *GNU*)
3984   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985 *)
3986   ac_count=0
3987   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988   while :
3989   do
3990     cat "conftest.in" "conftest.in" >"conftest.tmp"
3991     mv "conftest.tmp" "conftest.in"
3992     cp "conftest.in" "conftest.nl"
3993     echo 'GREP' >> "conftest.nl"
3994     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996     ac_count=`expr $ac_count + 1`
3997     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998       # Best one so far, save it but keep looking for a better one
3999       ac_cv_path_GREP="$ac_path_GREP"
4000       ac_path_GREP_max=$ac_count
4001     fi
4002     # 10*(2^10) chars as input seems more than enough
4003     test $ac_count -gt 10 && break
4004   done
4005   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4007
4008
4009     $ac_path_GREP_found && break 3
4010   done
4011 done
4012
4013 done
4014 IFS=$as_save_IFS
4015
4016
4017 fi
4018
4019 GREP="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023    { (exit 1); exit 1; }; }
4024 fi
4025
4026 else
4027   ac_cv_path_GREP=$GREP
4028 fi
4029
4030
4031 fi
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034  GREP="$ac_cv_path_GREP"
4035
4036
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043    then ac_cv_path_EGREP="$GREP -E"
4044    else
4045      # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy egrep; ac_prog_name=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   ac_path_EGREP_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_prog in egrep; do
4059   for ac_exec_ext in '' $ac_executable_extensions; do
4060     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4062     # Check for GNU ac_path_EGREP and select it if it is found.
4063   # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4065 *GNU*)
4066   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067 *)
4068   ac_count=0
4069   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4070   while :
4071   do
4072     cat "conftest.in" "conftest.in" >"conftest.tmp"
4073     mv "conftest.tmp" "conftest.in"
4074     cp "conftest.in" "conftest.nl"
4075     echo 'EGREP' >> "conftest.nl"
4076     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078     ac_count=`expr $ac_count + 1`
4079     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080       # Best one so far, save it but keep looking for a better one
4081       ac_cv_path_EGREP="$ac_path_EGREP"
4082       ac_path_EGREP_max=$ac_count
4083     fi
4084     # 10*(2^10) chars as input seems more than enough
4085     test $ac_count -gt 10 && break
4086   done
4087   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088 esac
4089
4090
4091     $ac_path_EGREP_found && break 3
4092   done
4093 done
4094
4095 done
4096 IFS=$as_save_IFS
4097
4098
4099 fi
4100
4101 EGREP="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105    { (exit 1); exit 1; }; }
4106 fi
4107
4108 else
4109   ac_cv_path_EGREP=$EGREP
4110 fi
4111
4112
4113    fi
4114 fi
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117  EGREP="$ac_cv_path_EGREP"
4118
4119
4120 if test $ac_cv_c_compiler_gnu = yes; then
4121     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4122 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126     ac_pattern="Autoconf.*'x'"
4127   cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 #include <sgtty.h>
4134 Autoconf TIOCGETP
4135 _ACEOF
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4138   ac_cv_prog_gcc_traditional=yes
4139 else
4140   ac_cv_prog_gcc_traditional=no
4141 fi
4142 rm -f conftest*
4143
4144
4145   if test $ac_cv_prog_gcc_traditional = no; then
4146     cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152 #include <termio.h>
4153 Autoconf TCGETA
4154 _ACEOF
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4157   ac_cv_prog_gcc_traditional=yes
4158 fi
4159 rm -f conftest*
4160
4161   fi
4162 fi
4163 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4164 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4165   if test $ac_cv_prog_gcc_traditional = yes; then
4166     CC="$CC -traditional"
4167   fi
4168 fi
4169
4170 BASECC=`basename $CC`
4171 have_gcc=no
4172 if test "x$BASECC" = xgcc; then
4173    cat >>confdefs.h <<\_ACEOF
4174 #define HAVE_GCC 1
4175 _ACEOF
4176
4177    have_gcc=yes
4178 fi
4179 # Extract the first word of "$CXX", so it can be a program name with args.
4180 set dummy $CXX; ac_word=$2
4181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4183 if test "${ac_cv_path_CXX+set}" = set; then
4184   echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186   case $CXX in
4187   [\\/]* | ?:[\\/]*)
4188   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4189   ;;
4190   *)
4191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196   for ac_exec_ext in '' $ac_executable_extensions; do
4197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200     break 2
4201   fi
4202 done
4203 done
4204 IFS=$as_save_IFS
4205
4206   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4207   ;;
4208 esac
4209 fi
4210 CXX=$ac_cv_path_CXX
4211 if test -n "$CXX"; then
4212   { echo "$as_me:$LINENO: result: $CXX" >&5
4213 echo "${ECHO_T}$CXX" >&6; }
4214 else
4215   { echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6; }
4217 fi
4218
4219
4220 if test ! -e $CXX; then
4221    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4222 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4223    { (exit 1); exit 1; }; }
4224 fi
4225
4226 # Find a good install program.  We prefer a C program (faster),
4227 # so one script is as good as another.  But avoid the broken or
4228 # incompatible versions:
4229 # SysV /etc/install, /usr/sbin/install
4230 # SunOS /usr/etc/install
4231 # IRIX /sbin/install
4232 # AIX /bin/install
4233 # AmigaOS /C/install, which installs bootblocks on floppy discs
4234 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4237 # OS/2's system install, which has a completely different semantic
4238 # ./install, which can be erroneously created by make from ./install.sh.
4239 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4240 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4241 if test -z "$INSTALL"; then
4242 if test "${ac_cv_path_install+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   # Account for people who put trailing slashes in PATH elements.
4251 case $as_dir/ in
4252   ./ | .// | /cC/* | \
4253   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4254   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4255   /usr/ucb/* ) ;;
4256   *)
4257     # OSF1 and SCO ODT 3.0 have their own names for install.
4258     # Don't use installbsd from OSF since it installs stuff as root
4259     # by default.
4260     for ac_prog in ginstall scoinst install; do
4261       for ac_exec_ext in '' $ac_executable_extensions; do
4262         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4263           if test $ac_prog = install &&
4264             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4265             # AIX install.  It has an incompatible calling convention.
4266             :
4267           elif test $ac_prog = install &&
4268             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4269             # program-specific install script used by HP pwplus--don't use.
4270             :
4271           else
4272             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4273             break 3
4274           fi
4275         fi
4276       done
4277     done
4278     ;;
4279 esac
4280 done
4281 IFS=$as_save_IFS
4282
4283
4284 fi
4285   if test "${ac_cv_path_install+set}" = set; then
4286     INSTALL=$ac_cv_path_install
4287   else
4288     # As a last resort, use the slow shell script.  Don't cache a
4289     # value for INSTALL within a source directory, because that will
4290     # break other packages using the cache if that directory is
4291     # removed, or if the value is a relative name.
4292     INSTALL=$ac_install_sh
4293   fi
4294 fi
4295 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4296 echo "${ECHO_T}$INSTALL" >&6; }
4297
4298 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4299 # It thinks the first close brace ends the variable substitution.
4300 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4301
4302 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4303
4304 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4305
4306 # Extract the first word of "mv", so it can be a program name with args.
4307 set dummy mv; ac_word=$2
4308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4310 if test "${ac_cv_path_MV+set}" = set; then
4311   echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313   case $MV in
4314   [\\/]* | ?:[\\/]*)
4315   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4316   ;;
4317   *)
4318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323   for ac_exec_ext in '' $ac_executable_extensions; do
4324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327     break 2
4328   fi
4329 done
4330 done
4331 IFS=$as_save_IFS
4332
4333   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4334   ;;
4335 esac
4336 fi
4337 MV=$ac_cv_path_MV
4338 if test -n "$MV"; then
4339   { echo "$as_me:$LINENO: result: $MV" >&5
4340 echo "${ECHO_T}$MV" >&6; }
4341 else
4342   { echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6; }
4344 fi
4345
4346
4347 # Extract the first word of "rm", so it can be a program name with args.
4348 set dummy rm; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_path_REMOVE+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   case $REMOVE in
4355   [\\/]* | ?:[\\/]*)
4356   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4357   ;;
4358   *)
4359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362   IFS=$as_save_IFS
4363   test -z "$as_dir" && as_dir=.
4364   for ac_exec_ext in '' $ac_executable_extensions; do
4365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368     break 2
4369   fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4373
4374   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4375   ;;
4376 esac
4377 fi
4378 REMOVE=$ac_cv_path_REMOVE
4379 if test -n "$REMOVE"; then
4380   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4381 echo "${ECHO_T}$REMOVE" >&6; }
4382 else
4383   { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4385 fi
4386
4387
4388 # Extract the first word of "cp", so it can be a program name with args.
4389 set dummy cp; ac_word=$2
4390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392 if test "${ac_cv_path_CP+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   case $CP in
4396   [\\/]* | ?:[\\/]*)
4397   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4398   ;;
4399   *)
4400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4416   ;;
4417 esac
4418 fi
4419 CP=$ac_cv_path_CP
4420 if test -n "$CP"; then
4421   { echo "$as_me:$LINENO: result: $CP" >&5
4422 echo "${ECHO_T}$CP" >&6; }
4423 else
4424   { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4426 fi
4427
4428
4429 # Extract the first word of "sed", so it can be a program name with args.
4430 set dummy sed; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_path_SED+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   case $SED in
4437   [\\/]* | ?:[\\/]*)
4438   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4439   ;;
4440   *)
4441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446   for ac_exec_ext in '' $ac_executable_extensions; do
4447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4457   ;;
4458 esac
4459 fi
4460 SED=$ac_cv_path_SED
4461 if test -n "$SED"; then
4462   { echo "$as_me:$LINENO: result: $SED" >&5
4463 echo "${ECHO_T}$SED" >&6; }
4464 else
4465   { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4467 fi
4468
4469
4470 # Extract the first word of "echo", so it can be a program name with args.
4471 set dummy echo; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_path_ECHO+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   case $ECHO in
4478   [\\/]* | ?:[\\/]*)
4479   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4480   ;;
4481   *)
4482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4498   ;;
4499 esac
4500 fi
4501 ECHO=$ac_cv_path_ECHO
4502 if test -n "$ECHO"; then
4503   { echo "$as_me:$LINENO: result: $ECHO" >&5
4504 echo "${ECHO_T}$ECHO" >&6; }
4505 else
4506   { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4508 fi
4509
4510
4511 # Extract the first word of "cmp", so it can be a program name with args.
4512 set dummy cmp; ac_word=$2
4513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4515 if test "${ac_cv_path_CMP+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   case $CMP in
4519   [\\/]* | ?:[\\/]*)
4520   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4521   ;;
4522   *)
4523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4539   ;;
4540 esac
4541 fi
4542 CMP=$ac_cv_path_CMP
4543 if test -n "$CMP"; then
4544   { echo "$as_me:$LINENO: result: $CMP" >&5
4545 echo "${ECHO_T}$CMP" >&6; }
4546 else
4547   { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4549 fi
4550
4551
4552 # Extract the first word of "tbl", so it can be a program name with args.
4553 set dummy tbl; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_path_TBL+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   case $TBL in
4560   [\\/]* | ?:[\\/]*)
4561   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4562   ;;
4563   *)
4564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4580   ;;
4581 esac
4582 fi
4583 TBL=$ac_cv_path_TBL
4584 if test -n "$TBL"; then
4585   { echo "$as_me:$LINENO: result: $TBL" >&5
4586 echo "${ECHO_T}$TBL" >&6; }
4587 else
4588   { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4590 fi
4591
4592
4593 # Extract the first word of "ar", so it can be a program name with args.
4594 set dummy ar; ac_word=$2
4595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4597 if test "${ac_cv_path_AR+set}" = set; then
4598   echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600   case $AR in
4601   [\\/]* | ?:[\\/]*)
4602   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4603   ;;
4604   *)
4605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608   IFS=$as_save_IFS
4609   test -z "$as_dir" && as_dir=.
4610   for ac_exec_ext in '' $ac_executable_extensions; do
4611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614     break 2
4615   fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4621   ;;
4622 esac
4623 fi
4624 AR=$ac_cv_path_AR
4625 if test -n "$AR"; then
4626   { echo "$as_me:$LINENO: result: $AR" >&5
4627 echo "${ECHO_T}$AR" >&6; }
4628 else
4629   { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4631 fi
4632
4633
4634 # Extract the first word of "openssl", so it can be a program name with args.
4635 set dummy openssl; ac_word=$2
4636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4638 if test "${ac_cv_path_OPENSSL+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   case $OPENSSL in
4642   [\\/]* | ?:[\\/]*)
4643   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4644   ;;
4645   *)
4646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659 IFS=$as_save_IFS
4660
4661   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4662   ;;
4663 esac
4664 fi
4665 OPENSSL=$ac_cv_path_OPENSSL
4666 if test -n "$OPENSSL"; then
4667   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4668 echo "${ECHO_T}$OPENSSL" >&6; }
4669 else
4670   { echo "$as_me:$LINENO: result: no" >&5
4671 echo "${ECHO_T}no" >&6; }
4672 fi
4673
4674
4675 # Extract the first word of "mtx", so it can be a program name with args.
4676 set dummy mtx; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_path_MTX+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   case $MTX in
4683   [\\/]* | ?:[\\/]*)
4684   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4685   ;;
4686   *)
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692   for ac_exec_ext in '' $ac_executable_extensions; do
4693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699 done
4700 IFS=$as_save_IFS
4701
4702   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4703   ;;
4704 esac
4705 fi
4706 MTX=$ac_cv_path_MTX
4707 if test -n "$MTX"; then
4708   { echo "$as_me:$LINENO: result: $MTX" >&5
4709 echo "${ECHO_T}$MTX" >&6; }
4710 else
4711   { echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6; }
4713 fi
4714
4715
4716 # Extract the first word of "dd", so it can be a program name with args.
4717 set dummy dd; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_path_DD+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   case $DD in
4724   [\\/]* | ?:[\\/]*)
4725   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4726   ;;
4727   *)
4728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731   IFS=$as_save_IFS
4732   test -z "$as_dir" && as_dir=.
4733   for ac_exec_ext in '' $ac_executable_extensions; do
4734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737     break 2
4738   fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4744   ;;
4745 esac
4746 fi
4747 DD=$ac_cv_path_DD
4748 if test -n "$DD"; then
4749   { echo "$as_me:$LINENO: result: $DD" >&5
4750 echo "${ECHO_T}$DD" >&6; }
4751 else
4752   { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 fi
4755
4756
4757 # Extract the first word of "mkisofs", so it can be a program name with args.
4758 set dummy mkisofs; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_path_MKISOFS+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   case $MKISOFS in
4765   [\\/]* | ?:[\\/]*)
4766   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4767   ;;
4768   *)
4769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774   for ac_exec_ext in '' $ac_executable_extensions; do
4775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778     break 2
4779   fi
4780 done
4781 done
4782 IFS=$as_save_IFS
4783
4784   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4785   ;;
4786 esac
4787 fi
4788 MKISOFS=$ac_cv_path_MKISOFS
4789 if test -n "$MKISOFS"; then
4790   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4791 echo "${ECHO_T}$MKISOFS" >&6; }
4792 else
4793   { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4795 fi
4796
4797
4798 # Extract the first word of "python", so it can be a program name with args.
4799 set dummy python; ac_word=$2
4800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4802 if test "${ac_cv_path_PYTHON+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   case $PYTHON in
4806   [\\/]* | ?:[\\/]*)
4807   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4808   ;;
4809   *)
4810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815   for ac_exec_ext in '' $ac_executable_extensions; do
4816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822 done
4823 IFS=$as_save_IFS
4824
4825   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4826   ;;
4827 esac
4828 fi
4829 PYTHON=$ac_cv_path_PYTHON
4830 if test -n "$PYTHON"; then
4831   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4832 echo "${ECHO_T}$PYTHON" >&6; }
4833 else
4834   { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4836 fi
4837
4838
4839 # Extract the first word of "growisofs", so it can be a program name with args.
4840 set dummy growisofs; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   case $GROWISOFS in
4847   [\\/]* | ?:[\\/]*)
4848   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4849   ;;
4850   *)
4851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856   for ac_exec_ext in '' $ac_executable_extensions; do
4857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4867   ;;
4868 esac
4869 fi
4870 GROWISOFS=$ac_cv_path_GROWISOFS
4871 if test -n "$GROWISOFS"; then
4872   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4873 echo "${ECHO_T}$GROWISOFS" >&6; }
4874 else
4875   { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4877 fi
4878
4879
4880 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4881 set dummy dvd+rw-mediainfo; ac_word=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887   case $DVDRWMEDIAINFO in
4888   [\\/]* | ?:[\\/]*)
4889   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4890   ;;
4891   *)
4892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897   for ac_exec_ext in '' $ac_executable_extensions; do
4898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4908   ;;
4909 esac
4910 fi
4911 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4912 if test -n "$DVDRWMEDIAINFO"; then
4913   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4914 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4915 else
4916   { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4918 fi
4919
4920
4921 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4922 set dummy dvd+rw-format; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   case $DVDRWFORMAT in
4929   [\\/]* | ?:[\\/]*)
4930   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4931   ;;
4932   *)
4933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936   IFS=$as_save_IFS
4937   test -z "$as_dir" && as_dir=.
4938   for ac_exec_ext in '' $ac_executable_extensions; do
4939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942     break 2
4943   fi
4944 done
4945 done
4946 IFS=$as_save_IFS
4947
4948   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4949   ;;
4950 esac
4951 fi
4952 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4953 if test -n "$DVDRWFORMAT"; then
4954   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4955 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4956 else
4957   { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4959 fi
4960
4961
4962 # Extract the first word of "pkg-config", so it can be a program name with args.
4963 set dummy pkg-config; ac_word=$2
4964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4966 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4967   echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
4969   case $PKGCONFIG in
4970   [\\/]* | ?:[\\/]*)
4971   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4972   ;;
4973   *)
4974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977   IFS=$as_save_IFS
4978   test -z "$as_dir" && as_dir=.
4979   for ac_exec_ext in '' $ac_executable_extensions; do
4980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4990   ;;
4991 esac
4992 fi
4993 PKGCONFIG=$ac_cv_path_PKGCONFIG
4994 if test -n "$PKGCONFIG"; then
4995   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4996 echo "${ECHO_T}$PKGCONFIG" >&6; }
4997 else
4998   { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5000 fi
5001
5002
5003 # Extract the first word of "qmake", so it can be a program name with args.
5004 set dummy qmake; ac_word=$2
5005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5007 if test "${ac_cv_path_QMAKE+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   case $QMAKE in
5011   [\\/]* | ?:[\\/]*)
5012   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5013   ;;
5014   *)
5015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020   for ac_exec_ext in '' $ac_executable_extensions; do
5021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5031   ;;
5032 esac
5033 fi
5034 QMAKE=$ac_cv_path_QMAKE
5035 if test -n "$QMAKE"; then
5036   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5037 echo "${ECHO_T}$QMAKE" >&6; }
5038 else
5039   { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5041 fi
5042
5043
5044 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5045 set dummy qmake-qt4; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   case $QMAKEQT4 in
5052   [\\/]* | ?:[\\/]*)
5053   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5054   ;;
5055   *)
5056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061   for ac_exec_ext in '' $ac_executable_extensions; do
5062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5072   ;;
5073 esac
5074 fi
5075 QMAKEQT4=$ac_cv_path_QMAKEQT4
5076 if test -n "$QMAKEQT4"; then
5077   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5078 echo "${ECHO_T}$QMAKEQT4" >&6; }
5079 else
5080   { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5082 fi
5083
5084
5085
5086 if test "x$WXCONFIG" = x; then
5087    WXCONFIG=wx-config
5088 fi
5089 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5090 set dummy ${WXCONFIG}; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   case $WXCONFIG in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5117   ;;
5118 esac
5119 fi
5120 WXCONFIG=$ac_cv_path_WXCONFIG
5121 if test -n "$WXCONFIG"; then
5122   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5123 echo "${ECHO_T}$WXCONFIG" >&6; }
5124 else
5125   { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5127 fi
5128
5129
5130
5131 # Extract the first word of "cdrecord", so it can be a program name with args.
5132 set dummy cdrecord; ac_word=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_path_CDRECORD+set}" = set; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   case $CDRECORD in
5139   [\\/]* | ?:[\\/]*)
5140   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5141   ;;
5142   *)
5143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for ac_exec_ext in '' $ac_executable_extensions; do
5149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5159   ;;
5160 esac
5161 fi
5162 CDRECORD=$ac_cv_path_CDRECORD
5163 if test -n "$CDRECORD"; then
5164   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5165 echo "${ECHO_T}$CDRECORD" >&6; }
5166 else
5167   { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5169 fi
5170
5171
5172 # Extract the first word of "pidof", so it can be a program name with args.
5173 set dummy pidof; ac_word=$2
5174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176 if test "${ac_cv_path_PIDOF+set}" = set; then
5177   echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179   case $PIDOF in
5180   [\\/]* | ?:[\\/]*)
5181   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5182   ;;
5183   *)
5184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187   IFS=$as_save_IFS
5188   test -z "$as_dir" && as_dir=.
5189   for ac_exec_ext in '' $ac_executable_extensions; do
5190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193     break 2
5194   fi
5195 done
5196 done
5197 IFS=$as_save_IFS
5198
5199   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5200   ;;
5201 esac
5202 fi
5203 PIDOF=$ac_cv_path_PIDOF
5204 if test -n "$PIDOF"; then
5205   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5206 echo "${ECHO_T}$PIDOF" >&6; }
5207 else
5208   { echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6; }
5210 fi
5211
5212
5213 for ac_prog in gawk mawk nawk awk
5214 do
5215   # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_prog_AWK+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   if test -n "$AWK"; then
5223   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230   for ac_exec_ext in '' $ac_executable_extensions; do
5231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232     ac_cv_prog_AWK="$ac_prog"
5233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237 done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 AWK=$ac_cv_prog_AWK
5243 if test -n "$AWK"; then
5244   { echo "$as_me:$LINENO: result: $AWK" >&5
5245 echo "${ECHO_T}$AWK" >&6; }
5246 else
5247   { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5249 fi
5250
5251
5252   test -n "$AWK" && break
5253 done
5254
5255 # Some AWK programs fail, so test it and warn the user
5256 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5257       { if ((prog == $2) || (("(" prog ")") == $2) ||
5258       (("" prog "") == $2) ||
5259       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5260 else
5261   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5262    The regex engine of $AWK is too broken to be used you
5263    might want to install GNU AWK.
5264    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5265 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5266    The regex engine of $AWK is too broken to be used you
5267    might want to install GNU AWK.
5268    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5269    { (exit 1); exit 1; }; }
5270 fi
5271 THE_AWK=$AWK
5272 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5273 set dummy $THE_AWK; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_path_AWK+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   case $AWK in
5280   [\\/]* | ?:[\\/]*)
5281   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5282   ;;
5283   *)
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_path_AWK="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5300   ;;
5301 esac
5302 fi
5303 AWK=$ac_cv_path_AWK
5304 if test -n "$AWK"; then
5305   { echo "$as_me:$LINENO: result: $AWK" >&5
5306 echo "${ECHO_T}$AWK" >&6; }
5307 else
5308   { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5310 fi
5311
5312
5313
5314
5315 test -n "$ARFLAG" || ARFLAGS="cr"
5316
5317
5318 MAKE_SHELL=/bin/sh
5319
5320
5321
5322
5323
5324
5325
5326 case `pwd` in
5327   *\ * | *\     *)
5328     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5329 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5330 esac
5331
5332
5333
5334 macro_version='2.2.6'
5335 macro_revision='1.3012'
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349 ltmain="$ac_aux_dir/ltmain.sh"
5350
5351 # Make sure we can run config.sub.
5352 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5353   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5354 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5355    { (exit 1); exit 1; }; }
5356
5357 { echo "$as_me:$LINENO: checking build system type" >&5
5358 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5359 if test "${ac_cv_build+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   ac_build_alias=$build_alias
5363 test "x$ac_build_alias" = x &&
5364   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5365 test "x$ac_build_alias" = x &&
5366   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5368    { (exit 1); exit 1; }; }
5369 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5370   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5371 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5372    { (exit 1); exit 1; }; }
5373
5374 fi
5375 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5376 echo "${ECHO_T}$ac_cv_build" >&6; }
5377 case $ac_cv_build in
5378 *-*-*) ;;
5379 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5380 echo "$as_me: error: invalid value of canonical build" >&2;}
5381    { (exit 1); exit 1; }; };;
5382 esac
5383 build=$ac_cv_build
5384 ac_save_IFS=$IFS; IFS='-'
5385 set x $ac_cv_build
5386 shift
5387 build_cpu=$1
5388 build_vendor=$2
5389 shift; shift
5390 # Remember, the first character of IFS is used to create $*,
5391 # except with old shells:
5392 build_os=$*
5393 IFS=$ac_save_IFS
5394 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5395
5396
5397 { echo "$as_me:$LINENO: checking host system type" >&5
5398 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5399 if test "${ac_cv_host+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   if test "x$host_alias" = x; then
5403   ac_cv_host=$ac_cv_build
5404 else
5405   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5406     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5407 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5408    { (exit 1); exit 1; }; }
5409 fi
5410
5411 fi
5412 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5413 echo "${ECHO_T}$ac_cv_host" >&6; }
5414 case $ac_cv_host in
5415 *-*-*) ;;
5416 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5417 echo "$as_me: error: invalid value of canonical host" >&2;}
5418    { (exit 1); exit 1; }; };;
5419 esac
5420 host=$ac_cv_host
5421 ac_save_IFS=$IFS; IFS='-'
5422 set x $ac_cv_host
5423 shift
5424 host_cpu=$1
5425 host_vendor=$2
5426 shift; shift
5427 # Remember, the first character of IFS is used to create $*,
5428 # except with old shells:
5429 host_os=$*
5430 IFS=$ac_save_IFS
5431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5432
5433
5434 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5435 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5436 if test "${ac_cv_path_SED+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5440      for ac_i in 1 2 3 4 5 6 7; do
5441        ac_script="$ac_script$as_nl$ac_script"
5442      done
5443      echo "$ac_script" | sed 99q >conftest.sed
5444      $as_unset ac_script || ac_script=
5445      # Extract the first word of "sed gsed" to use in msg output
5446 if test -z "$SED"; then
5447 set dummy sed gsed; ac_prog_name=$2
5448 if test "${ac_cv_path_SED+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   ac_path_SED_found=false
5452 # Loop through the user's path and test for each of PROGNAME-LIST
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458   for ac_prog in sed gsed; do
5459   for ac_exec_ext in '' $ac_executable_extensions; do
5460     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5461     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5462     # Check for GNU ac_path_SED and select it if it is found.
5463   # Check for GNU $ac_path_SED
5464 case `"$ac_path_SED" --version 2>&1` in
5465 *GNU*)
5466   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5467 *)
5468   ac_count=0
5469   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5470   while :
5471   do
5472     cat "conftest.in" "conftest.in" >"conftest.tmp"
5473     mv "conftest.tmp" "conftest.in"
5474     cp "conftest.in" "conftest.nl"
5475     echo '' >> "conftest.nl"
5476     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5477     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5478     ac_count=`expr $ac_count + 1`
5479     if test $ac_count -gt ${ac_path_SED_max-0}; then
5480       # Best one so far, save it but keep looking for a better one
5481       ac_cv_path_SED="$ac_path_SED"
5482       ac_path_SED_max=$ac_count
5483     fi
5484     # 10*(2^10) chars as input seems more than enough
5485     test $ac_count -gt 10 && break
5486   done
5487   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5488 esac
5489
5490
5491     $ac_path_SED_found && break 3
5492   done
5493 done
5494
5495 done
5496 IFS=$as_save_IFS
5497
5498
5499 fi
5500
5501 SED="$ac_cv_path_SED"
5502 if test -z "$SED"; then
5503   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5504 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5505    { (exit 1); exit 1; }; }
5506 fi
5507
5508 else
5509   ac_cv_path_SED=$SED
5510 fi
5511
5512 fi
5513 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5514 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5515  SED="$ac_cv_path_SED"
5516   rm -f conftest.sed
5517
5518 test -z "$SED" && SED=sed
5519 Xsed="$SED -e 1s/^X//"
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 { echo "$as_me:$LINENO: checking for fgrep" >&5
5532 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5533 if test "${ac_cv_path_FGREP+set}" = set; then
5534   echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5537    then ac_cv_path_FGREP="$GREP -F"
5538    else
5539      # Extract the first word of "fgrep" to use in msg output
5540 if test -z "$FGREP"; then
5541 set dummy fgrep; ac_prog_name=$2
5542 if test "${ac_cv_path_FGREP+set}" = set; then
5543   echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545   ac_path_FGREP_found=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552   for ac_prog in fgrep; do
5553   for ac_exec_ext in '' $ac_executable_extensions; do
5554     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5555     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5556     # Check for GNU ac_path_FGREP and select it if it is found.
5557   # Check for GNU $ac_path_FGREP
5558 case `"$ac_path_FGREP" --version 2>&1` in
5559 *GNU*)
5560   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5561 *)
5562   ac_count=0
5563   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5564   while :
5565   do
5566     cat "conftest.in" "conftest.in" >"conftest.tmp"
5567     mv "conftest.tmp" "conftest.in"
5568     cp "conftest.in" "conftest.nl"
5569     echo 'FGREP' >> "conftest.nl"
5570     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572     ac_count=`expr $ac_count + 1`
5573     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5574       # Best one so far, save it but keep looking for a better one
5575       ac_cv_path_FGREP="$ac_path_FGREP"
5576       ac_path_FGREP_max=$ac_count
5577     fi
5578     # 10*(2^10) chars as input seems more than enough
5579     test $ac_count -gt 10 && break
5580   done
5581   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5582 esac
5583
5584
5585     $ac_path_FGREP_found && break 3
5586   done
5587 done
5588
5589 done
5590 IFS=$as_save_IFS
5591
5592
5593 fi
5594
5595 FGREP="$ac_cv_path_FGREP"
5596 if test -z "$FGREP"; then
5597   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5598 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5599    { (exit 1); exit 1; }; }
5600 fi
5601
5602 else
5603   ac_cv_path_FGREP=$FGREP
5604 fi
5605
5606
5607    fi
5608 fi
5609 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5610 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5611  FGREP="$ac_cv_path_FGREP"
5612
5613
5614 test -z "$GREP" && GREP=grep
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 # Check whether --with-gnu-ld was given.
5635 if test "${with_gnu_ld+set}" = set; then
5636   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5637 else
5638   with_gnu_ld=no
5639 fi
5640
5641 ac_prog=ld
5642 if test "$GCC" = yes; then
5643   # Check if gcc -print-prog-name=ld gives a path.
5644   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5645 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5646   case $host in
5647   *-*-mingw*)
5648     # gcc leaves a trailing carriage return which upsets mingw
5649     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5650   *)
5651     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5652   esac
5653   case $ac_prog in
5654     # Accept absolute paths.
5655     [\\/]* | ?:[\\/]*)
5656       re_direlt='/[^/][^/]*/\.\./'
5657       # Canonicalize the pathname of ld
5658       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5659       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5660         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5661       done
5662       test -z "$LD" && LD="$ac_prog"
5663       ;;
5664   "")
5665     # If it fails, then pretend we aren't using GCC.
5666     ac_prog=ld
5667     ;;
5668   *)
5669     # If it is relative, then search for the first ld in PATH.
5670     with_gnu_ld=unknown
5671     ;;
5672   esac
5673 elif test "$with_gnu_ld" = yes; then
5674   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5676 else
5677   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5679 fi
5680 if test "${lt_cv_path_LD+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   if test -z "$LD"; then
5684   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5685   for ac_dir in $PATH; do
5686     IFS="$lt_save_ifs"
5687     test -z "$ac_dir" && ac_dir=.
5688     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5689       lt_cv_path_LD="$ac_dir/$ac_prog"
5690       # Check to see if the program is GNU ld.  I'd rather use --version,
5691       # but apparently some variants of GNU ld only accept -v.
5692       # Break only if it was the GNU/non-GNU ld that we prefer.
5693       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5694       *GNU* | *'with BFD'*)
5695         test "$with_gnu_ld" != no && break
5696         ;;
5697       *)
5698         test "$with_gnu_ld" != yes && break
5699         ;;
5700       esac
5701     fi
5702   done
5703   IFS="$lt_save_ifs"
5704 else
5705   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5706 fi
5707 fi
5708
5709 LD="$lt_cv_path_LD"
5710 if test -n "$LD"; then
5711   { echo "$as_me:$LINENO: result: $LD" >&5
5712 echo "${ECHO_T}$LD" >&6; }
5713 else
5714   { echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6; }
5716 fi
5717 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5718 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5719    { (exit 1); exit 1; }; }
5720 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5721 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5722 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5726 case `$LD -v 2>&1 </dev/null` in
5727 *GNU* | *'with BFD'*)
5728   lt_cv_prog_gnu_ld=yes
5729   ;;
5730 *)
5731   lt_cv_prog_gnu_ld=no
5732   ;;
5733 esac
5734 fi
5735 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5736 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5737 with_gnu_ld=$lt_cv_prog_gnu_ld
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5748 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5749 if test "${lt_cv_path_NM+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$NM"; then
5753   # Let the user override the test.
5754   lt_cv_path_NM="$NM"
5755 else
5756   lt_nm_to_check="${ac_tool_prefix}nm"
5757   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5758     lt_nm_to_check="$lt_nm_to_check nm"
5759   fi
5760   for lt_tmp_nm in $lt_nm_to_check; do
5761     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5762     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5763       IFS="$lt_save_ifs"
5764       test -z "$ac_dir" && ac_dir=.
5765       tmp_nm="$ac_dir/$lt_tmp_nm"
5766       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5767         # Check to see if the nm accepts a BSD-compat flag.
5768         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5769         #   nm: unknown option "B" ignored
5770         # Tru64's nm complains that /dev/null is an invalid object file
5771         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5772         */dev/null* | *'Invalid file or object type'*)
5773           lt_cv_path_NM="$tmp_nm -B"
5774           break
5775           ;;
5776         *)
5777           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5778           */dev/null*)
5779             lt_cv_path_NM="$tmp_nm -p"
5780             break
5781             ;;
5782           *)
5783             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5784             continue # so that we can try to find one that supports BSD flags
5785             ;;
5786           esac
5787           ;;
5788         esac
5789       fi
5790     done
5791     IFS="$lt_save_ifs"
5792   done
5793   : ${lt_cv_path_NM=no}
5794 fi
5795 fi
5796 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5797 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5798 if test "$lt_cv_path_NM" != "no"; then
5799   NM="$lt_cv_path_NM"
5800 else
5801   # Didn't find any BSD compatible name lister, look for dumpbin.
5802   if test -n "$ac_tool_prefix"; then
5803   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5804   do
5805     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   if test -n "$DUMPBIN"; then
5813   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820   for ac_exec_ext in '' $ac_executable_extensions; do
5821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 DUMPBIN=$ac_cv_prog_DUMPBIN
5833 if test -n "$DUMPBIN"; then
5834   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5835 echo "${ECHO_T}$DUMPBIN" >&6; }
5836 else
5837   { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5839 fi
5840
5841
5842     test -n "$DUMPBIN" && break
5843   done
5844 fi
5845 if test -z "$DUMPBIN"; then
5846   ac_ct_DUMPBIN=$DUMPBIN
5847   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5848 do
5849   # Extract the first word of "$ac_prog", so it can be a program name with args.
5850 set dummy $ac_prog; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   if test -n "$ac_ct_DUMPBIN"; then
5857   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5877 if test -n "$ac_ct_DUMPBIN"; then
5878   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5879 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5880 else
5881   { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5883 fi
5884
5885
5886   test -n "$ac_ct_DUMPBIN" && break
5887 done
5888
5889   if test "x$ac_ct_DUMPBIN" = x; then
5890     DUMPBIN=":"
5891   else
5892     case $cross_compiling:$ac_tool_warned in
5893 yes:)
5894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5895 whose name does not start with the host triplet.  If you think this
5896 configuration is useful to you, please write to autoconf@gnu.org." >&5
5897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5898 whose name does not start with the host triplet.  If you think this
5899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5900 ac_tool_warned=yes ;;
5901 esac
5902     DUMPBIN=$ac_ct_DUMPBIN
5903   fi
5904 fi
5905
5906
5907   if test "$DUMPBIN" != ":"; then
5908     NM="$DUMPBIN"
5909   fi
5910 fi
5911 test -z "$NM" && NM=nm
5912
5913
5914
5915
5916
5917
5918 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5919 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5920 if test "${lt_cv_nm_interface+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   lt_cv_nm_interface="BSD nm"
5924   echo "int some_variable = 0;" > conftest.$ac_ext
5925   (eval echo "\"\$as_me:5925: $ac_compile\"" >&5)
5926   (eval "$ac_compile" 2>conftest.err)
5927   cat conftest.err >&5
5928   (eval echo "\"\$as_me:5928: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5929   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5930   cat conftest.err >&5
5931   (eval echo "\"\$as_me:5931: output\"" >&5)
5932   cat conftest.out >&5
5933   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5934     lt_cv_nm_interface="MS dumpbin"
5935   fi
5936   rm -f conftest*
5937 fi
5938 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5939 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5940
5941 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5942 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5943 LN_S=$as_ln_s
5944 if test "$LN_S" = "ln -s"; then
5945   { echo "$as_me:$LINENO: result: yes" >&5
5946 echo "${ECHO_T}yes" >&6; }
5947 else
5948   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5949 echo "${ECHO_T}no, using $LN_S" >&6; }
5950 fi
5951
5952 # find the maximum length of command line arguments
5953 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5954 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5955 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958     i=0
5959   teststring="ABCD"
5960
5961   case $build_os in
5962   msdosdjgpp*)
5963     # On DJGPP, this test can blow up pretty badly due to problems in libc
5964     # (any single argument exceeding 2000 bytes causes a buffer overrun
5965     # during glob expansion).  Even if it were fixed, the result of this
5966     # check would be larger than it should be.
5967     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5968     ;;
5969
5970   gnu*)
5971     # Under GNU Hurd, this test is not required because there is
5972     # no limit to the length of command line arguments.
5973     # Libtool will interpret -1 as no limit whatsoever
5974     lt_cv_sys_max_cmd_len=-1;
5975     ;;
5976
5977   cygwin* | mingw* | cegcc*)
5978     # On Win9x/ME, this test blows up -- it succeeds, but takes
5979     # about 5 minutes as the teststring grows exponentially.
5980     # Worse, since 9x/ME are not pre-emptively multitasking,
5981     # you end up with a "frozen" computer, even though with patience
5982     # the test eventually succeeds (with a max line length of 256k).
5983     # Instead, let's just punt: use the minimum linelength reported by
5984     # all of the supported platforms: 8192 (on NT/2K/XP).
5985     lt_cv_sys_max_cmd_len=8192;
5986     ;;
5987
5988   amigaos*)
5989     # On AmigaOS with pdksh, this test takes hours, literally.
5990     # So we just punt and use a minimum line length of 8192.
5991     lt_cv_sys_max_cmd_len=8192;
5992     ;;
5993
5994   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5995     # This has been around since 386BSD, at least.  Likely further.
5996     if test -x /sbin/sysctl; then
5997       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5998     elif test -x /usr/sbin/sysctl; then
5999       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6000     else
6001       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6002     fi
6003     # And add a safety zone
6004     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6005     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6006     ;;
6007
6008   interix*)
6009     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6010     lt_cv_sys_max_cmd_len=196608
6011     ;;
6012
6013   osf*)
6014     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6015     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6016     # nice to cause kernel panics so lets avoid the loop below.
6017     # First set a reasonable default.
6018     lt_cv_sys_max_cmd_len=16384
6019     #
6020     if test -x /sbin/sysconfig; then
6021       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6022         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6023       esac
6024     fi
6025     ;;
6026   sco3.2v5*)
6027     lt_cv_sys_max_cmd_len=102400
6028     ;;
6029   sysv5* | sco5v6* | sysv4.2uw2*)
6030     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6031     if test -n "$kargmax"; then
6032       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6033     else
6034       lt_cv_sys_max_cmd_len=32768
6035     fi
6036     ;;
6037   *)
6038     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6039     if test -n "$lt_cv_sys_max_cmd_len"; then
6040       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6041       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6042     else
6043       # Make teststring a little bigger before we do anything with it.
6044       # a 1K string should be a reasonable start.
6045       for i in 1 2 3 4 5 6 7 8 ; do
6046         teststring=$teststring$teststring
6047       done
6048       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6049       # If test is not a shell built-in, we'll probably end up computing a
6050       # maximum length that is only half of the actual maximum length, but
6051       # we can't tell.
6052       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6053                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6054               test $i != 17 # 1/2 MB should be enough
6055       do
6056         i=`expr $i + 1`
6057         teststring=$teststring$teststring
6058       done
6059       # Only check the string length outside the loop.
6060       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6061       teststring=
6062       # Add a significant safety factor because C++ compilers can tack on
6063       # massive amounts of additional arguments before passing them to the
6064       # linker.  It appears as though 1/2 is a usable value.
6065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6066     fi
6067     ;;
6068   esac
6069
6070 fi
6071
6072 if test -n $lt_cv_sys_max_cmd_len ; then
6073   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6074 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6075 else
6076   { echo "$as_me:$LINENO: result: none" >&5
6077 echo "${ECHO_T}none" >&6; }
6078 fi
6079 max_cmd_len=$lt_cv_sys_max_cmd_len
6080
6081
6082
6083
6084
6085
6086 : ${CP="cp -f"}
6087 : ${MV="mv -f"}
6088 : ${RM="rm -f"}
6089
6090 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6091 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6092 # Try some XSI features
6093 xsi_shell=no
6094 ( _lt_dummy="a/b/c"
6095   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6096       = c,a/b,, \
6097     && eval 'test $(( 1 + 1 )) -eq 2 \
6098     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6099   && xsi_shell=yes
6100 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6101 echo "${ECHO_T}$xsi_shell" >&6; }
6102
6103
6104 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6105 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6106 lt_shell_append=no
6107 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6108     >/dev/null 2>&1 \
6109   && lt_shell_append=yes
6110 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6111 echo "${ECHO_T}$lt_shell_append" >&6; }
6112
6113
6114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6115   lt_unset=unset
6116 else
6117   lt_unset=false
6118 fi
6119
6120
6121
6122
6123
6124 # test EBCDIC or ASCII
6125 case `echo X|tr X '\101'` in
6126  A) # ASCII based system
6127     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6128   lt_SP2NL='tr \040 \012'
6129   lt_NL2SP='tr \015\012 \040\040'
6130   ;;
6131  *) # EBCDIC based system
6132   lt_SP2NL='tr \100 \n'
6133   lt_NL2SP='tr \r\n \100\100'
6134   ;;
6135 esac
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6146 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6147 if test "${lt_cv_ld_reload_flag+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   lt_cv_ld_reload_flag='-r'
6151 fi
6152 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6153 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6154 reload_flag=$lt_cv_ld_reload_flag
6155 case $reload_flag in
6156 "" | " "*) ;;
6157 *) reload_flag=" $reload_flag" ;;
6158 esac
6159 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6160 case $host_os in
6161   darwin*)
6162     if test "$GCC" = yes; then
6163       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6164     else
6165       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6166     fi
6167     ;;
6168 esac
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178 if test -n "$ac_tool_prefix"; then
6179   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6180 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   if test -n "$OBJDUMP"; then
6187   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194   for ac_exec_ext in '' $ac_executable_extensions; do
6195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 OBJDUMP=$ac_cv_prog_OBJDUMP
6207 if test -n "$OBJDUMP"; then
6208   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6209 echo "${ECHO_T}$OBJDUMP" >&6; }
6210 else
6211   { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6213 fi
6214
6215
6216 fi
6217 if test -z "$ac_cv_prog_OBJDUMP"; then
6218   ac_ct_OBJDUMP=$OBJDUMP
6219   # Extract the first word of "objdump", so it can be a program name with args.
6220 set dummy objdump; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   if test -n "$ac_ct_OBJDUMP"; then
6227   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234   for ac_exec_ext in '' $ac_executable_extensions; do
6235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238     break 2
6239   fi
6240 done
6241 done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6247 if test -n "$ac_ct_OBJDUMP"; then
6248   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6249 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6250 else
6251   { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6253 fi
6254
6255   if test "x$ac_ct_OBJDUMP" = x; then
6256     OBJDUMP="false"
6257   else
6258     case $cross_compiling:$ac_tool_warned in
6259 yes:)
6260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6261 whose name does not start with the host triplet.  If you think this
6262 configuration is useful to you, please write to autoconf@gnu.org." >&5
6263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6264 whose name does not start with the host triplet.  If you think this
6265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6266 ac_tool_warned=yes ;;
6267 esac
6268     OBJDUMP=$ac_ct_OBJDUMP
6269   fi
6270 else
6271   OBJDUMP="$ac_cv_prog_OBJDUMP"
6272 fi
6273
6274 test -z "$OBJDUMP" && OBJDUMP=objdump
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6285 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6286 if test "${lt_cv_deplibs_check_method+set}" = set; then
6287   echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289   lt_cv_file_magic_cmd='$MAGIC_CMD'
6290 lt_cv_file_magic_test_file=
6291 lt_cv_deplibs_check_method='unknown'
6292 # Need to set the preceding variable on all platforms that support
6293 # interlibrary dependencies.
6294 # 'none' -- dependencies not supported.
6295 # `unknown' -- same as none, but documents that we really don't know.
6296 # 'pass_all' -- all dependencies passed with no checks.
6297 # 'test_compile' -- check by making test program.
6298 # 'file_magic [[regex]]' -- check by looking for files in library path
6299 # which responds to the $file_magic_cmd with a given extended regex.
6300 # If you have `file' or equivalent on your system and you're not sure
6301 # whether `pass_all' will *always* work, you probably want this one.
6302
6303 case $host_os in
6304 aix[4-9]*)
6305   lt_cv_deplibs_check_method=pass_all
6306   ;;
6307
6308 beos*)
6309   lt_cv_deplibs_check_method=pass_all
6310   ;;
6311
6312 bsdi[45]*)
6313   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6314   lt_cv_file_magic_cmd='/usr/bin/file -L'
6315   lt_cv_file_magic_test_file=/shlib/libc.so
6316   ;;
6317
6318 cygwin*)
6319   # func_win32_libid is a shell function defined in ltmain.sh
6320   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6321   lt_cv_file_magic_cmd='func_win32_libid'
6322   ;;
6323
6324 mingw* | pw32*)
6325   # Base MSYS/MinGW do not provide the 'file' command needed by
6326   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6327   # unless we find 'file', for example because we are cross-compiling.
6328   if ( file / ) >/dev/null 2>&1; then
6329     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330     lt_cv_file_magic_cmd='func_win32_libid'
6331   else
6332     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6333     lt_cv_file_magic_cmd='$OBJDUMP -f'
6334   fi
6335   ;;
6336
6337 cegcc)
6338   # use the weaker test based on 'objdump'. See mingw*.
6339   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6340   lt_cv_file_magic_cmd='$OBJDUMP -f'
6341   ;;
6342
6343 darwin* | rhapsody*)
6344   lt_cv_deplibs_check_method=pass_all
6345   ;;
6346
6347 freebsd* | dragonfly*)
6348   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6349     case $host_cpu in
6350     i*86 )
6351       # Not sure whether the presence of OpenBSD here was a mistake.
6352       # Let's accept both of them until this is cleared up.
6353       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6354       lt_cv_file_magic_cmd=/usr/bin/file
6355       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6356       ;;
6357     esac
6358   else
6359     lt_cv_deplibs_check_method=pass_all
6360   fi
6361   ;;
6362
6363 gnu*)
6364   lt_cv_deplibs_check_method=pass_all
6365   ;;
6366
6367 hpux10.20* | hpux11*)
6368   lt_cv_file_magic_cmd=/usr/bin/file
6369   case $host_cpu in
6370   ia64*)
6371     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6372     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6373     ;;
6374   hppa*64*)
6375     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]'
6376     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6377     ;;
6378   *)
6379     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6380     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6381     ;;
6382   esac
6383   ;;
6384
6385 interix[3-9]*)
6386   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6387   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6388   ;;
6389
6390 irix5* | irix6* | nonstopux*)
6391   case $LD in
6392   *-32|*"-32 ") libmagic=32-bit;;
6393   *-n32|*"-n32 ") libmagic=N32;;
6394   *-64|*"-64 ") libmagic=64-bit;;
6395   *) libmagic=never-match;;
6396   esac
6397   lt_cv_deplibs_check_method=pass_all
6398   ;;
6399
6400 # This must be Linux ELF.
6401 linux* | k*bsd*-gnu)
6402   lt_cv_deplibs_check_method=pass_all
6403   ;;
6404
6405 netbsd*)
6406   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6408   else
6409     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6410   fi
6411   ;;
6412
6413 newos6*)
6414   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6415   lt_cv_file_magic_cmd=/usr/bin/file
6416   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6417   ;;
6418
6419 *nto* | *qnx*)
6420   lt_cv_deplibs_check_method=pass_all
6421   ;;
6422
6423 openbsd*)
6424   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6425     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6426   else
6427     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6428   fi
6429   ;;
6430
6431 osf3* | osf4* | osf5*)
6432   lt_cv_deplibs_check_method=pass_all
6433   ;;
6434
6435 rdos*)
6436   lt_cv_deplibs_check_method=pass_all
6437   ;;
6438
6439 solaris*)
6440   lt_cv_deplibs_check_method=pass_all
6441   ;;
6442
6443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6444   lt_cv_deplibs_check_method=pass_all
6445   ;;
6446
6447 sysv4 | sysv4.3*)
6448   case $host_vendor in
6449   motorola)
6450     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]'
6451     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6452     ;;
6453   ncr)
6454     lt_cv_deplibs_check_method=pass_all
6455     ;;
6456   sequent)
6457     lt_cv_file_magic_cmd='/bin/file'
6458     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6459     ;;
6460   sni)
6461     lt_cv_file_magic_cmd='/bin/file'
6462     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6463     lt_cv_file_magic_test_file=/lib/libc.so
6464     ;;
6465   siemens)
6466     lt_cv_deplibs_check_method=pass_all
6467     ;;
6468   pc)
6469     lt_cv_deplibs_check_method=pass_all
6470     ;;
6471   esac
6472   ;;
6473
6474 tpf*)
6475   lt_cv_deplibs_check_method=pass_all
6476   ;;
6477 esac
6478
6479 fi
6480 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6481 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6482 file_magic_cmd=$lt_cv_file_magic_cmd
6483 deplibs_check_method=$lt_cv_deplibs_check_method
6484 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497 if test -n "$ac_tool_prefix"; then
6498   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ar; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_prog_AR+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   if test -n "$AR"; then
6506   ac_cv_prog_AR="$AR" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513   for ac_exec_ext in '' $ac_executable_extensions; do
6514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515     ac_cv_prog_AR="${ac_tool_prefix}ar"
6516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520 done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 AR=$ac_cv_prog_AR
6526 if test -n "$AR"; then
6527   { echo "$as_me:$LINENO: result: $AR" >&5
6528 echo "${ECHO_T}$AR" >&6; }
6529 else
6530   { echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6; }
6532 fi
6533
6534
6535 fi
6536 if test -z "$ac_cv_prog_AR"; then
6537   ac_ct_AR=$AR
6538   # Extract the first word of "ar", so it can be a program name with args.
6539 set dummy ar; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   if test -n "$ac_ct_AR"; then
6546   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551   IFS=$as_save_IFS
6552   test -z "$as_dir" && as_dir=.
6553   for ac_exec_ext in '' $ac_executable_extensions; do
6554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555     ac_cv_prog_ac_ct_AR="ar"
6556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557     break 2
6558   fi
6559 done
6560 done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6566 if test -n "$ac_ct_AR"; then
6567   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6568 echo "${ECHO_T}$ac_ct_AR" >&6; }
6569 else
6570   { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6572 fi
6573
6574   if test "x$ac_ct_AR" = x; then
6575     AR="false"
6576   else
6577     case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6580 whose name does not start with the host triplet.  If you think this
6581 configuration is useful to you, please write to autoconf@gnu.org." >&5
6582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6583 whose name does not start with the host triplet.  If you think this
6584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587     AR=$ac_ct_AR
6588   fi
6589 else
6590   AR="$ac_cv_prog_AR"
6591 fi
6592
6593 test -z "$AR" && AR=ar
6594 test -z "$AR_FLAGS" && AR_FLAGS=cru
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606 if test -n "$ac_tool_prefix"; then
6607   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}strip; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_STRIP+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   if test -n "$STRIP"; then
6615   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622   for ac_exec_ext in '' $ac_executable_extensions; do
6623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 STRIP=$ac_cv_prog_STRIP
6635 if test -n "$STRIP"; then
6636   { echo "$as_me:$LINENO: result: $STRIP" >&5
6637 echo "${ECHO_T}$STRIP" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643
6644 fi
6645 if test -z "$ac_cv_prog_STRIP"; then
6646   ac_ct_STRIP=$STRIP
6647   # Extract the first word of "strip", so it can be a program name with args.
6648 set dummy strip; ac_word=$2
6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6652   echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654   if test -n "$ac_ct_STRIP"; then
6655   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662   for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_prog_ac_ct_STRIP="strip"
6665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6675 if test -n "$ac_ct_STRIP"; then
6676   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6677 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6678 else
6679   { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6681 fi
6682
6683   if test "x$ac_ct_STRIP" = x; then
6684     STRIP=":"
6685   else
6686     case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet.  If you think this
6690 configuration is useful to you, please write to autoconf@gnu.org." >&5
6691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6692 whose name does not start with the host triplet.  If you think this
6693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6694 ac_tool_warned=yes ;;
6695 esac
6696     STRIP=$ac_ct_STRIP
6697   fi
6698 else
6699   STRIP="$ac_cv_prog_STRIP"
6700 fi
6701
6702 test -z "$STRIP" && STRIP=:
6703
6704
6705
6706
6707
6708
6709 if test -n "$ac_tool_prefix"; then
6710   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6711 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_prog_RANLIB+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   if test -n "$RANLIB"; then
6718   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725   for ac_exec_ext in '' $ac_executable_extensions; do
6726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 RANLIB=$ac_cv_prog_RANLIB
6738 if test -n "$RANLIB"; then
6739   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6740 echo "${ECHO_T}$RANLIB" >&6; }
6741 else
6742   { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6744 fi
6745
6746
6747 fi
6748 if test -z "$ac_cv_prog_RANLIB"; then
6749   ac_ct_RANLIB=$RANLIB
6750   # Extract the first word of "ranlib", so it can be a program name with args.
6751 set dummy ranlib; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   if test -n "$ac_ct_RANLIB"; then
6758   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_prog_ac_ct_RANLIB="ranlib"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6778 if test -n "$ac_ct_RANLIB"; then
6779   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6780 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6784 fi
6785
6786   if test "x$ac_ct_RANLIB" = x; then
6787     RANLIB=":"
6788   else
6789     case $cross_compiling:$ac_tool_warned in
6790 yes:)
6791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6792 whose name does not start with the host triplet.  If you think this
6793 configuration is useful to you, please write to autoconf@gnu.org." >&5
6794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6795 whose name does not start with the host triplet.  If you think this
6796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     RANLIB=$ac_ct_RANLIB
6800   fi
6801 else
6802   RANLIB="$ac_cv_prog_RANLIB"
6803 fi
6804
6805 test -z "$RANLIB" && RANLIB=:
6806
6807
6808
6809
6810
6811
6812 # Determine commands to create old-style static archives.
6813 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6814 old_postinstall_cmds='chmod 644 $oldlib'
6815 old_postuninstall_cmds=
6816
6817 if test -n "$RANLIB"; then
6818   case $host_os in
6819   openbsd*)
6820     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6821     ;;
6822   *)
6823     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6824     ;;
6825   esac
6826   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6827 fi
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 # If no C compiler was specified, use CC.
6863 LTCC=${LTCC-"$CC"}
6864
6865 # If no C compiler flags were specified, use CFLAGS.
6866 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6867
6868 # Allow CC to be a program name with arguments.
6869 compiler=$CC
6870
6871
6872 # Check for command to grab the raw symbol name followed by C symbol from nm.
6873 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6874 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6875 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878
6879 # These are sane defaults that work on at least a few old systems.
6880 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6881
6882 # Character class describing NM global symbol codes.
6883 symcode='[BCDEGRST]'
6884
6885 # Regexp to match symbols that can be accessed directly from C.
6886 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6887
6888 # Define system-specific variables.
6889 case $host_os in
6890 aix*)
6891   symcode='[BCDT]'
6892   ;;
6893 cygwin* | mingw* | pw32* | cegcc*)
6894   symcode='[ABCDGISTW]'
6895   ;;
6896 hpux*)
6897   if test "$host_cpu" = ia64; then
6898     symcode='[ABCDEGRST]'
6899   fi
6900   ;;
6901 irix* | nonstopux*)
6902   symcode='[BCDEGRST]'
6903   ;;
6904 osf*)
6905   symcode='[BCDEGQRST]'
6906   ;;
6907 solaris*)
6908   symcode='[BDRT]'
6909   ;;
6910 sco3.2v5*)
6911   symcode='[DT]'
6912   ;;
6913 sysv4.2uw2*)
6914   symcode='[DT]'
6915   ;;
6916 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6917   symcode='[ABDT]'
6918   ;;
6919 sysv4)
6920   symcode='[DFNSTU]'
6921   ;;
6922 esac
6923
6924 # If we're using GNU nm, then use its standard symbol codes.
6925 case `$NM -V 2>&1` in
6926 *GNU* | *'with BFD'*)
6927   symcode='[ABCDGIRSTW]' ;;
6928 esac
6929
6930 # Transform an extracted symbol line into a proper C declaration.
6931 # Some systems (esp. on ia64) link data and code symbols differently,
6932 # so use this general approach.
6933 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6934
6935 # Transform an extracted symbol line into symbol name and symbol address
6936 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6937 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'"
6938
6939 # Handle CRLF in mingw tool chain
6940 opt_cr=
6941 case $build_os in
6942 mingw*)
6943   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6944   ;;
6945 esac
6946
6947 # Try without a prefix underscore, then with it.
6948 for ac_symprfx in "" "_"; do
6949
6950   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6951   symxfrm="\\1 $ac_symprfx\\2 \\2"
6952
6953   # Write the raw and C identifiers.
6954   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6955     # Fake it for dumpbin and say T for any non-static function
6956     # and D for any global variable.
6957     # Also find C++ and __fastcall symbols from MSVC++,
6958     # which start with @ or ?.
6959     lt_cv_sys_global_symbol_pipe="$AWK '"\
6960 "     {last_section=section; section=\$ 3};"\
6961 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6962 "     \$ 0!~/External *\|/{next};"\
6963 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6964 "     {if(hide[section]) next};"\
6965 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6966 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6967 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6968 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6969 "     ' prfx=^$ac_symprfx"
6970   else
6971     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6972   fi
6973
6974   # Check to see that the pipe works correctly.
6975   pipe_works=no
6976
6977   rm -f conftest*
6978   cat > conftest.$ac_ext <<_LT_EOF
6979 #ifdef __cplusplus
6980 extern "C" {
6981 #endif
6982 char nm_test_var;
6983 void nm_test_func(void);
6984 void nm_test_func(void){}
6985 #ifdef __cplusplus
6986 }
6987 #endif
6988 int main(){nm_test_var='a';nm_test_func();return(0);}
6989 _LT_EOF
6990
6991   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992   (eval $ac_compile) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; then
6996     # Now try to grab the symbols.
6997     nlist=conftest.nm
6998     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6999   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7000   ac_status=$?
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); } && test -s "$nlist"; then
7003       # Try sorting and uniquifying the output.
7004       if sort "$nlist" | uniq > "$nlist"T; then
7005         mv -f "$nlist"T "$nlist"
7006       else
7007         rm -f "$nlist"T
7008       fi
7009
7010       # Make sure that we snagged all the symbols we need.
7011       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7012         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7013           cat <<_LT_EOF > conftest.$ac_ext
7014 #ifdef __cplusplus
7015 extern "C" {
7016 #endif
7017
7018 _LT_EOF
7019           # Now generate the symbol file.
7020           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7021
7022           cat <<_LT_EOF >> conftest.$ac_ext
7023
7024 /* The mapping between symbol names and symbols.  */
7025 const struct {
7026   const char *name;
7027   void       *address;
7028 }
7029 lt__PROGRAM__LTX_preloaded_symbols[] =
7030 {
7031   { "@PROGRAM@", (void *) 0 },
7032 _LT_EOF
7033           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7034           cat <<\_LT_EOF >> conftest.$ac_ext
7035   {0, (void *) 0}
7036 };
7037
7038 /* This works around a problem in FreeBSD linker */
7039 #ifdef FREEBSD_WORKAROUND
7040 static const void *lt_preloaded_setup() {
7041   return lt__PROGRAM__LTX_preloaded_symbols;
7042 }
7043 #endif
7044
7045 #ifdef __cplusplus
7046 }
7047 #endif
7048 _LT_EOF
7049           # Now try linking the two files.
7050           mv conftest.$ac_objext conftstm.$ac_objext
7051           lt_save_LIBS="$LIBS"
7052           lt_save_CFLAGS="$CFLAGS"
7053           LIBS="conftstm.$ac_objext"
7054           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7055           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056   (eval $ac_link) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7060             pipe_works=yes
7061           fi
7062           LIBS="$lt_save_LIBS"
7063           CFLAGS="$lt_save_CFLAGS"
7064         else
7065           echo "cannot find nm_test_func in $nlist" >&5
7066         fi
7067       else
7068         echo "cannot find nm_test_var in $nlist" >&5
7069       fi
7070     else
7071       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7072     fi
7073   else
7074     echo "$progname: failed program was:" >&5
7075     cat conftest.$ac_ext >&5
7076   fi
7077   rm -rf conftest* conftst*
7078
7079   # Do not use the global_symbol_pipe unless it works.
7080   if test "$pipe_works" = yes; then
7081     break
7082   else
7083     lt_cv_sys_global_symbol_pipe=
7084   fi
7085 done
7086
7087 fi
7088
7089 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7090   lt_cv_sys_global_symbol_to_cdecl=
7091 fi
7092 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7093   { echo "$as_me:$LINENO: result: failed" >&5
7094 echo "${ECHO_T}failed" >&6; }
7095 else
7096   { echo "$as_me:$LINENO: result: ok" >&5
7097 echo "${ECHO_T}ok" >&6; }
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 # Check whether --enable-libtool-lock was given.
7122 if test "${enable_libtool_lock+set}" = set; then
7123   enableval=$enable_libtool_lock;
7124 fi
7125
7126 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7127
7128 # Some flags need to be propagated to the compiler or linker for good
7129 # libtool support.
7130 case $host in
7131 ia64-*-hpux*)
7132   # Find out which ABI we are using.
7133   echo 'int i;' > conftest.$ac_ext
7134   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135   (eval $ac_compile) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); }; then
7139     case `/usr/bin/file conftest.$ac_objext` in
7140       *ELF-32*)
7141         HPUX_IA64_MODE="32"
7142         ;;
7143       *ELF-64*)
7144         HPUX_IA64_MODE="64"
7145         ;;
7146     esac
7147   fi
7148   rm -rf conftest*
7149   ;;
7150 *-*-irix6*)
7151   # Find out which ABI we are using.
7152   echo '#line 7152 "configure"' > conftest.$ac_ext
7153   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154   (eval $ac_compile) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; then
7158     if test "$lt_cv_prog_gnu_ld" = yes; then
7159       case `/usr/bin/file conftest.$ac_objext` in
7160         *32-bit*)
7161           LD="${LD-ld} -melf32bsmip"
7162           ;;
7163         *N32*)
7164           LD="${LD-ld} -melf32bmipn32"
7165           ;;
7166         *64-bit*)
7167           LD="${LD-ld} -melf64bmip"
7168         ;;
7169       esac
7170     else
7171       case `/usr/bin/file conftest.$ac_objext` in
7172         *32-bit*)
7173           LD="${LD-ld} -32"
7174           ;;
7175         *N32*)
7176           LD="${LD-ld} -n32"
7177           ;;
7178         *64-bit*)
7179           LD="${LD-ld} -64"
7180           ;;
7181       esac
7182     fi
7183   fi
7184   rm -rf conftest*
7185   ;;
7186
7187 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7188 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7189   # Find out which ABI we are using.
7190   echo 'int i;' > conftest.$ac_ext
7191   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192   (eval $ac_compile) 2>&5
7193   ac_status=$?
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); }; then
7196     case `/usr/bin/file conftest.o` in
7197       *32-bit*)
7198         case $host in
7199           x86_64-*kfreebsd*-gnu)
7200             LD="${LD-ld} -m elf_i386_fbsd"
7201             ;;
7202           x86_64-*linux*)
7203             LD="${LD-ld} -m elf_i386"
7204             ;;
7205           ppc64-*linux*|powerpc64-*linux*)
7206             LD="${LD-ld} -m elf32ppclinux"
7207             ;;
7208           s390x-*linux*)
7209             LD="${LD-ld} -m elf_s390"
7210             ;;
7211           sparc64-*linux*)
7212             LD="${LD-ld} -m elf32_sparc"
7213             ;;
7214         esac
7215         ;;
7216       *64-bit*)
7217         case $host in
7218           x86_64-*kfreebsd*-gnu)
7219             LD="${LD-ld} -m elf_x86_64_fbsd"
7220             ;;
7221           x86_64-*linux*)
7222             LD="${LD-ld} -m elf_x86_64"
7223             ;;
7224           ppc*-*linux*|powerpc*-*linux*)
7225             LD="${LD-ld} -m elf64ppc"
7226             ;;
7227           s390*-*linux*|s390*-*tpf*)
7228             LD="${LD-ld} -m elf64_s390"
7229             ;;
7230           sparc*-*linux*)
7231             LD="${LD-ld} -m elf64_sparc"
7232             ;;
7233         esac
7234         ;;
7235     esac
7236   fi
7237   rm -rf conftest*
7238   ;;
7239
7240 *-*-sco3.2v5*)
7241   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7242   SAVE_CFLAGS="$CFLAGS"
7243   CFLAGS="$CFLAGS -belf"
7244   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7245 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7246 if test "${lt_cv_cc_needs_belf+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   ac_ext=c
7250 ac_cpp='$CPP $CPPFLAGS'
7251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7254
7255      cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261
7262 int
7263 main ()
7264 {
7265
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7272 case "(($ac_try" in
7273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274   *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277   (eval "$ac_link") 2>conftest.er1
7278   ac_status=$?
7279   grep -v '^ *+' conftest.er1 >conftest.err
7280   rm -f conftest.er1
7281   cat conftest.err >&5
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } && {
7284          test -z "$ac_c_werror_flag" ||
7285          test ! -s conftest.err
7286        } && test -s conftest$ac_exeext &&
7287        $as_test_x conftest$ac_exeext; then
7288   lt_cv_cc_needs_belf=yes
7289 else
7290   echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293         lt_cv_cc_needs_belf=no
7294 fi
7295
7296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7297       conftest$ac_exeext conftest.$ac_ext
7298      ac_ext=c
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303
7304 fi
7305 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7306 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7307   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7308     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7309     CFLAGS="$SAVE_CFLAGS"
7310   fi
7311   ;;
7312 sparc*-*solaris*)
7313   # Find out which ABI we are using.
7314   echo 'int i;' > conftest.$ac_ext
7315   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316   (eval $ac_compile) 2>&5
7317   ac_status=$?
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); }; then
7320     case `/usr/bin/file conftest.o` in
7321     *64-bit*)
7322       case $lt_cv_prog_gnu_ld in
7323       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7324       *)
7325         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7326           LD="${LD-ld} -64"
7327         fi
7328         ;;
7329       esac
7330       ;;
7331     esac
7332   fi
7333   rm -rf conftest*
7334   ;;
7335 esac
7336
7337 need_locks="$enable_libtool_lock"
7338
7339
7340   case $host_os in
7341     rhapsody* | darwin*)
7342     if test -n "$ac_tool_prefix"; then
7343   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   if test -n "$DSYMUTIL"; then
7351   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356   IFS=$as_save_IFS
7357   test -z "$as_dir" && as_dir=.
7358   for ac_exec_ext in '' $ac_executable_extensions; do
7359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362     break 2
7363   fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368 fi
7369 fi
7370 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7371 if test -n "$DSYMUTIL"; then
7372   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7373 echo "${ECHO_T}$DSYMUTIL" >&6; }
7374 else
7375   { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7377 fi
7378
7379
7380 fi
7381 if test -z "$ac_cv_prog_DSYMUTIL"; then
7382   ac_ct_DSYMUTIL=$DSYMUTIL
7383   # Extract the first word of "dsymutil", so it can be a program name with args.
7384 set dummy dsymutil; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   if test -n "$ac_ct_DSYMUTIL"; then
7391   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398   for ac_exec_ext in '' $ac_executable_extensions; do
7399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7411 if test -n "$ac_ct_DSYMUTIL"; then
7412   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7413 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7414 else
7415   { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7417 fi
7418
7419   if test "x$ac_ct_DSYMUTIL" = x; then
7420     DSYMUTIL=":"
7421   else
7422     case $cross_compiling:$ac_tool_warned in
7423 yes:)
7424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7425 whose name does not start with the host triplet.  If you think this
7426 configuration is useful to you, please write to autoconf@gnu.org." >&5
7427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7428 whose name does not start with the host triplet.  If you think this
7429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432     DSYMUTIL=$ac_ct_DSYMUTIL
7433   fi
7434 else
7435   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7436 fi
7437
7438     if test -n "$ac_tool_prefix"; then
7439   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7443 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446   if test -n "$NMEDIT"; then
7447   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454   for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461 done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 NMEDIT=$ac_cv_prog_NMEDIT
7467 if test -n "$NMEDIT"; then
7468   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7469 echo "${ECHO_T}$NMEDIT" >&6; }
7470 else
7471   { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7473 fi
7474
7475
7476 fi
7477 if test -z "$ac_cv_prog_NMEDIT"; then
7478   ac_ct_NMEDIT=$NMEDIT
7479   # Extract the first word of "nmedit", so it can be a program name with args.
7480 set dummy nmedit; ac_word=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   if test -n "$ac_ct_NMEDIT"; then
7487   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494   for ac_exec_ext in '' $ac_executable_extensions; do
7495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501 done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7507 if test -n "$ac_ct_NMEDIT"; then
7508   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7509 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7510 else
7511   { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7513 fi
7514
7515   if test "x$ac_ct_NMEDIT" = x; then
7516     NMEDIT=":"
7517   else
7518     case $cross_compiling:$ac_tool_warned in
7519 yes:)
7520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7521 whose name does not start with the host triplet.  If you think this
7522 configuration is useful to you, please write to autoconf@gnu.org." >&5
7523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7524 whose name does not start with the host triplet.  If you think this
7525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7526 ac_tool_warned=yes ;;
7527 esac
7528     NMEDIT=$ac_ct_NMEDIT
7529   fi
7530 else
7531   NMEDIT="$ac_cv_prog_NMEDIT"
7532 fi
7533
7534     if test -n "$ac_tool_prefix"; then
7535   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_prog_LIPO+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   if test -n "$LIPO"; then
7543   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558 IFS=$as_save_IFS
7559
7560 fi
7561 fi
7562 LIPO=$ac_cv_prog_LIPO
7563 if test -n "$LIPO"; then
7564   { echo "$as_me:$LINENO: result: $LIPO" >&5
7565 echo "${ECHO_T}$LIPO" >&6; }
7566 else
7567   { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7569 fi
7570
7571
7572 fi
7573 if test -z "$ac_cv_prog_LIPO"; then
7574   ac_ct_LIPO=$LIPO
7575   # Extract the first word of "lipo", so it can be a program name with args.
7576 set dummy lipo; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   if test -n "$ac_ct_LIPO"; then
7583   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590   for ac_exec_ext in '' $ac_executable_extensions; do
7591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592     ac_cv_prog_ac_ct_LIPO="lipo"
7593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7603 if test -n "$ac_ct_LIPO"; then
7604   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7605 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7606 else
7607   { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7609 fi
7610
7611   if test "x$ac_ct_LIPO" = x; then
7612     LIPO=":"
7613   else
7614     case $cross_compiling:$ac_tool_warned in
7615 yes:)
7616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7617 whose name does not start with the host triplet.  If you think this
7618 configuration is useful to you, please write to autoconf@gnu.org." >&5
7619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7620 whose name does not start with the host triplet.  If you think this
7621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7622 ac_tool_warned=yes ;;
7623 esac
7624     LIPO=$ac_ct_LIPO
7625   fi
7626 else
7627   LIPO="$ac_cv_prog_LIPO"
7628 fi
7629
7630     if test -n "$ac_tool_prefix"; then
7631   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7632 set dummy ${ac_tool_prefix}otool; ac_word=$2
7633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635 if test "${ac_cv_prog_OTOOL+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638   if test -n "$OTOOL"; then
7639   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646   for ac_exec_ext in '' $ac_executable_extensions; do
7647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 OTOOL=$ac_cv_prog_OTOOL
7659 if test -n "$OTOOL"; then
7660   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7661 echo "${ECHO_T}$OTOOL" >&6; }
7662 else
7663   { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7665 fi
7666
7667
7668 fi
7669 if test -z "$ac_cv_prog_OTOOL"; then
7670   ac_ct_OTOOL=$OTOOL
7671   # Extract the first word of "otool", so it can be a program name with args.
7672 set dummy otool; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   if test -n "$ac_ct_OTOOL"; then
7679   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_prog_ac_ct_OTOOL="otool"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7699 if test -n "$ac_ct_OTOOL"; then
7700   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7701 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7702 else
7703   { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7705 fi
7706
7707   if test "x$ac_ct_OTOOL" = x; then
7708     OTOOL=":"
7709   else
7710     case $cross_compiling:$ac_tool_warned in
7711 yes:)
7712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7713 whose name does not start with the host triplet.  If you think this
7714 configuration is useful to you, please write to autoconf@gnu.org." >&5
7715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7716 whose name does not start with the host triplet.  If you think this
7717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7718 ac_tool_warned=yes ;;
7719 esac
7720     OTOOL=$ac_ct_OTOOL
7721   fi
7722 else
7723   OTOOL="$ac_cv_prog_OTOOL"
7724 fi
7725
7726     if test -n "$ac_tool_prefix"; then
7727   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   if test -n "$OTOOL64"; then
7735   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742   for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 OTOOL64=$ac_cv_prog_OTOOL64
7755 if test -n "$OTOOL64"; then
7756   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7757 echo "${ECHO_T}$OTOOL64" >&6; }
7758 else
7759   { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7761 fi
7762
7763
7764 fi
7765 if test -z "$ac_cv_prog_OTOOL64"; then
7766   ac_ct_OTOOL64=$OTOOL64
7767   # Extract the first word of "otool64", so it can be a program name with args.
7768 set dummy otool64; ac_word=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   if test -n "$ac_ct_OTOOL64"; then
7775   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782   for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_prog_ac_ct_OTOOL64="otool64"
7785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 fi
7793 fi
7794 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7795 if test -n "$ac_ct_OTOOL64"; then
7796   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7797 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7798 else
7799   { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7801 fi
7802
7803   if test "x$ac_ct_OTOOL64" = x; then
7804     OTOOL64=":"
7805   else
7806     case $cross_compiling:$ac_tool_warned in
7807 yes:)
7808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7809 whose name does not start with the host triplet.  If you think this
7810 configuration is useful to you, please write to autoconf@gnu.org." >&5
7811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7812 whose name does not start with the host triplet.  If you think this
7813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7814 ac_tool_warned=yes ;;
7815 esac
7816     OTOOL64=$ac_ct_OTOOL64
7817   fi
7818 else
7819   OTOOL64="$ac_cv_prog_OTOOL64"
7820 fi
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7849 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7850 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   lt_cv_apple_cc_single_mod=no
7854       if test -z "${LT_MULTI_MODULE}"; then
7855         # By default we will add the -single_module flag. You can override
7856         # by either setting the environment variable LT_MULTI_MODULE
7857         # non-empty at configure time, or by adding -multi_module to the
7858         # link flags.
7859         rm -rf libconftest.dylib*
7860         echo "int foo(void){return 1;}" > conftest.c
7861         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862 -dynamiclib -Wl,-single_module conftest.c" >&5
7863         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7864           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7865         _lt_result=$?
7866         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7867           lt_cv_apple_cc_single_mod=yes
7868         else
7869           cat conftest.err >&5
7870         fi
7871         rm -rf libconftest.dylib*
7872         rm -f conftest.*
7873       fi
7874 fi
7875 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7876 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7877     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7878 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7879 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882   lt_cv_ld_exported_symbols_list=no
7883       save_LDFLAGS=$LDFLAGS
7884       echo "_main" > conftest.sym
7885       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7886       cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h.  */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h.  */
7892
7893 int
7894 main ()
7895 {
7896
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7903 case "(($ac_try" in
7904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905   *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908   (eval "$ac_link") 2>conftest.er1
7909   ac_status=$?
7910   grep -v '^ *+' conftest.er1 >conftest.err
7911   rm -f conftest.er1
7912   cat conftest.err >&5
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } && {
7915          test -z "$ac_c_werror_flag" ||
7916          test ! -s conftest.err
7917        } && test -s conftest$ac_exeext &&
7918        $as_test_x conftest$ac_exeext; then
7919   lt_cv_ld_exported_symbols_list=yes
7920 else
7921   echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7923
7924         lt_cv_ld_exported_symbols_list=no
7925 fi
7926
7927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928       conftest$ac_exeext conftest.$ac_ext
7929         LDFLAGS="$save_LDFLAGS"
7930
7931 fi
7932 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7933 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7934     case $host_os in
7935     rhapsody* | darwin1.[012])
7936       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7937     darwin1.*)
7938       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7939     darwin*) # darwin 5.x on
7940       # if running on 10.5 or later, the deployment target defaults
7941       # to the OS version, if on x86, and 10.4, the deployment
7942       # target defaults to 10.4. Don't you love it?
7943       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7944         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7945           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7946         10.[012]*)
7947           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7948         10.*)
7949           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7950       esac
7951     ;;
7952   esac
7953     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7954       _lt_dar_single_mod='$single_module'
7955     fi
7956     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7957       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7958     else
7959       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7960     fi
7961     if test "$DSYMUTIL" != ":"; then
7962       _lt_dsymutil='~$DSYMUTIL $lib || :'
7963     else
7964       _lt_dsymutil=
7965     fi
7966     ;;
7967   esac
7968
7969 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7970 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7971 if test "${ac_cv_header_stdc+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980 #include <stdlib.h>
7981 #include <stdarg.h>
7982 #include <string.h>
7983 #include <float.h>
7984
7985 int
7986 main ()
7987 {
7988
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7995 case "(($ac_try" in
7996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997   *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000   (eval "$ac_compile") 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } && {
8007          test -z "$ac_c_werror_flag" ||
8008          test ! -s conftest.err
8009        } && test -s conftest.$ac_objext; then
8010   ac_cv_header_stdc=yes
8011 else
8012   echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015         ac_cv_header_stdc=no
8016 fi
8017
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019
8020 if test $ac_cv_header_stdc = yes; then
8021   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8022   cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h.  */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h.  */
8028 #include <string.h>
8029
8030 _ACEOF
8031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8032   $EGREP "memchr" >/dev/null 2>&1; then
8033   :
8034 else
8035   ac_cv_header_stdc=no
8036 fi
8037 rm -f conftest*
8038
8039 fi
8040
8041 if test $ac_cv_header_stdc = yes; then
8042   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8043   cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049 #include <stdlib.h>
8050
8051 _ACEOF
8052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8053   $EGREP "free" >/dev/null 2>&1; then
8054   :
8055 else
8056   ac_cv_header_stdc=no
8057 fi
8058 rm -f conftest*
8059
8060 fi
8061
8062 if test $ac_cv_header_stdc = yes; then
8063   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8064   if test "$cross_compiling" = yes; then
8065   :
8066 else
8067   cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 #include <ctype.h>
8074 #include <stdlib.h>
8075 #if ((' ' & 0x0FF) == 0x020)
8076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8078 #else
8079 # define ISLOWER(c) \
8080                    (('a' <= (c) && (c) <= 'i') \
8081                      || ('j' <= (c) && (c) <= 'r') \
8082                      || ('s' <= (c) && (c) <= 'z'))
8083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8084 #endif
8085
8086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8087 int
8088 main ()
8089 {
8090   int i;
8091   for (i = 0; i < 256; i++)
8092     if (XOR (islower (i), ISLOWER (i))
8093         || toupper (i) != TOUPPER (i))
8094       return 2;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest$ac_exeext
8099 if { (ac_try="$ac_link"
8100 case "(($ac_try" in
8101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102   *) ac_try_echo=$ac_try;;
8103 esac
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105   (eval "$ac_link") 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8109   { (case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_try") 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; }; then
8118   :
8119 else
8120   echo "$as_me: program exited with status $ac_status" >&5
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ( exit $ac_status )
8125 ac_cv_header_stdc=no
8126 fi
8127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8128 fi
8129
8130
8131 fi
8132 fi
8133 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8134 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8135 if test $ac_cv_header_stdc = yes; then
8136
8137 cat >>confdefs.h <<\_ACEOF
8138 #define STDC_HEADERS 1
8139 _ACEOF
8140
8141 fi
8142
8143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8154                   inttypes.h stdint.h unistd.h
8155 do
8156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8160   echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162   cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168 $ac_includes_default
8169
8170 #include <$ac_header>
8171 _ACEOF
8172 rm -f conftest.$ac_objext
8173 if { (ac_try="$ac_compile"
8174 case "(($ac_try" in
8175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176   *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179   (eval "$ac_compile") 2>conftest.er1
8180   ac_status=$?
8181   grep -v '^ *+' conftest.er1 >conftest.err
8182   rm -f conftest.er1
8183   cat conftest.err >&5
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } && {
8186          test -z "$ac_c_werror_flag" ||
8187          test ! -s conftest.err
8188        } && test -s conftest.$ac_objext; then
8189   eval "$as_ac_Header=yes"
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194         eval "$as_ac_Header=no"
8195 fi
8196
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 ac_res=`eval echo '${'$as_ac_Header'}'`
8200                { echo "$as_me:$LINENO: result: $ac_res" >&5
8201 echo "${ECHO_T}$ac_res" >&6; }
8202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8203   cat >>confdefs.h <<_ACEOF
8204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8205 _ACEOF
8206
8207 fi
8208
8209 done
8210
8211
8212
8213 for ac_header in dlfcn.h
8214 do
8215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227 $ac_includes_default
8228
8229 #include <$ac_header>
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8233 case "(($ac_try" in
8234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235   *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238   (eval "$ac_compile") 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } && {
8245          test -z "$ac_c_werror_flag" ||
8246          test ! -s conftest.err
8247        } && test -s conftest.$ac_objext; then
8248   eval "$as_ac_Header=yes"
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253         eval "$as_ac_Header=no"
8254 fi
8255
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 fi
8258 ac_res=`eval echo '${'$as_ac_Header'}'`
8259                { echo "$as_me:$LINENO: result: $ac_res" >&5
8260 echo "${ECHO_T}$ac_res" >&6; }
8261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8262   cat >>confdefs.h <<_ACEOF
8263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8264 _ACEOF
8265
8266 fi
8267
8268 done
8269
8270
8271
8272 ac_ext=cpp
8273 ac_cpp='$CXXCPP $CPPFLAGS'
8274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8277 if test -z "$CXX"; then
8278   if test -n "$CCC"; then
8279     CXX=$CCC
8280   else
8281     if test -n "$ac_tool_prefix"; then
8282   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8283   do
8284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8288 if test "${ac_cv_prog_CXX+set}" = set; then
8289   echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291   if test -n "$CXX"; then
8292   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8293 else
8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 for as_dir in $PATH
8296 do
8297   IFS=$as_save_IFS
8298   test -z "$as_dir" && as_dir=.
8299   for ac_exec_ext in '' $ac_executable_extensions; do
8300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8301     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8303     break 2
8304   fi
8305 done
8306 done
8307 IFS=$as_save_IFS
8308
8309 fi
8310 fi
8311 CXX=$ac_cv_prog_CXX
8312 if test -n "$CXX"; then
8313   { echo "$as_me:$LINENO: result: $CXX" >&5
8314 echo "${ECHO_T}$CXX" >&6; }
8315 else
8316   { echo "$as_me:$LINENO: result: no" >&5
8317 echo "${ECHO_T}no" >&6; }
8318 fi
8319
8320
8321     test -n "$CXX" && break
8322   done
8323 fi
8324 if test -z "$CXX"; then
8325   ac_ct_CXX=$CXX
8326   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8327 do
8328   # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy $ac_prog; ac_word=$2
8330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   if test -n "$ac_ct_CXX"; then
8336   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341   IFS=$as_save_IFS
8342   test -z "$as_dir" && as_dir=.
8343   for ac_exec_ext in '' $ac_executable_extensions; do
8344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345     ac_cv_prog_ac_ct_CXX="$ac_prog"
8346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347     break 2
8348   fi
8349 done
8350 done
8351 IFS=$as_save_IFS
8352
8353 fi
8354 fi
8355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8356 if test -n "$ac_ct_CXX"; then
8357   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8358 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8359 else
8360   { echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6; }
8362 fi
8363
8364
8365   test -n "$ac_ct_CXX" && break
8366 done
8367
8368   if test "x$ac_ct_CXX" = x; then
8369     CXX="g++"
8370   else
8371     case $cross_compiling:$ac_tool_warned in
8372 yes:)
8373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8374 whose name does not start with the host triplet.  If you think this
8375 configuration is useful to you, please write to autoconf@gnu.org." >&5
8376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8377 whose name does not start with the host triplet.  If you think this
8378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381     CXX=$ac_ct_CXX
8382   fi
8383 fi
8384
8385   fi
8386 fi
8387 # Provide some information about the compiler.
8388 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8389 ac_compiler=`set X $ac_compile; echo $2`
8390 { (ac_try="$ac_compiler --version >&5"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_compiler --version >&5") 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }
8400 { (ac_try="$ac_compiler -v >&5"
8401 case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_compiler -v >&5") 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }
8410 { (ac_try="$ac_compiler -V >&5"
8411 case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416   (eval "$ac_compiler -V >&5") 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }
8420
8421 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8422 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8423 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h.  */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h.  */
8432
8433 int
8434 main ()
8435 {
8436 #ifndef __GNUC__
8437        choke me
8438 #endif
8439
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8446 case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_compile") 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } && {
8458          test -z "$ac_cxx_werror_flag" ||
8459          test ! -s conftest.err
8460        } && test -s conftest.$ac_objext; then
8461   ac_compiler_gnu=yes
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466         ac_compiler_gnu=no
8467 fi
8468
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8471
8472 fi
8473 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8474 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8475 GXX=`test $ac_compiler_gnu = yes && echo yes`
8476 ac_test_CXXFLAGS=${CXXFLAGS+set}
8477 ac_save_CXXFLAGS=$CXXFLAGS
8478 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8479 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8480 if test "${ac_cv_prog_cxx_g+set}" = set; then
8481   echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8484    ac_cxx_werror_flag=yes
8485    ac_cv_prog_cxx_g=no
8486    CXXFLAGS="-g"
8487    cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494 int
8495 main ()
8496 {
8497
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8504 case "(($ac_try" in
8505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506   *) ac_try_echo=$ac_try;;
8507 esac
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509   (eval "$ac_compile") 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } && {
8516          test -z "$ac_cxx_werror_flag" ||
8517          test ! -s conftest.err
8518        } && test -s conftest.$ac_objext; then
8519   ac_cv_prog_cxx_g=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524         CXXFLAGS=""
8525       cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531
8532 int
8533 main ()
8534 {
8535
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8542 case "(($ac_try" in
8543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544   *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547   (eval "$ac_compile") 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } && {
8554          test -z "$ac_cxx_werror_flag" ||
8555          test ! -s conftest.err
8556        } && test -s conftest.$ac_objext; then
8557   :
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8563          CXXFLAGS="-g"
8564          cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h.  */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h.  */
8570
8571 int
8572 main ()
8573 {
8574
8575   ;
8576   return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8581 case "(($ac_try" in
8582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583   *) ac_try_echo=$ac_try;;
8584 esac
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586   (eval "$ac_compile") 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } && {
8593          test -z "$ac_cxx_werror_flag" ||
8594          test ! -s conftest.err
8595        } && test -s conftest.$ac_objext; then
8596   ac_cv_prog_cxx_g=yes
8597 else
8598   echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601
8602 fi
8603
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 fi
8609
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8612 fi
8613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8614 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8615 if test "$ac_test_CXXFLAGS" = set; then
8616   CXXFLAGS=$ac_save_CXXFLAGS
8617 elif test $ac_cv_prog_cxx_g = yes; then
8618   if test "$GXX" = yes; then
8619     CXXFLAGS="-g -O2"
8620   else
8621     CXXFLAGS="-g"
8622   fi
8623 else
8624   if test "$GXX" = yes; then
8625     CXXFLAGS="-O2"
8626   else
8627     CXXFLAGS=
8628   fi
8629 fi
8630 ac_ext=c
8631 ac_cpp='$CPP $CPPFLAGS'
8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8635
8636 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8637     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8638     (test "X$CXX" != "Xg++"))) ; then
8639   ac_ext=cpp
8640 ac_cpp='$CXXCPP $CPPFLAGS'
8641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8644 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8645 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8646 if test -z "$CXXCPP"; then
8647   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650       # Double quotes because CXXCPP needs to be expanded
8651     for CXXCPP in "$CXX -E" "/lib/cpp"
8652     do
8653       ac_preproc_ok=false
8654 for ac_cxx_preproc_warn_flag in '' yes
8655 do
8656   # Use a header file that comes with gcc, so configuring glibc
8657   # with a fresh cross-compiler works.
8658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8659   # <limits.h> exists even on freestanding compilers.
8660   # On the NeXT, cc -E runs the code through the compiler's parser,
8661   # not just through cpp. "Syntax error" is here to catch this case.
8662   cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668 #ifdef __STDC__
8669 # include <limits.h>
8670 #else
8671 # include <assert.h>
8672 #endif
8673                      Syntax error
8674 _ACEOF
8675 if { (ac_try="$ac_cpp conftest.$ac_ext"
8676 case "(($ac_try" in
8677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678   *) ac_try_echo=$ac_try;;
8679 esac
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8682   ac_status=$?
8683   grep -v '^ *+' conftest.er1 >conftest.err
8684   rm -f conftest.er1
8685   cat conftest.err >&5
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); } >/dev/null && {
8688          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8689          test ! -s conftest.err
8690        }; then
8691   :
8692 else
8693   echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696   # Broken: fails on valid input.
8697 continue
8698 fi
8699
8700 rm -f conftest.err conftest.$ac_ext
8701
8702   # OK, works on sane cases.  Now check whether nonexistent headers
8703   # can be detected and how.
8704   cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h.  */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h.  */
8710 #include <ac_nonexistent.h>
8711 _ACEOF
8712 if { (ac_try="$ac_cpp conftest.$ac_ext"
8713 case "(($ac_try" in
8714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715   *) ac_try_echo=$ac_try;;
8716 esac
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8719   ac_status=$?
8720   grep -v '^ *+' conftest.er1 >conftest.err
8721   rm -f conftest.er1
8722   cat conftest.err >&5
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); } >/dev/null && {
8725          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8726          test ! -s conftest.err
8727        }; then
8728   # Broken: success on invalid input.
8729 continue
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734   # Passes both tests.
8735 ac_preproc_ok=:
8736 break
8737 fi
8738
8739 rm -f conftest.err conftest.$ac_ext
8740
8741 done
8742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8743 rm -f conftest.err conftest.$ac_ext
8744 if $ac_preproc_ok; then
8745   break
8746 fi
8747
8748     done
8749     ac_cv_prog_CXXCPP=$CXXCPP
8750
8751 fi
8752   CXXCPP=$ac_cv_prog_CXXCPP
8753 else
8754   ac_cv_prog_CXXCPP=$CXXCPP
8755 fi
8756 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8757 echo "${ECHO_T}$CXXCPP" >&6; }
8758 ac_preproc_ok=false
8759 for ac_cxx_preproc_warn_flag in '' yes
8760 do
8761   # Use a header file that comes with gcc, so configuring glibc
8762   # with a fresh cross-compiler works.
8763   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8764   # <limits.h> exists even on freestanding compilers.
8765   # On the NeXT, cc -E runs the code through the compiler's parser,
8766   # not just through cpp. "Syntax error" is here to catch this case.
8767   cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h.  */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h.  */
8773 #ifdef __STDC__
8774 # include <limits.h>
8775 #else
8776 # include <assert.h>
8777 #endif
8778                      Syntax error
8779 _ACEOF
8780 if { (ac_try="$ac_cpp conftest.$ac_ext"
8781 case "(($ac_try" in
8782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783   *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } >/dev/null && {
8793          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8794          test ! -s conftest.err
8795        }; then
8796   :
8797 else
8798   echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801   # Broken: fails on valid input.
8802 continue
8803 fi
8804
8805 rm -f conftest.err conftest.$ac_ext
8806
8807   # OK, works on sane cases.  Now check whether nonexistent headers
8808   # can be detected and how.
8809   cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h.  */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h.  */
8815 #include <ac_nonexistent.h>
8816 _ACEOF
8817 if { (ac_try="$ac_cpp conftest.$ac_ext"
8818 case "(($ac_try" in
8819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820   *) ac_try_echo=$ac_try;;
8821 esac
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8824   ac_status=$?
8825   grep -v '^ *+' conftest.er1 >conftest.err
8826   rm -f conftest.er1
8827   cat conftest.err >&5
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); } >/dev/null && {
8830          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8831          test ! -s conftest.err
8832        }; then
8833   # Broken: success on invalid input.
8834 continue
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839   # Passes both tests.
8840 ac_preproc_ok=:
8841 break
8842 fi
8843
8844 rm -f conftest.err conftest.$ac_ext
8845
8846 done
8847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8848 rm -f conftest.err conftest.$ac_ext
8849 if $ac_preproc_ok; then
8850   :
8851 else
8852   _lt_caught_CXX_error=yes
8853 fi
8854
8855 ac_ext=c
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8860
8861 else
8862   _lt_caught_CXX_error=yes
8863 fi
8864
8865
8866
8867
8868
8869 # Set options
8870 # Check whether --enable-shared was given.
8871 if test "${enable_shared+set}" = set; then
8872   enableval=$enable_shared; p=${PACKAGE-default}
8873     case $enableval in
8874     yes) enable_shared=yes ;;
8875     no) enable_shared=no ;;
8876     *)
8877       enable_shared=no
8878       # Look at the argument we got.  We use all the common list separators.
8879       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8880       for pkg in $enableval; do
8881         IFS="$lt_save_ifs"
8882         if test "X$pkg" = "X$p"; then
8883           enable_shared=yes
8884         fi
8885       done
8886       IFS="$lt_save_ifs"
8887       ;;
8888     esac
8889 else
8890   enable_shared=yes
8891 fi
8892
8893
8894
8895
8896
8897
8898
8899 # Check whether --enable-static was given.
8900 if test "${enable_static+set}" = set; then
8901   enableval=$enable_static; p=${PACKAGE-default}
8902     case $enableval in
8903     yes) enable_static=yes ;;
8904     no) enable_static=no ;;
8905     *)
8906      enable_static=no
8907       # Look at the argument we got.  We use all the common list separators.
8908       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8909       for pkg in $enableval; do
8910         IFS="$lt_save_ifs"
8911         if test "X$pkg" = "X$p"; then
8912           enable_static=yes
8913         fi
8914       done
8915       IFS="$lt_save_ifs"
8916       ;;
8917     esac
8918 else
8919   enable_static=no
8920 fi
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931         enable_dlopen=no
8932
8933
8934   enable_win32_dll=no
8935
8936
8937
8938
8939
8940 # Check whether --with-pic was given.
8941 if test "${with_pic+set}" = set; then
8942   withval=$with_pic; pic_mode="$withval"
8943 else
8944   pic_mode=default
8945 fi
8946
8947
8948 test -z "$pic_mode" && pic_mode=default
8949
8950
8951
8952
8953
8954
8955
8956   # Check whether --enable-fast-install was given.
8957 if test "${enable_fast_install+set}" = set; then
8958   enableval=$enable_fast_install; p=${PACKAGE-default}
8959     case $enableval in
8960     yes) enable_fast_install=yes ;;
8961     no) enable_fast_install=no ;;
8962     *)
8963       enable_fast_install=no
8964       # Look at the argument we got.  We use all the common list separators.
8965       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8966       for pkg in $enableval; do
8967         IFS="$lt_save_ifs"
8968         if test "X$pkg" = "X$p"; then
8969           enable_fast_install=yes
8970         fi
8971       done
8972       IFS="$lt_save_ifs"
8973       ;;
8974     esac
8975 else
8976   enable_fast_install=yes
8977 fi
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989 # This can be used to rebuild libtool when needed
8990 LIBTOOL_DEPS="$ltmain"
8991
8992 # Always use our own libtool.
8993 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 test -z "$LN_S" && LN_S="ln -s"
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034 if test -n "${ZSH_VERSION+set}" ; then
9035    setopt NO_GLOB_SUBST
9036 fi
9037
9038 { echo "$as_me:$LINENO: checking for objdir" >&5
9039 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9040 if test "${lt_cv_objdir+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   rm -f .libs 2>/dev/null
9044 mkdir .libs 2>/dev/null
9045 if test -d .libs; then
9046   lt_cv_objdir=.libs
9047 else
9048   # MS-DOS does not allow filenames that begin with a dot.
9049   lt_cv_objdir=_libs
9050 fi
9051 rmdir .libs 2>/dev/null
9052 fi
9053 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9054 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9055 objdir=$lt_cv_objdir
9056
9057
9058
9059
9060
9061 cat >>confdefs.h <<_ACEOF
9062 #define LT_OBJDIR "$lt_cv_objdir/"
9063 _ACEOF
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081 case $host_os in
9082 aix3*)
9083   # AIX sometimes has problems with the GCC collect2 program.  For some
9084   # reason, if we set the COLLECT_NAMES environment variable, the problems
9085   # vanish in a puff of smoke.
9086   if test "X${COLLECT_NAMES+set}" != Xset; then
9087     COLLECT_NAMES=
9088     export COLLECT_NAMES
9089   fi
9090   ;;
9091 esac
9092
9093 # Sed substitution that helps us do robust quoting.  It backslashifies
9094 # metacharacters that are still active within double-quoted strings.
9095 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9096
9097 # Same as above, but do not quote variable references.
9098 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9099
9100 # Sed substitution to delay expansion of an escaped shell variable in a
9101 # double_quote_subst'ed string.
9102 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9103
9104 # Sed substitution to delay expansion of an escaped single quote.
9105 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9106
9107 # Sed substitution to avoid accidental globbing in evaled expressions
9108 no_glob_subst='s/\*/\\\*/g'
9109
9110 # Global variables:
9111 ofile=libtool
9112 can_build_shared=yes
9113
9114 # All known linkers require a `.a' archive for static linking (except MSVC,
9115 # which needs '.lib').
9116 libext=a
9117
9118 with_gnu_ld="$lt_cv_prog_gnu_ld"
9119
9120 old_CC="$CC"
9121 old_CFLAGS="$CFLAGS"
9122
9123 # Set sane defaults for various variables
9124 test -z "$CC" && CC=cc
9125 test -z "$LTCC" && LTCC=$CC
9126 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9127 test -z "$LD" && LD=ld
9128 test -z "$ac_objext" && ac_objext=o
9129
9130 for cc_temp in $compiler""; do
9131   case $cc_temp in
9132     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9133     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9134     \-*) ;;
9135     *) break;;
9136   esac
9137 done
9138 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9139
9140
9141 # Only perform the check for file, if the check method requires it
9142 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9143 case $deplibs_check_method in
9144 file_magic*)
9145   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9146     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9147 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9148 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9149   echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151   case $MAGIC_CMD in
9152 [\\/*] |  ?:[\\/]*)
9153   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9154   ;;
9155 *)
9156   lt_save_MAGIC_CMD="$MAGIC_CMD"
9157   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9158   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9159   for ac_dir in $ac_dummy; do
9160     IFS="$lt_save_ifs"
9161     test -z "$ac_dir" && ac_dir=.
9162     if test -f $ac_dir/${ac_tool_prefix}file; then
9163       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9164       if test -n "$file_magic_test_file"; then
9165         case $deplibs_check_method in
9166         "file_magic "*)
9167           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9168           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9169           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9170             $EGREP "$file_magic_regex" > /dev/null; then
9171             :
9172           else
9173             cat <<_LT_EOF 1>&2
9174
9175 *** Warning: the command libtool uses to detect shared libraries,
9176 *** $file_magic_cmd, produces output that libtool cannot recognize.
9177 *** The result is that libtool may fail to recognize shared libraries
9178 *** as such.  This will affect the creation of libtool libraries that
9179 *** depend on shared libraries, but programs linked with such libtool
9180 *** libraries will work regardless of this problem.  Nevertheless, you
9181 *** may want to report the problem to your system manager and/or to
9182 *** bug-libtool@gnu.org
9183
9184 _LT_EOF
9185           fi ;;
9186         esac
9187       fi
9188       break
9189     fi
9190   done
9191   IFS="$lt_save_ifs"
9192   MAGIC_CMD="$lt_save_MAGIC_CMD"
9193   ;;
9194 esac
9195 fi
9196
9197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9198 if test -n "$MAGIC_CMD"; then
9199   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9200 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9201 else
9202   { echo "$as_me:$LINENO: result: no" >&5
9203 echo "${ECHO_T}no" >&6; }
9204 fi
9205
9206
9207
9208
9209
9210 if test -z "$lt_cv_path_MAGIC_CMD"; then
9211   if test -n "$ac_tool_prefix"; then
9212     { echo "$as_me:$LINENO: checking for file" >&5
9213 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   case $MAGIC_CMD in
9218 [\\/*] |  ?:[\\/]*)
9219   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9220   ;;
9221 *)
9222   lt_save_MAGIC_CMD="$MAGIC_CMD"
9223   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9224   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9225   for ac_dir in $ac_dummy; do
9226     IFS="$lt_save_ifs"
9227     test -z "$ac_dir" && ac_dir=.
9228     if test -f $ac_dir/file; then
9229       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9230       if test -n "$file_magic_test_file"; then
9231         case $deplibs_check_method in
9232         "file_magic "*)
9233           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9236             $EGREP "$file_magic_regex" > /dev/null; then
9237             :
9238           else
9239             cat <<_LT_EOF 1>&2
9240
9241 *** Warning: the command libtool uses to detect shared libraries,
9242 *** $file_magic_cmd, produces output that libtool cannot recognize.
9243 *** The result is that libtool may fail to recognize shared libraries
9244 *** as such.  This will affect the creation of libtool libraries that
9245 *** depend on shared libraries, but programs linked with such libtool
9246 *** libraries will work regardless of this problem.  Nevertheless, you
9247 *** may want to report the problem to your system manager and/or to
9248 *** bug-libtool@gnu.org
9249
9250 _LT_EOF
9251           fi ;;
9252         esac
9253       fi
9254       break
9255     fi
9256   done
9257   IFS="$lt_save_ifs"
9258   MAGIC_CMD="$lt_save_MAGIC_CMD"
9259   ;;
9260 esac
9261 fi
9262
9263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264 if test -n "$MAGIC_CMD"; then
9265   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9267 else
9268   { echo "$as_me:$LINENO: result: no" >&5
9269 echo "${ECHO_T}no" >&6; }
9270 fi
9271
9272
9273   else
9274     MAGIC_CMD=:
9275   fi
9276 fi
9277
9278   fi
9279   ;;
9280 esac
9281
9282 # Use C for the default configuration in the libtool script
9283
9284 lt_save_CC="$CC"
9285 ac_ext=c
9286 ac_cpp='$CPP $CPPFLAGS'
9287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9290
9291
9292 # Source file extension for C test sources.
9293 ac_ext=c
9294
9295 # Object file extension for compiled C test sources.
9296 objext=o
9297 objext=$objext
9298
9299 # Code to be used in simple compile tests
9300 lt_simple_compile_test_code="int some_variable = 0;"
9301
9302 # Code to be used in simple link tests
9303 lt_simple_link_test_code='int main(){return(0);}'
9304
9305
9306
9307
9308
9309
9310
9311 # If no C compiler was specified, use CC.
9312 LTCC=${LTCC-"$CC"}
9313
9314 # If no C compiler flags were specified, use CFLAGS.
9315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9316
9317 # Allow CC to be a program name with arguments.
9318 compiler=$CC
9319
9320 # Save the default compiler, since it gets overwritten when the other
9321 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9322 compiler_DEFAULT=$CC
9323
9324 # save warnings/boilerplate of simple test code
9325 ac_outfile=conftest.$ac_objext
9326 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9327 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9328 _lt_compiler_boilerplate=`cat conftest.err`
9329 $RM conftest*
9330
9331 ac_outfile=conftest.$ac_objext
9332 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9333 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9334 _lt_linker_boilerplate=`cat conftest.err`
9335 $RM -r conftest*
9336
9337
9338 ## CAVEAT EMPTOR:
9339 ## There is no encapsulation within the following macros, do not change
9340 ## the running order or otherwise move them around unless you know exactly
9341 ## what you are doing...
9342 if test -n "$compiler"; then
9343
9344 lt_prog_compiler_no_builtin_flag=
9345
9346 if test "$GCC" = yes; then
9347   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9348
9349   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9350 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9351 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   lt_cv_prog_compiler_rtti_exceptions=no
9355    ac_outfile=conftest.$ac_objext
9356    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9357    lt_compiler_flag="-fno-rtti -fno-exceptions"
9358    # Insert the option either (1) after the last *FLAGS variable, or
9359    # (2) before a word containing "conftest.", or (3) at the end.
9360    # Note that $ac_compile itself does not contain backslashes and begins
9361    # with a dollar sign (not a hyphen), so the echo should work correctly.
9362    # The option is referenced via a variable to avoid confusing sed.
9363    lt_compile=`echo "$ac_compile" | $SED \
9364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9366    -e 's:$: $lt_compiler_flag:'`
9367    (eval echo "\"\$as_me:9367: $lt_compile\"" >&5)
9368    (eval "$lt_compile" 2>conftest.err)
9369    ac_status=$?
9370    cat conftest.err >&5
9371    echo "$as_me:9371: \$? = $ac_status" >&5
9372    if (exit $ac_status) && test -s "$ac_outfile"; then
9373      # The compiler can only warn and ignore the option if not recognized
9374      # So say no if there are warnings other than the usual output.
9375      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9376      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9377      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9378        lt_cv_prog_compiler_rtti_exceptions=yes
9379      fi
9380    fi
9381    $RM conftest*
9382
9383 fi
9384 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9385 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9386
9387 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9388     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9389 else
9390     :
9391 fi
9392
9393 fi
9394
9395
9396
9397
9398
9399
9400   lt_prog_compiler_wl=
9401 lt_prog_compiler_pic=
9402 lt_prog_compiler_static=
9403
9404 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9405 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9406
9407   if test "$GCC" = yes; then
9408     lt_prog_compiler_wl='-Wl,'
9409     lt_prog_compiler_static='-static'
9410
9411     case $host_os in
9412       aix*)
9413       # All AIX code is PIC.
9414       if test "$host_cpu" = ia64; then
9415         # AIX 5 now supports IA64 processor
9416         lt_prog_compiler_static='-Bstatic'
9417       fi
9418       ;;
9419
9420     amigaos*)
9421       case $host_cpu in
9422       powerpc)
9423             # see comment about AmigaOS4 .so support
9424             lt_prog_compiler_pic='-fPIC'
9425         ;;
9426       m68k)
9427             # FIXME: we need at least 68020 code to build shared libraries, but
9428             # adding the `-m68020' flag to GCC prevents building anything better,
9429             # like `-m68040'.
9430             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9431         ;;
9432       esac
9433       ;;
9434
9435     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9436       # PIC is the default for these OSes.
9437       ;;
9438
9439     mingw* | cygwin* | pw32* | os2* | cegcc*)
9440       # This hack is so that the source file can tell whether it is being
9441       # built for inclusion in a dll (and should export symbols for example).
9442       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9443       # (--disable-auto-import) libraries
9444       lt_prog_compiler_pic='-DDLL_EXPORT'
9445       ;;
9446
9447     darwin* | rhapsody*)
9448       # PIC is the default on this platform
9449       # Common symbols not allowed in MH_DYLIB files
9450       lt_prog_compiler_pic='-fno-common'
9451       ;;
9452
9453     hpux*)
9454       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9455       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9456       # sets the default TLS model and affects inlining.
9457       case $host_cpu in
9458       hppa*64*)
9459         # +Z the default
9460         ;;
9461       *)
9462         lt_prog_compiler_pic='-fPIC'
9463         ;;
9464       esac
9465       ;;
9466
9467     interix[3-9]*)
9468       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9469       # Instead, we relocate shared libraries at runtime.
9470       ;;
9471
9472     msdosdjgpp*)
9473       # Just because we use GCC doesn't mean we suddenly get shared libraries
9474       # on systems that don't support them.
9475       lt_prog_compiler_can_build_shared=no
9476       enable_shared=no
9477       ;;
9478
9479     *nto* | *qnx*)
9480       # QNX uses GNU C++, but need to define -shared option too, otherwise
9481       # it will coredump.
9482       lt_prog_compiler_pic='-fPIC -shared'
9483       ;;
9484
9485     sysv4*MP*)
9486       if test -d /usr/nec; then
9487         lt_prog_compiler_pic=-Kconform_pic
9488       fi
9489       ;;
9490
9491     *)
9492       lt_prog_compiler_pic='-fPIC'
9493       ;;
9494     esac
9495   else
9496     # PORTME Check for flag to pass linker flags through the system compiler.
9497     case $host_os in
9498     aix*)
9499       lt_prog_compiler_wl='-Wl,'
9500       if test "$host_cpu" = ia64; then
9501         # AIX 5 now supports IA64 processor
9502         lt_prog_compiler_static='-Bstatic'
9503       else
9504         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9505       fi
9506       ;;
9507
9508     mingw* | cygwin* | pw32* | os2* | cegcc*)
9509       # This hack is so that the source file can tell whether it is being
9510       # built for inclusion in a dll (and should export symbols for example).
9511       lt_prog_compiler_pic='-DDLL_EXPORT'
9512       ;;
9513
9514     hpux9* | hpux10* | hpux11*)
9515       lt_prog_compiler_wl='-Wl,'
9516       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9517       # not for PA HP-UX.
9518       case $host_cpu in
9519       hppa*64*|ia64*)
9520         # +Z the default
9521         ;;
9522       *)
9523         lt_prog_compiler_pic='+Z'
9524         ;;
9525       esac
9526       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9527       lt_prog_compiler_static='${wl}-a ${wl}archive'
9528       ;;
9529
9530     irix5* | irix6* | nonstopux*)
9531       lt_prog_compiler_wl='-Wl,'
9532       # PIC (with -KPIC) is the default.
9533       lt_prog_compiler_static='-non_shared'
9534       ;;
9535
9536     linux* | k*bsd*-gnu)
9537       case $cc_basename in
9538       # old Intel for x86_64 which still supported -KPIC.
9539       ecc*)
9540         lt_prog_compiler_wl='-Wl,'
9541         lt_prog_compiler_pic='-KPIC'
9542         lt_prog_compiler_static='-static'
9543         ;;
9544       # icc used to be incompatible with GCC.
9545       # ICC 10 doesn't accept -KPIC any more.
9546       icc* | ifort*)
9547         lt_prog_compiler_wl='-Wl,'
9548         lt_prog_compiler_pic='-fPIC'
9549         lt_prog_compiler_static='-static'
9550         ;;
9551       # Lahey Fortran 8.1.
9552       lf95*)
9553         lt_prog_compiler_wl='-Wl,'
9554         lt_prog_compiler_pic='--shared'
9555         lt_prog_compiler_static='--static'
9556         ;;
9557       pgcc* | pgf77* | pgf90* | pgf95*)
9558         # Portland Group compilers (*not* the Pentium gcc compiler,
9559         # which looks to be a dead project)
9560         lt_prog_compiler_wl='-Wl,'
9561         lt_prog_compiler_pic='-fpic'
9562         lt_prog_compiler_static='-Bstatic'
9563         ;;
9564       ccc*)
9565         lt_prog_compiler_wl='-Wl,'
9566         # All Alpha code is PIC.
9567         lt_prog_compiler_static='-non_shared'
9568         ;;
9569       xl*)
9570         # IBM XL C 8.0/Fortran 10.1 on PPC
9571         lt_prog_compiler_wl='-Wl,'
9572         lt_prog_compiler_pic='-qpic'
9573         lt_prog_compiler_static='-qstaticlink'
9574         ;;
9575       *)
9576         case `$CC -V 2>&1 | sed 5q` in
9577         *Sun\ C*)
9578           # Sun C 5.9
9579           lt_prog_compiler_pic='-KPIC'
9580           lt_prog_compiler_static='-Bstatic'
9581           lt_prog_compiler_wl='-Wl,'
9582           ;;
9583         *Sun\ F*)
9584           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9585           lt_prog_compiler_pic='-KPIC'
9586           lt_prog_compiler_static='-Bstatic'
9587           lt_prog_compiler_wl=''
9588           ;;
9589         esac
9590         ;;
9591       esac
9592       ;;
9593
9594     newsos6)
9595       lt_prog_compiler_pic='-KPIC'
9596       lt_prog_compiler_static='-Bstatic'
9597       ;;
9598
9599     *nto* | *qnx*)
9600       # QNX uses GNU C++, but need to define -shared option too, otherwise
9601       # it will coredump.
9602       lt_prog_compiler_pic='-fPIC -shared'
9603       ;;
9604
9605     osf3* | osf4* | osf5*)
9606       lt_prog_compiler_wl='-Wl,'
9607       # All OSF/1 code is PIC.
9608       lt_prog_compiler_static='-non_shared'
9609       ;;
9610
9611     rdos*)
9612       lt_prog_compiler_static='-non_shared'
9613       ;;
9614
9615     solaris*)
9616       lt_prog_compiler_pic='-KPIC'
9617       lt_prog_compiler_static='-Bstatic'
9618       case $cc_basename in
9619       f77* | f90* | f95*)
9620         lt_prog_compiler_wl='-Qoption ld ';;
9621       *)
9622         lt_prog_compiler_wl='-Wl,';;
9623       esac
9624       ;;
9625
9626     sunos4*)
9627       lt_prog_compiler_wl='-Qoption ld '
9628       lt_prog_compiler_pic='-PIC'
9629       lt_prog_compiler_static='-Bstatic'
9630       ;;
9631
9632     sysv4 | sysv4.2uw2* | sysv4.3*)
9633       lt_prog_compiler_wl='-Wl,'
9634       lt_prog_compiler_pic='-KPIC'
9635       lt_prog_compiler_static='-Bstatic'
9636       ;;
9637
9638     sysv4*MP*)
9639       if test -d /usr/nec ;then
9640         lt_prog_compiler_pic='-Kconform_pic'
9641         lt_prog_compiler_static='-Bstatic'
9642       fi
9643       ;;
9644
9645     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9646       lt_prog_compiler_wl='-Wl,'
9647       lt_prog_compiler_pic='-KPIC'
9648       lt_prog_compiler_static='-Bstatic'
9649       ;;
9650
9651     unicos*)
9652       lt_prog_compiler_wl='-Wl,'
9653       lt_prog_compiler_can_build_shared=no
9654       ;;
9655
9656     uts4*)
9657       lt_prog_compiler_pic='-pic'
9658       lt_prog_compiler_static='-Bstatic'
9659       ;;
9660
9661     *)
9662       lt_prog_compiler_can_build_shared=no
9663       ;;
9664     esac
9665   fi
9666
9667 case $host_os in
9668   # For platforms which do not support PIC, -DPIC is meaningless:
9669   *djgpp*)
9670     lt_prog_compiler_pic=
9671     ;;
9672   *)
9673     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9674     ;;
9675 esac
9676 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9677 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9678
9679
9680
9681
9682
9683
9684 #
9685 # Check to make sure the PIC flag actually works.
9686 #
9687 if test -n "$lt_prog_compiler_pic"; then
9688   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9690 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   lt_cv_prog_compiler_pic_works=no
9694    ac_outfile=conftest.$ac_objext
9695    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9696    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9697    # Insert the option either (1) after the last *FLAGS variable, or
9698    # (2) before a word containing "conftest.", or (3) at the end.
9699    # Note that $ac_compile itself does not contain backslashes and begins
9700    # with a dollar sign (not a hyphen), so the echo should work correctly.
9701    # The option is referenced via a variable to avoid confusing sed.
9702    lt_compile=`echo "$ac_compile" | $SED \
9703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9705    -e 's:$: $lt_compiler_flag:'`
9706    (eval echo "\"\$as_me:9706: $lt_compile\"" >&5)
9707    (eval "$lt_compile" 2>conftest.err)
9708    ac_status=$?
9709    cat conftest.err >&5
9710    echo "$as_me:9710: \$? = $ac_status" >&5
9711    if (exit $ac_status) && test -s "$ac_outfile"; then
9712      # The compiler can only warn and ignore the option if not recognized
9713      # So say no if there are warnings other than the usual output.
9714      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9715      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9716      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9717        lt_cv_prog_compiler_pic_works=yes
9718      fi
9719    fi
9720    $RM conftest*
9721
9722 fi
9723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9724 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9725
9726 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9727     case $lt_prog_compiler_pic in
9728      "" | " "*) ;;
9729      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9730      esac
9731 else
9732     lt_prog_compiler_pic=
9733      lt_prog_compiler_can_build_shared=no
9734 fi
9735
9736 fi
9737
9738
9739
9740
9741
9742
9743 #
9744 # Check to make sure the static flag actually works.
9745 #
9746 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9747 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9749 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9750   echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752   lt_cv_prog_compiler_static_works=no
9753    save_LDFLAGS="$LDFLAGS"
9754    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9755    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9756    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9757      # The linker can only warn and ignore the option if not recognized
9758      # So say no if there are warnings
9759      if test -s conftest.err; then
9760        # Append any errors to the config.log.
9761        cat conftest.err 1>&5
9762        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9763        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9764        if diff conftest.exp conftest.er2 >/dev/null; then
9765          lt_cv_prog_compiler_static_works=yes
9766        fi
9767      else
9768        lt_cv_prog_compiler_static_works=yes
9769      fi
9770    fi
9771    $RM -r conftest*
9772    LDFLAGS="$save_LDFLAGS"
9773
9774 fi
9775 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9776 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9777
9778 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9779     :
9780 else
9781     lt_prog_compiler_static=
9782 fi
9783
9784
9785
9786
9787
9788
9789
9790   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   lt_cv_prog_compiler_c_o=no
9796    $RM -r conftest 2>/dev/null
9797    mkdir conftest
9798    cd conftest
9799    mkdir out
9800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9801
9802    lt_compiler_flag="-o out/conftest2.$ac_objext"
9803    # Insert the option either (1) after the last *FLAGS variable, or
9804    # (2) before a word containing "conftest.", or (3) at the end.
9805    # Note that $ac_compile itself does not contain backslashes and begins
9806    # with a dollar sign (not a hyphen), so the echo should work correctly.
9807    lt_compile=`echo "$ac_compile" | $SED \
9808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9810    -e 's:$: $lt_compiler_flag:'`
9811    (eval echo "\"\$as_me:9811: $lt_compile\"" >&5)
9812    (eval "$lt_compile" 2>out/conftest.err)
9813    ac_status=$?
9814    cat out/conftest.err >&5
9815    echo "$as_me:9815: \$? = $ac_status" >&5
9816    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9817    then
9818      # The compiler can only warn and ignore the option if not recognized
9819      # So say no if there are warnings
9820      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9821      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9822      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9823        lt_cv_prog_compiler_c_o=yes
9824      fi
9825    fi
9826    chmod u+w . 2>&5
9827    $RM conftest*
9828    # SGI C++ compiler will create directory out/ii_files/ for
9829    # template instantiation
9830    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9831    $RM out/* && rmdir out
9832    cd ..
9833    $RM -r conftest
9834    $RM conftest*
9835
9836 fi
9837 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9839
9840
9841
9842
9843
9844
9845   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9846 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850   lt_cv_prog_compiler_c_o=no
9851    $RM -r conftest 2>/dev/null
9852    mkdir conftest
9853    cd conftest
9854    mkdir out
9855    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9856
9857    lt_compiler_flag="-o out/conftest2.$ac_objext"
9858    # Insert the option either (1) after the last *FLAGS variable, or
9859    # (2) before a word containing "conftest.", or (3) at the end.
9860    # Note that $ac_compile itself does not contain backslashes and begins
9861    # with a dollar sign (not a hyphen), so the echo should work correctly.
9862    lt_compile=`echo "$ac_compile" | $SED \
9863    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9865    -e 's:$: $lt_compiler_flag:'`
9866    (eval echo "\"\$as_me:9866: $lt_compile\"" >&5)
9867    (eval "$lt_compile" 2>out/conftest.err)
9868    ac_status=$?
9869    cat out/conftest.err >&5
9870    echo "$as_me:9870: \$? = $ac_status" >&5
9871    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9872    then
9873      # The compiler can only warn and ignore the option if not recognized
9874      # So say no if there are warnings
9875      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9876      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9877      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9878        lt_cv_prog_compiler_c_o=yes
9879      fi
9880    fi
9881    chmod u+w . 2>&5
9882    $RM conftest*
9883    # SGI C++ compiler will create directory out/ii_files/ for
9884    # template instantiation
9885    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9886    $RM out/* && rmdir out
9887    cd ..
9888    $RM -r conftest
9889    $RM conftest*
9890
9891 fi
9892 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9893 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9894
9895
9896
9897
9898 hard_links="nottested"
9899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9900   # do not overwrite the value of need_locks provided by the user
9901   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9903   hard_links=yes
9904   $RM conftest*
9905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9906   touch conftest.a
9907   ln conftest.a conftest.b 2>&5 || hard_links=no
9908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9909   { echo "$as_me:$LINENO: result: $hard_links" >&5
9910 echo "${ECHO_T}$hard_links" >&6; }
9911   if test "$hard_links" = no; then
9912     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9914     need_locks=warn
9915   fi
9916 else
9917   need_locks=no
9918 fi
9919
9920
9921
9922
9923
9924
9925   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9927
9928   runpath_var=
9929   allow_undefined_flag=
9930   always_export_symbols=no
9931   archive_cmds=
9932   archive_expsym_cmds=
9933   compiler_needs_object=no
9934   enable_shared_with_static_runtimes=no
9935   export_dynamic_flag_spec=
9936   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9937   hardcode_automatic=no
9938   hardcode_direct=no
9939   hardcode_direct_absolute=no
9940   hardcode_libdir_flag_spec=
9941   hardcode_libdir_flag_spec_ld=
9942   hardcode_libdir_separator=
9943   hardcode_minus_L=no
9944   hardcode_shlibpath_var=unsupported
9945   inherit_rpath=no
9946   link_all_deplibs=unknown
9947   module_cmds=
9948   module_expsym_cmds=
9949   old_archive_from_new_cmds=
9950   old_archive_from_expsyms_cmds=
9951   thread_safe_flag_spec=
9952   whole_archive_flag_spec=
9953   # include_expsyms should be a list of space-separated symbols to be *always*
9954   # included in the symbol list
9955   include_expsyms=
9956   # exclude_expsyms can be an extended regexp of symbols to exclude
9957   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9958   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9959   # as well as any symbol that contains `d'.
9960   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9961   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9962   # platforms (ab)use it in PIC code, but their linkers get confused if
9963   # the symbol is explicitly referenced.  Since portable code cannot
9964   # rely on this symbol name, it's probably fine to never include it in
9965   # preloaded symbol tables.
9966   # Exclude shared library initialization/finalization symbols.
9967   extract_expsyms_cmds=
9968
9969   case $host_os in
9970   cygwin* | mingw* | pw32* | cegcc*)
9971     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9972     # When not using gcc, we currently assume that we are using
9973     # Microsoft Visual C++.
9974     if test "$GCC" != yes; then
9975       with_gnu_ld=no
9976     fi
9977     ;;
9978   interix*)
9979     # we just hope/assume this is gcc and not c89 (= MSVC++)
9980     with_gnu_ld=yes
9981     ;;
9982   openbsd*)
9983     with_gnu_ld=no
9984     ;;
9985   esac
9986
9987   ld_shlibs=yes
9988   if test "$with_gnu_ld" = yes; then
9989     # If archive_cmds runs LD, not CC, wlarc should be empty
9990     wlarc='${wl}'
9991
9992     # Set some defaults for GNU ld with shared library support. These
9993     # are reset later if shared libraries are not supported. Putting them
9994     # here allows them to be overridden if necessary.
9995     runpath_var=LD_RUN_PATH
9996     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997     export_dynamic_flag_spec='${wl}--export-dynamic'
9998     # ancient GNU ld didn't support --whole-archive et. al.
9999     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10000       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10001     else
10002       whole_archive_flag_spec=
10003     fi
10004     supports_anon_versioning=no
10005     case `$LD -v 2>&1` in
10006       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10007       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10008       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10009       *\ 2.11.*) ;; # other 2.11 versions
10010       *) supports_anon_versioning=yes ;;
10011     esac
10012
10013     # See if GNU ld supports shared libraries.
10014     case $host_os in
10015     aix[3-9]*)
10016       # On AIX/PPC, the GNU linker is very broken
10017       if test "$host_cpu" != ia64; then
10018         ld_shlibs=no
10019         cat <<_LT_EOF 1>&2
10020
10021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10022 *** to be unable to reliably create shared libraries on AIX.
10023 *** Therefore, libtool is disabling shared libraries support.  If you
10024 *** really care for shared libraries, you may want to modify your PATH
10025 *** so that a non-GNU linker is found, and then restart.
10026
10027 _LT_EOF
10028       fi
10029       ;;
10030
10031     amigaos*)
10032       case $host_cpu in
10033       powerpc)
10034             # see comment about AmigaOS4 .so support
10035             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10036             archive_expsym_cmds=''
10037         ;;
10038       m68k)
10039             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)'
10040             hardcode_libdir_flag_spec='-L$libdir'
10041             hardcode_minus_L=yes
10042         ;;
10043       esac
10044       ;;
10045
10046     beos*)
10047       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10048         allow_undefined_flag=unsupported
10049         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10050         # support --undefined.  This deserves some investigation.  FIXME
10051         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052       else
10053         ld_shlibs=no
10054       fi
10055       ;;
10056
10057     cygwin* | mingw* | pw32* | cegcc*)
10058       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10059       # as there is no search path for DLLs.
10060       hardcode_libdir_flag_spec='-L$libdir'
10061       allow_undefined_flag=unsupported
10062       always_export_symbols=no
10063       enable_shared_with_static_runtimes=yes
10064       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10065
10066       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10067         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10068         # If the export-symbols file already is a .def file (1st line
10069         # is EXPORTS), use it as is; otherwise, prepend...
10070         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10071           cp $export_symbols $output_objdir/$soname.def;
10072         else
10073           echo EXPORTS > $output_objdir/$soname.def;
10074           cat $export_symbols >> $output_objdir/$soname.def;
10075         fi~
10076         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077       else
10078         ld_shlibs=no
10079       fi
10080       ;;
10081
10082     interix[3-9]*)
10083       hardcode_direct=no
10084       hardcode_shlibpath_var=no
10085       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086       export_dynamic_flag_spec='${wl}-E'
10087       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10088       # Instead, shared libraries are loaded at an image base (0x10000000 by
10089       # default) and relocated if they conflict, which is a slow very memory
10090       # consuming and fragmenting process.  To avoid this, we pick a random,
10091       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10092       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10093       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10094       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'
10095       ;;
10096
10097     gnu* | linux* | tpf* | k*bsd*-gnu)
10098       tmp_diet=no
10099       if test "$host_os" = linux-dietlibc; then
10100         case $cc_basename in
10101           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10102         esac
10103       fi
10104       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10105          && test "$tmp_diet" = no
10106       then
10107         tmp_addflag=
10108         tmp_sharedflag='-shared'
10109         case $cc_basename,$host_cpu in
10110         pgcc*)                          # Portland Group C compiler
10111           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'
10112           tmp_addflag=' $pic_flag'
10113           ;;
10114         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10115           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'
10116           tmp_addflag=' $pic_flag -Mnomain' ;;
10117         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10118           tmp_addflag=' -i_dynamic' ;;
10119         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10120           tmp_addflag=' -i_dynamic -nofor_main' ;;
10121         ifc* | ifort*)                  # Intel Fortran compiler
10122           tmp_addflag=' -nofor_main' ;;
10123         lf95*)                          # Lahey Fortran 8.1
10124           whole_archive_flag_spec=
10125           tmp_sharedflag='--shared' ;;
10126         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10127           tmp_sharedflag='-qmkshrobj'
10128           tmp_addflag= ;;
10129         esac
10130         case `$CC -V 2>&1 | sed 5q` in
10131         *Sun\ C*)                       # Sun C 5.9
10132           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'
10133           compiler_needs_object=yes
10134           tmp_sharedflag='-G' ;;
10135         *Sun\ F*)                       # Sun Fortran 8.3
10136           tmp_sharedflag='-G' ;;
10137         esac
10138         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10139
10140         if test "x$supports_anon_versioning" = xyes; then
10141           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10142             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10143             echo "local: *; };" >> $output_objdir/$libname.ver~
10144             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10145         fi
10146
10147         case $cc_basename in
10148         xlf*)
10149           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10150           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10151           hardcode_libdir_flag_spec=
10152           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10153           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10154           if test "x$supports_anon_versioning" = xyes; then
10155             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10156               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10157               echo "local: *; };" >> $output_objdir/$libname.ver~
10158               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10159           fi
10160           ;;
10161         esac
10162       else
10163         ld_shlibs=no
10164       fi
10165       ;;
10166
10167     netbsd*)
10168       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10169         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10170         wlarc=
10171       else
10172         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10174       fi
10175       ;;
10176
10177     solaris*)
10178       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10179         ld_shlibs=no
10180         cat <<_LT_EOF 1>&2
10181
10182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10183 *** create shared libraries on Solaris systems.  Therefore, libtool
10184 *** is disabling shared libraries support.  We urge you to upgrade GNU
10185 *** binutils to release 2.9.1 or newer.  Another option is to modify
10186 *** your PATH or compiler configuration so that the native linker is
10187 *** used, and then restart.
10188
10189 _LT_EOF
10190       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10192         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10193       else
10194         ld_shlibs=no
10195       fi
10196       ;;
10197
10198     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10199       case `$LD -v 2>&1` in
10200         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10201         ld_shlibs=no
10202         cat <<_LT_EOF 1>&2
10203
10204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10205 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10206 *** is disabling shared libraries support.  We urge you to upgrade GNU
10207 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10208 *** your PATH or compiler configuration so that the native linker is
10209 *** used, and then restart.
10210
10211 _LT_EOF
10212         ;;
10213         *)
10214           # For security reasons, it is highly recommended that you always
10215           # use absolute paths for naming shared libraries, and exclude the
10216           # DT_RUNPATH tag from executables and libraries.  But doing so
10217           # requires that you compile everything twice, which is a pain.
10218           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10219             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10222           else
10223             ld_shlibs=no
10224           fi
10225         ;;
10226       esac
10227       ;;
10228
10229     sunos4*)
10230       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10231       wlarc=
10232       hardcode_direct=yes
10233       hardcode_shlibpath_var=no
10234       ;;
10235
10236     *)
10237       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10240       else
10241         ld_shlibs=no
10242       fi
10243       ;;
10244     esac
10245
10246     if test "$ld_shlibs" = no; then
10247       runpath_var=
10248       hardcode_libdir_flag_spec=
10249       export_dynamic_flag_spec=
10250       whole_archive_flag_spec=
10251     fi
10252   else
10253     # PORTME fill in a description of your system's linker (not GNU ld)
10254     case $host_os in
10255     aix3*)
10256       allow_undefined_flag=unsupported
10257       always_export_symbols=yes
10258       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'
10259       # Note: this linker hardcodes the directories in LIBPATH if there
10260       # are no directories specified by -L.
10261       hardcode_minus_L=yes
10262       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10263         # Neither direct hardcoding nor static linking is supported with a
10264         # broken collect2.
10265         hardcode_direct=unsupported
10266       fi
10267       ;;
10268
10269     aix[4-9]*)
10270       if test "$host_cpu" = ia64; then
10271         # On IA64, the linker does run time linking by default, so we don't
10272         # have to do anything special.
10273         aix_use_runtimelinking=no
10274         exp_sym_flag='-Bexport'
10275         no_entry_flag=""
10276       else
10277         # If we're using GNU nm, then we don't want the "-C" option.
10278         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10279         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10280           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'
10281         else
10282           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'
10283         fi
10284         aix_use_runtimelinking=no
10285
10286         # Test if we are trying to use run time linking or normal
10287         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10288         # need to do runtime linking.
10289         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10290           for ld_flag in $LDFLAGS; do
10291           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10292             aix_use_runtimelinking=yes
10293             break
10294           fi
10295           done
10296           ;;
10297         esac
10298
10299         exp_sym_flag='-bexport'
10300         no_entry_flag='-bnoentry'
10301       fi
10302
10303       # When large executables or shared objects are built, AIX ld can
10304       # have problems creating the table of contents.  If linking a library
10305       # or program results in "error TOC overflow" add -mminimal-toc to
10306       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10307       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10308
10309       archive_cmds=''
10310       hardcode_direct=yes
10311       hardcode_direct_absolute=yes
10312       hardcode_libdir_separator=':'
10313       link_all_deplibs=yes
10314       file_list_spec='${wl}-f,'
10315
10316       if test "$GCC" = yes; then
10317         case $host_os in aix4.[012]|aix4.[012].*)
10318         # We only want to do this on AIX 4.2 and lower, the check
10319         # below for broken collect2 doesn't work under 4.3+
10320           collect2name=`${CC} -print-prog-name=collect2`
10321           if test -f "$collect2name" &&
10322            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10323           then
10324           # We have reworked collect2
10325           :
10326           else
10327           # We have old collect2
10328           hardcode_direct=unsupported
10329           # It fails to find uninstalled libraries when the uninstalled
10330           # path is not listed in the libpath.  Setting hardcode_minus_L
10331           # to unsupported forces relinking
10332           hardcode_minus_L=yes
10333           hardcode_libdir_flag_spec='-L$libdir'
10334           hardcode_libdir_separator=
10335           fi
10336           ;;
10337         esac
10338         shared_flag='-shared'
10339         if test "$aix_use_runtimelinking" = yes; then
10340           shared_flag="$shared_flag "'${wl}-G'
10341         fi
10342       else
10343         # not using gcc
10344         if test "$host_cpu" = ia64; then
10345         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10346         # chokes on -Wl,-G. The following line is correct:
10347           shared_flag='-G'
10348         else
10349           if test "$aix_use_runtimelinking" = yes; then
10350             shared_flag='${wl}-G'
10351           else
10352             shared_flag='${wl}-bM:SRE'
10353           fi
10354         fi
10355       fi
10356
10357       export_dynamic_flag_spec='${wl}-bexpall'
10358       # It seems that -bexpall does not export symbols beginning with
10359       # underscore (_), so it is better to generate a list of symbols to export.
10360       always_export_symbols=yes
10361       if test "$aix_use_runtimelinking" = yes; then
10362         # Warning - without using the other runtime loading flags (-brtl),
10363         # -berok will link without error, but may produce a broken library.
10364         allow_undefined_flag='-berok'
10365         # Determine the default libpath from the value encoded in an
10366         # empty executable.
10367         cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10373
10374 int
10375 main ()
10376 {
10377
10378   ;
10379   return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386   *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389   (eval "$ac_link") 2>conftest.er1
10390   ac_status=$?
10391   grep -v '^ *+' conftest.er1 >conftest.err
10392   rm -f conftest.er1
10393   cat conftest.err >&5
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); } && {
10396          test -z "$ac_c_werror_flag" ||
10397          test ! -s conftest.err
10398        } && test -s conftest$ac_exeext &&
10399        $as_test_x conftest$ac_exeext; then
10400
10401 lt_aix_libpath_sed='
10402     /Import File Strings/,/^$/ {
10403         /^0/ {
10404             s/^0  *\(.*\)$/\1/
10405             p
10406         }
10407     }'
10408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10409 # Check for a 64-bit object if we didn't find anything.
10410 if test -z "$aix_libpath"; then
10411   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10412 fi
10413 else
10414   echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417
10418 fi
10419
10420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421       conftest$ac_exeext conftest.$ac_ext
10422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10423
10424         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10425         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"
10426       else
10427         if test "$host_cpu" = ia64; then
10428           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10429           allow_undefined_flag="-z nodefs"
10430           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"
10431         else
10432          # Determine the default libpath from the value encoded in an
10433          # empty executable.
10434          cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h.  */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h.  */
10440
10441 int
10442 main ()
10443 {
10444
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_link") 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } && {
10463          test -z "$ac_c_werror_flag" ||
10464          test ! -s conftest.err
10465        } && test -s conftest$ac_exeext &&
10466        $as_test_x conftest$ac_exeext; then
10467
10468 lt_aix_libpath_sed='
10469     /Import File Strings/,/^$/ {
10470         /^0/ {
10471             s/^0  *\(.*\)$/\1/
10472             p
10473         }
10474     }'
10475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10476 # Check for a 64-bit object if we didn't find anything.
10477 if test -z "$aix_libpath"; then
10478   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 fi
10480 else
10481   echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10483
10484
10485 fi
10486
10487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10488       conftest$ac_exeext conftest.$ac_ext
10489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10490
10491          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10492           # Warning - without using the other run time loading flags,
10493           # -berok will link without error, but may produce a broken library.
10494           no_undefined_flag=' ${wl}-bernotok'
10495           allow_undefined_flag=' ${wl}-berok'
10496           # Exported symbols can be pulled into shared objects from archives
10497           whole_archive_flag_spec='$convenience'
10498           archive_cmds_need_lc=yes
10499           # This is similar to how AIX traditionally builds its shared libraries.
10500           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'
10501         fi
10502       fi
10503       ;;
10504
10505     amigaos*)
10506       case $host_cpu in
10507       powerpc)
10508             # see comment about AmigaOS4 .so support
10509             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10510             archive_expsym_cmds=''
10511         ;;
10512       m68k)
10513             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)'
10514             hardcode_libdir_flag_spec='-L$libdir'
10515             hardcode_minus_L=yes
10516         ;;
10517       esac
10518       ;;
10519
10520     bsdi[45]*)
10521       export_dynamic_flag_spec=-rdynamic
10522       ;;
10523
10524     cygwin* | mingw* | pw32* | cegcc*)
10525       # When not using gcc, we currently assume that we are using
10526       # Microsoft Visual C++.
10527       # hardcode_libdir_flag_spec is actually meaningless, as there is
10528       # no search path for DLLs.
10529       hardcode_libdir_flag_spec=' '
10530       allow_undefined_flag=unsupported
10531       # Tell ltmain to make .lib files, not .a files.
10532       libext=lib
10533       # Tell ltmain to make .dll files, not .so files.
10534       shrext_cmds=".dll"
10535       # FIXME: Setting linknames here is a bad hack.
10536       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10537       # The linker will automatically build a .lib file if we build a DLL.
10538       old_archive_from_new_cmds='true'
10539       # FIXME: Should let the user specify the lib program.
10540       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10541       fix_srcfile_path='`cygpath -w "$srcfile"`'
10542       enable_shared_with_static_runtimes=yes
10543       ;;
10544
10545     darwin* | rhapsody*)
10546
10547
10548   archive_cmds_need_lc=no
10549   hardcode_direct=no
10550   hardcode_automatic=yes
10551   hardcode_shlibpath_var=unsupported
10552   whole_archive_flag_spec=''
10553   link_all_deplibs=yes
10554   allow_undefined_flag="$_lt_dar_allow_undefined"
10555   case $cc_basename in
10556      ifort*) _lt_dar_can_shared=yes ;;
10557      *) _lt_dar_can_shared=$GCC ;;
10558   esac
10559   if test "$_lt_dar_can_shared" = "yes"; then
10560     output_verbose_link_cmd=echo
10561     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10562     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10563     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}"
10564     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}"
10565
10566   else
10567   ld_shlibs=no
10568   fi
10569
10570       ;;
10571
10572     dgux*)
10573       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574       hardcode_libdir_flag_spec='-L$libdir'
10575       hardcode_shlibpath_var=no
10576       ;;
10577
10578     freebsd1*)
10579       ld_shlibs=no
10580       ;;
10581
10582     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10583     # support.  Future versions do this automatically, but an explicit c++rt0.o
10584     # does not break anything, and helps significantly (at the cost of a little
10585     # extra space).
10586     freebsd2.2*)
10587       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10588       hardcode_libdir_flag_spec='-R$libdir'
10589       hardcode_direct=yes
10590       hardcode_shlibpath_var=no
10591       ;;
10592
10593     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10594     freebsd2*)
10595       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10596       hardcode_direct=yes
10597       hardcode_minus_L=yes
10598       hardcode_shlibpath_var=no
10599       ;;
10600
10601     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10602     freebsd* | dragonfly*)
10603       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10604       hardcode_libdir_flag_spec='-R$libdir'
10605       hardcode_direct=yes
10606       hardcode_shlibpath_var=no
10607       ;;
10608
10609     hpux9*)
10610       if test "$GCC" = yes; then
10611         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'
10612       else
10613         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'
10614       fi
10615       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10616       hardcode_libdir_separator=:
10617       hardcode_direct=yes
10618
10619       # hardcode_minus_L: Not really in the search PATH,
10620       # but as the default location of the library.
10621       hardcode_minus_L=yes
10622       export_dynamic_flag_spec='${wl}-E'
10623       ;;
10624
10625     hpux10*)
10626       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10627         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10628       else
10629         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10630       fi
10631       if test "$with_gnu_ld" = no; then
10632         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10633         hardcode_libdir_flag_spec_ld='+b $libdir'
10634         hardcode_libdir_separator=:
10635         hardcode_direct=yes
10636         hardcode_direct_absolute=yes
10637         export_dynamic_flag_spec='${wl}-E'
10638         # hardcode_minus_L: Not really in the search PATH,
10639         # but as the default location of the library.
10640         hardcode_minus_L=yes
10641       fi
10642       ;;
10643
10644     hpux11*)
10645       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10646         case $host_cpu in
10647         hppa*64*)
10648           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10649           ;;
10650         ia64*)
10651           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10652           ;;
10653         *)
10654           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10655           ;;
10656         esac
10657       else
10658         case $host_cpu in
10659         hppa*64*)
10660           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10661           ;;
10662         ia64*)
10663           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10664           ;;
10665         *)
10666           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10667           ;;
10668         esac
10669       fi
10670       if test "$with_gnu_ld" = no; then
10671         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10672         hardcode_libdir_separator=:
10673
10674         case $host_cpu in
10675         hppa*64*|ia64*)
10676           hardcode_direct=no
10677           hardcode_shlibpath_var=no
10678           ;;
10679         *)
10680           hardcode_direct=yes
10681           hardcode_direct_absolute=yes
10682           export_dynamic_flag_spec='${wl}-E'
10683
10684           # hardcode_minus_L: Not really in the search PATH,
10685           # but as the default location of the library.
10686           hardcode_minus_L=yes
10687           ;;
10688         esac
10689       fi
10690       ;;
10691
10692     irix5* | irix6* | nonstopux*)
10693       if test "$GCC" = yes; then
10694         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'
10695         # Try to use the -exported_symbol ld option, if it does not
10696         # work, assume that -exports_file does not work either and
10697         # implicitly export all symbols.
10698         save_LDFLAGS="$LDFLAGS"
10699         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10700         cat >conftest.$ac_ext <<_ACEOF
10701 int foo(void) {}
10702 _ACEOF
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (ac_try="$ac_link"
10705 case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710   (eval "$ac_link") 2>conftest.er1
10711   ac_status=$?
10712   grep -v '^ *+' conftest.er1 >conftest.err
10713   rm -f conftest.er1
10714   cat conftest.err >&5
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } && {
10717          test -z "$ac_c_werror_flag" ||
10718          test ! -s conftest.err
10719        } && test -s conftest$ac_exeext &&
10720        $as_test_x conftest$ac_exeext; then
10721   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'
10722
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731       conftest$ac_exeext conftest.$ac_ext
10732         LDFLAGS="$save_LDFLAGS"
10733       else
10734         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'
10735         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'
10736       fi
10737       archive_cmds_need_lc='no'
10738       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10739       hardcode_libdir_separator=:
10740       inherit_rpath=yes
10741       link_all_deplibs=yes
10742       ;;
10743
10744     netbsd*)
10745       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10746         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10747       else
10748         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10749       fi
10750       hardcode_libdir_flag_spec='-R$libdir'
10751       hardcode_direct=yes
10752       hardcode_shlibpath_var=no
10753       ;;
10754
10755     newsos6)
10756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757       hardcode_direct=yes
10758       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10759       hardcode_libdir_separator=:
10760       hardcode_shlibpath_var=no
10761       ;;
10762
10763     *nto* | *qnx*)
10764       ;;
10765
10766     openbsd*)
10767       if test -f /usr/libexec/ld.so; then
10768         hardcode_direct=yes
10769         hardcode_shlibpath_var=no
10770         hardcode_direct_absolute=yes
10771         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10772           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10773           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10774           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10775           export_dynamic_flag_spec='${wl}-E'
10776         else
10777           case $host_os in
10778            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10779              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10780              hardcode_libdir_flag_spec='-R$libdir'
10781              ;;
10782            *)
10783              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10784              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10785              ;;
10786           esac
10787         fi
10788       else
10789         ld_shlibs=no
10790       fi
10791       ;;
10792
10793     os2*)
10794       hardcode_libdir_flag_spec='-L$libdir'
10795       hardcode_minus_L=yes
10796       allow_undefined_flag=unsupported
10797       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'
10798       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10799       ;;
10800
10801     osf3*)
10802       if test "$GCC" = yes; then
10803         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10804         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'
10805       else
10806         allow_undefined_flag=' -expect_unresolved \*'
10807         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'
10808       fi
10809       archive_cmds_need_lc='no'
10810       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811       hardcode_libdir_separator=:
10812       ;;
10813
10814     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10815       if test "$GCC" = yes; then
10816         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10817         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
10818         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10819       else
10820         allow_undefined_flag=' -expect_unresolved \*'
10821         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'
10822         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~
10823         $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'
10824
10825         # Both c and cxx compiler support -rpath directly
10826         hardcode_libdir_flag_spec='-rpath $libdir'
10827       fi
10828       archive_cmds_need_lc='no'
10829       hardcode_libdir_separator=:
10830       ;;
10831
10832     solaris*)
10833       no_undefined_flag=' -z defs'
10834       if test "$GCC" = yes; then
10835         wlarc='${wl}'
10836         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10837         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10839       else
10840         case `$CC -V 2>&1` in
10841         *"Compilers 5.0"*)
10842           wlarc=''
10843           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10845           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10846           ;;
10847         *)
10848           wlarc='${wl}'
10849           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10850           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10851           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10852           ;;
10853         esac
10854       fi
10855       hardcode_libdir_flag_spec='-R$libdir'
10856       hardcode_shlibpath_var=no
10857       case $host_os in
10858       solaris2.[0-5] | solaris2.[0-5].*) ;;
10859       *)
10860         # The compiler driver will combine and reorder linker options,
10861         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10862         # but is careful enough not to reorder.
10863         # Supported since Solaris 2.6 (maybe 2.5.1?)
10864         if test "$GCC" = yes; then
10865           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10866         else
10867           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10868         fi
10869         ;;
10870       esac
10871       link_all_deplibs=yes
10872       ;;
10873
10874     sunos4*)
10875       if test "x$host_vendor" = xsequent; then
10876         # Use $CC to link under sequent, because it throws in some extra .o
10877         # files that make .init and .fini sections work.
10878         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10879       else
10880         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10881       fi
10882       hardcode_libdir_flag_spec='-L$libdir'
10883       hardcode_direct=yes
10884       hardcode_minus_L=yes
10885       hardcode_shlibpath_var=no
10886       ;;
10887
10888     sysv4)
10889       case $host_vendor in
10890         sni)
10891           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892           hardcode_direct=yes # is this really true???
10893         ;;
10894         siemens)
10895           ## LD is ld it makes a PLAMLIB
10896           ## CC just makes a GrossModule.
10897           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10898           reload_cmds='$CC -r -o $output$reload_objs'
10899           hardcode_direct=no
10900         ;;
10901         motorola)
10902           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10904         ;;
10905       esac
10906       runpath_var='LD_RUN_PATH'
10907       hardcode_shlibpath_var=no
10908       ;;
10909
10910     sysv4.3*)
10911       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912       hardcode_shlibpath_var=no
10913       export_dynamic_flag_spec='-Bexport'
10914       ;;
10915
10916     sysv4*MP*)
10917       if test -d /usr/nec; then
10918         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919         hardcode_shlibpath_var=no
10920         runpath_var=LD_RUN_PATH
10921         hardcode_runpath_var=yes
10922         ld_shlibs=yes
10923       fi
10924       ;;
10925
10926     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10927       no_undefined_flag='${wl}-z,text'
10928       archive_cmds_need_lc=no
10929       hardcode_shlibpath_var=no
10930       runpath_var='LD_RUN_PATH'
10931
10932       if test "$GCC" = yes; then
10933         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935       else
10936         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938       fi
10939       ;;
10940
10941     sysv5* | sco3.2v5* | sco5v6*)
10942       # Note: We can NOT use -z defs as we might desire, because we do not
10943       # link with -lc, and that would cause any symbols used from libc to
10944       # always be unresolved, which means just about no library would
10945       # ever link correctly.  If we're not using GNU ld we use -z text
10946       # though, which does catch some bad symbols but isn't as heavy-handed
10947       # as -z defs.
10948       no_undefined_flag='${wl}-z,text'
10949       allow_undefined_flag='${wl}-z,nodefs'
10950       archive_cmds_need_lc=no
10951       hardcode_shlibpath_var=no
10952       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10953       hardcode_libdir_separator=':'
10954       link_all_deplibs=yes
10955       export_dynamic_flag_spec='${wl}-Bexport'
10956       runpath_var='LD_RUN_PATH'
10957
10958       if test "$GCC" = yes; then
10959         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961       else
10962         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964       fi
10965       ;;
10966
10967     uts4*)
10968       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969       hardcode_libdir_flag_spec='-L$libdir'
10970       hardcode_shlibpath_var=no
10971       ;;
10972
10973     *)
10974       ld_shlibs=no
10975       ;;
10976     esac
10977
10978     if test x$host_vendor = xsni; then
10979       case $host in
10980       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10981         export_dynamic_flag_spec='${wl}-Blargedynsym'
10982         ;;
10983       esac
10984     fi
10985   fi
10986
10987 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10988 echo "${ECHO_T}$ld_shlibs" >&6; }
10989 test "$ld_shlibs" = no && can_build_shared=no
10990
10991 with_gnu_ld=$with_gnu_ld
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007 #
11008 # Do we need to explicitly link libc?
11009 #
11010 case "x$archive_cmds_need_lc" in
11011 x|xyes)
11012   # Assume -lc should be added
11013   archive_cmds_need_lc=yes
11014
11015   if test "$enable_shared" = yes && test "$GCC" = yes; then
11016     case $archive_cmds in
11017     *'~'*)
11018       # FIXME: we may have to deal with multi-command sequences.
11019       ;;
11020     '$CC '*)
11021       # Test whether the compiler implicitly links with -lc since on some
11022       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11023       # to ld, don't add -lc before -lgcc.
11024       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11025 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11026       $RM conftest*
11027       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11028
11029       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030   (eval $ac_compile) 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); } 2>conftest.err; then
11034         soname=conftest
11035         lib=conftest
11036         libobjs=conftest.$ac_objext
11037         deplibs=
11038         wl=$lt_prog_compiler_wl
11039         pic_flag=$lt_prog_compiler_pic
11040         compiler_flags=-v
11041         linker_flags=-v
11042         verstring=
11043         output_objdir=.
11044         libname=conftest
11045         lt_save_allow_undefined_flag=$allow_undefined_flag
11046         allow_undefined_flag=
11047         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11048   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }
11052         then
11053           archive_cmds_need_lc=no
11054         else
11055           archive_cmds_need_lc=yes
11056         fi
11057         allow_undefined_flag=$lt_save_allow_undefined_flag
11058       else
11059         cat conftest.err 1>&5
11060       fi
11061       $RM conftest*
11062       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11063 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11064       ;;
11065     esac
11066   fi
11067   ;;
11068 esac
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11227 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11228
11229 if test "$GCC" = yes; then
11230   case $host_os in
11231     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11232     *) lt_awk_arg="/^libraries:/" ;;
11233   esac
11234   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11235   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11236     # if the path contains ";" then we assume it to be the separator
11237     # otherwise default to the standard path separator (i.e. ":") - it is
11238     # assumed that no part of a normal pathname contains ";" but that should
11239     # okay in the real world where ";" in dirpaths is itself problematic.
11240     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11241   else
11242     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11243   fi
11244   # Ok, now we have the path, separated by spaces, we can step through it
11245   # and add multilib dir if necessary.
11246   lt_tmp_lt_search_path_spec=
11247   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11248   for lt_sys_path in $lt_search_path_spec; do
11249     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11250       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11251     else
11252       test -d "$lt_sys_path" && \
11253         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11254     fi
11255   done
11256   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11257 BEGIN {RS=" "; FS="/|\n";} {
11258   lt_foo="";
11259   lt_count=0;
11260   for (lt_i = NF; lt_i > 0; lt_i--) {
11261     if ($lt_i != "" && $lt_i != ".") {
11262       if ($lt_i == "..") {
11263         lt_count++;
11264       } else {
11265         if (lt_count == 0) {
11266           lt_foo="/" $lt_i lt_foo;
11267         } else {
11268           lt_count--;
11269         }
11270       }
11271     }
11272   }
11273   if (lt_foo != "") { lt_freq[lt_foo]++; }
11274   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11275 }'`
11276   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11277 else
11278   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11279 fi
11280 library_names_spec=
11281 libname_spec='lib$name'
11282 soname_spec=
11283 shrext_cmds=".so"
11284 postinstall_cmds=
11285 postuninstall_cmds=
11286 finish_cmds=
11287 finish_eval=
11288 shlibpath_var=
11289 shlibpath_overrides_runpath=unknown
11290 version_type=none
11291 dynamic_linker="$host_os ld.so"
11292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11293 need_lib_prefix=unknown
11294 hardcode_into_libs=no
11295
11296 # when you set need_version to no, make sure it does not cause -set_version
11297 # flags to be left without arguments
11298 need_version=unknown
11299
11300 case $host_os in
11301 aix3*)
11302   version_type=linux
11303   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11304   shlibpath_var=LIBPATH
11305
11306   # AIX 3 has no versioning support, so we append a major version to the name.
11307   soname_spec='${libname}${release}${shared_ext}$major'
11308   ;;
11309
11310 aix[4-9]*)
11311   version_type=linux
11312   need_lib_prefix=no
11313   need_version=no
11314   hardcode_into_libs=yes
11315   if test "$host_cpu" = ia64; then
11316     # AIX 5 supports IA64
11317     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11318     shlibpath_var=LD_LIBRARY_PATH
11319   else
11320     # With GCC up to 2.95.x, collect2 would create an import file
11321     # for dependence libraries.  The import file would start with
11322     # the line `#! .'.  This would cause the generated library to
11323     # depend on `.', always an invalid library.  This was fixed in
11324     # development snapshots of GCC prior to 3.0.
11325     case $host_os in
11326       aix4 | aix4.[01] | aix4.[01].*)
11327       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11328            echo ' yes '
11329            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11330         :
11331       else
11332         can_build_shared=no
11333       fi
11334       ;;
11335     esac
11336     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11337     # soname into executable. Probably we can add versioning support to
11338     # collect2, so additional links can be useful in future.
11339     if test "$aix_use_runtimelinking" = yes; then
11340       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11341       # instead of lib<name>.a to let people know that these are not
11342       # typical AIX shared libraries.
11343       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344     else
11345       # We preserve .a as extension for shared libraries through AIX4.2
11346       # and later when we are not doing run time linking.
11347       library_names_spec='${libname}${release}.a $libname.a'
11348       soname_spec='${libname}${release}${shared_ext}$major'
11349     fi
11350     shlibpath_var=LIBPATH
11351   fi
11352   ;;
11353
11354 amigaos*)
11355   case $host_cpu in
11356   powerpc)
11357     # Since July 2007 AmigaOS4 officially supports .so libraries.
11358     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360     ;;
11361   m68k)
11362     library_names_spec='$libname.ixlibrary $libname.a'
11363     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11364     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'
11365     ;;
11366   esac
11367   ;;
11368
11369 beos*)
11370   library_names_spec='${libname}${shared_ext}'
11371   dynamic_linker="$host_os ld.so"
11372   shlibpath_var=LIBRARY_PATH
11373   ;;
11374
11375 bsdi[45]*)
11376   version_type=linux
11377   need_version=no
11378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379   soname_spec='${libname}${release}${shared_ext}$major'
11380   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11381   shlibpath_var=LD_LIBRARY_PATH
11382   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11383   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11384   # the default ld.so.conf also contains /usr/contrib/lib and
11385   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11386   # libtool to hard-code these into programs
11387   ;;
11388
11389 cygwin* | mingw* | pw32* | cegcc*)
11390   version_type=windows
11391   shrext_cmds=".dll"
11392   need_version=no
11393   need_lib_prefix=no
11394
11395   case $GCC,$host_os in
11396   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11397     library_names_spec='$libname.dll.a'
11398     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11399     postinstall_cmds='base_file=`basename \${file}`~
11400       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11401       dldir=$destdir/`dirname \$dlpath`~
11402       test -d \$dldir || mkdir -p \$dldir~
11403       $install_prog $dir/$dlname \$dldir/$dlname~
11404       chmod a+x \$dldir/$dlname~
11405       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11406         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11407       fi'
11408     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409       dlpath=$dir/\$dldll~
11410        $RM \$dlpath'
11411     shlibpath_overrides_runpath=yes
11412
11413     case $host_os in
11414     cygwin*)
11415       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11418       ;;
11419     mingw* | cegcc*)
11420       # MinGW DLLs use traditional 'lib' prefix
11421       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11423       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11424         # It is most probably a Windows format PATH printed by
11425         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11426         # path with ; separators, and with drive letters. We can handle the
11427         # drive letters (cygwin fileutils understands them), so leave them,
11428         # especially as we might pass files found there to a mingw objdump,
11429         # which wouldn't understand a cygwinified path. Ahh.
11430         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11431       else
11432         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11433       fi
11434       ;;
11435     pw32*)
11436       # pw32 DLLs use 'pw' prefix rather than 'lib'
11437       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11438       ;;
11439     esac
11440     ;;
11441
11442   *)
11443     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11444     ;;
11445   esac
11446   dynamic_linker='Win32 ld.exe'
11447   # FIXME: first we should search . and the directory the executable is in
11448   shlibpath_var=PATH
11449   ;;
11450
11451 darwin* | rhapsody*)
11452   dynamic_linker="$host_os dyld"
11453   version_type=darwin
11454   need_lib_prefix=no
11455   need_version=no
11456   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11457   soname_spec='${libname}${release}${major}$shared_ext'
11458   shlibpath_overrides_runpath=yes
11459   shlibpath_var=DYLD_LIBRARY_PATH
11460   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11461
11462   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11463   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11464   ;;
11465
11466 dgux*)
11467   version_type=linux
11468   need_lib_prefix=no
11469   need_version=no
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   ;;
11474
11475 freebsd1*)
11476   dynamic_linker=no
11477   ;;
11478
11479 freebsd* | dragonfly*)
11480   # DragonFly does not have aout.  When/if they implement a new
11481   # versioning mechanism, adjust this.
11482   if test -x /usr/bin/objformat; then
11483     objformat=`/usr/bin/objformat`
11484   else
11485     case $host_os in
11486     freebsd[123]*) objformat=aout ;;
11487     *) objformat=elf ;;
11488     esac
11489   fi
11490   version_type=freebsd-$objformat
11491   case $version_type in
11492     freebsd-elf*)
11493       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11494       need_version=no
11495       need_lib_prefix=no
11496       ;;
11497     freebsd-*)
11498       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11499       need_version=yes
11500       ;;
11501   esac
11502   shlibpath_var=LD_LIBRARY_PATH
11503   case $host_os in
11504   freebsd2*)
11505     shlibpath_overrides_runpath=yes
11506     ;;
11507   freebsd3.[01]* | freebsdelf3.[01]*)
11508     shlibpath_overrides_runpath=yes
11509     hardcode_into_libs=yes
11510     ;;
11511   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11512   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11513     shlibpath_overrides_runpath=no
11514     hardcode_into_libs=yes
11515     ;;
11516   *) # from 4.6 on, and DragonFly
11517     shlibpath_overrides_runpath=yes
11518     hardcode_into_libs=yes
11519     ;;
11520   esac
11521   ;;
11522
11523 gnu*)
11524   version_type=linux
11525   need_lib_prefix=no
11526   need_version=no
11527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11528   soname_spec='${libname}${release}${shared_ext}$major'
11529   shlibpath_var=LD_LIBRARY_PATH
11530   hardcode_into_libs=yes
11531   ;;
11532
11533 hpux9* | hpux10* | hpux11*)
11534   # Give a soname corresponding to the major version so that dld.sl refuses to
11535   # link against other versions.
11536   version_type=sunos
11537   need_lib_prefix=no
11538   need_version=no
11539   case $host_cpu in
11540   ia64*)
11541     shrext_cmds='.so'
11542     hardcode_into_libs=yes
11543     dynamic_linker="$host_os dld.so"
11544     shlibpath_var=LD_LIBRARY_PATH
11545     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547     soname_spec='${libname}${release}${shared_ext}$major'
11548     if test "X$HPUX_IA64_MODE" = X32; then
11549       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11550     else
11551       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11552     fi
11553     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11554     ;;
11555   hppa*64*)
11556     shrext_cmds='.sl'
11557     hardcode_into_libs=yes
11558     dynamic_linker="$host_os dld.sl"
11559     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11560     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562     soname_spec='${libname}${release}${shared_ext}$major'
11563     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11565     ;;
11566   *)
11567     shrext_cmds='.sl'
11568     dynamic_linker="$host_os dld.sl"
11569     shlibpath_var=SHLIB_PATH
11570     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572     soname_spec='${libname}${release}${shared_ext}$major'
11573     ;;
11574   esac
11575   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11576   postinstall_cmds='chmod 555 $lib'
11577   ;;
11578
11579 interix[3-9]*)
11580   version_type=linux
11581   need_lib_prefix=no
11582   need_version=no
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11584   soname_spec='${libname}${release}${shared_ext}$major'
11585   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11586   shlibpath_var=LD_LIBRARY_PATH
11587   shlibpath_overrides_runpath=no
11588   hardcode_into_libs=yes
11589   ;;
11590
11591 irix5* | irix6* | nonstopux*)
11592   case $host_os in
11593     nonstopux*) version_type=nonstopux ;;
11594     *)
11595         if test "$lt_cv_prog_gnu_ld" = yes; then
11596                 version_type=linux
11597         else
11598                 version_type=irix
11599         fi ;;
11600   esac
11601   need_lib_prefix=no
11602   need_version=no
11603   soname_spec='${libname}${release}${shared_ext}$major'
11604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11605   case $host_os in
11606   irix5* | nonstopux*)
11607     libsuff= shlibsuff=
11608     ;;
11609   *)
11610     case $LD in # libtool.m4 will add one of these switches to LD
11611     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11612       libsuff= shlibsuff= libmagic=32-bit;;
11613     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11614       libsuff=32 shlibsuff=N32 libmagic=N32;;
11615     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11616       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11617     *) libsuff= shlibsuff= libmagic=never-match;;
11618     esac
11619     ;;
11620   esac
11621   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11622   shlibpath_overrides_runpath=no
11623   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11624   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11625   hardcode_into_libs=yes
11626   ;;
11627
11628 # No shared lib support for Linux oldld, aout, or coff.
11629 linux*oldld* | linux*aout* | linux*coff*)
11630   dynamic_linker=no
11631   ;;
11632
11633 # This must be Linux ELF.
11634 linux* | k*bsd*-gnu)
11635   version_type=linux
11636   need_lib_prefix=no
11637   need_version=no
11638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639   soname_spec='${libname}${release}${shared_ext}$major'
11640   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11641   shlibpath_var=LD_LIBRARY_PATH
11642   shlibpath_overrides_runpath=no
11643   # Some binutils ld are patched to set DT_RUNPATH
11644   save_LDFLAGS=$LDFLAGS
11645   save_libdir=$libdir
11646   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11647        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11648   cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654
11655 int
11656 main ()
11657 {
11658
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_link") 2>conftest.er1
11671   ac_status=$?
11672   grep -v '^ *+' conftest.er1 >conftest.err
11673   rm -f conftest.er1
11674   cat conftest.err >&5
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } && {
11677          test -z "$ac_c_werror_flag" ||
11678          test ! -s conftest.err
11679        } && test -s conftest$ac_exeext &&
11680        $as_test_x conftest$ac_exeext; then
11681   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11682   shlibpath_overrides_runpath=yes
11683 fi
11684
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689
11690 fi
11691
11692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11693       conftest$ac_exeext conftest.$ac_ext
11694   LDFLAGS=$save_LDFLAGS
11695   libdir=$save_libdir
11696
11697   # This implies no fast_install, which is unacceptable.
11698   # Some rework will be needed to allow for fast_install
11699   # before this can be enabled.
11700   hardcode_into_libs=yes
11701
11702   # Append ld.so.conf contents to the search path
11703   if test -f /etc/ld.so.conf; then
11704     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' ' '`
11705     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11706   fi
11707
11708   # We used to test for /lib/ld.so.1 and disable shared libraries on
11709   # powerpc, because MkLinux only supported shared libraries with the
11710   # GNU dynamic linker.  Since this was broken with cross compilers,
11711   # most powerpc-linux boxes support dynamic linking these days and
11712   # people can always --disable-shared, the test was removed, and we
11713   # assume the GNU/Linux dynamic linker is in use.
11714   dynamic_linker='GNU/Linux ld.so'
11715   ;;
11716
11717 netbsd*)
11718   version_type=sunos
11719   need_lib_prefix=no
11720   need_version=no
11721   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11723     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11724     dynamic_linker='NetBSD (a.out) ld.so'
11725   else
11726     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11727     soname_spec='${libname}${release}${shared_ext}$major'
11728     dynamic_linker='NetBSD ld.elf_so'
11729   fi
11730   shlibpath_var=LD_LIBRARY_PATH
11731   shlibpath_overrides_runpath=yes
11732   hardcode_into_libs=yes
11733   ;;
11734
11735 newsos6)
11736   version_type=linux
11737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738   shlibpath_var=LD_LIBRARY_PATH
11739   shlibpath_overrides_runpath=yes
11740   ;;
11741
11742 *nto* | *qnx*)
11743   version_type=qnx
11744   need_lib_prefix=no
11745   need_version=no
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747   soname_spec='${libname}${release}${shared_ext}$major'
11748   shlibpath_var=LD_LIBRARY_PATH
11749   shlibpath_overrides_runpath=no
11750   hardcode_into_libs=yes
11751   dynamic_linker='ldqnx.so'
11752   ;;
11753
11754 openbsd*)
11755   version_type=sunos
11756   sys_lib_dlsearch_path_spec="/usr/lib"
11757   need_lib_prefix=no
11758   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11759   case $host_os in
11760     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11761     *)                          need_version=no  ;;
11762   esac
11763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765   shlibpath_var=LD_LIBRARY_PATH
11766   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11767     case $host_os in
11768       openbsd2.[89] | openbsd2.[89].*)
11769         shlibpath_overrides_runpath=no
11770         ;;
11771       *)
11772         shlibpath_overrides_runpath=yes
11773         ;;
11774       esac
11775   else
11776     shlibpath_overrides_runpath=yes
11777   fi
11778   ;;
11779
11780 os2*)
11781   libname_spec='$name'
11782   shrext_cmds=".dll"
11783   need_lib_prefix=no
11784   library_names_spec='$libname${shared_ext} $libname.a'
11785   dynamic_linker='OS/2 ld.exe'
11786   shlibpath_var=LIBPATH
11787   ;;
11788
11789 osf3* | osf4* | osf5*)
11790   version_type=osf
11791   need_lib_prefix=no
11792   need_version=no
11793   soname_spec='${libname}${release}${shared_ext}$major'
11794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795   shlibpath_var=LD_LIBRARY_PATH
11796   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11797   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11798   ;;
11799
11800 rdos*)
11801   dynamic_linker=no
11802   ;;
11803
11804 solaris*)
11805   version_type=linux
11806   need_lib_prefix=no
11807   need_version=no
11808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809   soname_spec='${libname}${release}${shared_ext}$major'
11810   shlibpath_var=LD_LIBRARY_PATH
11811   shlibpath_overrides_runpath=yes
11812   hardcode_into_libs=yes
11813   # ldd complains unless libraries are executable
11814   postinstall_cmds='chmod +x $lib'
11815   ;;
11816
11817 sunos4*)
11818   version_type=sunos
11819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11820   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11821   shlibpath_var=LD_LIBRARY_PATH
11822   shlibpath_overrides_runpath=yes
11823   if test "$with_gnu_ld" = yes; then
11824     need_lib_prefix=no
11825   fi
11826   need_version=yes
11827   ;;
11828
11829 sysv4 | sysv4.3*)
11830   version_type=linux
11831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832   soname_spec='${libname}${release}${shared_ext}$major'
11833   shlibpath_var=LD_LIBRARY_PATH
11834   case $host_vendor in
11835     sni)
11836       shlibpath_overrides_runpath=no
11837       need_lib_prefix=no
11838       runpath_var=LD_RUN_PATH
11839       ;;
11840     siemens)
11841       need_lib_prefix=no
11842       ;;
11843     motorola)
11844       need_lib_prefix=no
11845       need_version=no
11846       shlibpath_overrides_runpath=no
11847       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11848       ;;
11849   esac
11850   ;;
11851
11852 sysv4*MP*)
11853   if test -d /usr/nec ;then
11854     version_type=linux
11855     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11856     soname_spec='$libname${shared_ext}.$major'
11857     shlibpath_var=LD_LIBRARY_PATH
11858   fi
11859   ;;
11860
11861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11862   version_type=freebsd-elf
11863   need_lib_prefix=no
11864   need_version=no
11865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11866   soname_spec='${libname}${release}${shared_ext}$major'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   shlibpath_overrides_runpath=yes
11869   hardcode_into_libs=yes
11870   if test "$with_gnu_ld" = yes; then
11871     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11872   else
11873     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11874     case $host_os in
11875       sco3.2v5*)
11876         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11877         ;;
11878     esac
11879   fi
11880   sys_lib_dlsearch_path_spec='/usr/lib'
11881   ;;
11882
11883 tpf*)
11884   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11885   version_type=linux
11886   need_lib_prefix=no
11887   need_version=no
11888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11889   shlibpath_var=LD_LIBRARY_PATH
11890   shlibpath_overrides_runpath=no
11891   hardcode_into_libs=yes
11892   ;;
11893
11894 uts4*)
11895   version_type=linux
11896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11897   soname_spec='${libname}${release}${shared_ext}$major'
11898   shlibpath_var=LD_LIBRARY_PATH
11899   ;;
11900
11901 *)
11902   dynamic_linker=no
11903   ;;
11904 esac
11905 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11906 echo "${ECHO_T}$dynamic_linker" >&6; }
11907 test "$dynamic_linker" = no && can_build_shared=no
11908
11909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11910 if test "$GCC" = yes; then
11911   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11912 fi
11913
11914 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11915   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11916 fi
11917 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11918   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11919 fi
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12008 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12009 hardcode_action=
12010 if test -n "$hardcode_libdir_flag_spec" ||
12011    test -n "$runpath_var" ||
12012    test "X$hardcode_automatic" = "Xyes" ; then
12013
12014   # We can hardcode non-existent directories.
12015   if test "$hardcode_direct" != no &&
12016      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12017      # have to relink, otherwise we might link with an installed library
12018      # when we should be linking with a yet-to-be-installed one
12019      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12020      test "$hardcode_minus_L" != no; then
12021     # Linking always hardcodes the temporary library directory.
12022     hardcode_action=relink
12023   else
12024     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12025     hardcode_action=immediate
12026   fi
12027 else
12028   # We cannot hardcode anything, or else we can only hardcode existing
12029   # directories.
12030   hardcode_action=unsupported
12031 fi
12032 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12033 echo "${ECHO_T}$hardcode_action" >&6; }
12034
12035 if test "$hardcode_action" = relink ||
12036    test "$inherit_rpath" = yes; then
12037   # Fast installation is not supported
12038   enable_fast_install=no
12039 elif test "$shlibpath_overrides_runpath" = yes ||
12040      test "$enable_shared" = no; then
12041   # Fast installation is not necessary
12042   enable_fast_install=needless
12043 fi
12044
12045
12046
12047
12048
12049
12050   if test "x$enable_dlopen" != xyes; then
12051   enable_dlopen=unknown
12052   enable_dlopen_self=unknown
12053   enable_dlopen_self_static=unknown
12054 else
12055   lt_cv_dlopen=no
12056   lt_cv_dlopen_libs=
12057
12058   case $host_os in
12059   beos*)
12060     lt_cv_dlopen="load_add_on"
12061     lt_cv_dlopen_libs=
12062     lt_cv_dlopen_self=yes
12063     ;;
12064
12065   mingw* | pw32* | cegcc*)
12066     lt_cv_dlopen="LoadLibrary"
12067     lt_cv_dlopen_libs=
12068     ;;
12069
12070   cygwin*)
12071     lt_cv_dlopen="dlopen"
12072     lt_cv_dlopen_libs=
12073     ;;
12074
12075   darwin*)
12076   # if libdl is installed we need to link against it
12077     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12078 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-ldl  $LIBS"
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090
12091 /* Override any GCC internal prototype to avoid an error.
12092    Use char because int might match the return type of a GCC
12093    builtin and then its argument prototype would still apply.  */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 char dlopen ();
12098 int
12099 main ()
12100 {
12101 return dlopen ();
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_link") 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } && {
12120          test -z "$ac_c_werror_flag" ||
12121          test ! -s conftest.err
12122        } && test -s conftest$ac_exeext &&
12123        $as_test_x conftest$ac_exeext; then
12124   ac_cv_lib_dl_dlopen=yes
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129         ac_cv_lib_dl_dlopen=no
12130 fi
12131
12132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12133       conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12135 fi
12136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12137 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12138 if test $ac_cv_lib_dl_dlopen = yes; then
12139   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12140 else
12141
12142     lt_cv_dlopen="dyld"
12143     lt_cv_dlopen_libs=
12144     lt_cv_dlopen_self=yes
12145
12146 fi
12147
12148     ;;
12149
12150   *)
12151     { echo "$as_me:$LINENO: checking for shl_load" >&5
12152 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12153 if test "${ac_cv_func_shl_load+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12164 #define shl_load innocuous_shl_load
12165
12166 /* System header to define __stub macros and hopefully few prototypes,
12167     which can conflict with char shl_load (); below.
12168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169     <limits.h> exists even on freestanding compilers.  */
12170
12171 #ifdef __STDC__
12172 # include <limits.h>
12173 #else
12174 # include <assert.h>
12175 #endif
12176
12177 #undef shl_load
12178
12179 /* Override any GCC internal prototype to avoid an error.
12180    Use char because int might match the return type of a GCC
12181    builtin and then its argument prototype would still apply.  */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 char shl_load ();
12186 /* The GNU C library defines this for functions which it implements
12187     to always fail with ENOSYS.  Some functions are actually named
12188     something starting with __ and the normal name is an alias.  */
12189 #if defined __stub_shl_load || defined __stub___shl_load
12190 choke me
12191 #endif
12192
12193 int
12194 main ()
12195 {
12196 return shl_load ();
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208   (eval "$ac_link") 2>conftest.er1
12209   ac_status=$?
12210   grep -v '^ *+' conftest.er1 >conftest.err
12211   rm -f conftest.er1
12212   cat conftest.err >&5
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } && {
12215          test -z "$ac_c_werror_flag" ||
12216          test ! -s conftest.err
12217        } && test -s conftest$ac_exeext &&
12218        $as_test_x conftest$ac_exeext; then
12219   ac_cv_func_shl_load=yes
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224         ac_cv_func_shl_load=no
12225 fi
12226
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228       conftest$ac_exeext conftest.$ac_ext
12229 fi
12230 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12231 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12232 if test $ac_cv_func_shl_load = yes; then
12233   lt_cv_dlopen="shl_load"
12234 else
12235   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12236 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12237 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12238   echo $ECHO_N "(cached) $ECHO_C" >&6
12239 else
12240   ac_check_lib_save_LIBS=$LIBS
12241 LIBS="-ldld  $LIBS"
12242 cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h.  */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h.  */
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 int
12257 main ()
12258 {
12259 return shl_load ();
12260   ;
12261   return 0;
12262 }
12263 _ACEOF
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (ac_try="$ac_link"
12266 case "(($ac_try" in
12267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268   *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271   (eval "$ac_link") 2>conftest.er1
12272   ac_status=$?
12273   grep -v '^ *+' conftest.er1 >conftest.err
12274   rm -f conftest.er1
12275   cat conftest.err >&5
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } && {
12278          test -z "$ac_c_werror_flag" ||
12279          test ! -s conftest.err
12280        } && test -s conftest$ac_exeext &&
12281        $as_test_x conftest$ac_exeext; then
12282   ac_cv_lib_dld_shl_load=yes
12283 else
12284   echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287         ac_cv_lib_dld_shl_load=no
12288 fi
12289
12290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12291       conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12293 fi
12294 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12295 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12296 if test $ac_cv_lib_dld_shl_load = yes; then
12297   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12298 else
12299   { echo "$as_me:$LINENO: checking for dlopen" >&5
12300 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12301 if test "${ac_cv_func_dlopen+set}" = set; then
12302   echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304   cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h.  */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h.  */
12310 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12312 #define dlopen innocuous_dlopen
12313
12314 /* System header to define __stub macros and hopefully few prototypes,
12315     which can conflict with char dlopen (); below.
12316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317     <limits.h> exists even on freestanding compilers.  */
12318
12319 #ifdef __STDC__
12320 # include <limits.h>
12321 #else
12322 # include <assert.h>
12323 #endif
12324
12325 #undef dlopen
12326
12327 /* Override any GCC internal prototype to avoid an error.
12328    Use char because int might match the return type of a GCC
12329    builtin and then its argument prototype would still apply.  */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 char dlopen ();
12334 /* The GNU C library defines this for functions which it implements
12335     to always fail with ENOSYS.  Some functions are actually named
12336     something starting with __ and the normal name is an alias.  */
12337 #if defined __stub_dlopen || defined __stub___dlopen
12338 choke me
12339 #endif
12340
12341 int
12342 main ()
12343 {
12344 return dlopen ();
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (ac_try="$ac_link"
12351 case "(($ac_try" in
12352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353   *) ac_try_echo=$ac_try;;
12354 esac
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356   (eval "$ac_link") 2>conftest.er1
12357   ac_status=$?
12358   grep -v '^ *+' conftest.er1 >conftest.err
12359   rm -f conftest.er1
12360   cat conftest.err >&5
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } && {
12363          test -z "$ac_c_werror_flag" ||
12364          test ! -s conftest.err
12365        } && test -s conftest$ac_exeext &&
12366        $as_test_x conftest$ac_exeext; then
12367   ac_cv_func_dlopen=yes
12368 else
12369   echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372         ac_cv_func_dlopen=no
12373 fi
12374
12375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12376       conftest$ac_exeext conftest.$ac_ext
12377 fi
12378 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12379 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12380 if test $ac_cv_func_dlopen = yes; then
12381   lt_cv_dlopen="dlopen"
12382 else
12383   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12384 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12386   echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388   ac_check_lib_save_LIBS=$LIBS
12389 LIBS="-ldl  $LIBS"
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
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 int
12405 main ()
12406 {
12407 return dlopen ();
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (ac_try="$ac_link"
12414 case "(($ac_try" in
12415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416   *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419   (eval "$ac_link") 2>conftest.er1
12420   ac_status=$?
12421   grep -v '^ *+' conftest.er1 >conftest.err
12422   rm -f conftest.er1
12423   cat conftest.err >&5
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } && {
12426          test -z "$ac_c_werror_flag" ||
12427          test ! -s conftest.err
12428        } && test -s conftest$ac_exeext &&
12429        $as_test_x conftest$ac_exeext; then
12430   ac_cv_lib_dl_dlopen=yes
12431 else
12432   echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435         ac_cv_lib_dl_dlopen=no
12436 fi
12437
12438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12439       conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12441 fi
12442 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12443 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12444 if test $ac_cv_lib_dl_dlopen = yes; then
12445   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12446 else
12447   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12448 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12449 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12450   echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452   ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-lsvld  $LIBS"
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460
12461 /* Override any GCC internal prototype to avoid an error.
12462    Use char because int might match the return type of a GCC
12463    builtin and then its argument prototype would still apply.  */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 char dlopen ();
12468 int
12469 main ()
12470 {
12471 return dlopen ();
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480   *) ac_try_echo=$ac_try;;
12481 esac
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483   (eval "$ac_link") 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } && {
12490          test -z "$ac_c_werror_flag" ||
12491          test ! -s conftest.err
12492        } && test -s conftest$ac_exeext &&
12493        $as_test_x conftest$ac_exeext; then
12494   ac_cv_lib_svld_dlopen=yes
12495 else
12496   echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499         ac_cv_lib_svld_dlopen=no
12500 fi
12501
12502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12503       conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12505 fi
12506 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12507 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12508 if test $ac_cv_lib_svld_dlopen = yes; then
12509   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12510 else
12511   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12512 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12513 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12514   echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516   ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-ldld  $LIBS"
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524
12525 /* Override any GCC internal prototype to avoid an error.
12526    Use char because int might match the return type of a GCC
12527    builtin and then its argument prototype would still apply.  */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 char dld_link ();
12532 int
12533 main ()
12534 {
12535 return dld_link ();
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544   *) ac_try_echo=$ac_try;;
12545 esac
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547   (eval "$ac_link") 2>conftest.er1
12548   ac_status=$?
12549   grep -v '^ *+' conftest.er1 >conftest.err
12550   rm -f conftest.er1
12551   cat conftest.err >&5
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); } && {
12554          test -z "$ac_c_werror_flag" ||
12555          test ! -s conftest.err
12556        } && test -s conftest$ac_exeext &&
12557        $as_test_x conftest$ac_exeext; then
12558   ac_cv_lib_dld_dld_link=yes
12559 else
12560   echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563         ac_cv_lib_dld_dld_link=no
12564 fi
12565
12566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12567       conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12569 fi
12570 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12571 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12572 if test $ac_cv_lib_dld_dld_link = yes; then
12573   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12574 fi
12575
12576
12577 fi
12578
12579
12580 fi
12581
12582
12583 fi
12584
12585
12586 fi
12587
12588
12589 fi
12590
12591     ;;
12592   esac
12593
12594   if test "x$lt_cv_dlopen" != xno; then
12595     enable_dlopen=yes
12596   else
12597     enable_dlopen=no
12598   fi
12599
12600   case $lt_cv_dlopen in
12601   dlopen)
12602     save_CPPFLAGS="$CPPFLAGS"
12603     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12604
12605     save_LDFLAGS="$LDFLAGS"
12606     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12607
12608     save_LIBS="$LIBS"
12609     LIBS="$lt_cv_dlopen_libs $LIBS"
12610
12611     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12612 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12613 if test "${lt_cv_dlopen_self+set}" = set; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616           if test "$cross_compiling" = yes; then :
12617   lt_cv_dlopen_self=cross
12618 else
12619   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12620   lt_status=$lt_dlunknown
12621   cat > conftest.$ac_ext <<_LT_EOF
12622 #line 12622 "configure"
12623 #include "confdefs.h"
12624
12625 #if HAVE_DLFCN_H
12626 #include <dlfcn.h>
12627 #endif
12628
12629 #include <stdio.h>
12630
12631 #ifdef RTLD_GLOBAL
12632 #  define LT_DLGLOBAL           RTLD_GLOBAL
12633 #else
12634 #  ifdef DL_GLOBAL
12635 #    define LT_DLGLOBAL         DL_GLOBAL
12636 #  else
12637 #    define LT_DLGLOBAL         0
12638 #  endif
12639 #endif
12640
12641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12642    find out it does not work in some platform. */
12643 #ifndef LT_DLLAZY_OR_NOW
12644 #  ifdef RTLD_LAZY
12645 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12646 #  else
12647 #    ifdef DL_LAZY
12648 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12649 #    else
12650 #      ifdef RTLD_NOW
12651 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12652 #      else
12653 #        ifdef DL_NOW
12654 #          define LT_DLLAZY_OR_NOW      DL_NOW
12655 #        else
12656 #          define LT_DLLAZY_OR_NOW      0
12657 #        endif
12658 #      endif
12659 #    endif
12660 #  endif
12661 #endif
12662
12663 void fnord() { int i=42;}
12664 int main ()
12665 {
12666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12667   int status = $lt_dlunknown;
12668
12669   if (self)
12670     {
12671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12672       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12673       /* dlclose (self); */
12674     }
12675   else
12676     puts (dlerror ());
12677
12678   return status;
12679 }
12680 _LT_EOF
12681   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682   (eval $ac_link) 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12686     (./conftest; exit; ) >&5 2>/dev/null
12687     lt_status=$?
12688     case x$lt_status in
12689       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12690       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12691       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12692     esac
12693   else :
12694     # compilation failed
12695     lt_cv_dlopen_self=no
12696   fi
12697 fi
12698 rm -fr conftest*
12699
12700
12701 fi
12702 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12703 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12704
12705     if test "x$lt_cv_dlopen_self" = xyes; then
12706       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12707       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12708 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12709 if test "${lt_cv_dlopen_self_static+set}" = set; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712           if test "$cross_compiling" = yes; then :
12713   lt_cv_dlopen_self_static=cross
12714 else
12715   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12716   lt_status=$lt_dlunknown
12717   cat > conftest.$ac_ext <<_LT_EOF
12718 #line 12718 "configure"
12719 #include "confdefs.h"
12720
12721 #if HAVE_DLFCN_H
12722 #include <dlfcn.h>
12723 #endif
12724
12725 #include <stdio.h>
12726
12727 #ifdef RTLD_GLOBAL
12728 #  define LT_DLGLOBAL           RTLD_GLOBAL
12729 #else
12730 #  ifdef DL_GLOBAL
12731 #    define LT_DLGLOBAL         DL_GLOBAL
12732 #  else
12733 #    define LT_DLGLOBAL         0
12734 #  endif
12735 #endif
12736
12737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12738    find out it does not work in some platform. */
12739 #ifndef LT_DLLAZY_OR_NOW
12740 #  ifdef RTLD_LAZY
12741 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12742 #  else
12743 #    ifdef DL_LAZY
12744 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12745 #    else
12746 #      ifdef RTLD_NOW
12747 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12748 #      else
12749 #        ifdef DL_NOW
12750 #          define LT_DLLAZY_OR_NOW      DL_NOW
12751 #        else
12752 #          define LT_DLLAZY_OR_NOW      0
12753 #        endif
12754 #      endif
12755 #    endif
12756 #  endif
12757 #endif
12758
12759 void fnord() { int i=42;}
12760 int main ()
12761 {
12762   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12763   int status = $lt_dlunknown;
12764
12765   if (self)
12766     {
12767       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12768       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12769       /* dlclose (self); */
12770     }
12771   else
12772     puts (dlerror ());
12773
12774   return status;
12775 }
12776 _LT_EOF
12777   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778   (eval $ac_link) 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12782     (./conftest; exit; ) >&5 2>/dev/null
12783     lt_status=$?
12784     case x$lt_status in
12785       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12786       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12787       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12788     esac
12789   else :
12790     # compilation failed
12791     lt_cv_dlopen_self_static=no
12792   fi
12793 fi
12794 rm -fr conftest*
12795
12796
12797 fi
12798 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12799 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12800     fi
12801
12802     CPPFLAGS="$save_CPPFLAGS"
12803     LDFLAGS="$save_LDFLAGS"
12804     LIBS="$save_LIBS"
12805     ;;
12806   esac
12807
12808   case $lt_cv_dlopen_self in
12809   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12810   *) enable_dlopen_self=unknown ;;
12811   esac
12812
12813   case $lt_cv_dlopen_self_static in
12814   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12815   *) enable_dlopen_self_static=unknown ;;
12816   esac
12817 fi
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835 striplib=
12836 old_striplib=
12837 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12838 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12839 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12840   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12841   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12842   { echo "$as_me:$LINENO: result: yes" >&5
12843 echo "${ECHO_T}yes" >&6; }
12844 else
12845 # FIXME - insert some real tests, host_os isn't really good enough
12846   case $host_os in
12847   darwin*)
12848     if test -n "$STRIP" ; then
12849       striplib="$STRIP -x"
12850       old_striplib="$STRIP -S"
12851       { echo "$as_me:$LINENO: result: yes" >&5
12852 echo "${ECHO_T}yes" >&6; }
12853     else
12854       { echo "$as_me:$LINENO: result: no" >&5
12855 echo "${ECHO_T}no" >&6; }
12856     fi
12857     ;;
12858   *)
12859     { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12861     ;;
12862   esac
12863 fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876   # Report which library types will actually be built
12877   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12878 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12879   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12880 echo "${ECHO_T}$can_build_shared" >&6; }
12881
12882   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12883 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12884   test "$can_build_shared" = "no" && enable_shared=no
12885
12886   # On AIX, shared libraries and static libraries use the same namespace, and
12887   # are all built from PIC.
12888   case $host_os in
12889   aix3*)
12890     test "$enable_shared" = yes && enable_static=no
12891     if test -n "$RANLIB"; then
12892       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12893       postinstall_cmds='$RANLIB $lib'
12894     fi
12895     ;;
12896
12897   aix[4-9]*)
12898     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12899       test "$enable_shared" = yes && enable_static=no
12900     fi
12901     ;;
12902   esac
12903   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12904 echo "${ECHO_T}$enable_shared" >&6; }
12905
12906   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12907 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12908   # Make sure either enable_shared or enable_static is yes.
12909   test "$enable_shared" = yes || enable_static=yes
12910   { echo "$as_me:$LINENO: result: $enable_static" >&5
12911 echo "${ECHO_T}$enable_static" >&6; }
12912
12913
12914
12915
12916 fi
12917 ac_ext=c
12918 ac_cpp='$CPP $CPPFLAGS'
12919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12922
12923 CC="$lt_save_CC"
12924
12925
12926 ac_ext=cpp
12927 ac_cpp='$CXXCPP $CPPFLAGS'
12928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12931
12932 archive_cmds_need_lc_CXX=no
12933 allow_undefined_flag_CXX=
12934 always_export_symbols_CXX=no
12935 archive_expsym_cmds_CXX=
12936 compiler_needs_object_CXX=no
12937 export_dynamic_flag_spec_CXX=
12938 hardcode_direct_CXX=no
12939 hardcode_direct_absolute_CXX=no
12940 hardcode_libdir_flag_spec_CXX=
12941 hardcode_libdir_flag_spec_ld_CXX=
12942 hardcode_libdir_separator_CXX=
12943 hardcode_minus_L_CXX=no
12944 hardcode_shlibpath_var_CXX=unsupported
12945 hardcode_automatic_CXX=no
12946 inherit_rpath_CXX=no
12947 module_cmds_CXX=
12948 module_expsym_cmds_CXX=
12949 link_all_deplibs_CXX=unknown
12950 old_archive_cmds_CXX=$old_archive_cmds
12951 no_undefined_flag_CXX=
12952 whole_archive_flag_spec_CXX=
12953 enable_shared_with_static_runtimes_CXX=no
12954
12955 # Source file extension for C++ test sources.
12956 ac_ext=cpp
12957
12958 # Object file extension for compiled C++ test sources.
12959 objext=o
12960 objext_CXX=$objext
12961
12962 # No sense in running all these tests if we already determined that
12963 # the CXX compiler isn't working.  Some variables (like enable_shared)
12964 # are currently assumed to apply to all compilers on this platform,
12965 # and will be corrupted by setting them based on a non-working compiler.
12966 if test "$_lt_caught_CXX_error" != yes; then
12967   # Code to be used in simple compile tests
12968   lt_simple_compile_test_code="int some_variable = 0;"
12969
12970   # Code to be used in simple link tests
12971   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12972
12973   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12974
12975
12976
12977
12978
12979
12980 # If no C compiler was specified, use CC.
12981 LTCC=${LTCC-"$CC"}
12982
12983 # If no C compiler flags were specified, use CFLAGS.
12984 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12985
12986 # Allow CC to be a program name with arguments.
12987 compiler=$CC
12988
12989
12990   # save warnings/boilerplate of simple test code
12991   ac_outfile=conftest.$ac_objext
12992 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12994 _lt_compiler_boilerplate=`cat conftest.err`
12995 $RM conftest*
12996
12997   ac_outfile=conftest.$ac_objext
12998 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13000 _lt_linker_boilerplate=`cat conftest.err`
13001 $RM -r conftest*
13002
13003
13004   # Allow CC to be a program name with arguments.
13005   lt_save_CC=$CC
13006   lt_save_LD=$LD
13007   lt_save_GCC=$GCC
13008   GCC=$GXX
13009   lt_save_with_gnu_ld=$with_gnu_ld
13010   lt_save_path_LD=$lt_cv_path_LD
13011   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13012     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13013   else
13014     $as_unset lt_cv_prog_gnu_ld
13015   fi
13016   if test -n "${lt_cv_path_LDCXX+set}"; then
13017     lt_cv_path_LD=$lt_cv_path_LDCXX
13018   else
13019     $as_unset lt_cv_path_LD
13020   fi
13021   test -z "${LDCXX+set}" || LD=$LDCXX
13022   CC=${CXX-"c++"}
13023   compiler=$CC
13024   compiler_CXX=$CC
13025   for cc_temp in $compiler""; do
13026   case $cc_temp in
13027     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13028     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13029     \-*) ;;
13030     *) break;;
13031   esac
13032 done
13033 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13034
13035
13036   if test -n "$compiler"; then
13037     # We don't want -fno-exception when compiling C++ code, so set the
13038     # no_builtin_flag separately
13039     if test "$GXX" = yes; then
13040       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13041     else
13042       lt_prog_compiler_no_builtin_flag_CXX=
13043     fi
13044
13045     if test "$GXX" = yes; then
13046       # Set up default GNU C++ configuration
13047
13048
13049
13050 # Check whether --with-gnu-ld was given.
13051 if test "${with_gnu_ld+set}" = set; then
13052   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13053 else
13054   with_gnu_ld=no
13055 fi
13056
13057 ac_prog=ld
13058 if test "$GCC" = yes; then
13059   # Check if gcc -print-prog-name=ld gives a path.
13060   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13062   case $host in
13063   *-*-mingw*)
13064     # gcc leaves a trailing carriage return which upsets mingw
13065     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13066   *)
13067     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13068   esac
13069   case $ac_prog in
13070     # Accept absolute paths.
13071     [\\/]* | ?:[\\/]*)
13072       re_direlt='/[^/][^/]*/\.\./'
13073       # Canonicalize the pathname of ld
13074       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13075       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13076         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13077       done
13078       test -z "$LD" && LD="$ac_prog"
13079       ;;
13080   "")
13081     # If it fails, then pretend we aren't using GCC.
13082     ac_prog=ld
13083     ;;
13084   *)
13085     # If it is relative, then search for the first ld in PATH.
13086     with_gnu_ld=unknown
13087     ;;
13088   esac
13089 elif test "$with_gnu_ld" = yes; then
13090   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13092 else
13093   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13095 fi
13096 if test "${lt_cv_path_LD+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   if test -z "$LD"; then
13100   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13101   for ac_dir in $PATH; do
13102     IFS="$lt_save_ifs"
13103     test -z "$ac_dir" && ac_dir=.
13104     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13105       lt_cv_path_LD="$ac_dir/$ac_prog"
13106       # Check to see if the program is GNU ld.  I'd rather use --version,
13107       # but apparently some variants of GNU ld only accept -v.
13108       # Break only if it was the GNU/non-GNU ld that we prefer.
13109       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13110       *GNU* | *'with BFD'*)
13111         test "$with_gnu_ld" != no && break
13112         ;;
13113       *)
13114         test "$with_gnu_ld" != yes && break
13115         ;;
13116       esac
13117     fi
13118   done
13119   IFS="$lt_save_ifs"
13120 else
13121   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13122 fi
13123 fi
13124
13125 LD="$lt_cv_path_LD"
13126 if test -n "$LD"; then
13127   { echo "$as_me:$LINENO: result: $LD" >&5
13128 echo "${ECHO_T}$LD" >&6; }
13129 else
13130   { echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6; }
13132 fi
13133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13135    { (exit 1); exit 1; }; }
13136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13142 case `$LD -v 2>&1 </dev/null` in
13143 *GNU* | *'with BFD'*)
13144   lt_cv_prog_gnu_ld=yes
13145   ;;
13146 *)
13147   lt_cv_prog_gnu_ld=no
13148   ;;
13149 esac
13150 fi
13151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13153 with_gnu_ld=$lt_cv_prog_gnu_ld
13154
13155
13156
13157
13158
13159
13160
13161       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13162       # archiving commands below assume that GNU ld is being used.
13163       if test "$with_gnu_ld" = yes; then
13164         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13165         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'
13166
13167         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13168         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13169
13170         # If archive_cmds runs LD, not CC, wlarc should be empty
13171         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13172         #     investigate it a little bit more. (MM)
13173         wlarc='${wl}'
13174
13175         # ancient GNU ld didn't support --whole-archive et. al.
13176         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13177           $GREP 'no-whole-archive' > /dev/null; then
13178           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13179         else
13180           whole_archive_flag_spec_CXX=
13181         fi
13182       else
13183         with_gnu_ld=no
13184         wlarc=
13185
13186         # A generic and very simple default shared library creation
13187         # command for GNU C++ for the case where it uses the native
13188         # linker, instead of GNU ld.  If possible, this setting should
13189         # overridden to take advantage of the native linker features on
13190         # the platform it is being used on.
13191         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13192       fi
13193
13194       # Commands to make compiler produce verbose output that lists
13195       # what "hidden" libraries, object files and flags are used when
13196       # linking a shared library.
13197       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13198
13199     else
13200       GXX=no
13201       with_gnu_ld=no
13202       wlarc=
13203     fi
13204
13205     # PORTME: fill in a description of your system's C++ link characteristics
13206     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13207 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13208     ld_shlibs_CXX=yes
13209     case $host_os in
13210       aix3*)
13211         # FIXME: insert proper C++ library support
13212         ld_shlibs_CXX=no
13213         ;;
13214       aix[4-9]*)
13215         if test "$host_cpu" = ia64; then
13216           # On IA64, the linker does run time linking by default, so we don't
13217           # have to do anything special.
13218           aix_use_runtimelinking=no
13219           exp_sym_flag='-Bexport'
13220           no_entry_flag=""
13221         else
13222           aix_use_runtimelinking=no
13223
13224           # Test if we are trying to use run time linking or normal
13225           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13226           # need to do runtime linking.
13227           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13228             for ld_flag in $LDFLAGS; do
13229               case $ld_flag in
13230               *-brtl*)
13231                 aix_use_runtimelinking=yes
13232                 break
13233                 ;;
13234               esac
13235             done
13236             ;;
13237           esac
13238
13239           exp_sym_flag='-bexport'
13240           no_entry_flag='-bnoentry'
13241         fi
13242
13243         # When large executables or shared objects are built, AIX ld can
13244         # have problems creating the table of contents.  If linking a library
13245         # or program results in "error TOC overflow" add -mminimal-toc to
13246         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13247         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13248
13249         archive_cmds_CXX=''
13250         hardcode_direct_CXX=yes
13251         hardcode_direct_absolute_CXX=yes
13252         hardcode_libdir_separator_CXX=':'
13253         link_all_deplibs_CXX=yes
13254         file_list_spec_CXX='${wl}-f,'
13255
13256         if test "$GXX" = yes; then
13257           case $host_os in aix4.[012]|aix4.[012].*)
13258           # We only want to do this on AIX 4.2 and lower, the check
13259           # below for broken collect2 doesn't work under 4.3+
13260           collect2name=`${CC} -print-prog-name=collect2`
13261           if test -f "$collect2name" &&
13262              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13263           then
13264             # We have reworked collect2
13265             :
13266           else
13267             # We have old collect2
13268             hardcode_direct_CXX=unsupported
13269             # It fails to find uninstalled libraries when the uninstalled
13270             # path is not listed in the libpath.  Setting hardcode_minus_L
13271             # to unsupported forces relinking
13272             hardcode_minus_L_CXX=yes
13273             hardcode_libdir_flag_spec_CXX='-L$libdir'
13274             hardcode_libdir_separator_CXX=
13275           fi
13276           esac
13277           shared_flag='-shared'
13278           if test "$aix_use_runtimelinking" = yes; then
13279             shared_flag="$shared_flag "'${wl}-G'
13280           fi
13281         else
13282           # not using gcc
13283           if test "$host_cpu" = ia64; then
13284           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13285           # chokes on -Wl,-G. The following line is correct:
13286           shared_flag='-G'
13287           else
13288             if test "$aix_use_runtimelinking" = yes; then
13289               shared_flag='${wl}-G'
13290             else
13291               shared_flag='${wl}-bM:SRE'
13292             fi
13293           fi
13294         fi
13295
13296         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13297         # It seems that -bexpall does not export symbols beginning with
13298         # underscore (_), so it is better to generate a list of symbols to
13299         # export.
13300         always_export_symbols_CXX=yes
13301         if test "$aix_use_runtimelinking" = yes; then
13302           # Warning - without using the other runtime loading flags (-brtl),
13303           # -berok will link without error, but may produce a broken library.
13304           allow_undefined_flag_CXX='-berok'
13305           # Determine the default libpath from the value encoded in an empty
13306           # executable.
13307           cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h.  */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h.  */
13313
13314 int
13315 main ()
13316 {
13317
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
13324 case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_link") 2>conftest.er1
13330   ac_status=$?
13331   grep -v '^ *+' conftest.er1 >conftest.err
13332   rm -f conftest.er1
13333   cat conftest.err >&5
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); } && {
13336          test -z "$ac_cxx_werror_flag" ||
13337          test ! -s conftest.err
13338        } && test -s conftest$ac_exeext &&
13339        $as_test_x conftest$ac_exeext; then
13340
13341 lt_aix_libpath_sed='
13342     /Import File Strings/,/^$/ {
13343         /^0/ {
13344             s/^0  *\(.*\)$/\1/
13345             p
13346         }
13347     }'
13348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13349 # Check for a 64-bit object if we didn't find anything.
13350 if test -z "$aix_libpath"; then
13351   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13352 fi
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357
13358 fi
13359
13360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13361       conftest$ac_exeext conftest.$ac_ext
13362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13363
13364           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13365
13366           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"
13367         else
13368           if test "$host_cpu" = ia64; then
13369             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13370             allow_undefined_flag_CXX="-z nodefs"
13371             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"
13372           else
13373             # Determine the default libpath from the value encoded in an
13374             # empty executable.
13375             cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h.  */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h.  */
13381
13382 int
13383 main ()
13384 {
13385
13386   ;
13387   return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (ac_try="$ac_link"
13392 case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_link") 2>conftest.er1
13398   ac_status=$?
13399   grep -v '^ *+' conftest.er1 >conftest.err
13400   rm -f conftest.er1
13401   cat conftest.err >&5
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } && {
13404          test -z "$ac_cxx_werror_flag" ||
13405          test ! -s conftest.err
13406        } && test -s conftest$ac_exeext &&
13407        $as_test_x conftest$ac_exeext; then
13408
13409 lt_aix_libpath_sed='
13410     /Import File Strings/,/^$/ {
13411         /^0/ {
13412             s/^0  *\(.*\)$/\1/
13413             p
13414         }
13415     }'
13416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13417 # Check for a 64-bit object if we didn't find anything.
13418 if test -z "$aix_libpath"; then
13419   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13420 fi
13421 else
13422   echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425
13426 fi
13427
13428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13429       conftest$ac_exeext conftest.$ac_ext
13430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13431
13432             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13433             # Warning - without using the other run time loading flags,
13434             # -berok will link without error, but may produce a broken library.
13435             no_undefined_flag_CXX=' ${wl}-bernotok'
13436             allow_undefined_flag_CXX=' ${wl}-berok'
13437             # Exported symbols can be pulled into shared objects from archives
13438             whole_archive_flag_spec_CXX='$convenience'
13439             archive_cmds_need_lc_CXX=yes
13440             # This is similar to how AIX traditionally builds its shared
13441             # libraries.
13442             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'
13443           fi
13444         fi
13445         ;;
13446
13447       beos*)
13448         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13449           allow_undefined_flag_CXX=unsupported
13450           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13451           # support --undefined.  This deserves some investigation.  FIXME
13452           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453         else
13454           ld_shlibs_CXX=no
13455         fi
13456         ;;
13457
13458       chorus*)
13459         case $cc_basename in
13460           *)
13461           # FIXME: insert proper C++ library support
13462           ld_shlibs_CXX=no
13463           ;;
13464         esac
13465         ;;
13466
13467       cygwin* | mingw* | pw32* | cegcc*)
13468         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13469         # as there is no search path for DLLs.
13470         hardcode_libdir_flag_spec_CXX='-L$libdir'
13471         allow_undefined_flag_CXX=unsupported
13472         always_export_symbols_CXX=no
13473         enable_shared_with_static_runtimes_CXX=yes
13474
13475         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13476           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'
13477           # If the export-symbols file already is a .def file (1st line
13478           # is EXPORTS), use it as is; otherwise, prepend...
13479           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13480             cp $export_symbols $output_objdir/$soname.def;
13481           else
13482             echo EXPORTS > $output_objdir/$soname.def;
13483             cat $export_symbols >> $output_objdir/$soname.def;
13484           fi~
13485           $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'
13486         else
13487           ld_shlibs_CXX=no
13488         fi
13489         ;;
13490       darwin* | rhapsody*)
13491
13492
13493   archive_cmds_need_lc_CXX=no
13494   hardcode_direct_CXX=no
13495   hardcode_automatic_CXX=yes
13496   hardcode_shlibpath_var_CXX=unsupported
13497   whole_archive_flag_spec_CXX=''
13498   link_all_deplibs_CXX=yes
13499   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13500   case $cc_basename in
13501      ifort*) _lt_dar_can_shared=yes ;;
13502      *) _lt_dar_can_shared=$GCC ;;
13503   esac
13504   if test "$_lt_dar_can_shared" = "yes"; then
13505     output_verbose_link_cmd=echo
13506     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}"
13507     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13508     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}"
13509     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}"
13510        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13511       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}"
13512       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}"
13513     fi
13514
13515   else
13516   ld_shlibs_CXX=no
13517   fi
13518
13519         ;;
13520
13521       dgux*)
13522         case $cc_basename in
13523           ec++*)
13524             # FIXME: insert proper C++ library support
13525             ld_shlibs_CXX=no
13526             ;;
13527           ghcx*)
13528             # Green Hills C++ Compiler
13529             # FIXME: insert proper C++ library support
13530             ld_shlibs_CXX=no
13531             ;;
13532           *)
13533             # FIXME: insert proper C++ library support
13534             ld_shlibs_CXX=no
13535             ;;
13536         esac
13537         ;;
13538
13539       freebsd[12]*)
13540         # C++ shared libraries reported to be fairly broken before
13541         # switch to ELF
13542         ld_shlibs_CXX=no
13543         ;;
13544
13545       freebsd-elf*)
13546         archive_cmds_need_lc_CXX=no
13547         ;;
13548
13549       freebsd* | dragonfly*)
13550         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13551         # conventions
13552         ld_shlibs_CXX=yes
13553         ;;
13554
13555       gnu*)
13556         ;;
13557
13558       hpux9*)
13559         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13560         hardcode_libdir_separator_CXX=:
13561         export_dynamic_flag_spec_CXX='${wl}-E'
13562         hardcode_direct_CXX=yes
13563         hardcode_minus_L_CXX=yes # Not in the search PATH,
13564                                              # but as the default
13565                                              # location of the library.
13566
13567         case $cc_basename in
13568           CC*)
13569             # FIXME: insert proper C++ library support
13570             ld_shlibs_CXX=no
13571             ;;
13572           aCC*)
13573             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'
13574             # Commands to make compiler produce verbose output that lists
13575             # what "hidden" libraries, object files and flags are used when
13576             # linking a shared library.
13577             #
13578             # There doesn't appear to be a way to prevent this compiler from
13579             # explicitly linking system object files so we need to strip them
13580             # from the output so that they don't get included in the library
13581             # dependencies.
13582             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'
13583             ;;
13584           *)
13585             if test "$GXX" = yes; then
13586               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'
13587             else
13588               # FIXME: insert proper C++ library support
13589               ld_shlibs_CXX=no
13590             fi
13591             ;;
13592         esac
13593         ;;
13594
13595       hpux10*|hpux11*)
13596         if test $with_gnu_ld = no; then
13597           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13598           hardcode_libdir_separator_CXX=:
13599
13600           case $host_cpu in
13601             hppa*64*|ia64*)
13602               ;;
13603             *)
13604               export_dynamic_flag_spec_CXX='${wl}-E'
13605               ;;
13606           esac
13607         fi
13608         case $host_cpu in
13609           hppa*64*|ia64*)
13610             hardcode_direct_CXX=no
13611             hardcode_shlibpath_var_CXX=no
13612             ;;
13613           *)
13614             hardcode_direct_CXX=yes
13615             hardcode_direct_absolute_CXX=yes
13616             hardcode_minus_L_CXX=yes # Not in the search PATH,
13617                                                  # but as the default
13618                                                  # location of the library.
13619             ;;
13620         esac
13621
13622         case $cc_basename in
13623           CC*)
13624             # FIXME: insert proper C++ library support
13625             ld_shlibs_CXX=no
13626             ;;
13627           aCC*)
13628             case $host_cpu in
13629               hppa*64*)
13630                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13631                 ;;
13632               ia64*)
13633                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13634                 ;;
13635               *)
13636                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13637                 ;;
13638             esac
13639             # Commands to make compiler produce verbose output that lists
13640             # what "hidden" libraries, object files and flags are used when
13641             # linking a shared library.
13642             #
13643             # There doesn't appear to be a way to prevent this compiler from
13644             # explicitly linking system object files so we need to strip them
13645             # from the output so that they don't get included in the library
13646             # dependencies.
13647             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'
13648             ;;
13649           *)
13650             if test "$GXX" = yes; then
13651               if test $with_gnu_ld = no; then
13652                 case $host_cpu in
13653                   hppa*64*)
13654                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13655                     ;;
13656                   ia64*)
13657                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658                     ;;
13659                   *)
13660                     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'
13661                     ;;
13662                 esac
13663               fi
13664             else
13665               # FIXME: insert proper C++ library support
13666               ld_shlibs_CXX=no
13667             fi
13668             ;;
13669         esac
13670         ;;
13671
13672       interix[3-9]*)
13673         hardcode_direct_CXX=no
13674         hardcode_shlibpath_var_CXX=no
13675         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13676         export_dynamic_flag_spec_CXX='${wl}-E'
13677         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13678         # Instead, shared libraries are loaded at an image base (0x10000000 by
13679         # default) and relocated if they conflict, which is a slow very memory
13680         # consuming and fragmenting process.  To avoid this, we pick a random,
13681         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13682         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13683         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'
13684         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'
13685         ;;
13686       irix5* | irix6*)
13687         case $cc_basename in
13688           CC*)
13689             # SGI C++
13690             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'
13691
13692             # Archives containing C++ object files must be created using
13693             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13694             # necessary to make sure instantiated templates are included
13695             # in the archive.
13696             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13697             ;;
13698           *)
13699             if test "$GXX" = yes; then
13700               if test "$with_gnu_ld" = no; then
13701                 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'
13702               else
13703                 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'
13704               fi
13705             fi
13706             link_all_deplibs_CXX=yes
13707             ;;
13708         esac
13709         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13710         hardcode_libdir_separator_CXX=:
13711         inherit_rpath_CXX=yes
13712         ;;
13713
13714       linux* | k*bsd*-gnu)
13715         case $cc_basename in
13716           KCC*)
13717             # Kuck and Associates, Inc. (KAI) C++ Compiler
13718
13719             # KCC will only create a shared library if the output file
13720             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13721             # to its proper name (with version) after linking.
13722             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'
13723             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'
13724             # Commands to make compiler produce verbose output that lists
13725             # what "hidden" libraries, object files and flags are used when
13726             # linking a shared library.
13727             #
13728             # There doesn't appear to be a way to prevent this compiler from
13729             # explicitly linking system object files so we need to strip them
13730             # from the output so that they don't get included in the library
13731             # dependencies.
13732             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'
13733
13734             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13735             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13736
13737             # Archives containing C++ object files must be created using
13738             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13739             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13740             ;;
13741           icpc* | ecpc* )
13742             # Intel C++
13743             with_gnu_ld=yes
13744             # version 8.0 and above of icpc choke on multiply defined symbols
13745             # if we add $predep_objects and $postdep_objects, however 7.1 and
13746             # earlier do not add the objects themselves.
13747             case `$CC -V 2>&1` in
13748               *"Version 7."*)
13749                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13750                 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'
13751                 ;;
13752               *)  # Version 8.0 or newer
13753                 tmp_idyn=
13754                 case $host_cpu in
13755                   ia64*) tmp_idyn=' -i_dynamic';;
13756                 esac
13757                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13758                 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'
13759                 ;;
13760             esac
13761             archive_cmds_need_lc_CXX=no
13762             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13763             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13764             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13765             ;;
13766           pgCC* | pgcpp*)
13767             # Portland Group C++ compiler
13768             case `$CC -V` in
13769             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13770               prelink_cmds_CXX='tpldir=Template.dir~
13771                 rm -rf $tpldir~
13772                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13773                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13774               old_archive_cmds_CXX='tpldir=Template.dir~
13775                 rm -rf $tpldir~
13776                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13777                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13778                 $RANLIB $oldlib'
13779               archive_cmds_CXX='tpldir=Template.dir~
13780                 rm -rf $tpldir~
13781                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13782                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13783               archive_expsym_cmds_CXX='tpldir=Template.dir~
13784                 rm -rf $tpldir~
13785                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13786                 $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'
13787               ;;
13788             *) # Version 6 will use weak symbols
13789               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13790               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'
13791               ;;
13792             esac
13793
13794             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13795             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13796             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'
13797             ;;
13798           cxx*)
13799             # Compaq C++
13800             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13801             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'
13802
13803             runpath_var=LD_RUN_PATH
13804             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13805             hardcode_libdir_separator_CXX=:
13806
13807             # Commands to make compiler produce verbose output that lists
13808             # what "hidden" libraries, object files and flags are used when
13809             # linking a shared library.
13810             #
13811             # There doesn't appear to be a way to prevent this compiler from
13812             # explicitly linking system object files so we need to strip them
13813             # from the output so that they don't get included in the library
13814             # dependencies.
13815             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'
13816             ;;
13817           xl*)
13818             # IBM XL 8.0 on PPC, with GNU ld
13819             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13820             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13821             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822             if test "x$supports_anon_versioning" = xyes; then
13823               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13824                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13825                 echo "local: *; };" >> $output_objdir/$libname.ver~
13826                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13827             fi
13828             ;;
13829           *)
13830             case `$CC -V 2>&1 | sed 5q` in
13831             *Sun\ C*)
13832               # Sun C++ 5.9
13833               no_undefined_flag_CXX=' -zdefs'
13834               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13835               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'
13836               hardcode_libdir_flag_spec_CXX='-R$libdir'
13837               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'
13838               compiler_needs_object_CXX=yes
13839
13840               # Not sure whether something based on
13841               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13842               # would be better.
13843               output_verbose_link_cmd='echo'
13844
13845               # Archives containing C++ object files must be created using
13846               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13847               # necessary to make sure instantiated templates are included
13848               # in the archive.
13849               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13850               ;;
13851             esac
13852             ;;
13853         esac
13854         ;;
13855
13856       lynxos*)
13857         # FIXME: insert proper C++ library support
13858         ld_shlibs_CXX=no
13859         ;;
13860
13861       m88k*)
13862         # FIXME: insert proper C++ library support
13863         ld_shlibs_CXX=no
13864         ;;
13865
13866       mvs*)
13867         case $cc_basename in
13868           cxx*)
13869             # FIXME: insert proper C++ library support
13870             ld_shlibs_CXX=no
13871             ;;
13872           *)
13873             # FIXME: insert proper C++ library support
13874             ld_shlibs_CXX=no
13875             ;;
13876         esac
13877         ;;
13878
13879       netbsd*)
13880         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13881           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13882           wlarc=
13883           hardcode_libdir_flag_spec_CXX='-R$libdir'
13884           hardcode_direct_CXX=yes
13885           hardcode_shlibpath_var_CXX=no
13886         fi
13887         # Workaround some broken pre-1.5 toolchains
13888         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13889         ;;
13890
13891       *nto* | *qnx*)
13892         ld_shlibs_CXX=yes
13893         ;;
13894
13895       openbsd2*)
13896         # C++ shared libraries are fairly broken
13897         ld_shlibs_CXX=no
13898         ;;
13899
13900       openbsd*)
13901         if test -f /usr/libexec/ld.so; then
13902           hardcode_direct_CXX=yes
13903           hardcode_shlibpath_var_CXX=no
13904           hardcode_direct_absolute_CXX=yes
13905           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13906           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13907           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13908             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13909             export_dynamic_flag_spec_CXX='${wl}-E'
13910             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13911           fi
13912           output_verbose_link_cmd=echo
13913         else
13914           ld_shlibs_CXX=no
13915         fi
13916         ;;
13917
13918       osf3* | osf4* | osf5*)
13919         case $cc_basename in
13920           KCC*)
13921             # Kuck and Associates, Inc. (KAI) C++ Compiler
13922
13923             # KCC will only create a shared library if the output file
13924             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13925             # to its proper name (with version) after linking.
13926             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'
13927
13928             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13929             hardcode_libdir_separator_CXX=:
13930
13931             # Archives containing C++ object files must be created using
13932             # the KAI C++ compiler.
13933             case $host in
13934               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13935               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13936             esac
13937             ;;
13938           RCC*)
13939             # Rational C++ 2.4.1
13940             # FIXME: insert proper C++ library support
13941             ld_shlibs_CXX=no
13942             ;;
13943           cxx*)
13944             case $host in
13945               osf3*)
13946                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13947                 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'
13948                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13949                 ;;
13950               *)
13951                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13952                 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'
13953                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13954                   echo "-hidden">> $lib.exp~
13955                   $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~
13956                   $RM $lib.exp'
13957                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13958                 ;;
13959             esac
13960
13961             hardcode_libdir_separator_CXX=:
13962
13963             # Commands to make compiler produce verbose output that lists
13964             # what "hidden" libraries, object files and flags are used when
13965             # linking a shared library.
13966             #
13967             # There doesn't appear to be a way to prevent this compiler from
13968             # explicitly linking system object files so we need to strip them
13969             # from the output so that they don't get included in the library
13970             # dependencies.
13971             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'
13972             ;;
13973           *)
13974             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13975               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13976               case $host in
13977                 osf3*)
13978                   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'
13979                   ;;
13980                 *)
13981                   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'
13982                   ;;
13983               esac
13984
13985               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13986               hardcode_libdir_separator_CXX=:
13987
13988               # Commands to make compiler produce verbose output that lists
13989               # what "hidden" libraries, object files and flags are used when
13990               # linking a shared library.
13991               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13992
13993             else
13994               # FIXME: insert proper C++ library support
13995               ld_shlibs_CXX=no
13996             fi
13997             ;;
13998         esac
13999         ;;
14000
14001       psos*)
14002         # FIXME: insert proper C++ library support
14003         ld_shlibs_CXX=no
14004         ;;
14005
14006       sunos4*)
14007         case $cc_basename in
14008           CC*)
14009             # Sun C++ 4.x
14010             # FIXME: insert proper C++ library support
14011             ld_shlibs_CXX=no
14012             ;;
14013           lcc*)
14014             # Lucid
14015             # FIXME: insert proper C++ library support
14016             ld_shlibs_CXX=no
14017             ;;
14018           *)
14019             # FIXME: insert proper C++ library support
14020             ld_shlibs_CXX=no
14021             ;;
14022         esac
14023         ;;
14024
14025       solaris*)
14026         case $cc_basename in
14027           CC*)
14028             # Sun C++ 4.2, 5.x and Centerline C++
14029             archive_cmds_need_lc_CXX=yes
14030             no_undefined_flag_CXX=' -zdefs'
14031             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14032             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14033               $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'
14034
14035             hardcode_libdir_flag_spec_CXX='-R$libdir'
14036             hardcode_shlibpath_var_CXX=no
14037             case $host_os in
14038               solaris2.[0-5] | solaris2.[0-5].*) ;;
14039               *)
14040                 # The compiler driver will combine and reorder linker options,
14041                 # but understands `-z linker_flag'.
14042                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14043                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14044                 ;;
14045             esac
14046             link_all_deplibs_CXX=yes
14047
14048             output_verbose_link_cmd='echo'
14049
14050             # Archives containing C++ object files must be created using
14051             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14052             # necessary to make sure instantiated templates are included
14053             # in the archive.
14054             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14055             ;;
14056           gcx*)
14057             # Green Hills C++ Compiler
14058             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14059
14060             # The C++ compiler must be used to create the archive.
14061             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14062             ;;
14063           *)
14064             # GNU C++ compiler with Solaris linker
14065             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14066               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14067               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14068                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14069                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14070                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14071
14072                 # Commands to make compiler produce verbose output that lists
14073                 # what "hidden" libraries, object files and flags are used when
14074                 # linking a shared library.
14075                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14076               else
14077                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14078                 # platform.
14079                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14080                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14081                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14082
14083                 # Commands to make compiler produce verbose output that lists
14084                 # what "hidden" libraries, object files and flags are used when
14085                 # linking a shared library.
14086                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14087               fi
14088
14089               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14090               case $host_os in
14091                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14092                 *)
14093                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14094                   ;;
14095               esac
14096             fi
14097             ;;
14098         esac
14099         ;;
14100
14101     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14102       no_undefined_flag_CXX='${wl}-z,text'
14103       archive_cmds_need_lc_CXX=no
14104       hardcode_shlibpath_var_CXX=no
14105       runpath_var='LD_RUN_PATH'
14106
14107       case $cc_basename in
14108         CC*)
14109           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14110           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14111           ;;
14112         *)
14113           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14114           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14115           ;;
14116       esac
14117       ;;
14118
14119       sysv5* | sco3.2v5* | sco5v6*)
14120         # Note: We can NOT use -z defs as we might desire, because we do not
14121         # link with -lc, and that would cause any symbols used from libc to
14122         # always be unresolved, which means just about no library would
14123         # ever link correctly.  If we're not using GNU ld we use -z text
14124         # though, which does catch some bad symbols but isn't as heavy-handed
14125         # as -z defs.
14126         no_undefined_flag_CXX='${wl}-z,text'
14127         allow_undefined_flag_CXX='${wl}-z,nodefs'
14128         archive_cmds_need_lc_CXX=no
14129         hardcode_shlibpath_var_CXX=no
14130         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14131         hardcode_libdir_separator_CXX=':'
14132         link_all_deplibs_CXX=yes
14133         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14134         runpath_var='LD_RUN_PATH'
14135
14136         case $cc_basename in
14137           CC*)
14138             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14139             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14140             ;;
14141           *)
14142             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14143             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14144             ;;
14145         esac
14146       ;;
14147
14148       tandem*)
14149         case $cc_basename in
14150           NCC*)
14151             # NonStop-UX NCC 3.20
14152             # FIXME: insert proper C++ library support
14153             ld_shlibs_CXX=no
14154             ;;
14155           *)
14156             # FIXME: insert proper C++ library support
14157             ld_shlibs_CXX=no
14158             ;;
14159         esac
14160         ;;
14161
14162       vxworks*)
14163         # FIXME: insert proper C++ library support
14164         ld_shlibs_CXX=no
14165         ;;
14166
14167       *)
14168         # FIXME: insert proper C++ library support
14169         ld_shlibs_CXX=no
14170         ;;
14171     esac
14172
14173     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14174 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14175     test "$ld_shlibs_CXX" = no && can_build_shared=no
14176
14177     GCC_CXX="$GXX"
14178     LD_CXX="$LD"
14179
14180     ## CAVEAT EMPTOR:
14181     ## There is no encapsulation within the following macros, do not change
14182     ## the running order or otherwise move them around unless you know exactly
14183     ## what you are doing...
14184     # Dependencies to place before and after the object being linked:
14185 predep_objects_CXX=
14186 postdep_objects_CXX=
14187 predeps_CXX=
14188 postdeps_CXX=
14189 compiler_lib_search_path_CXX=
14190
14191 cat > conftest.$ac_ext <<_LT_EOF
14192 class Foo
14193 {
14194 public:
14195   Foo (void) { a = 0; }
14196 private:
14197   int a;
14198 };
14199 _LT_EOF
14200
14201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14202   (eval $ac_compile) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; then
14206   # Parse the compiler output and extract the necessary
14207   # objects, libraries and library flags.
14208
14209   # Sentinel used to keep track of whether or not we are before
14210   # the conftest object file.
14211   pre_test_object_deps_done=no
14212
14213   for p in `eval "$output_verbose_link_cmd"`; do
14214     case $p in
14215
14216     -L* | -R* | -l*)
14217        # Some compilers place space between "-{L,R}" and the path.
14218        # Remove the space.
14219        if test $p = "-L" ||
14220           test $p = "-R"; then
14221          prev=$p
14222          continue
14223        else
14224          prev=
14225        fi
14226
14227        if test "$pre_test_object_deps_done" = no; then
14228          case $p in
14229          -L* | -R*)
14230            # Internal compiler library paths should come after those
14231            # provided the user.  The postdeps already come after the
14232            # user supplied libs so there is no need to process them.
14233            if test -z "$compiler_lib_search_path_CXX"; then
14234              compiler_lib_search_path_CXX="${prev}${p}"
14235            else
14236              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14237            fi
14238            ;;
14239          # The "-l" case would never come before the object being
14240          # linked, so don't bother handling this case.
14241          esac
14242        else
14243          if test -z "$postdeps_CXX"; then
14244            postdeps_CXX="${prev}${p}"
14245          else
14246            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14247          fi
14248        fi
14249        ;;
14250
14251     *.$objext)
14252        # This assumes that the test object file only shows up
14253        # once in the compiler output.
14254        if test "$p" = "conftest.$objext"; then
14255          pre_test_object_deps_done=yes
14256          continue
14257        fi
14258
14259        if test "$pre_test_object_deps_done" = no; then
14260          if test -z "$predep_objects_CXX"; then
14261            predep_objects_CXX="$p"
14262          else
14263            predep_objects_CXX="$predep_objects_CXX $p"
14264          fi
14265        else
14266          if test -z "$postdep_objects_CXX"; then
14267            postdep_objects_CXX="$p"
14268          else
14269            postdep_objects_CXX="$postdep_objects_CXX $p"
14270          fi
14271        fi
14272        ;;
14273
14274     *) ;; # Ignore the rest.
14275
14276     esac
14277   done
14278
14279   # Clean up.
14280   rm -f a.out a.exe
14281 else
14282   echo "libtool.m4: error: problem compiling CXX test program"
14283 fi
14284
14285 $RM -f confest.$objext
14286
14287 # PORTME: override above test on systems where it is broken
14288 case $host_os in
14289 interix[3-9]*)
14290   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14291   # hack all around it, let's just trust "g++" to DTRT.
14292   predep_objects_CXX=
14293   postdep_objects_CXX=
14294   postdeps_CXX=
14295   ;;
14296
14297 linux*)
14298   case `$CC -V 2>&1 | sed 5q` in
14299   *Sun\ C*)
14300     # Sun C++ 5.9
14301
14302     # The more standards-conforming stlport4 library is
14303     # incompatible with the Cstd library. Avoid specifying
14304     # it if it's in CXXFLAGS. Ignore libCrun as
14305     # -library=stlport4 depends on it.
14306     case " $CXX $CXXFLAGS " in
14307     *" -library=stlport4 "*)
14308       solaris_use_stlport4=yes
14309       ;;
14310     esac
14311
14312     if test "$solaris_use_stlport4" != yes; then
14313       postdeps_CXX='-library=Cstd -library=Crun'
14314     fi
14315     ;;
14316   esac
14317   ;;
14318
14319 solaris*)
14320   case $cc_basename in
14321   CC*)
14322     # The more standards-conforming stlport4 library is
14323     # incompatible with the Cstd library. Avoid specifying
14324     # it if it's in CXXFLAGS. Ignore libCrun as
14325     # -library=stlport4 depends on it.
14326     case " $CXX $CXXFLAGS " in
14327     *" -library=stlport4 "*)
14328       solaris_use_stlport4=yes
14329       ;;
14330     esac
14331
14332     # Adding this requires a known-good setup of shared libraries for
14333     # Sun compiler versions before 5.6, else PIC objects from an old
14334     # archive will be linked into the output, leading to subtle bugs.
14335     if test "$solaris_use_stlport4" != yes; then
14336       postdeps_CXX='-library=Cstd -library=Crun'
14337     fi
14338     ;;
14339   esac
14340   ;;
14341 esac
14342
14343
14344 case " $postdeps_CXX " in
14345 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14346 esac
14347  compiler_lib_search_dirs_CXX=
14348 if test -n "${compiler_lib_search_path_CXX}"; then
14349  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14350 fi
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382     lt_prog_compiler_wl_CXX=
14383 lt_prog_compiler_pic_CXX=
14384 lt_prog_compiler_static_CXX=
14385
14386 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14388
14389   # C++ specific cases for pic, static, wl, etc.
14390   if test "$GXX" = yes; then
14391     lt_prog_compiler_wl_CXX='-Wl,'
14392     lt_prog_compiler_static_CXX='-static'
14393
14394     case $host_os in
14395     aix*)
14396       # All AIX code is PIC.
14397       if test "$host_cpu" = ia64; then
14398         # AIX 5 now supports IA64 processor
14399         lt_prog_compiler_static_CXX='-Bstatic'
14400       fi
14401       ;;
14402
14403     amigaos*)
14404       case $host_cpu in
14405       powerpc)
14406             # see comment about AmigaOS4 .so support
14407             lt_prog_compiler_pic_CXX='-fPIC'
14408         ;;
14409       m68k)
14410             # FIXME: we need at least 68020 code to build shared libraries, but
14411             # adding the `-m68020' flag to GCC prevents building anything better,
14412             # like `-m68040'.
14413             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14414         ;;
14415       esac
14416       ;;
14417
14418     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14419       # PIC is the default for these OSes.
14420       ;;
14421     mingw* | cygwin* | os2* | pw32* | cegcc*)
14422       # This hack is so that the source file can tell whether it is being
14423       # built for inclusion in a dll (and should export symbols for example).
14424       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14425       # (--disable-auto-import) libraries
14426       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14427       ;;
14428     darwin* | rhapsody*)
14429       # PIC is the default on this platform
14430       # Common symbols not allowed in MH_DYLIB files
14431       lt_prog_compiler_pic_CXX='-fno-common'
14432       ;;
14433     *djgpp*)
14434       # DJGPP does not support shared libraries at all
14435       lt_prog_compiler_pic_CXX=
14436       ;;
14437     interix[3-9]*)
14438       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14439       # Instead, we relocate shared libraries at runtime.
14440       ;;
14441     sysv4*MP*)
14442       if test -d /usr/nec; then
14443         lt_prog_compiler_pic_CXX=-Kconform_pic
14444       fi
14445       ;;
14446     hpux*)
14447       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14448       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14449       # sets the default TLS model and affects inlining.
14450       case $host_cpu in
14451       hppa*64*)
14452         ;;
14453       *)
14454         lt_prog_compiler_pic_CXX='-fPIC'
14455         ;;
14456       esac
14457       ;;
14458     *qnx* | *nto*)
14459       # QNX uses GNU C++, but need to define -shared option too, otherwise
14460       # it will coredump.
14461       lt_prog_compiler_pic_CXX='-fPIC -shared'
14462       ;;
14463     *)
14464       lt_prog_compiler_pic_CXX='-fPIC'
14465       ;;
14466     esac
14467   else
14468     case $host_os in
14469       aix[4-9]*)
14470         # All AIX code is PIC.
14471         if test "$host_cpu" = ia64; then
14472           # AIX 5 now supports IA64 processor
14473           lt_prog_compiler_static_CXX='-Bstatic'
14474         else
14475           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14476         fi
14477         ;;
14478       chorus*)
14479         case $cc_basename in
14480         cxch68*)
14481           # Green Hills C++ Compiler
14482           # _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"
14483           ;;
14484         esac
14485         ;;
14486       dgux*)
14487         case $cc_basename in
14488           ec++*)
14489             lt_prog_compiler_pic_CXX='-KPIC'
14490             ;;
14491           ghcx*)
14492             # Green Hills C++ Compiler
14493             lt_prog_compiler_pic_CXX='-pic'
14494             ;;
14495           *)
14496             ;;
14497         esac
14498         ;;
14499       freebsd* | dragonfly*)
14500         # FreeBSD uses GNU C++
14501         ;;
14502       hpux9* | hpux10* | hpux11*)
14503         case $cc_basename in
14504           CC*)
14505             lt_prog_compiler_wl_CXX='-Wl,'
14506             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14507             if test "$host_cpu" != ia64; then
14508               lt_prog_compiler_pic_CXX='+Z'
14509             fi
14510             ;;
14511           aCC*)
14512             lt_prog_compiler_wl_CXX='-Wl,'
14513             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14514             case $host_cpu in
14515             hppa*64*|ia64*)
14516               # +Z the default
14517               ;;
14518             *)
14519               lt_prog_compiler_pic_CXX='+Z'
14520               ;;
14521             esac
14522             ;;
14523           *)
14524             ;;
14525         esac
14526         ;;
14527       interix*)
14528         # This is c89, which is MS Visual C++ (no shared libs)
14529         # Anyone wants to do a port?
14530         ;;
14531       irix5* | irix6* | nonstopux*)
14532         case $cc_basename in
14533           CC*)
14534             lt_prog_compiler_wl_CXX='-Wl,'
14535             lt_prog_compiler_static_CXX='-non_shared'
14536             # CC pic flag -KPIC is the default.
14537             ;;
14538           *)
14539             ;;
14540         esac
14541         ;;
14542       linux* | k*bsd*-gnu)
14543         case $cc_basename in
14544           KCC*)
14545             # KAI C++ Compiler
14546             lt_prog_compiler_wl_CXX='--backend -Wl,'
14547             lt_prog_compiler_pic_CXX='-fPIC'
14548             ;;
14549           ecpc* )
14550             # old Intel C++ for x86_64 which still supported -KPIC.
14551             lt_prog_compiler_wl_CXX='-Wl,'
14552             lt_prog_compiler_pic_CXX='-KPIC'
14553             lt_prog_compiler_static_CXX='-static'
14554             ;;
14555           icpc* )
14556             # Intel C++, used to be incompatible with GCC.
14557             # ICC 10 doesn't accept -KPIC any more.
14558             lt_prog_compiler_wl_CXX='-Wl,'
14559             lt_prog_compiler_pic_CXX='-fPIC'
14560             lt_prog_compiler_static_CXX='-static'
14561             ;;
14562           pgCC* | pgcpp*)
14563             # Portland Group C++ compiler
14564             lt_prog_compiler_wl_CXX='-Wl,'
14565             lt_prog_compiler_pic_CXX='-fpic'
14566             lt_prog_compiler_static_CXX='-Bstatic'
14567             ;;
14568           cxx*)
14569             # Compaq C++
14570             # Make sure the PIC flag is empty.  It appears that all Alpha
14571             # Linux and Compaq Tru64 Unix objects are PIC.
14572             lt_prog_compiler_pic_CXX=
14573             lt_prog_compiler_static_CXX='-non_shared'
14574             ;;
14575           xlc* | xlC*)
14576             # IBM XL 8.0 on PPC
14577             lt_prog_compiler_wl_CXX='-Wl,'
14578             lt_prog_compiler_pic_CXX='-qpic'
14579             lt_prog_compiler_static_CXX='-qstaticlink'
14580             ;;
14581           *)
14582             case `$CC -V 2>&1 | sed 5q` in
14583             *Sun\ C*)
14584               # Sun C++ 5.9
14585               lt_prog_compiler_pic_CXX='-KPIC'
14586               lt_prog_compiler_static_CXX='-Bstatic'
14587               lt_prog_compiler_wl_CXX='-Qoption ld '
14588               ;;
14589             esac
14590             ;;
14591         esac
14592         ;;
14593       lynxos*)
14594         ;;
14595       m88k*)
14596         ;;
14597       mvs*)
14598         case $cc_basename in
14599           cxx*)
14600             lt_prog_compiler_pic_CXX='-W c,exportall'
14601             ;;
14602           *)
14603             ;;
14604         esac
14605         ;;
14606       netbsd*)
14607         ;;
14608       *qnx* | *nto*)
14609         # QNX uses GNU C++, but need to define -shared option too, otherwise
14610         # it will coredump.
14611         lt_prog_compiler_pic_CXX='-fPIC -shared'
14612         ;;
14613       osf3* | osf4* | osf5*)
14614         case $cc_basename in
14615           KCC*)
14616             lt_prog_compiler_wl_CXX='--backend -Wl,'
14617             ;;
14618           RCC*)
14619             # Rational C++ 2.4.1
14620             lt_prog_compiler_pic_CXX='-pic'
14621             ;;
14622           cxx*)
14623             # Digital/Compaq C++
14624             lt_prog_compiler_wl_CXX='-Wl,'
14625             # Make sure the PIC flag is empty.  It appears that all Alpha
14626             # Linux and Compaq Tru64 Unix objects are PIC.
14627             lt_prog_compiler_pic_CXX=
14628             lt_prog_compiler_static_CXX='-non_shared'
14629             ;;
14630           *)
14631             ;;
14632         esac
14633         ;;
14634       psos*)
14635         ;;
14636       solaris*)
14637         case $cc_basename in
14638           CC*)
14639             # Sun C++ 4.2, 5.x and Centerline C++
14640             lt_prog_compiler_pic_CXX='-KPIC'
14641             lt_prog_compiler_static_CXX='-Bstatic'
14642             lt_prog_compiler_wl_CXX='-Qoption ld '
14643             ;;
14644           gcx*)
14645             # Green Hills C++ Compiler
14646             lt_prog_compiler_pic_CXX='-PIC'
14647             ;;
14648           *)
14649             ;;
14650         esac
14651         ;;
14652       sunos4*)
14653         case $cc_basename in
14654           CC*)
14655             # Sun C++ 4.x
14656             lt_prog_compiler_pic_CXX='-pic'
14657             lt_prog_compiler_static_CXX='-Bstatic'
14658             ;;
14659           lcc*)
14660             # Lucid
14661             lt_prog_compiler_pic_CXX='-pic'
14662             ;;
14663           *)
14664             ;;
14665         esac
14666         ;;
14667       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14668         case $cc_basename in
14669           CC*)
14670             lt_prog_compiler_wl_CXX='-Wl,'
14671             lt_prog_compiler_pic_CXX='-KPIC'
14672             lt_prog_compiler_static_CXX='-Bstatic'
14673             ;;
14674         esac
14675         ;;
14676       tandem*)
14677         case $cc_basename in
14678           NCC*)
14679             # NonStop-UX NCC 3.20
14680             lt_prog_compiler_pic_CXX='-KPIC'
14681             ;;
14682           *)
14683             ;;
14684         esac
14685         ;;
14686       vxworks*)
14687         ;;
14688       *)
14689         lt_prog_compiler_can_build_shared_CXX=no
14690         ;;
14691     esac
14692   fi
14693
14694 case $host_os in
14695   # For platforms which do not support PIC, -DPIC is meaningless:
14696   *djgpp*)
14697     lt_prog_compiler_pic_CXX=
14698     ;;
14699   *)
14700     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14701     ;;
14702 esac
14703 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14704 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14705
14706
14707
14708 #
14709 # Check to make sure the PIC flag actually works.
14710 #
14711 if test -n "$lt_prog_compiler_pic_CXX"; then
14712   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14714 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   lt_cv_prog_compiler_pic_works_CXX=no
14718    ac_outfile=conftest.$ac_objext
14719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14720    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14721    # Insert the option either (1) after the last *FLAGS variable, or
14722    # (2) before a word containing "conftest.", or (3) at the end.
14723    # Note that $ac_compile itself does not contain backslashes and begins
14724    # with a dollar sign (not a hyphen), so the echo should work correctly.
14725    # The option is referenced via a variable to avoid confusing sed.
14726    lt_compile=`echo "$ac_compile" | $SED \
14727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14729    -e 's:$: $lt_compiler_flag:'`
14730    (eval echo "\"\$as_me:14730: $lt_compile\"" >&5)
14731    (eval "$lt_compile" 2>conftest.err)
14732    ac_status=$?
14733    cat conftest.err >&5
14734    echo "$as_me:14734: \$? = $ac_status" >&5
14735    if (exit $ac_status) && test -s "$ac_outfile"; then
14736      # The compiler can only warn and ignore the option if not recognized
14737      # So say no if there are warnings other than the usual output.
14738      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14741        lt_cv_prog_compiler_pic_works_CXX=yes
14742      fi
14743    fi
14744    $RM conftest*
14745
14746 fi
14747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14748 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14749
14750 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14751     case $lt_prog_compiler_pic_CXX in
14752      "" | " "*) ;;
14753      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14754      esac
14755 else
14756     lt_prog_compiler_pic_CXX=
14757      lt_prog_compiler_can_build_shared_CXX=no
14758 fi
14759
14760 fi
14761
14762
14763
14764 #
14765 # Check to make sure the static flag actually works.
14766 #
14767 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14768 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14769 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14770 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14771   echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773   lt_cv_prog_compiler_static_works_CXX=no
14774    save_LDFLAGS="$LDFLAGS"
14775    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14776    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14777    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14778      # The linker can only warn and ignore the option if not recognized
14779      # So say no if there are warnings
14780      if test -s conftest.err; then
14781        # Append any errors to the config.log.
14782        cat conftest.err 1>&5
14783        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14784        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14785        if diff conftest.exp conftest.er2 >/dev/null; then
14786          lt_cv_prog_compiler_static_works_CXX=yes
14787        fi
14788      else
14789        lt_cv_prog_compiler_static_works_CXX=yes
14790      fi
14791    fi
14792    $RM -r conftest*
14793    LDFLAGS="$save_LDFLAGS"
14794
14795 fi
14796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14797 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14798
14799 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14800     :
14801 else
14802     lt_prog_compiler_static_CXX=
14803 fi
14804
14805
14806
14807
14808     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14809 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14810 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14811   echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813   lt_cv_prog_compiler_c_o_CXX=no
14814    $RM -r conftest 2>/dev/null
14815    mkdir conftest
14816    cd conftest
14817    mkdir out
14818    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14819
14820    lt_compiler_flag="-o out/conftest2.$ac_objext"
14821    # Insert the option either (1) after the last *FLAGS variable, or
14822    # (2) before a word containing "conftest.", or (3) at the end.
14823    # Note that $ac_compile itself does not contain backslashes and begins
14824    # with a dollar sign (not a hyphen), so the echo should work correctly.
14825    lt_compile=`echo "$ac_compile" | $SED \
14826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14828    -e 's:$: $lt_compiler_flag:'`
14829    (eval echo "\"\$as_me:14829: $lt_compile\"" >&5)
14830    (eval "$lt_compile" 2>out/conftest.err)
14831    ac_status=$?
14832    cat out/conftest.err >&5
14833    echo "$as_me:14833: \$? = $ac_status" >&5
14834    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14835    then
14836      # The compiler can only warn and ignore the option if not recognized
14837      # So say no if there are warnings
14838      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14839      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14840      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14841        lt_cv_prog_compiler_c_o_CXX=yes
14842      fi
14843    fi
14844    chmod u+w . 2>&5
14845    $RM conftest*
14846    # SGI C++ compiler will create directory out/ii_files/ for
14847    # template instantiation
14848    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14849    $RM out/* && rmdir out
14850    cd ..
14851    $RM -r conftest
14852    $RM conftest*
14853
14854 fi
14855 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14856 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14857
14858
14859
14860     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14862 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14863   echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865   lt_cv_prog_compiler_c_o_CXX=no
14866    $RM -r conftest 2>/dev/null
14867    mkdir conftest
14868    cd conftest
14869    mkdir out
14870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14871
14872    lt_compiler_flag="-o out/conftest2.$ac_objext"
14873    # Insert the option either (1) after the last *FLAGS variable, or
14874    # (2) before a word containing "conftest.", or (3) at the end.
14875    # Note that $ac_compile itself does not contain backslashes and begins
14876    # with a dollar sign (not a hyphen), so the echo should work correctly.
14877    lt_compile=`echo "$ac_compile" | $SED \
14878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14880    -e 's:$: $lt_compiler_flag:'`
14881    (eval echo "\"\$as_me:14881: $lt_compile\"" >&5)
14882    (eval "$lt_compile" 2>out/conftest.err)
14883    ac_status=$?
14884    cat out/conftest.err >&5
14885    echo "$as_me:14885: \$? = $ac_status" >&5
14886    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14887    then
14888      # The compiler can only warn and ignore the option if not recognized
14889      # So say no if there are warnings
14890      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14891      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14892      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14893        lt_cv_prog_compiler_c_o_CXX=yes
14894      fi
14895    fi
14896    chmod u+w . 2>&5
14897    $RM conftest*
14898    # SGI C++ compiler will create directory out/ii_files/ for
14899    # template instantiation
14900    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14901    $RM out/* && rmdir out
14902    cd ..
14903    $RM -r conftest
14904    $RM conftest*
14905
14906 fi
14907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14909
14910
14911
14912
14913 hard_links="nottested"
14914 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14915   # do not overwrite the value of need_locks provided by the user
14916   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14918   hard_links=yes
14919   $RM conftest*
14920   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14921   touch conftest.a
14922   ln conftest.a conftest.b 2>&5 || hard_links=no
14923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14924   { echo "$as_me:$LINENO: result: $hard_links" >&5
14925 echo "${ECHO_T}$hard_links" >&6; }
14926   if test "$hard_links" = no; then
14927     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14929     need_locks=warn
14930   fi
14931 else
14932   need_locks=no
14933 fi
14934
14935
14936
14937     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14939
14940   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14941   case $host_os in
14942   aix[4-9]*)
14943     # If we're using GNU nm, then we don't want the "-C" option.
14944     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14945     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14946       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'
14947     else
14948       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'
14949     fi
14950     ;;
14951   pw32*)
14952     export_symbols_cmds_CXX="$ltdll_cmds"
14953   ;;
14954   cygwin* | mingw* | cegcc*)
14955     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'
14956   ;;
14957   *)
14958     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14959   ;;
14960   esac
14961   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14962
14963 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14964 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14965 test "$ld_shlibs_CXX" = no && can_build_shared=no
14966
14967 with_gnu_ld_CXX=$with_gnu_ld
14968
14969
14970
14971
14972
14973
14974 #
14975 # Do we need to explicitly link libc?
14976 #
14977 case "x$archive_cmds_need_lc_CXX" in
14978 x|xyes)
14979   # Assume -lc should be added
14980   archive_cmds_need_lc_CXX=yes
14981
14982   if test "$enable_shared" = yes && test "$GCC" = yes; then
14983     case $archive_cmds_CXX in
14984     *'~'*)
14985       # FIXME: we may have to deal with multi-command sequences.
14986       ;;
14987     '$CC '*)
14988       # Test whether the compiler implicitly links with -lc since on some
14989       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14990       # to ld, don't add -lc before -lgcc.
14991       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14992 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14993       $RM conftest*
14994       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14995
14996       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997   (eval $ac_compile) 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); } 2>conftest.err; then
15001         soname=conftest
15002         lib=conftest
15003         libobjs=conftest.$ac_objext
15004         deplibs=
15005         wl=$lt_prog_compiler_wl_CXX
15006         pic_flag=$lt_prog_compiler_pic_CXX
15007         compiler_flags=-v
15008         linker_flags=-v
15009         verstring=
15010         output_objdir=.
15011         libname=conftest
15012         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15013         allow_undefined_flag_CXX=
15014         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15015   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }
15019         then
15020           archive_cmds_need_lc_CXX=no
15021         else
15022           archive_cmds_need_lc_CXX=yes
15023         fi
15024         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15025       else
15026         cat conftest.err 1>&5
15027       fi
15028       $RM conftest*
15029       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15030 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15031       ;;
15032     esac
15033   fi
15034   ;;
15035 esac
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15101 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15102
15103 library_names_spec=
15104 libname_spec='lib$name'
15105 soname_spec=
15106 shrext_cmds=".so"
15107 postinstall_cmds=
15108 postuninstall_cmds=
15109 finish_cmds=
15110 finish_eval=
15111 shlibpath_var=
15112 shlibpath_overrides_runpath=unknown
15113 version_type=none
15114 dynamic_linker="$host_os ld.so"
15115 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15116 need_lib_prefix=unknown
15117 hardcode_into_libs=no
15118
15119 # when you set need_version to no, make sure it does not cause -set_version
15120 # flags to be left without arguments
15121 need_version=unknown
15122
15123 case $host_os in
15124 aix3*)
15125   version_type=linux
15126   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15127   shlibpath_var=LIBPATH
15128
15129   # AIX 3 has no versioning support, so we append a major version to the name.
15130   soname_spec='${libname}${release}${shared_ext}$major'
15131   ;;
15132
15133 aix[4-9]*)
15134   version_type=linux
15135   need_lib_prefix=no
15136   need_version=no
15137   hardcode_into_libs=yes
15138   if test "$host_cpu" = ia64; then
15139     # AIX 5 supports IA64
15140     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15141     shlibpath_var=LD_LIBRARY_PATH
15142   else
15143     # With GCC up to 2.95.x, collect2 would create an import file
15144     # for dependence libraries.  The import file would start with
15145     # the line `#! .'.  This would cause the generated library to
15146     # depend on `.', always an invalid library.  This was fixed in
15147     # development snapshots of GCC prior to 3.0.
15148     case $host_os in
15149       aix4 | aix4.[01] | aix4.[01].*)
15150       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15151            echo ' yes '
15152            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15153         :
15154       else
15155         can_build_shared=no
15156       fi
15157       ;;
15158     esac
15159     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15160     # soname into executable. Probably we can add versioning support to
15161     # collect2, so additional links can be useful in future.
15162     if test "$aix_use_runtimelinking" = yes; then
15163       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15164       # instead of lib<name>.a to let people know that these are not
15165       # typical AIX shared libraries.
15166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167     else
15168       # We preserve .a as extension for shared libraries through AIX4.2
15169       # and later when we are not doing run time linking.
15170       library_names_spec='${libname}${release}.a $libname.a'
15171       soname_spec='${libname}${release}${shared_ext}$major'
15172     fi
15173     shlibpath_var=LIBPATH
15174   fi
15175   ;;
15176
15177 amigaos*)
15178   case $host_cpu in
15179   powerpc)
15180     # Since July 2007 AmigaOS4 officially supports .so libraries.
15181     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183     ;;
15184   m68k)
15185     library_names_spec='$libname.ixlibrary $libname.a'
15186     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15187     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'
15188     ;;
15189   esac
15190   ;;
15191
15192 beos*)
15193   library_names_spec='${libname}${shared_ext}'
15194   dynamic_linker="$host_os ld.so"
15195   shlibpath_var=LIBRARY_PATH
15196   ;;
15197
15198 bsdi[45]*)
15199   version_type=linux
15200   need_version=no
15201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202   soname_spec='${libname}${release}${shared_ext}$major'
15203   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15204   shlibpath_var=LD_LIBRARY_PATH
15205   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15206   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15207   # the default ld.so.conf also contains /usr/contrib/lib and
15208   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15209   # libtool to hard-code these into programs
15210   ;;
15211
15212 cygwin* | mingw* | pw32* | cegcc*)
15213   version_type=windows
15214   shrext_cmds=".dll"
15215   need_version=no
15216   need_lib_prefix=no
15217
15218   case $GCC,$host_os in
15219   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15220     library_names_spec='$libname.dll.a'
15221     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15222     postinstall_cmds='base_file=`basename \${file}`~
15223       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15224       dldir=$destdir/`dirname \$dlpath`~
15225       test -d \$dldir || mkdir -p \$dldir~
15226       $install_prog $dir/$dlname \$dldir/$dlname~
15227       chmod a+x \$dldir/$dlname~
15228       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15229         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15230       fi'
15231     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15232       dlpath=$dir/\$dldll~
15233        $RM \$dlpath'
15234     shlibpath_overrides_runpath=yes
15235
15236     case $host_os in
15237     cygwin*)
15238       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15239       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15240       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15241       ;;
15242     mingw* | cegcc*)
15243       # MinGW DLLs use traditional 'lib' prefix
15244       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15245       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15246       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15247         # It is most probably a Windows format PATH printed by
15248         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15249         # path with ; separators, and with drive letters. We can handle the
15250         # drive letters (cygwin fileutils understands them), so leave them,
15251         # especially as we might pass files found there to a mingw objdump,
15252         # which wouldn't understand a cygwinified path. Ahh.
15253         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15254       else
15255         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15256       fi
15257       ;;
15258     pw32*)
15259       # pw32 DLLs use 'pw' prefix rather than 'lib'
15260       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15261       ;;
15262     esac
15263     ;;
15264
15265   *)
15266     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15267     ;;
15268   esac
15269   dynamic_linker='Win32 ld.exe'
15270   # FIXME: first we should search . and the directory the executable is in
15271   shlibpath_var=PATH
15272   ;;
15273
15274 darwin* | rhapsody*)
15275   dynamic_linker="$host_os dyld"
15276   version_type=darwin
15277   need_lib_prefix=no
15278   need_version=no
15279   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15280   soname_spec='${libname}${release}${major}$shared_ext'
15281   shlibpath_overrides_runpath=yes
15282   shlibpath_var=DYLD_LIBRARY_PATH
15283   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15284
15285   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15286   ;;
15287
15288 dgux*)
15289   version_type=linux
15290   need_lib_prefix=no
15291   need_version=no
15292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15293   soname_spec='${libname}${release}${shared_ext}$major'
15294   shlibpath_var=LD_LIBRARY_PATH
15295   ;;
15296
15297 freebsd1*)
15298   dynamic_linker=no
15299   ;;
15300
15301 freebsd* | dragonfly*)
15302   # DragonFly does not have aout.  When/if they implement a new
15303   # versioning mechanism, adjust this.
15304   if test -x /usr/bin/objformat; then
15305     objformat=`/usr/bin/objformat`
15306   else
15307     case $host_os in
15308     freebsd[123]*) objformat=aout ;;
15309     *) objformat=elf ;;
15310     esac
15311   fi
15312   version_type=freebsd-$objformat
15313   case $version_type in
15314     freebsd-elf*)
15315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15316       need_version=no
15317       need_lib_prefix=no
15318       ;;
15319     freebsd-*)
15320       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15321       need_version=yes
15322       ;;
15323   esac
15324   shlibpath_var=LD_LIBRARY_PATH
15325   case $host_os in
15326   freebsd2*)
15327     shlibpath_overrides_runpath=yes
15328     ;;
15329   freebsd3.[01]* | freebsdelf3.[01]*)
15330     shlibpath_overrides_runpath=yes
15331     hardcode_into_libs=yes
15332     ;;
15333   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15334   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15335     shlibpath_overrides_runpath=no
15336     hardcode_into_libs=yes
15337     ;;
15338   *) # from 4.6 on, and DragonFly
15339     shlibpath_overrides_runpath=yes
15340     hardcode_into_libs=yes
15341     ;;
15342   esac
15343   ;;
15344
15345 gnu*)
15346   version_type=linux
15347   need_lib_prefix=no
15348   need_version=no
15349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15350   soname_spec='${libname}${release}${shared_ext}$major'
15351   shlibpath_var=LD_LIBRARY_PATH
15352   hardcode_into_libs=yes
15353   ;;
15354
15355 hpux9* | hpux10* | hpux11*)
15356   # Give a soname corresponding to the major version so that dld.sl refuses to
15357   # link against other versions.
15358   version_type=sunos
15359   need_lib_prefix=no
15360   need_version=no
15361   case $host_cpu in
15362   ia64*)
15363     shrext_cmds='.so'
15364     hardcode_into_libs=yes
15365     dynamic_linker="$host_os dld.so"
15366     shlibpath_var=LD_LIBRARY_PATH
15367     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369     soname_spec='${libname}${release}${shared_ext}$major'
15370     if test "X$HPUX_IA64_MODE" = X32; then
15371       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15372     else
15373       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15374     fi
15375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15376     ;;
15377   hppa*64*)
15378     shrext_cmds='.sl'
15379     hardcode_into_libs=yes
15380     dynamic_linker="$host_os dld.sl"
15381     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15382     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384     soname_spec='${libname}${release}${shared_ext}$major'
15385     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15386     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15387     ;;
15388   *)
15389     shrext_cmds='.sl'
15390     dynamic_linker="$host_os dld.sl"
15391     shlibpath_var=SHLIB_PATH
15392     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394     soname_spec='${libname}${release}${shared_ext}$major'
15395     ;;
15396   esac
15397   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15398   postinstall_cmds='chmod 555 $lib'
15399   ;;
15400
15401 interix[3-9]*)
15402   version_type=linux
15403   need_lib_prefix=no
15404   need_version=no
15405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406   soname_spec='${libname}${release}${shared_ext}$major'
15407   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15408   shlibpath_var=LD_LIBRARY_PATH
15409   shlibpath_overrides_runpath=no
15410   hardcode_into_libs=yes
15411   ;;
15412
15413 irix5* | irix6* | nonstopux*)
15414   case $host_os in
15415     nonstopux*) version_type=nonstopux ;;
15416     *)
15417         if test "$lt_cv_prog_gnu_ld" = yes; then
15418                 version_type=linux
15419         else
15420                 version_type=irix
15421         fi ;;
15422   esac
15423   need_lib_prefix=no
15424   need_version=no
15425   soname_spec='${libname}${release}${shared_ext}$major'
15426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15427   case $host_os in
15428   irix5* | nonstopux*)
15429     libsuff= shlibsuff=
15430     ;;
15431   *)
15432     case $LD in # libtool.m4 will add one of these switches to LD
15433     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15434       libsuff= shlibsuff= libmagic=32-bit;;
15435     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15436       libsuff=32 shlibsuff=N32 libmagic=N32;;
15437     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15438       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15439     *) libsuff= shlibsuff= libmagic=never-match;;
15440     esac
15441     ;;
15442   esac
15443   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15444   shlibpath_overrides_runpath=no
15445   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15446   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15447   hardcode_into_libs=yes
15448   ;;
15449
15450 # No shared lib support for Linux oldld, aout, or coff.
15451 linux*oldld* | linux*aout* | linux*coff*)
15452   dynamic_linker=no
15453   ;;
15454
15455 # This must be Linux ELF.
15456 linux* | k*bsd*-gnu)
15457   version_type=linux
15458   need_lib_prefix=no
15459   need_version=no
15460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461   soname_spec='${libname}${release}${shared_ext}$major'
15462   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15463   shlibpath_var=LD_LIBRARY_PATH
15464   shlibpath_overrides_runpath=no
15465   # Some binutils ld are patched to set DT_RUNPATH
15466   save_LDFLAGS=$LDFLAGS
15467   save_libdir=$libdir
15468   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15469        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15470   cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h.  */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h.  */
15476
15477 int
15478 main ()
15479 {
15480
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_link") 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } && {
15499          test -z "$ac_cxx_werror_flag" ||
15500          test ! -s conftest.err
15501        } && test -s conftest$ac_exeext &&
15502        $as_test_x conftest$ac_exeext; then
15503   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15504   shlibpath_overrides_runpath=yes
15505 fi
15506
15507 else
15508   echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511
15512 fi
15513
15514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15515       conftest$ac_exeext conftest.$ac_ext
15516   LDFLAGS=$save_LDFLAGS
15517   libdir=$save_libdir
15518
15519   # This implies no fast_install, which is unacceptable.
15520   # Some rework will be needed to allow for fast_install
15521   # before this can be enabled.
15522   hardcode_into_libs=yes
15523
15524   # Append ld.so.conf contents to the search path
15525   if test -f /etc/ld.so.conf; then
15526     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' ' '`
15527     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15528   fi
15529
15530   # We used to test for /lib/ld.so.1 and disable shared libraries on
15531   # powerpc, because MkLinux only supported shared libraries with the
15532   # GNU dynamic linker.  Since this was broken with cross compilers,
15533   # most powerpc-linux boxes support dynamic linking these days and
15534   # people can always --disable-shared, the test was removed, and we
15535   # assume the GNU/Linux dynamic linker is in use.
15536   dynamic_linker='GNU/Linux ld.so'
15537   ;;
15538
15539 netbsd*)
15540   version_type=sunos
15541   need_lib_prefix=no
15542   need_version=no
15543   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15545     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15546     dynamic_linker='NetBSD (a.out) ld.so'
15547   else
15548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15549     soname_spec='${libname}${release}${shared_ext}$major'
15550     dynamic_linker='NetBSD ld.elf_so'
15551   fi
15552   shlibpath_var=LD_LIBRARY_PATH
15553   shlibpath_overrides_runpath=yes
15554   hardcode_into_libs=yes
15555   ;;
15556
15557 newsos6)
15558   version_type=linux
15559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560   shlibpath_var=LD_LIBRARY_PATH
15561   shlibpath_overrides_runpath=yes
15562   ;;
15563
15564 *nto* | *qnx*)
15565   version_type=qnx
15566   need_lib_prefix=no
15567   need_version=no
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569   soname_spec='${libname}${release}${shared_ext}$major'
15570   shlibpath_var=LD_LIBRARY_PATH
15571   shlibpath_overrides_runpath=no
15572   hardcode_into_libs=yes
15573   dynamic_linker='ldqnx.so'
15574   ;;
15575
15576 openbsd*)
15577   version_type=sunos
15578   sys_lib_dlsearch_path_spec="/usr/lib"
15579   need_lib_prefix=no
15580   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15581   case $host_os in
15582     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15583     *)                          need_version=no  ;;
15584   esac
15585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15586   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15587   shlibpath_var=LD_LIBRARY_PATH
15588   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15589     case $host_os in
15590       openbsd2.[89] | openbsd2.[89].*)
15591         shlibpath_overrides_runpath=no
15592         ;;
15593       *)
15594         shlibpath_overrides_runpath=yes
15595         ;;
15596       esac
15597   else
15598     shlibpath_overrides_runpath=yes
15599   fi
15600   ;;
15601
15602 os2*)
15603   libname_spec='$name'
15604   shrext_cmds=".dll"
15605   need_lib_prefix=no
15606   library_names_spec='$libname${shared_ext} $libname.a'
15607   dynamic_linker='OS/2 ld.exe'
15608   shlibpath_var=LIBPATH
15609   ;;
15610
15611 osf3* | osf4* | osf5*)
15612   version_type=osf
15613   need_lib_prefix=no
15614   need_version=no
15615   soname_spec='${libname}${release}${shared_ext}$major'
15616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617   shlibpath_var=LD_LIBRARY_PATH
15618   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15619   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15620   ;;
15621
15622 rdos*)
15623   dynamic_linker=no
15624   ;;
15625
15626 solaris*)
15627   version_type=linux
15628   need_lib_prefix=no
15629   need_version=no
15630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631   soname_spec='${libname}${release}${shared_ext}$major'
15632   shlibpath_var=LD_LIBRARY_PATH
15633   shlibpath_overrides_runpath=yes
15634   hardcode_into_libs=yes
15635   # ldd complains unless libraries are executable
15636   postinstall_cmds='chmod +x $lib'
15637   ;;
15638
15639 sunos4*)
15640   version_type=sunos
15641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15642   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15643   shlibpath_var=LD_LIBRARY_PATH
15644   shlibpath_overrides_runpath=yes
15645   if test "$with_gnu_ld" = yes; then
15646     need_lib_prefix=no
15647   fi
15648   need_version=yes
15649   ;;
15650
15651 sysv4 | sysv4.3*)
15652   version_type=linux
15653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654   soname_spec='${libname}${release}${shared_ext}$major'
15655   shlibpath_var=LD_LIBRARY_PATH
15656   case $host_vendor in
15657     sni)
15658       shlibpath_overrides_runpath=no
15659       need_lib_prefix=no
15660       runpath_var=LD_RUN_PATH
15661       ;;
15662     siemens)
15663       need_lib_prefix=no
15664       ;;
15665     motorola)
15666       need_lib_prefix=no
15667       need_version=no
15668       shlibpath_overrides_runpath=no
15669       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15670       ;;
15671   esac
15672   ;;
15673
15674 sysv4*MP*)
15675   if test -d /usr/nec ;then
15676     version_type=linux
15677     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15678     soname_spec='$libname${shared_ext}.$major'
15679     shlibpath_var=LD_LIBRARY_PATH
15680   fi
15681   ;;
15682
15683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15684   version_type=freebsd-elf
15685   need_lib_prefix=no
15686   need_version=no
15687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15688   soname_spec='${libname}${release}${shared_ext}$major'
15689   shlibpath_var=LD_LIBRARY_PATH
15690   shlibpath_overrides_runpath=yes
15691   hardcode_into_libs=yes
15692   if test "$with_gnu_ld" = yes; then
15693     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15694   else
15695     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15696     case $host_os in
15697       sco3.2v5*)
15698         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15699         ;;
15700     esac
15701   fi
15702   sys_lib_dlsearch_path_spec='/usr/lib'
15703   ;;
15704
15705 tpf*)
15706   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15707   version_type=linux
15708   need_lib_prefix=no
15709   need_version=no
15710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711   shlibpath_var=LD_LIBRARY_PATH
15712   shlibpath_overrides_runpath=no
15713   hardcode_into_libs=yes
15714   ;;
15715
15716 uts4*)
15717   version_type=linux
15718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15719   soname_spec='${libname}${release}${shared_ext}$major'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   ;;
15722
15723 *)
15724   dynamic_linker=no
15725   ;;
15726 esac
15727 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15728 echo "${ECHO_T}$dynamic_linker" >&6; }
15729 test "$dynamic_linker" = no && can_build_shared=no
15730
15731 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15732 if test "$GCC" = yes; then
15733   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15734 fi
15735
15736 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15737   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15738 fi
15739 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15740   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15741 fi
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15779 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15780 hardcode_action_CXX=
15781 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15782    test -n "$runpath_var_CXX" ||
15783    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15784
15785   # We can hardcode non-existent directories.
15786   if test "$hardcode_direct_CXX" != no &&
15787      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15788      # have to relink, otherwise we might link with an installed library
15789      # when we should be linking with a yet-to-be-installed one
15790      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15791      test "$hardcode_minus_L_CXX" != no; then
15792     # Linking always hardcodes the temporary library directory.
15793     hardcode_action_CXX=relink
15794   else
15795     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15796     hardcode_action_CXX=immediate
15797   fi
15798 else
15799   # We cannot hardcode anything, or else we can only hardcode existing
15800   # directories.
15801   hardcode_action_CXX=unsupported
15802 fi
15803 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15804 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15805
15806 if test "$hardcode_action_CXX" = relink ||
15807    test "$inherit_rpath_CXX" = yes; then
15808   # Fast installation is not supported
15809   enable_fast_install=no
15810 elif test "$shlibpath_overrides_runpath" = yes ||
15811      test "$enable_shared" = no; then
15812   # Fast installation is not necessary
15813   enable_fast_install=needless
15814 fi
15815
15816
15817
15818
15819
15820
15821
15822   fi # test -n "$compiler"
15823
15824   CC=$lt_save_CC
15825   LDCXX=$LD
15826   LD=$lt_save_LD
15827   GCC=$lt_save_GCC
15828   with_gnu_ld=$lt_save_with_gnu_ld
15829   lt_cv_path_LDCXX=$lt_cv_path_LD
15830   lt_cv_path_LD=$lt_save_path_LD
15831   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15832   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15833 fi # test "$_lt_caught_CXX_error" != yes
15834
15835 ac_ext=c
15836 ac_cpp='$CPP $CPPFLAGS'
15837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853         ac_config_commands="$ac_config_commands libtool"
15854
15855
15856
15857
15858 # Only expand once:
15859
15860
15861
15862 # Check whether --enable-libtool was given.
15863 if test "${enable_libtool+set}" = set; then
15864   enableval=$enable_libtool;
15865        if test x$enableval = xno; then
15866           use_libtool=no
15867        fi
15868
15869
15870 fi
15871
15872
15873 if test x$use_libtool != xno; then
15874    DEFAULT_OBJECT_TYPE=".lo"
15875    DEFAULT_ARCHIVE_TYPE=".la"
15876    DEFAULT_SHARED_OBJECT_TYPE=".la"
15877    LIBTOOL="\$(LIBTOOL)"
15878    LIBTOOL_INSTALL_TARGET="libtool-install"
15879    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15880    LIBTOOL_CLEAN_TARGET="libtool-clean"
15881    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15882 else
15883    DEFAULT_OBJECT_TYPE=".o"
15884    DEFAULT_ARCHIVE_TYPE=".a"
15885    DEFAULT_SHARED_OBJECT_TYPE=".so"
15886    LIBTOOL="# \$(LIBTOOL)"
15887    LIBTOOL_INSTALL_TARGET=""
15888    LIBTOOL_UNINSTALL_TARGET=""
15889    LIBTOOL_CLEAN_TARGET=""
15890    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15891 fi
15892
15893 INCLUDE_INSTALL_TARGET=""
15894 INCLUDE_UNINSTALL_TARGET=""
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908 { echo "$as_me:$LINENO: checking host system type" >&5
15909 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15910 if test "${ac_cv_host+set}" = set; then
15911   echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913   if test "x$host_alias" = x; then
15914   ac_cv_host=$ac_cv_build
15915 else
15916   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15917     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15919    { (exit 1); exit 1; }; }
15920 fi
15921
15922 fi
15923 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15924 echo "${ECHO_T}$ac_cv_host" >&6; }
15925 case $ac_cv_host in
15926 *-*-*) ;;
15927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15928 echo "$as_me: error: invalid value of canonical host" >&2;}
15929    { (exit 1); exit 1; }; };;
15930 esac
15931 host=$ac_cv_host
15932 ac_save_IFS=$IFS; IFS='-'
15933 set x $ac_cv_host
15934 shift
15935 host_cpu=$1
15936 host_vendor=$2
15937 shift; shift
15938 # Remember, the first character of IFS is used to create $*,
15939 # except with old shells:
15940 host_os=$*
15941 IFS=$ac_save_IFS
15942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15943
15944
15945 case $host_os in
15946   *cygwin* ) CYGWIN=yes;;
15947          * ) CYGWIN=no;;
15948 esac
15949
15950 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15951 then
15952
15953
15954 if $TRUEPRG; then
15955   HAVE_SUN_OS_TRUE=
15956   HAVE_SUN_OS_FALSE='#'
15957 else
15958   HAVE_SUN_OS_TRUE='#'
15959   HAVE_SUN_OS_FALSE=
15960 fi
15961         cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_SUN_OS 1
15963 _ACEOF
15964
15965 else
15966
15967
15968 if $FALSEPRG; then
15969   HAVE_SUN_OS_TRUE=
15970   HAVE_SUN_OS_FALSE='#'
15971 else
15972   HAVE_SUN_OS_TRUE='#'
15973   HAVE_SUN_OS_FALSE=
15974 fi
15975 fi
15976
15977 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15978 then
15979
15980
15981 if $TRUEPRG; then
15982   HAVE_OSF1_OS_TRUE=
15983   HAVE_OSF1_OS_FALSE='#'
15984 else
15985   HAVE_OSF1_OS_TRUE='#'
15986   HAVE_OSF1_OS_FALSE=
15987 fi
15988         cat >>confdefs.h <<\_ACEOF
15989 #define HAVE_OSF1_OS 1
15990 _ACEOF
15991
15992 else
15993
15994
15995 if $FALSEPRG; then
15996   HAVE_OSF1_OS_TRUE=
15997   HAVE_OSF1_OS_FALSE='#'
15998 else
15999   HAVE_OSF1_OS_TRUE='#'
16000   HAVE_OSF1_OS_FALSE=
16001 fi
16002 fi
16003
16004 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16005 then
16006
16007
16008 if $TRUEPRG; then
16009   HAVE_AIX_OS_TRUE=
16010   HAVE_AIX_OS_FALSE='#'
16011 else
16012   HAVE_AIX_OS_TRUE='#'
16013   HAVE_AIX_OS_FALSE=
16014 fi
16015         cat >>confdefs.h <<\_ACEOF
16016 #define HAVE_AIX_OS 1
16017 _ACEOF
16018
16019 else
16020
16021
16022 if $FALSEPRG; then
16023   HAVE_AIX_OS_TRUE=
16024   HAVE_AIX_OS_FALSE='#'
16025 else
16026   HAVE_AIX_OS_TRUE='#'
16027   HAVE_AIX_OS_FALSE=
16028 fi
16029 fi
16030
16031 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16032 then
16033
16034
16035 if $TRUEPRG; then
16036   HAVE_HPUX_OS_TRUE=
16037   HAVE_HPUX_OS_FALSE='#'
16038 else
16039   HAVE_HPUX_OS_TRUE='#'
16040   HAVE_HPUX_OS_FALSE=
16041 fi
16042         cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_HPUX_OS 1
16044 _ACEOF
16045
16046 else
16047
16048
16049 if $FALSEPRG; then
16050   HAVE_HPUX_OS_TRUE=
16051   HAVE_HPUX_OS_FALSE='#'
16052 else
16053   HAVE_HPUX_OS_TRUE='#'
16054   HAVE_HPUX_OS_FALSE=
16055 fi
16056 fi
16057
16058 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16059 then
16060
16061
16062 if $TRUEPRG; then
16063   HAVE_LINUX_OS_TRUE=
16064   HAVE_LINUX_OS_FALSE='#'
16065 else
16066   HAVE_LINUX_OS_TRUE='#'
16067   HAVE_LINUX_OS_FALSE=
16068 fi
16069         cat >>confdefs.h <<\_ACEOF
16070 #define HAVE_LINUX_OS 1
16071 _ACEOF
16072
16073 else
16074
16075
16076 if $FALSEPRG; then
16077   HAVE_LINUX_OS_TRUE=
16078   HAVE_LINUX_OS_FALSE='#'
16079 else
16080   HAVE_LINUX_OS_TRUE='#'
16081   HAVE_LINUX_OS_FALSE=
16082 fi
16083 fi
16084
16085 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16086 then
16087
16088
16089 if $TRUEPRG; then
16090   HAVE_FREEBSD_OS_TRUE=
16091   HAVE_FREEBSD_OS_FALSE='#'
16092 else
16093   HAVE_FREEBSD_OS_TRUE='#'
16094   HAVE_FREEBSD_OS_FALSE=
16095 fi
16096         cat >>confdefs.h <<\_ACEOF
16097 #define HAVE_FREEBSD_OS 1
16098 _ACEOF
16099
16100 else
16101
16102
16103 if $FALSEPRG; then
16104   HAVE_FREEBSD_OS_TRUE=
16105   HAVE_FREEBSD_OS_FALSE='#'
16106 else
16107   HAVE_FREEBSD_OS_TRUE='#'
16108   HAVE_FREEBSD_OS_FALSE=
16109 fi
16110 fi
16111
16112 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16113 then
16114
16115
16116 if $TRUEPRG; then
16117   HAVE_NETBSD_OS_TRUE=
16118   HAVE_NETBSD_OS_FALSE='#'
16119 else
16120   HAVE_NETBSD_OS_TRUE='#'
16121   HAVE_NETBSD_OS_FALSE=
16122 fi
16123         cat >>confdefs.h <<\_ACEOF
16124 #define HAVE_NETBSD_OS 1
16125 _ACEOF
16126
16127 else
16128
16129
16130 if $FALSEPRG; then
16131   HAVE_NETBSD_OS_TRUE=
16132   HAVE_NETBSD_OS_FALSE='#'
16133 else
16134   HAVE_NETBSD_OS_TRUE='#'
16135   HAVE_NETBSD_OS_FALSE=
16136 fi
16137 fi
16138
16139 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16140 then
16141
16142
16143 if $TRUEPRG; then
16144   HAVE_OPENBSD_OS_TRUE=
16145   HAVE_OPENBSD_OS_FALSE='#'
16146 else
16147   HAVE_OPENBSD_OS_TRUE='#'
16148   HAVE_OPENBSD_OS_FALSE=
16149 fi
16150         cat >>confdefs.h <<\_ACEOF
16151 #define HAVE_OPENBSD_OS 1
16152 _ACEOF
16153
16154 else
16155
16156
16157 if $FALSEPRG; then
16158   HAVE_OPENBSD_OS_TRUE=
16159   HAVE_OPENBSD_OS_FALSE='#'
16160 else
16161   HAVE_OPENBSD_OS_TRUE='#'
16162   HAVE_OPENBSD_OS_FALSE=
16163 fi
16164 fi
16165
16166 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16167 then
16168
16169
16170 if $TRUEPRG; then
16171   HAVE_BSDI_OS_TRUE=
16172   HAVE_BSDI_OS_FALSE='#'
16173 else
16174   HAVE_BSDI_OS_TRUE='#'
16175   HAVE_BSDI_OS_FALSE=
16176 fi
16177         cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_BSDI_OS 1
16179 _ACEOF
16180
16181 else
16182
16183
16184 if $FALSEPRG; then
16185   HAVE_BSDI_OS_TRUE=
16186   HAVE_BSDI_OS_FALSE='#'
16187 else
16188   HAVE_BSDI_OS_TRUE='#'
16189   HAVE_BSDI_OS_FALSE=
16190 fi
16191 fi
16192
16193 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16194 then
16195
16196
16197 if $TRUEPRG; then
16198   HAVE_SGI_OS_TRUE=
16199   HAVE_SGI_OS_FALSE='#'
16200 else
16201   HAVE_SGI_OS_TRUE='#'
16202   HAVE_SGI_OS_FALSE=
16203 fi
16204         cat >>confdefs.h <<\_ACEOF
16205 #define HAVE_SGI_OS 1
16206 _ACEOF
16207
16208 else
16209
16210
16211 if $FALSEPRG; then
16212   HAVE_SGI_OS_TRUE=
16213   HAVE_SGI_OS_FALSE='#'
16214 else
16215   HAVE_SGI_OS_TRUE='#'
16216   HAVE_SGI_OS_FALSE=
16217 fi
16218 fi
16219
16220 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16221 then
16222
16223
16224 if $TRUEPRG; then
16225   HAVE_IRIX_OS_TRUE=
16226   HAVE_IRIX_OS_FALSE='#'
16227 else
16228   HAVE_IRIX_OS_TRUE='#'
16229   HAVE_IRIX_OS_FALSE=
16230 fi
16231         cat >>confdefs.h <<\_ACEOF
16232 #define HAVE_IRIX_OS 1
16233 _ACEOF
16234
16235 else
16236
16237
16238 if $FALSEPRG; then
16239   HAVE_IRIX_OS_TRUE=
16240   HAVE_IRIX_OS_FALSE='#'
16241 else
16242   HAVE_IRIX_OS_TRUE='#'
16243   HAVE_IRIX_OS_FALSE=
16244 fi
16245 fi
16246
16247 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16248 then
16249
16250
16251 if $TRUEPRG; then
16252   HAVE_DARWIN_OS_TRUE=
16253   HAVE_DARWIN_OS_FALSE='#'
16254 else
16255   HAVE_DARWIN_OS_TRUE='#'
16256   HAVE_DARWIN_OS_FALSE=
16257 fi
16258     cat >>confdefs.h <<\_ACEOF
16259 #define HAVE_DARWIN_OS 1
16260 _ACEOF
16261
16262 else
16263
16264
16265 if $FALSEPRG; then
16266   HAVE_DARWIN_OS_TRUE=
16267   HAVE_DARWIN_OS_FALSE='#'
16268 else
16269   HAVE_DARWIN_OS_TRUE='#'
16270   HAVE_DARWIN_OS_FALSE=
16271 fi
16272 fi
16273
16274
16275 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16276 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16277 if test "x$DISTNAME" != "x"
16278 then
16279         echo "distname set to $DISTNAME"
16280 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16281 then
16282         DISTNAME=alpha
16283 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16284 then
16285         DISTNAME=aix
16286 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16287 then
16288         DISTNAME=hpux
16289 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16290 then
16291         DISTNAME=solaris
16292 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16293 then
16294         DISTNAME=freebsd
16295 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16296 then
16297         DISTNAME=netbsd
16298 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16299 then
16300         DISTNAME=openbsd
16301 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16302 then
16303         DISTNAME=irix
16304 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16305 then
16306         DISTNAME=bsdi
16307 elif test -f /etc/SuSE-release
16308 then
16309         DISTNAME=suse
16310 elif test -d /etc/SuSEconfig
16311 then
16312         DISTNAME=suse5
16313 elif test -f /etc/mandrake-release
16314 then
16315         DISTNAME=mandrake
16316 elif test -f /etc/whitebox-release
16317 then
16318        DISTNAME=redhat
16319 elif test -f /etc/redhat-release
16320 then
16321         DISTNAME=redhat
16322 elif test -f /etc/gentoo-release
16323 then
16324         DISTNAME=gentoo
16325 elif test -f /etc/debian_version
16326 then
16327         DISTNAME=debian
16328 elif test -f /etc/slackware-version
16329 then
16330         DISTNAME=slackware
16331 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16332 then
16333     DISTNAME=darwin
16334 elif test -f /etc/engarde-version
16335 then
16336         DISTNAME=engarde
16337 elif test "$CYGWIN" = yes
16338 then
16339         DISTNAME=cygwin
16340         cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_CYGWIN 1
16342 _ACEOF
16343
16344 else
16345         DISTNAME=unknown
16346 fi
16347 { echo "$as_me:$LINENO: result: done" >&5
16348 echo "${ECHO_T}done" >&6; }
16349
16350
16351 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16352 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16353 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16354 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   cat >conftest.make <<\_ACEOF
16358 SHELL = /bin/sh
16359 all:
16360         @echo '@@@%%%=$(MAKE)=@@@%%%'
16361 _ACEOF
16362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16364   *@@@%%%=?*=@@@%%%*)
16365     eval ac_cv_prog_make_${ac_make}_set=yes;;
16366   *)
16367     eval ac_cv_prog_make_${ac_make}_set=no;;
16368 esac
16369 rm -f conftest.make
16370 fi
16371 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16372   { echo "$as_me:$LINENO: result: yes" >&5
16373 echo "${ECHO_T}yes" >&6; }
16374   SET_MAKE=
16375 else
16376   { echo "$as_me:$LINENO: result: no" >&5
16377 echo "${ECHO_T}no" >&6; }
16378   SET_MAKE="MAKE=${MAKE-make}"
16379 fi
16380
16381
16382
16383         MKINSTALLDIRS=
16384   if test -n "$ac_aux_dir"; then
16385     case "$ac_aux_dir" in
16386       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16387       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16388     esac
16389   fi
16390   if test -z "$MKINSTALLDIRS"; then
16391     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16392   fi
16393
16394
16395
16396   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16397 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16398     # Check whether --enable-nls was given.
16399 if test "${enable_nls+set}" = set; then
16400   enableval=$enable_nls; USE_NLS=$enableval
16401 else
16402   USE_NLS=yes
16403 fi
16404
16405   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16406 echo "${ECHO_T}$USE_NLS" >&6; }
16407
16408
16409
16410
16411
16412
16413 # Prepare PATH_SEPARATOR.
16414 # The user is always right.
16415 if test "${PATH_SEPARATOR+set}" != set; then
16416   echo "#! /bin/sh" >conf$$.sh
16417   echo  "exit 0"   >>conf$$.sh
16418   chmod +x conf$$.sh
16419   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16420     PATH_SEPARATOR=';'
16421   else
16422     PATH_SEPARATOR=:
16423   fi
16424   rm -f conf$$.sh
16425 fi
16426
16427 # Find out how to test for executable files. Don't use a zero-byte file,
16428 # as systems may use methods other than mode bits to determine executability.
16429 cat >conf$$.file <<_ASEOF
16430 #! /bin/sh
16431 exit 0
16432 _ASEOF
16433 chmod +x conf$$.file
16434 if test -x conf$$.file >/dev/null 2>&1; then
16435   ac_executable_p="test -x"
16436 else
16437   ac_executable_p="test -f"
16438 fi
16439 rm -f conf$$.file
16440
16441 # Extract the first word of "msgfmt", so it can be a program name with args.
16442 set dummy msgfmt; ac_word=$2
16443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16445 if test "${ac_cv_path_MSGFMT+set}" = set; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448   case "$MSGFMT" in
16449   [\\/]* | ?:[\\/]*)
16450     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16451     ;;
16452   *)
16453     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16454     for ac_dir in $PATH; do
16455       IFS="$ac_save_IFS"
16456       test -z "$ac_dir" && ac_dir=.
16457       for ac_exec_ext in '' $ac_executable_extensions; do
16458         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16459           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16460           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16461      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16462             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16463             break 2
16464           fi
16465         fi
16466       done
16467     done
16468     IFS="$ac_save_IFS"
16469   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16470     ;;
16471 esac
16472 fi
16473 MSGFMT="$ac_cv_path_MSGFMT"
16474 if test "$MSGFMT" != ":"; then
16475   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16476 echo "${ECHO_T}$MSGFMT" >&6; }
16477 else
16478   { echo "$as_me:$LINENO: result: no" >&5
16479 echo "${ECHO_T}no" >&6; }
16480 fi
16481
16482   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16483 set dummy gmsgfmt; ac_word=$2
16484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16486 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16487   echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489   case $GMSGFMT in
16490   [\\/]* | ?:[\\/]*)
16491   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16492   ;;
16493   *)
16494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16495 for as_dir in $PATH
16496 do
16497   IFS=$as_save_IFS
16498   test -z "$as_dir" && as_dir=.
16499   for ac_exec_ext in '' $ac_executable_extensions; do
16500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16501     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16503     break 2
16504   fi
16505 done
16506 done
16507 IFS=$as_save_IFS
16508
16509   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16510   ;;
16511 esac
16512 fi
16513 GMSGFMT=$ac_cv_path_GMSGFMT
16514 if test -n "$GMSGFMT"; then
16515   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16516 echo "${ECHO_T}$GMSGFMT" >&6; }
16517 else
16518   { echo "$as_me:$LINENO: result: no" >&5
16519 echo "${ECHO_T}no" >&6; }
16520 fi
16521
16522
16523
16524
16525 # Prepare PATH_SEPARATOR.
16526 # The user is always right.
16527 if test "${PATH_SEPARATOR+set}" != set; then
16528   echo "#! /bin/sh" >conf$$.sh
16529   echo  "exit 0"   >>conf$$.sh
16530   chmod +x conf$$.sh
16531   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16532     PATH_SEPARATOR=';'
16533   else
16534     PATH_SEPARATOR=:
16535   fi
16536   rm -f conf$$.sh
16537 fi
16538
16539 # Find out how to test for executable files. Don't use a zero-byte file,
16540 # as systems may use methods other than mode bits to determine executability.
16541 cat >conf$$.file <<_ASEOF
16542 #! /bin/sh
16543 exit 0
16544 _ASEOF
16545 chmod +x conf$$.file
16546 if test -x conf$$.file >/dev/null 2>&1; then
16547   ac_executable_p="test -x"
16548 else
16549   ac_executable_p="test -f"
16550 fi
16551 rm -f conf$$.file
16552
16553 # Extract the first word of "xgettext", so it can be a program name with args.
16554 set dummy xgettext; ac_word=$2
16555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16557 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560   case "$XGETTEXT" in
16561   [\\/]* | ?:[\\/]*)
16562     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16563     ;;
16564   *)
16565     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16566     for ac_dir in $PATH; do
16567       IFS="$ac_save_IFS"
16568       test -z "$ac_dir" && ac_dir=.
16569       for ac_exec_ext in '' $ac_executable_extensions; do
16570         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16571           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16572           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16573      (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
16574             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16575             break 2
16576           fi
16577         fi
16578       done
16579     done
16580     IFS="$ac_save_IFS"
16581   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16582     ;;
16583 esac
16584 fi
16585 XGETTEXT="$ac_cv_path_XGETTEXT"
16586 if test "$XGETTEXT" != ":"; then
16587   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16588 echo "${ECHO_T}$XGETTEXT" >&6; }
16589 else
16590   { echo "$as_me:$LINENO: result: no" >&5
16591 echo "${ECHO_T}no" >&6; }
16592 fi
16593
16594     rm -f messages.po
16595
16596
16597 # Prepare PATH_SEPARATOR.
16598 # The user is always right.
16599 if test "${PATH_SEPARATOR+set}" != set; then
16600   echo "#! /bin/sh" >conf$$.sh
16601   echo  "exit 0"   >>conf$$.sh
16602   chmod +x conf$$.sh
16603   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16604     PATH_SEPARATOR=';'
16605   else
16606     PATH_SEPARATOR=:
16607   fi
16608   rm -f conf$$.sh
16609 fi
16610
16611 # Find out how to test for executable files. Don't use a zero-byte file,
16612 # as systems may use methods other than mode bits to determine executability.
16613 cat >conf$$.file <<_ASEOF
16614 #! /bin/sh
16615 exit 0
16616 _ASEOF
16617 chmod +x conf$$.file
16618 if test -x conf$$.file >/dev/null 2>&1; then
16619   ac_executable_p="test -x"
16620 else
16621   ac_executable_p="test -f"
16622 fi
16623 rm -f conf$$.file
16624
16625 # Extract the first word of "msgmerge", so it can be a program name with args.
16626 set dummy msgmerge; ac_word=$2
16627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16629 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16630   echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632   case "$MSGMERGE" in
16633   [\\/]* | ?:[\\/]*)
16634     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16635     ;;
16636   *)
16637     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16638     for ac_dir in $PATH; do
16639       IFS="$ac_save_IFS"
16640       test -z "$ac_dir" && ac_dir=.
16641       for ac_exec_ext in '' $ac_executable_extensions; do
16642         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16643           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16644           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16645             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16646             break 2
16647           fi
16648         fi
16649       done
16650     done
16651     IFS="$ac_save_IFS"
16652   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16653     ;;
16654 esac
16655 fi
16656 MSGMERGE="$ac_cv_path_MSGMERGE"
16657 if test "$MSGMERGE" != ":"; then
16658   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16659 echo "${ECHO_T}$MSGMERGE" >&6; }
16660 else
16661   { echo "$as_me:$LINENO: result: no" >&5
16662 echo "${ECHO_T}no" >&6; }
16663 fi
16664
16665
16666       if test "$GMSGFMT" != ":"; then
16667             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16668        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16669       : ;
16670     else
16671       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16672       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16673 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16674       GMSGFMT=":"
16675     fi
16676   fi
16677
16678       if test "$XGETTEXT" != ":"; then
16679             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16680        (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
16681       : ;
16682     else
16683       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16684 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16685       XGETTEXT=":"
16686     fi
16687         rm -f messages.po
16688   fi
16689
16690   ac_config_commands="$ac_config_commands default-1"
16691
16692
16693
16694       if test "X$prefix" = "XNONE"; then
16695     acl_final_prefix="$ac_default_prefix"
16696   else
16697     acl_final_prefix="$prefix"
16698   fi
16699   if test "X$exec_prefix" = "XNONE"; then
16700     acl_final_exec_prefix='${prefix}'
16701   else
16702     acl_final_exec_prefix="$exec_prefix"
16703   fi
16704   acl_save_prefix="$prefix"
16705   prefix="$acl_final_prefix"
16706   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16707   prefix="$acl_save_prefix"
16708
16709
16710 # Check whether --with-gnu-ld was given.
16711 if test "${with_gnu_ld+set}" = set; then
16712   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16713 else
16714   with_gnu_ld=no
16715 fi
16716
16717 # Prepare PATH_SEPARATOR.
16718 # The user is always right.
16719 if test "${PATH_SEPARATOR+set}" != set; then
16720   echo "#! /bin/sh" >conf$$.sh
16721   echo  "exit 0"   >>conf$$.sh
16722   chmod +x conf$$.sh
16723   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16724     PATH_SEPARATOR=';'
16725   else
16726     PATH_SEPARATOR=:
16727   fi
16728   rm -f conf$$.sh
16729 fi
16730 ac_prog=ld
16731 if test "$GCC" = yes; then
16732   # Check if gcc -print-prog-name=ld gives a path.
16733   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16734 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16735   case $host in
16736   *-*-mingw*)
16737     # gcc leaves a trailing carriage return which upsets mingw
16738     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16739   *)
16740     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16741   esac
16742   case $ac_prog in
16743     # Accept absolute paths.
16744     [\\/]* | [A-Za-z]:[\\/]*)
16745       re_direlt='/[^/][^/]*/\.\./'
16746       # Canonicalize the path of ld
16747       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16748       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16749         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16750       done
16751       test -z "$LD" && LD="$ac_prog"
16752       ;;
16753   "")
16754     # If it fails, then pretend we aren't using GCC.
16755     ac_prog=ld
16756     ;;
16757   *)
16758     # If it is relative, then search for the first ld in PATH.
16759     with_gnu_ld=unknown
16760     ;;
16761   esac
16762 elif test "$with_gnu_ld" = yes; then
16763   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16764 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16765 else
16766   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16767 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16768 fi
16769 if test "${acl_cv_path_LD+set}" = set; then
16770   echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772   if test -z "$LD"; then
16773   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16774   for ac_dir in $PATH; do
16775     test -z "$ac_dir" && ac_dir=.
16776     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16777       acl_cv_path_LD="$ac_dir/$ac_prog"
16778       # Check to see if the program is GNU ld.  I'd rather use --version,
16779       # but apparently some GNU ld's only accept -v.
16780       # Break only if it was the GNU/non-GNU ld that we prefer.
16781       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16782       *GNU* | *'with BFD'*)
16783         test "$with_gnu_ld" != no && break ;;
16784       *)
16785         test "$with_gnu_ld" != yes && break ;;
16786       esac
16787     fi
16788   done
16789   IFS="$ac_save_ifs"
16790 else
16791   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16792 fi
16793 fi
16794
16795 LD="$acl_cv_path_LD"
16796 if test -n "$LD"; then
16797   { echo "$as_me:$LINENO: result: $LD" >&5
16798 echo "${ECHO_T}$LD" >&6; }
16799 else
16800   { echo "$as_me:$LINENO: result: no" >&5
16801 echo "${ECHO_T}no" >&6; }
16802 fi
16803 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16804 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16805    { (exit 1); exit 1; }; }
16806 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16807 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16808 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16809   echo $ECHO_N "(cached) $ECHO_C" >&6
16810 else
16811   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16812 case `$LD -v 2>&1 </dev/null` in
16813 *GNU* | *'with BFD'*)
16814   acl_cv_prog_gnu_ld=yes ;;
16815 *)
16816   acl_cv_prog_gnu_ld=no ;;
16817 esac
16818 fi
16819 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16820 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16821 with_gnu_ld=$acl_cv_prog_gnu_ld
16822
16823
16824
16825
16826                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16827 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16828 if test "${acl_cv_rpath+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831
16832     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16833     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16834     . ./conftest.sh
16835     rm -f ./conftest.sh
16836     acl_cv_rpath=done
16837
16838 fi
16839 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16840 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16841   wl="$acl_cv_wl"
16842   libext="$acl_cv_libext"
16843   shlibext="$acl_cv_shlibext"
16844   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16845   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16846   hardcode_direct="$acl_cv_hardcode_direct"
16847   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16848     # Check whether --enable-rpath was given.
16849 if test "${enable_rpath+set}" = set; then
16850   enableval=$enable_rpath; :
16851 else
16852   enable_rpath=yes
16853 fi
16854
16855
16856
16857
16858
16859
16860
16861
16862     use_additional=yes
16863
16864   acl_save_prefix="$prefix"
16865   prefix="$acl_final_prefix"
16866   acl_save_exec_prefix="$exec_prefix"
16867   exec_prefix="$acl_final_exec_prefix"
16868
16869     eval additional_includedir=\"$includedir\"
16870     eval additional_libdir=\"$libdir\"
16871
16872   exec_prefix="$acl_save_exec_prefix"
16873   prefix="$acl_save_prefix"
16874
16875
16876 # Check whether --with-libiconv-prefix was given.
16877 if test "${with_libiconv_prefix+set}" = set; then
16878   withval=$with_libiconv_prefix;
16879     if test "X$withval" = "Xno"; then
16880       use_additional=no
16881     else
16882       if test "X$withval" = "X"; then
16883
16884   acl_save_prefix="$prefix"
16885   prefix="$acl_final_prefix"
16886   acl_save_exec_prefix="$exec_prefix"
16887   exec_prefix="$acl_final_exec_prefix"
16888
16889           eval additional_includedir=\"$includedir\"
16890           eval additional_libdir=\"$libdir\"
16891
16892   exec_prefix="$acl_save_exec_prefix"
16893   prefix="$acl_save_prefix"
16894
16895       else
16896         additional_includedir="$withval/include"
16897         additional_libdir="$withval/lib"
16898       fi
16899     fi
16900
16901 fi
16902
16903       LIBICONV=
16904   LTLIBICONV=
16905   INCICONV=
16906   rpathdirs=
16907   ltrpathdirs=
16908   names_already_handled=
16909   names_next_round='iconv '
16910   while test -n "$names_next_round"; do
16911     names_this_round="$names_next_round"
16912     names_next_round=
16913     for name in $names_this_round; do
16914       already_handled=
16915       for n in $names_already_handled; do
16916         if test "$n" = "$name"; then
16917           already_handled=yes
16918           break
16919         fi
16920       done
16921       if test -z "$already_handled"; then
16922         names_already_handled="$names_already_handled $name"
16923                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16924         eval value=\"\$HAVE_LIB$uppername\"
16925         if test -n "$value"; then
16926           if test "$value" = yes; then
16927             eval value=\"\$LIB$uppername\"
16928             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16929             eval value=\"\$LTLIB$uppername\"
16930             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16931           else
16932                                     :
16933           fi
16934         else
16935                               found_dir=
16936           found_la=
16937           found_so=
16938           found_a=
16939           if test $use_additional = yes; then
16940             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16941               found_dir="$additional_libdir"
16942               found_so="$additional_libdir/lib$name.$shlibext"
16943               if test -f "$additional_libdir/lib$name.la"; then
16944                 found_la="$additional_libdir/lib$name.la"
16945               fi
16946             else
16947               if test -f "$additional_libdir/lib$name.$libext"; then
16948                 found_dir="$additional_libdir"
16949                 found_a="$additional_libdir/lib$name.$libext"
16950                 if test -f "$additional_libdir/lib$name.la"; then
16951                   found_la="$additional_libdir/lib$name.la"
16952                 fi
16953               fi
16954             fi
16955           fi
16956           if test "X$found_dir" = "X"; then
16957             for x in $LDFLAGS $LTLIBICONV; do
16958
16959   acl_save_prefix="$prefix"
16960   prefix="$acl_final_prefix"
16961   acl_save_exec_prefix="$exec_prefix"
16962   exec_prefix="$acl_final_exec_prefix"
16963   eval x=\"$x\"
16964   exec_prefix="$acl_save_exec_prefix"
16965   prefix="$acl_save_prefix"
16966
16967               case "$x" in
16968                 -L*)
16969                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16970                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16971                     found_dir="$dir"
16972                     found_so="$dir/lib$name.$shlibext"
16973                     if test -f "$dir/lib$name.la"; then
16974                       found_la="$dir/lib$name.la"
16975                     fi
16976                   else
16977                     if test -f "$dir/lib$name.$libext"; then
16978                       found_dir="$dir"
16979                       found_a="$dir/lib$name.$libext"
16980                       if test -f "$dir/lib$name.la"; then
16981                         found_la="$dir/lib$name.la"
16982                       fi
16983                     fi
16984                   fi
16985                   ;;
16986               esac
16987               if test "X$found_dir" != "X"; then
16988                 break
16989               fi
16990             done
16991           fi
16992           if test "X$found_dir" != "X"; then
16993                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16994             if test "X$found_so" != "X"; then
16995                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16996                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16997               else
16998                                                                                 haveit=
16999                 for x in $ltrpathdirs; do
17000                   if test "X$x" = "X$found_dir"; then
17001                     haveit=yes
17002                     break
17003                   fi
17004                 done
17005                 if test -z "$haveit"; then
17006                   ltrpathdirs="$ltrpathdirs $found_dir"
17007                 fi
17008                                 if test "$hardcode_direct" = yes; then
17009                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17010                 else
17011                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17012                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17013                                                             haveit=
17014                     for x in $rpathdirs; do
17015                       if test "X$x" = "X$found_dir"; then
17016                         haveit=yes
17017                         break
17018                       fi
17019                     done
17020                     if test -z "$haveit"; then
17021                       rpathdirs="$rpathdirs $found_dir"
17022                     fi
17023                   else
17024                                                                                 haveit=
17025                     for x in $LDFLAGS $LIBICONV; do
17026
17027   acl_save_prefix="$prefix"
17028   prefix="$acl_final_prefix"
17029   acl_save_exec_prefix="$exec_prefix"
17030   exec_prefix="$acl_final_exec_prefix"
17031   eval x=\"$x\"
17032   exec_prefix="$acl_save_exec_prefix"
17033   prefix="$acl_save_prefix"
17034
17035                       if test "X$x" = "X-L$found_dir"; then
17036                         haveit=yes
17037                         break
17038                       fi
17039                     done
17040                     if test -z "$haveit"; then
17041                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17042                     fi
17043                     if test "$hardcode_minus_L" != no; then
17044                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17045                     else
17046                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17047                     fi
17048                   fi
17049                 fi
17050               fi
17051             else
17052               if test "X$found_a" != "X"; then
17053                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17054               else
17055                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17056               fi
17057             fi
17058                         additional_includedir=
17059             case "$found_dir" in
17060               */lib | */lib/)
17061                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17062                 additional_includedir="$basedir/include"
17063                 ;;
17064             esac
17065             if test "X$additional_includedir" != "X"; then
17066                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17067                 haveit=
17068                 if test "X$additional_includedir" = "X/usr/local/include"; then
17069                   if test -n "$GCC"; then
17070                     case $host_os in
17071                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17072                     esac
17073                   fi
17074                 fi
17075                 if test -z "$haveit"; then
17076                   for x in $CPPFLAGS $INCICONV; do
17077
17078   acl_save_prefix="$prefix"
17079   prefix="$acl_final_prefix"
17080   acl_save_exec_prefix="$exec_prefix"
17081   exec_prefix="$acl_final_exec_prefix"
17082   eval x=\"$x\"
17083   exec_prefix="$acl_save_exec_prefix"
17084   prefix="$acl_save_prefix"
17085
17086                     if test "X$x" = "X-I$additional_includedir"; then
17087                       haveit=yes
17088                       break
17089                     fi
17090                   done
17091                   if test -z "$haveit"; then
17092                     if test -d "$additional_includedir"; then
17093                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17094                     fi
17095                   fi
17096                 fi
17097               fi
17098             fi
17099                         if test -n "$found_la"; then
17100                                                         save_libdir="$libdir"
17101               case "$found_la" in
17102                 */* | *\\*) . "$found_la" ;;
17103                 *) . "./$found_la" ;;
17104               esac
17105               libdir="$save_libdir"
17106                             for dep in $dependency_libs; do
17107                 case "$dep" in
17108                   -L*)
17109                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17110                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17111                       haveit=
17112                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17113                         if test -n "$GCC"; then
17114                           case $host_os in
17115                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17116                           esac
17117                         fi
17118                       fi
17119                       if test -z "$haveit"; then
17120                         haveit=
17121                         for x in $LDFLAGS $LIBICONV; do
17122
17123   acl_save_prefix="$prefix"
17124   prefix="$acl_final_prefix"
17125   acl_save_exec_prefix="$exec_prefix"
17126   exec_prefix="$acl_final_exec_prefix"
17127   eval x=\"$x\"
17128   exec_prefix="$acl_save_exec_prefix"
17129   prefix="$acl_save_prefix"
17130
17131                           if test "X$x" = "X-L$additional_libdir"; then
17132                             haveit=yes
17133                             break
17134                           fi
17135                         done
17136                         if test -z "$haveit"; then
17137                           if test -d "$additional_libdir"; then
17138                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17139                           fi
17140                         fi
17141                         haveit=
17142                         for x in $LDFLAGS $LTLIBICONV; do
17143
17144   acl_save_prefix="$prefix"
17145   prefix="$acl_final_prefix"
17146   acl_save_exec_prefix="$exec_prefix"
17147   exec_prefix="$acl_final_exec_prefix"
17148   eval x=\"$x\"
17149   exec_prefix="$acl_save_exec_prefix"
17150   prefix="$acl_save_prefix"
17151
17152                           if test "X$x" = "X-L$additional_libdir"; then
17153                             haveit=yes
17154                             break
17155                           fi
17156                         done
17157                         if test -z "$haveit"; then
17158                           if test -d "$additional_libdir"; then
17159                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17160                           fi
17161                         fi
17162                       fi
17163                     fi
17164                     ;;
17165                   -R*)
17166                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17167                     if test "$enable_rpath" != no; then
17168                                                                   haveit=
17169                       for x in $rpathdirs; do
17170                         if test "X$x" = "X$dir"; then
17171                           haveit=yes
17172                           break
17173                         fi
17174                       done
17175                       if test -z "$haveit"; then
17176                         rpathdirs="$rpathdirs $dir"
17177                       fi
17178                                                                   haveit=
17179                       for x in $ltrpathdirs; do
17180                         if test "X$x" = "X$dir"; then
17181                           haveit=yes
17182                           break
17183                         fi
17184                       done
17185                       if test -z "$haveit"; then
17186                         ltrpathdirs="$ltrpathdirs $dir"
17187                       fi
17188                     fi
17189                     ;;
17190                   -l*)
17191                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17192                     ;;
17193                   *.la)
17194                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17195                     ;;
17196                   *)
17197                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17198                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17199                     ;;
17200                 esac
17201               done
17202             fi
17203           else
17204                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17205             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17206           fi
17207         fi
17208       fi
17209     done
17210   done
17211   if test "X$rpathdirs" != "X"; then
17212     if test -n "$hardcode_libdir_separator"; then
17213                         alldirs=
17214       for found_dir in $rpathdirs; do
17215         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17216       done
17217             acl_save_libdir="$libdir"
17218       libdir="$alldirs"
17219       eval flag=\"$hardcode_libdir_flag_spec\"
17220       libdir="$acl_save_libdir"
17221       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17222     else
17223             for found_dir in $rpathdirs; do
17224         acl_save_libdir="$libdir"
17225         libdir="$found_dir"
17226         eval flag=\"$hardcode_libdir_flag_spec\"
17227         libdir="$acl_save_libdir"
17228         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17229       done
17230     fi
17231   fi
17232   if test "X$ltrpathdirs" != "X"; then
17233             for found_dir in $ltrpathdirs; do
17234       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17235     done
17236   fi
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17256 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17257 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17258   echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260   gt_save_CPPFLAGS="$CPPFLAGS"
17261      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17262      gt_save_LIBS="$LIBS"
17263      LIBS="$LIBS -framework CoreFoundation"
17264      cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h.  */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h.  */
17270 #include <CFPreferences.h>
17271 int
17272 main ()
17273 {
17274 CFPreferencesCopyAppValue(NULL, NULL)
17275   ;
17276   return 0;
17277 }
17278 _ACEOF
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (ac_try="$ac_link"
17281 case "(($ac_try" in
17282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283   *) ac_try_echo=$ac_try;;
17284 esac
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286   (eval "$ac_link") 2>conftest.er1
17287   ac_status=$?
17288   grep -v '^ *+' conftest.er1 >conftest.err
17289   rm -f conftest.er1
17290   cat conftest.err >&5
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); } && {
17293          test -z "$ac_c_werror_flag" ||
17294          test ! -s conftest.err
17295        } && test -s conftest$ac_exeext &&
17296        $as_test_x conftest$ac_exeext; then
17297   gt_cv_func_CFPreferencesCopyAppValue=yes
17298 else
17299   echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17301
17302         gt_cv_func_CFPreferencesCopyAppValue=no
17303 fi
17304
17305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17306       conftest$ac_exeext conftest.$ac_ext
17307      CPPFLAGS="$gt_save_CPPFLAGS"
17308      LIBS="$gt_save_LIBS"
17309 fi
17310 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17311 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17312   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17313
17314 cat >>confdefs.h <<\_ACEOF
17315 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17316 _ACEOF
17317
17318   fi
17319     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17320 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17321 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324   gt_save_CPPFLAGS="$CPPFLAGS"
17325      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17326      gt_save_LIBS="$LIBS"
17327      LIBS="$LIBS -framework CoreFoundation"
17328      cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h.  */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h.  */
17334 #include <CFLocale.h>
17335 int
17336 main ()
17337 {
17338 CFLocaleCopyCurrent();
17339   ;
17340   return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_link") 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } && {
17357          test -z "$ac_c_werror_flag" ||
17358          test ! -s conftest.err
17359        } && test -s conftest$ac_exeext &&
17360        $as_test_x conftest$ac_exeext; then
17361   gt_cv_func_CFLocaleCopyCurrent=yes
17362 else
17363   echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17365
17366         gt_cv_func_CFLocaleCopyCurrent=no
17367 fi
17368
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370       conftest$ac_exeext conftest.$ac_ext
17371      CPPFLAGS="$gt_save_CPPFLAGS"
17372      LIBS="$gt_save_LIBS"
17373 fi
17374 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17375 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17376   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17377
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_CFLOCALECOPYCURRENT 1
17380 _ACEOF
17381
17382   fi
17383   INTL_MACOSX_LIBS=
17384   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17385     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17386   fi
17387
17388
17389
17390
17391   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17392 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17393     # Check whether --enable-nls was given.
17394 if test "${enable_nls+set}" = set; then
17395   enableval=$enable_nls; USE_NLS=$enableval
17396 else
17397   USE_NLS=yes
17398 fi
17399
17400   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17401 echo "${ECHO_T}$USE_NLS" >&6; }
17402
17403
17404
17405
17406   LIBINTL=
17407   LTLIBINTL=
17408   POSUB=
17409
17410     if test "$USE_NLS" = "yes"; then
17411     gt_use_preinstalled_gnugettext=no
17412
17413
17414
17415
17416
17417
17418         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17419 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17420 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17421   echo $ECHO_N "(cached) $ECHO_C" >&6
17422 else
17423   cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h.  */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h.  */
17429 #include <libintl.h>
17430 extern int _nl_msg_cat_cntr;
17431 extern int *_nl_domain_bindings;
17432 int
17433 main ()
17434 {
17435 bindtextdomain ("", "");
17436 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_link") 2>conftest.er1
17449   ac_status=$?
17450   grep -v '^ *+' conftest.er1 >conftest.err
17451   rm -f conftest.er1
17452   cat conftest.err >&5
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); } && {
17455          test -z "$ac_c_werror_flag" ||
17456          test ! -s conftest.err
17457        } && test -s conftest$ac_exeext &&
17458        $as_test_x conftest$ac_exeext; then
17459   gt_cv_func_gnugettext1_libc=yes
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464         gt_cv_func_gnugettext1_libc=no
17465 fi
17466
17467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17468       conftest$ac_exeext conftest.$ac_ext
17469 fi
17470 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17471 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17472
17473         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17474
17475
17476
17477
17478
17479           am_save_CPPFLAGS="$CPPFLAGS"
17480
17481   for element in $INCICONV; do
17482     haveit=
17483     for x in $CPPFLAGS; do
17484
17485   acl_save_prefix="$prefix"
17486   prefix="$acl_final_prefix"
17487   acl_save_exec_prefix="$exec_prefix"
17488   exec_prefix="$acl_final_exec_prefix"
17489   eval x=\"$x\"
17490   exec_prefix="$acl_save_exec_prefix"
17491   prefix="$acl_save_prefix"
17492
17493       if test "X$x" = "X$element"; then
17494         haveit=yes
17495         break
17496       fi
17497     done
17498     if test -z "$haveit"; then
17499       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17500     fi
17501   done
17502
17503
17504   { echo "$as_me:$LINENO: checking for iconv" >&5
17505 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17506 if test "${am_cv_func_iconv+set}" = set; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509
17510     am_cv_func_iconv="no, consider installing GNU libiconv"
17511     am_cv_lib_iconv=no
17512     cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h.  */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h.  */
17518 #include <stdlib.h>
17519 #include <iconv.h>
17520 int
17521 main ()
17522 {
17523 iconv_t cd = iconv_open("","");
17524        iconv(cd,NULL,NULL,NULL,NULL);
17525        iconv_close(cd);
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534   *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537   (eval "$ac_link") 2>conftest.er1
17538   ac_status=$?
17539   grep -v '^ *+' conftest.er1 >conftest.err
17540   rm -f conftest.er1
17541   cat conftest.err >&5
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); } && {
17544          test -z "$ac_c_werror_flag" ||
17545          test ! -s conftest.err
17546        } && test -s conftest$ac_exeext &&
17547        $as_test_x conftest$ac_exeext; then
17548   am_cv_func_iconv=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553
17554 fi
17555
17556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17557       conftest$ac_exeext conftest.$ac_ext
17558     if test "$am_cv_func_iconv" != yes; then
17559       am_save_LIBS="$LIBS"
17560       LIBS="$LIBS $LIBICONV"
17561       cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567 #include <stdlib.h>
17568 #include <iconv.h>
17569 int
17570 main ()
17571 {
17572 iconv_t cd = iconv_open("","");
17573          iconv(cd,NULL,NULL,NULL,NULL);
17574          iconv_close(cd);
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_link") 2>conftest.er1
17587   ac_status=$?
17588   grep -v '^ *+' conftest.er1 >conftest.err
17589   rm -f conftest.er1
17590   cat conftest.err >&5
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); } && {
17593          test -z "$ac_c_werror_flag" ||
17594          test ! -s conftest.err
17595        } && test -s conftest$ac_exeext &&
17596        $as_test_x conftest$ac_exeext; then
17597   am_cv_lib_iconv=yes
17598         am_cv_func_iconv=yes
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603
17604 fi
17605
17606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17607       conftest$ac_exeext conftest.$ac_ext
17608       LIBS="$am_save_LIBS"
17609     fi
17610
17611 fi
17612 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17613 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17614   if test "$am_cv_func_iconv" = yes; then
17615
17616 cat >>confdefs.h <<\_ACEOF
17617 #define HAVE_ICONV 1
17618 _ACEOF
17619
17620   fi
17621   if test "$am_cv_lib_iconv" = yes; then
17622     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17623 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17624     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17625 echo "${ECHO_T}$LIBICONV" >&6; }
17626   else
17627             CPPFLAGS="$am_save_CPPFLAGS"
17628     LIBICONV=
17629     LTLIBICONV=
17630   fi
17631
17632
17633
17634
17635
17636
17637     use_additional=yes
17638
17639   acl_save_prefix="$prefix"
17640   prefix="$acl_final_prefix"
17641   acl_save_exec_prefix="$exec_prefix"
17642   exec_prefix="$acl_final_exec_prefix"
17643
17644     eval additional_includedir=\"$includedir\"
17645     eval additional_libdir=\"$libdir\"
17646
17647   exec_prefix="$acl_save_exec_prefix"
17648   prefix="$acl_save_prefix"
17649
17650
17651 # Check whether --with-libintl-prefix was given.
17652 if test "${with_libintl_prefix+set}" = set; then
17653   withval=$with_libintl_prefix;
17654     if test "X$withval" = "Xno"; then
17655       use_additional=no
17656     else
17657       if test "X$withval" = "X"; then
17658
17659   acl_save_prefix="$prefix"
17660   prefix="$acl_final_prefix"
17661   acl_save_exec_prefix="$exec_prefix"
17662   exec_prefix="$acl_final_exec_prefix"
17663
17664           eval additional_includedir=\"$includedir\"
17665           eval additional_libdir=\"$libdir\"
17666
17667   exec_prefix="$acl_save_exec_prefix"
17668   prefix="$acl_save_prefix"
17669
17670       else
17671         additional_includedir="$withval/include"
17672         additional_libdir="$withval/lib"
17673       fi
17674     fi
17675
17676 fi
17677
17678       LIBINTL=
17679   LTLIBINTL=
17680   INCINTL=
17681   rpathdirs=
17682   ltrpathdirs=
17683   names_already_handled=
17684   names_next_round='intl '
17685   while test -n "$names_next_round"; do
17686     names_this_round="$names_next_round"
17687     names_next_round=
17688     for name in $names_this_round; do
17689       already_handled=
17690       for n in $names_already_handled; do
17691         if test "$n" = "$name"; then
17692           already_handled=yes
17693           break
17694         fi
17695       done
17696       if test -z "$already_handled"; then
17697         names_already_handled="$names_already_handled $name"
17698                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17699         eval value=\"\$HAVE_LIB$uppername\"
17700         if test -n "$value"; then
17701           if test "$value" = yes; then
17702             eval value=\"\$LIB$uppername\"
17703             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17704             eval value=\"\$LTLIB$uppername\"
17705             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17706           else
17707                                     :
17708           fi
17709         else
17710                               found_dir=
17711           found_la=
17712           found_so=
17713           found_a=
17714           if test $use_additional = yes; then
17715             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17716               found_dir="$additional_libdir"
17717               found_so="$additional_libdir/lib$name.$shlibext"
17718               if test -f "$additional_libdir/lib$name.la"; then
17719                 found_la="$additional_libdir/lib$name.la"
17720               fi
17721             else
17722               if test -f "$additional_libdir/lib$name.$libext"; then
17723                 found_dir="$additional_libdir"
17724                 found_a="$additional_libdir/lib$name.$libext"
17725                 if test -f "$additional_libdir/lib$name.la"; then
17726                   found_la="$additional_libdir/lib$name.la"
17727                 fi
17728               fi
17729             fi
17730           fi
17731           if test "X$found_dir" = "X"; then
17732             for x in $LDFLAGS $LTLIBINTL; do
17733
17734   acl_save_prefix="$prefix"
17735   prefix="$acl_final_prefix"
17736   acl_save_exec_prefix="$exec_prefix"
17737   exec_prefix="$acl_final_exec_prefix"
17738   eval x=\"$x\"
17739   exec_prefix="$acl_save_exec_prefix"
17740   prefix="$acl_save_prefix"
17741
17742               case "$x" in
17743                 -L*)
17744                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17745                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17746                     found_dir="$dir"
17747                     found_so="$dir/lib$name.$shlibext"
17748                     if test -f "$dir/lib$name.la"; then
17749                       found_la="$dir/lib$name.la"
17750                     fi
17751                   else
17752                     if test -f "$dir/lib$name.$libext"; then
17753                       found_dir="$dir"
17754                       found_a="$dir/lib$name.$libext"
17755                       if test -f "$dir/lib$name.la"; then
17756                         found_la="$dir/lib$name.la"
17757                       fi
17758                     fi
17759                   fi
17760                   ;;
17761               esac
17762               if test "X$found_dir" != "X"; then
17763                 break
17764               fi
17765             done
17766           fi
17767           if test "X$found_dir" != "X"; then
17768                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17769             if test "X$found_so" != "X"; then
17770                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17771                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17772               else
17773                                                                                 haveit=
17774                 for x in $ltrpathdirs; do
17775                   if test "X$x" = "X$found_dir"; then
17776                     haveit=yes
17777                     break
17778                   fi
17779                 done
17780                 if test -z "$haveit"; then
17781                   ltrpathdirs="$ltrpathdirs $found_dir"
17782                 fi
17783                                 if test "$hardcode_direct" = yes; then
17784                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17785                 else
17786                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17787                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17788                                                             haveit=
17789                     for x in $rpathdirs; do
17790                       if test "X$x" = "X$found_dir"; then
17791                         haveit=yes
17792                         break
17793                       fi
17794                     done
17795                     if test -z "$haveit"; then
17796                       rpathdirs="$rpathdirs $found_dir"
17797                     fi
17798                   else
17799                                                                                 haveit=
17800                     for x in $LDFLAGS $LIBINTL; do
17801
17802   acl_save_prefix="$prefix"
17803   prefix="$acl_final_prefix"
17804   acl_save_exec_prefix="$exec_prefix"
17805   exec_prefix="$acl_final_exec_prefix"
17806   eval x=\"$x\"
17807   exec_prefix="$acl_save_exec_prefix"
17808   prefix="$acl_save_prefix"
17809
17810                       if test "X$x" = "X-L$found_dir"; then
17811                         haveit=yes
17812                         break
17813                       fi
17814                     done
17815                     if test -z "$haveit"; then
17816                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17817                     fi
17818                     if test "$hardcode_minus_L" != no; then
17819                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17820                     else
17821                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17822                     fi
17823                   fi
17824                 fi
17825               fi
17826             else
17827               if test "X$found_a" != "X"; then
17828                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17829               else
17830                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17831               fi
17832             fi
17833                         additional_includedir=
17834             case "$found_dir" in
17835               */lib | */lib/)
17836                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17837                 additional_includedir="$basedir/include"
17838                 ;;
17839             esac
17840             if test "X$additional_includedir" != "X"; then
17841                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17842                 haveit=
17843                 if test "X$additional_includedir" = "X/usr/local/include"; then
17844                   if test -n "$GCC"; then
17845                     case $host_os in
17846                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17847                     esac
17848                   fi
17849                 fi
17850                 if test -z "$haveit"; then
17851                   for x in $CPPFLAGS $INCINTL; do
17852
17853   acl_save_prefix="$prefix"
17854   prefix="$acl_final_prefix"
17855   acl_save_exec_prefix="$exec_prefix"
17856   exec_prefix="$acl_final_exec_prefix"
17857   eval x=\"$x\"
17858   exec_prefix="$acl_save_exec_prefix"
17859   prefix="$acl_save_prefix"
17860
17861                     if test "X$x" = "X-I$additional_includedir"; then
17862                       haveit=yes
17863                       break
17864                     fi
17865                   done
17866                   if test -z "$haveit"; then
17867                     if test -d "$additional_includedir"; then
17868                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17869                     fi
17870                   fi
17871                 fi
17872               fi
17873             fi
17874                         if test -n "$found_la"; then
17875                                                         save_libdir="$libdir"
17876               case "$found_la" in
17877                 */* | *\\*) . "$found_la" ;;
17878                 *) . "./$found_la" ;;
17879               esac
17880               libdir="$save_libdir"
17881                             for dep in $dependency_libs; do
17882                 case "$dep" in
17883                   -L*)
17884                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17885                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17886                       haveit=
17887                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17888                         if test -n "$GCC"; then
17889                           case $host_os in
17890                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17891                           esac
17892                         fi
17893                       fi
17894                       if test -z "$haveit"; then
17895                         haveit=
17896                         for x in $LDFLAGS $LIBINTL; do
17897
17898   acl_save_prefix="$prefix"
17899   prefix="$acl_final_prefix"
17900   acl_save_exec_prefix="$exec_prefix"
17901   exec_prefix="$acl_final_exec_prefix"
17902   eval x=\"$x\"
17903   exec_prefix="$acl_save_exec_prefix"
17904   prefix="$acl_save_prefix"
17905
17906                           if test "X$x" = "X-L$additional_libdir"; then
17907                             haveit=yes
17908                             break
17909                           fi
17910                         done
17911                         if test -z "$haveit"; then
17912                           if test -d "$additional_libdir"; then
17913                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17914                           fi
17915                         fi
17916                         haveit=
17917                         for x in $LDFLAGS $LTLIBINTL; do
17918
17919   acl_save_prefix="$prefix"
17920   prefix="$acl_final_prefix"
17921   acl_save_exec_prefix="$exec_prefix"
17922   exec_prefix="$acl_final_exec_prefix"
17923   eval x=\"$x\"
17924   exec_prefix="$acl_save_exec_prefix"
17925   prefix="$acl_save_prefix"
17926
17927                           if test "X$x" = "X-L$additional_libdir"; then
17928                             haveit=yes
17929                             break
17930                           fi
17931                         done
17932                         if test -z "$haveit"; then
17933                           if test -d "$additional_libdir"; then
17934                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17935                           fi
17936                         fi
17937                       fi
17938                     fi
17939                     ;;
17940                   -R*)
17941                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17942                     if test "$enable_rpath" != no; then
17943                                                                   haveit=
17944                       for x in $rpathdirs; do
17945                         if test "X$x" = "X$dir"; then
17946                           haveit=yes
17947                           break
17948                         fi
17949                       done
17950                       if test -z "$haveit"; then
17951                         rpathdirs="$rpathdirs $dir"
17952                       fi
17953                                                                   haveit=
17954                       for x in $ltrpathdirs; do
17955                         if test "X$x" = "X$dir"; then
17956                           haveit=yes
17957                           break
17958                         fi
17959                       done
17960                       if test -z "$haveit"; then
17961                         ltrpathdirs="$ltrpathdirs $dir"
17962                       fi
17963                     fi
17964                     ;;
17965                   -l*)
17966                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17967                     ;;
17968                   *.la)
17969                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17970                     ;;
17971                   *)
17972                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17973                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17974                     ;;
17975                 esac
17976               done
17977             fi
17978           else
17979                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17980             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17981           fi
17982         fi
17983       fi
17984     done
17985   done
17986   if test "X$rpathdirs" != "X"; then
17987     if test -n "$hardcode_libdir_separator"; then
17988                         alldirs=
17989       for found_dir in $rpathdirs; do
17990         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17991       done
17992             acl_save_libdir="$libdir"
17993       libdir="$alldirs"
17994       eval flag=\"$hardcode_libdir_flag_spec\"
17995       libdir="$acl_save_libdir"
17996       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17997     else
17998             for found_dir in $rpathdirs; do
17999         acl_save_libdir="$libdir"
18000         libdir="$found_dir"
18001         eval flag=\"$hardcode_libdir_flag_spec\"
18002         libdir="$acl_save_libdir"
18003         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18004       done
18005     fi
18006   fi
18007   if test "X$ltrpathdirs" != "X"; then
18008             for found_dir in $ltrpathdirs; do
18009       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18010     done
18011   fi
18012
18013           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18014 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18015 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18016   echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018   gt_save_CPPFLAGS="$CPPFLAGS"
18019             CPPFLAGS="$CPPFLAGS $INCINTL"
18020             gt_save_LIBS="$LIBS"
18021             LIBS="$LIBS $LIBINTL"
18022                         cat >conftest.$ac_ext <<_ACEOF
18023 /* confdefs.h.  */
18024 _ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h.  */
18028 #include <libintl.h>
18029 extern int _nl_msg_cat_cntr;
18030 extern
18031 #ifdef __cplusplus
18032 "C"
18033 #endif
18034 const char *_nl_expand_alias (const char *);
18035 int
18036 main ()
18037 {
18038 bindtextdomain ("", "");
18039 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18040   ;
18041   return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048   *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051   (eval "$ac_link") 2>conftest.er1
18052   ac_status=$?
18053   grep -v '^ *+' conftest.er1 >conftest.err
18054   rm -f conftest.er1
18055   cat conftest.err >&5
18056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057   (exit $ac_status); } && {
18058          test -z "$ac_c_werror_flag" ||
18059          test ! -s conftest.err
18060        } && test -s conftest$ac_exeext &&
18061        $as_test_x conftest$ac_exeext; then
18062   gt_cv_func_gnugettext1_libintl=yes
18063 else
18064   echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067         gt_cv_func_gnugettext1_libintl=no
18068 fi
18069
18070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18071       conftest$ac_exeext conftest.$ac_ext
18072                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18073               LIBS="$LIBS $LIBICONV"
18074               cat >conftest.$ac_ext <<_ACEOF
18075 /* confdefs.h.  */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h.  */
18080 #include <libintl.h>
18081 extern int _nl_msg_cat_cntr;
18082 extern
18083 #ifdef __cplusplus
18084 "C"
18085 #endif
18086 const char *_nl_expand_alias (const char *);
18087 int
18088 main ()
18089 {
18090 bindtextdomain ("", "");
18091 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18092   ;
18093   return 0;
18094 }
18095 _ACEOF
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100   *) ac_try_echo=$ac_try;;
18101 esac
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103   (eval "$ac_link") 2>conftest.er1
18104   ac_status=$?
18105   grep -v '^ *+' conftest.er1 >conftest.err
18106   rm -f conftest.er1
18107   cat conftest.err >&5
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); } && {
18110          test -z "$ac_c_werror_flag" ||
18111          test ! -s conftest.err
18112        } && test -s conftest$ac_exeext &&
18113        $as_test_x conftest$ac_exeext; then
18114   LIBINTL="$LIBINTL $LIBICONV"
18115                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18116                 gt_cv_func_gnugettext1_libintl=yes
18117
18118 else
18119   echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18121
18122
18123 fi
18124
18125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18126       conftest$ac_exeext conftest.$ac_ext
18127             fi
18128             CPPFLAGS="$gt_save_CPPFLAGS"
18129             LIBS="$gt_save_LIBS"
18130 fi
18131 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18132 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18133         fi
18134
18135                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18136            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18137                 && test "$PACKAGE" != gettext-runtime \
18138                 && test "$PACKAGE" != gettext-tools; }; then
18139           gt_use_preinstalled_gnugettext=yes
18140         else
18141                     LIBINTL=
18142           LTLIBINTL=
18143           INCINTL=
18144         fi
18145
18146
18147
18148     if test -n "$INTL_MACOSX_LIBS"; then
18149       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18150          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18151                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18152         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18153       fi
18154     fi
18155
18156     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18157        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18158
18159 cat >>confdefs.h <<\_ACEOF
18160 #define ENABLE_NLS 1
18161 _ACEOF
18162
18163     else
18164       USE_NLS=no
18165     fi
18166   fi
18167
18168   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18169 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18170   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18171 echo "${ECHO_T}$USE_NLS" >&6; }
18172   if test "$USE_NLS" = "yes"; then
18173     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18174 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18175     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18176       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18177         gt_source="external libintl"
18178       else
18179         gt_source="libc"
18180       fi
18181     else
18182       gt_source="included intl directory"
18183     fi
18184     { echo "$as_me:$LINENO: result: $gt_source" >&5
18185 echo "${ECHO_T}$gt_source" >&6; }
18186   fi
18187
18188   if test "$USE_NLS" = "yes"; then
18189
18190     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18191       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18192         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18193 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18194         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18195 echo "${ECHO_T}$LIBINTL" >&6; }
18196
18197   for element in $INCINTL; do
18198     haveit=
18199     for x in $CPPFLAGS; do
18200
18201   acl_save_prefix="$prefix"
18202   prefix="$acl_final_prefix"
18203   acl_save_exec_prefix="$exec_prefix"
18204   exec_prefix="$acl_final_exec_prefix"
18205   eval x=\"$x\"
18206   exec_prefix="$acl_save_exec_prefix"
18207   prefix="$acl_save_prefix"
18208
18209       if test "X$x" = "X$element"; then
18210         haveit=yes
18211         break
18212       fi
18213     done
18214     if test -z "$haveit"; then
18215       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18216     fi
18217   done
18218
18219       fi
18220
18221
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE_GETTEXT 1
18224 _ACEOF
18225
18226
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE_DCGETTEXT 1
18229 _ACEOF
18230
18231     fi
18232
18233         POSUB=po
18234   fi
18235
18236
18237
18238     INTLLIBS="$LIBINTL"
18239
18240
18241
18242
18243
18244
18245 if test x${prefix} = xNONE ; then
18246    if test `eval echo ${datarootdir}` = NONE/share ; then
18247       datarootdir=/usr/share
18248    fi
18249 fi
18250
18251 if test x${prefix} = xNONE ; then
18252    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18253       sysconfdir=/etc/bacula
18254    fi
18255    prefix=
18256 fi
18257 sysconfdir=`eval echo ${sysconfdir}`
18258 datarootdir=`eval echo ${datarootdir}`
18259 localedir=`eval echo ${datarootdir}/locale`
18260 cat >>confdefs.h <<_ACEOF
18261 #define SYSCONFDIR "$sysconfdir"
18262 _ACEOF
18263
18264 cat >>confdefs.h <<_ACEOF
18265 #define LOCALEDIR "$localedir"
18266 _ACEOF
18267
18268
18269 if test x${exec_prefix} = xNONE ; then
18270    exec_prefix=${prefix}
18271 fi
18272
18273 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18274    sbindir=${exec_prefix}/sbin
18275 fi
18276 sbindir=`eval echo ${sbindir}`
18277
18278 if test x$libdir = x'${exec_prefix}/lib' ; then
18279    libdir=${exec_prefix}/lib
18280 fi
18281 libdir=`eval echo ${libdir}`
18282
18283 if test x$includedir = x'${exec_prefix}/include' ; then
18284    includedir=${exec_prefix}/include
18285 fi
18286 includedir=`eval echo ${includedir}`
18287
18288 if test x$mandir = x'${prefix}/man' ; then
18289    mandir=/usr/share/man
18290 fi
18291
18292 for ac_prog in msgfmt
18293 do
18294   # Extract the first word of "$ac_prog", so it can be a program name with args.
18295 set dummy $ac_prog; ac_word=$2
18296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18298 if test "${ac_cv_path_MSGFMT+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   case $MSGFMT in
18302   [\\/]* | ?:[\\/]*)
18303   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18304   ;;
18305   *)
18306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18307 for as_dir in $PATH
18308 do
18309   IFS=$as_save_IFS
18310   test -z "$as_dir" && as_dir=.
18311   for ac_exec_ext in '' $ac_executable_extensions; do
18312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18313     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18315     break 2
18316   fi
18317 done
18318 done
18319 IFS=$as_save_IFS
18320
18321   ;;
18322 esac
18323 fi
18324 MSGFMT=$ac_cv_path_MSGFMT
18325 if test -n "$MSGFMT"; then
18326   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18327 echo "${ECHO_T}$MSGFMT" >&6; }
18328 else
18329   { echo "$as_me:$LINENO: result: no" >&5
18330 echo "${ECHO_T}no" >&6; }
18331 fi
18332
18333
18334   test -n "$MSGFMT" && break
18335 done
18336 test -n "$MSGFMT" || MSGFMT="no"
18337
18338 if test "$MSGFMT" = "no"
18339 then
18340    echo 'msgfmt program not found, disabling NLS !'
18341    USE_NLS=no
18342    USE_INCLUDED_LIBINTL=no
18343 #else
18344
18345     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18346 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18347 if test "${ac_cv_gnu_library_2+set}" = set; then
18348   echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350   cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356
18357 #include <features.h>
18358 #ifdef __GNU_LIBRARY__
18359  #if (__GLIBC__ >= 2)
18360   Lucky GNU user
18361  #endif
18362 #endif
18363
18364 _ACEOF
18365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18366   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18367   ac_cv_gnu_library_2=yes
18368 else
18369   ac_cv_gnu_library_2=no
18370 fi
18371 rm -f conftest*
18372
18373
18374
18375 fi
18376 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18377 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18378
18379     GLIBC2="$ac_cv_gnu_library_2"
18380
18381
18382 if test -n "$ac_tool_prefix"; then
18383   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18387 if test "${ac_cv_prog_RANLIB+set}" = set; then
18388   echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390   if test -n "$RANLIB"; then
18391   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18392 else
18393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18394 for as_dir in $PATH
18395 do
18396   IFS=$as_save_IFS
18397   test -z "$as_dir" && as_dir=.
18398   for ac_exec_ext in '' $ac_executable_extensions; do
18399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18400     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18402     break 2
18403   fi
18404 done
18405 done
18406 IFS=$as_save_IFS
18407
18408 fi
18409 fi
18410 RANLIB=$ac_cv_prog_RANLIB
18411 if test -n "$RANLIB"; then
18412   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18413 echo "${ECHO_T}$RANLIB" >&6; }
18414 else
18415   { echo "$as_me:$LINENO: result: no" >&5
18416 echo "${ECHO_T}no" >&6; }
18417 fi
18418
18419
18420 fi
18421 if test -z "$ac_cv_prog_RANLIB"; then
18422   ac_ct_RANLIB=$RANLIB
18423   # Extract the first word of "ranlib", so it can be a program name with args.
18424 set dummy ranlib; ac_word=$2
18425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18428   echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430   if test -n "$ac_ct_RANLIB"; then
18431   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18432 else
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434 for as_dir in $PATH
18435 do
18436   IFS=$as_save_IFS
18437   test -z "$as_dir" && as_dir=.
18438   for ac_exec_ext in '' $ac_executable_extensions; do
18439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18440     ac_cv_prog_ac_ct_RANLIB="ranlib"
18441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18442     break 2
18443   fi
18444 done
18445 done
18446 IFS=$as_save_IFS
18447
18448 fi
18449 fi
18450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18451 if test -n "$ac_ct_RANLIB"; then
18452   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18453 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18454 else
18455   { echo "$as_me:$LINENO: result: no" >&5
18456 echo "${ECHO_T}no" >&6; }
18457 fi
18458
18459   if test "x$ac_ct_RANLIB" = x; then
18460     RANLIB=":"
18461   else
18462     case $cross_compiling:$ac_tool_warned in
18463 yes:)
18464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18465 whose name does not start with the host triplet.  If you think this
18466 configuration is useful to you, please write to autoconf@gnu.org." >&5
18467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18468 whose name does not start with the host triplet.  If you think this
18469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18470 ac_tool_warned=yes ;;
18471 esac
18472     RANLIB=$ac_ct_RANLIB
18473   fi
18474 else
18475   RANLIB="$ac_cv_prog_RANLIB"
18476 fi
18477
18478
18479         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18480 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18481 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18482   echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484   ac_check_lib_save_LIBS=$LIBS
18485 LIBS="-lcposix  $LIBS"
18486 cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h.  */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h.  */
18492
18493 /* Override any GCC internal prototype to avoid an error.
18494    Use char because int might match the return type of a GCC
18495    builtin and then its argument prototype would still apply.  */
18496 #ifdef __cplusplus
18497 extern "C"
18498 #endif
18499 char strerror ();
18500 int
18501 main ()
18502 {
18503 return strerror ();
18504   ;
18505   return 0;
18506 }
18507 _ACEOF
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_link") 2>conftest.er1
18516   ac_status=$?
18517   grep -v '^ *+' conftest.er1 >conftest.err
18518   rm -f conftest.er1
18519   cat conftest.err >&5
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } && {
18522          test -z "$ac_c_werror_flag" ||
18523          test ! -s conftest.err
18524        } && test -s conftest$ac_exeext &&
18525        $as_test_x conftest$ac_exeext; then
18526   ac_cv_lib_cposix_strerror=yes
18527 else
18528   echo "$as_me: failed program was:" >&5
18529 sed 's/^/| /' conftest.$ac_ext >&5
18530
18531         ac_cv_lib_cposix_strerror=no
18532 fi
18533
18534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18535       conftest$ac_exeext conftest.$ac_ext
18536 LIBS=$ac_check_lib_save_LIBS
18537 fi
18538 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18539 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18540 if test $ac_cv_lib_cposix_strerror = yes; then
18541   LIBS="$LIBS -lcposix"
18542 fi
18543
18544
18545
18546 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18547 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18548 if test "${ac_cv_c_const+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551   cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557
18558 int
18559 main ()
18560 {
18561 /* FIXME: Include the comments suggested by Paul. */
18562 #ifndef __cplusplus
18563   /* Ultrix mips cc rejects this.  */
18564   typedef int charset[2];
18565   const charset cs;
18566   /* SunOS 4.1.1 cc rejects this.  */
18567   char const *const *pcpcc;
18568   char **ppc;
18569   /* NEC SVR4.0.2 mips cc rejects this.  */
18570   struct point {int x, y;};
18571   static struct point const zero = {0,0};
18572   /* AIX XL C 1.02.0.0 rejects this.
18573      It does not let you subtract one const X* pointer from another in
18574      an arm of an if-expression whose if-part is not a constant
18575      expression */
18576   const char *g = "string";
18577   pcpcc = &g + (g ? g-g : 0);
18578   /* HPUX 7.0 cc rejects these. */
18579   ++pcpcc;
18580   ppc = (char**) pcpcc;
18581   pcpcc = (char const *const *) ppc;
18582   { /* SCO 3.2v4 cc rejects this.  */
18583     char *t;
18584     char const *s = 0 ? (char *) 0 : (char const *) 0;
18585
18586     *t++ = 0;
18587     if (s) return 0;
18588   }
18589   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18590     int x[] = {25, 17};
18591     const int *foo = &x[0];
18592     ++foo;
18593   }
18594   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18595     typedef const int *iptr;
18596     iptr p = 0;
18597     ++p;
18598   }
18599   { /* AIX XL C 1.02.0.0 rejects this saying
18600        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18601     struct s { int j; const int *ap[3]; };
18602     struct s *b; b->j = 5;
18603   }
18604   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18605     const int foo = 10;
18606     if (!foo) return 0;
18607   }
18608   return !cs[0] && !zero.x;
18609 #endif
18610
18611   ;
18612   return 0;
18613 }
18614 _ACEOF
18615 rm -f conftest.$ac_objext
18616 if { (ac_try="$ac_compile"
18617 case "(($ac_try" in
18618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619   *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622   (eval "$ac_compile") 2>conftest.er1
18623   ac_status=$?
18624   grep -v '^ *+' conftest.er1 >conftest.err
18625   rm -f conftest.er1
18626   cat conftest.err >&5
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); } && {
18629          test -z "$ac_c_werror_flag" ||
18630          test ! -s conftest.err
18631        } && test -s conftest.$ac_objext; then
18632   ac_cv_c_const=yes
18633 else
18634   echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637         ac_cv_c_const=no
18638 fi
18639
18640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18641 fi
18642 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18643 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18644 if test $ac_cv_c_const = no; then
18645
18646 cat >>confdefs.h <<\_ACEOF
18647 #define const
18648 _ACEOF
18649
18650 fi
18651
18652
18653   { echo "$as_me:$LINENO: checking for signed" >&5
18654 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18655 if test "${bh_cv_c_signed+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658   cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h.  */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h.  */
18664
18665 int
18666 main ()
18667 {
18668 signed char x;
18669   ;
18670   return 0;
18671 }
18672 _ACEOF
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677   *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680   (eval "$ac_compile") 2>conftest.er1
18681   ac_status=$?
18682   grep -v '^ *+' conftest.er1 >conftest.err
18683   rm -f conftest.er1
18684   cat conftest.err >&5
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); } && {
18687          test -z "$ac_c_werror_flag" ||
18688          test ! -s conftest.err
18689        } && test -s conftest.$ac_objext; then
18690   bh_cv_c_signed=yes
18691 else
18692   echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695         bh_cv_c_signed=no
18696 fi
18697
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699 fi
18700 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18701 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18702   if test $bh_cv_c_signed = no; then
18703
18704 cat >>confdefs.h <<\_ACEOF
18705 #define signed
18706 _ACEOF
18707
18708   fi
18709
18710 { echo "$as_me:$LINENO: checking for inline" >&5
18711 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18712 if test "${ac_cv_c_inline+set}" = set; then
18713   echo $ECHO_N "(cached) $ECHO_C" >&6
18714 else
18715   ac_cv_c_inline=no
18716 for ac_kw in inline __inline__ __inline; do
18717   cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723 #ifndef __cplusplus
18724 typedef int foo_t;
18725 static $ac_kw foo_t static_foo () {return 0; }
18726 $ac_kw foo_t foo () {return 0; }
18727 #endif
18728
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_compile") 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } && {
18744          test -z "$ac_c_werror_flag" ||
18745          test ! -s conftest.err
18746        } && test -s conftest.$ac_objext; then
18747   ac_cv_c_inline=$ac_kw
18748 else
18749   echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752
18753 fi
18754
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756   test "$ac_cv_c_inline" != no && break
18757 done
18758
18759 fi
18760 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18761 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18762
18763
18764 case $ac_cv_c_inline in
18765   inline | yes) ;;
18766   *)
18767     case $ac_cv_c_inline in
18768       no) ac_val=;;
18769       *) ac_val=$ac_cv_c_inline;;
18770     esac
18771     cat >>confdefs.h <<_ACEOF
18772 #ifndef __cplusplus
18773 #define inline $ac_val
18774 #endif
18775 _ACEOF
18776     ;;
18777 esac
18778
18779 { echo "$as_me:$LINENO: checking for off_t" >&5
18780 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18781 if test "${ac_cv_type_off_t+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h.  */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h.  */
18790 $ac_includes_default
18791 typedef off_t ac__type_new_;
18792 int
18793 main ()
18794 {
18795 if ((ac__type_new_ *) 0)
18796   return 0;
18797 if (sizeof (ac__type_new_))
18798   return 0;
18799   ;
18800   return 0;
18801 }
18802 _ACEOF
18803 rm -f conftest.$ac_objext
18804 if { (ac_try="$ac_compile"
18805 case "(($ac_try" in
18806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807   *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810   (eval "$ac_compile") 2>conftest.er1
18811   ac_status=$?
18812   grep -v '^ *+' conftest.er1 >conftest.err
18813   rm -f conftest.er1
18814   cat conftest.err >&5
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); } && {
18817          test -z "$ac_c_werror_flag" ||
18818          test ! -s conftest.err
18819        } && test -s conftest.$ac_objext; then
18820   ac_cv_type_off_t=yes
18821 else
18822   echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825         ac_cv_type_off_t=no
18826 fi
18827
18828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18829 fi
18830 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18831 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18832 if test $ac_cv_type_off_t = yes; then
18833   :
18834 else
18835
18836 cat >>confdefs.h <<_ACEOF
18837 #define off_t long int
18838 _ACEOF
18839
18840 fi
18841
18842 { echo "$as_me:$LINENO: checking for size_t" >&5
18843 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18844 if test "${ac_cv_type_size_t+set}" = set; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853 $ac_includes_default
18854 typedef size_t ac__type_new_;
18855 int
18856 main ()
18857 {
18858 if ((ac__type_new_ *) 0)
18859   return 0;
18860 if (sizeof (ac__type_new_))
18861   return 0;
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 rm -f conftest.$ac_objext
18867 if { (ac_try="$ac_compile"
18868 case "(($ac_try" in
18869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870   *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873   (eval "$ac_compile") 2>conftest.er1
18874   ac_status=$?
18875   grep -v '^ *+' conftest.er1 >conftest.err
18876   rm -f conftest.er1
18877   cat conftest.err >&5
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); } && {
18880          test -z "$ac_c_werror_flag" ||
18881          test ! -s conftest.err
18882        } && test -s conftest.$ac_objext; then
18883   ac_cv_type_size_t=yes
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888         ac_cv_type_size_t=no
18889 fi
18890
18891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18892 fi
18893 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18894 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18895 if test $ac_cv_type_size_t = yes; then
18896   :
18897 else
18898
18899 cat >>confdefs.h <<_ACEOF
18900 #define size_t unsigned int
18901 _ACEOF
18902
18903 fi
18904
18905
18906   { echo "$as_me:$LINENO: checking for long long" >&5
18907 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18908 if test "${ac_cv_type_long_long+set}" = set; then
18909   echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911   cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917 long long ll = 1LL; int i = 63;
18918 int
18919 main ()
18920 {
18921 long long llmax = (long long) -1;
18922      return ll << i | ll >> i | llmax / ll | llmax % ll;
18923   ;
18924   return 0;
18925 }
18926 _ACEOF
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934   (eval "$ac_link") 2>conftest.er1
18935   ac_status=$?
18936   grep -v '^ *+' conftest.er1 >conftest.err
18937   rm -f conftest.er1
18938   cat conftest.err >&5
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); } && {
18941          test -z "$ac_c_werror_flag" ||
18942          test ! -s conftest.err
18943        } && test -s conftest$ac_exeext &&
18944        $as_test_x conftest$ac_exeext; then
18945   ac_cv_type_long_long=yes
18946 else
18947   echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18949
18950         ac_cv_type_long_long=no
18951 fi
18952
18953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18954       conftest$ac_exeext conftest.$ac_ext
18955 fi
18956 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18957 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18958   if test $ac_cv_type_long_long = yes; then
18959
18960 cat >>confdefs.h <<\_ACEOF
18961 #define HAVE_LONG_LONG 1
18962 _ACEOF
18963
18964   fi
18965
18966
18967   { echo "$as_me:$LINENO: checking for long double" >&5
18968 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18969 if test "${gt_cv_c_long_double+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   if test "$GCC" = yes; then
18973        gt_cv_c_long_double=yes
18974      else
18975        cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h.  */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h.  */
18981
18982          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18983          long double foo = 0.0;
18984          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18985          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18986
18987 int
18988 main ()
18989 {
18990
18991   ;
18992   return 0;
18993 }
18994 _ACEOF
18995 rm -f conftest.$ac_objext
18996 if { (ac_try="$ac_compile"
18997 case "(($ac_try" in
18998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999   *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002   (eval "$ac_compile") 2>conftest.er1
19003   ac_status=$?
19004   grep -v '^ *+' conftest.er1 >conftest.err
19005   rm -f conftest.er1
19006   cat conftest.err >&5
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } && {
19009          test -z "$ac_c_werror_flag" ||
19010          test ! -s conftest.err
19011        } && test -s conftest.$ac_objext; then
19012   gt_cv_c_long_double=yes
19013 else
19014   echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19016
19017         gt_cv_c_long_double=no
19018 fi
19019
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021      fi
19022 fi
19023 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19024 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19025   if test $gt_cv_c_long_double = yes; then
19026
19027 cat >>confdefs.h <<\_ACEOF
19028 #define HAVE_LONG_DOUBLE 1
19029 _ACEOF
19030
19031   fi
19032
19033
19034   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19035 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19036 if test "${gt_cv_c_wchar_t+set}" = set; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039   cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045 #include <stddef.h>
19046        wchar_t foo = (wchar_t)'\0';
19047 int
19048 main ()
19049 {
19050
19051   ;
19052   return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (ac_try="$ac_compile"
19057 case "(($ac_try" in
19058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059   *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062   (eval "$ac_compile") 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } && {
19069          test -z "$ac_c_werror_flag" ||
19070          test ! -s conftest.err
19071        } && test -s conftest.$ac_objext; then
19072   gt_cv_c_wchar_t=yes
19073 else
19074   echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19076
19077         gt_cv_c_wchar_t=no
19078 fi
19079
19080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081 fi
19082 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19083 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19084   if test $gt_cv_c_wchar_t = yes; then
19085
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_WCHAR_T 1
19088 _ACEOF
19089
19090   fi
19091
19092
19093   { echo "$as_me:$LINENO: checking for wint_t" >&5
19094 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19095 if test "${gt_cv_c_wint_t+set}" = set; then
19096   echo $ECHO_N "(cached) $ECHO_C" >&6
19097 else
19098   cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h.  */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h.  */
19104 #include <wchar.h>
19105        wint_t foo = (wchar_t)'\0';
19106 int
19107 main ()
19108 {
19109
19110   ;
19111   return 0;
19112 }
19113 _ACEOF
19114 rm -f conftest.$ac_objext
19115 if { (ac_try="$ac_compile"
19116 case "(($ac_try" in
19117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118   *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121   (eval "$ac_compile") 2>conftest.er1
19122   ac_status=$?
19123   grep -v '^ *+' conftest.er1 >conftest.err
19124   rm -f conftest.er1
19125   cat conftest.err >&5
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } && {
19128          test -z "$ac_c_werror_flag" ||
19129          test ! -s conftest.err
19130        } && test -s conftest.$ac_objext; then
19131   gt_cv_c_wint_t=yes
19132 else
19133   echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136         gt_cv_c_wint_t=no
19137 fi
19138
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19140 fi
19141 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19142 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19143   if test $gt_cv_c_wint_t = yes; then
19144
19145 cat >>confdefs.h <<\_ACEOF
19146 #define HAVE_WINT_T 1
19147 _ACEOF
19148
19149   fi
19150
19151
19152   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19153 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19154 if test "${gl_cv_header_inttypes_h+set}" = set; then
19155   echo $ECHO_N "(cached) $ECHO_C" >&6
19156 else
19157   cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163 #include <sys/types.h>
19164 #include <inttypes.h>
19165 int
19166 main ()
19167 {
19168 uintmax_t i = (uintmax_t) -1;
19169   ;
19170   return 0;
19171 }
19172 _ACEOF
19173 rm -f conftest.$ac_objext
19174 if { (ac_try="$ac_compile"
19175 case "(($ac_try" in
19176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177   *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180   (eval "$ac_compile") 2>conftest.er1
19181   ac_status=$?
19182   grep -v '^ *+' conftest.er1 >conftest.err
19183   rm -f conftest.er1
19184   cat conftest.err >&5
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); } && {
19187          test -z "$ac_c_werror_flag" ||
19188          test ! -s conftest.err
19189        } && test -s conftest.$ac_objext; then
19190   gl_cv_header_inttypes_h=yes
19191 else
19192   echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19194
19195         gl_cv_header_inttypes_h=no
19196 fi
19197
19198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19199 fi
19200 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19201 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19202   if test $gl_cv_header_inttypes_h = yes; then
19203
19204 cat >>confdefs.h <<_ACEOF
19205 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19206 _ACEOF
19207
19208   fi
19209
19210
19211   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19212 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19213 if test "${gl_cv_header_stdint_h+set}" = set; then
19214   echo $ECHO_N "(cached) $ECHO_C" >&6
19215 else
19216   cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h.  */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h.  */
19222 #include <sys/types.h>
19223 #include <stdint.h>
19224 int
19225 main ()
19226 {
19227 uintmax_t i = (uintmax_t) -1;
19228   ;
19229   return 0;
19230 }
19231 _ACEOF
19232 rm -f conftest.$ac_objext
19233 if { (ac_try="$ac_compile"
19234 case "(($ac_try" in
19235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236   *) ac_try_echo=$ac_try;;
19237 esac
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239   (eval "$ac_compile") 2>conftest.er1
19240   ac_status=$?
19241   grep -v '^ *+' conftest.er1 >conftest.err
19242   rm -f conftest.er1
19243   cat conftest.err >&5
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); } && {
19246          test -z "$ac_c_werror_flag" ||
19247          test ! -s conftest.err
19248        } && test -s conftest.$ac_objext; then
19249   gl_cv_header_stdint_h=yes
19250 else
19251   echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254         gl_cv_header_stdint_h=no
19255 fi
19256
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19258 fi
19259 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19260 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19261   if test $gl_cv_header_stdint_h = yes; then
19262
19263 cat >>confdefs.h <<_ACEOF
19264 #define HAVE_STDINT_H_WITH_UINTMAX 1
19265 _ACEOF
19266
19267   fi
19268
19269
19270
19271
19272   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19273 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19274 if test "${gt_cv_c_intmax_t+set}" = set; then
19275   echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277   cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283
19284 #include <stddef.h>
19285 #include <stdlib.h>
19286 #if HAVE_STDINT_H_WITH_UINTMAX
19287 #include <stdint.h>
19288 #endif
19289 #if HAVE_INTTYPES_H_WITH_UINTMAX
19290 #include <inttypes.h>
19291 #endif
19292
19293 int
19294 main ()
19295 {
19296 intmax_t x = -1;
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_compile") 2>conftest.er1
19309   ac_status=$?
19310   grep -v '^ *+' conftest.er1 >conftest.err
19311   rm -f conftest.er1
19312   cat conftest.err >&5
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } && {
19315          test -z "$ac_c_werror_flag" ||
19316          test ! -s conftest.err
19317        } && test -s conftest.$ac_objext; then
19318   gt_cv_c_intmax_t=yes
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323         gt_cv_c_intmax_t=no
19324 fi
19325
19326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327 fi
19328 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19329 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19330   if test $gt_cv_c_intmax_t = yes; then
19331
19332 cat >>confdefs.h <<\_ACEOF
19333 #define HAVE_INTMAX_T 1
19334 _ACEOF
19335
19336   fi
19337
19338
19339
19340   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19341 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19342 if test "${gt_cv_func_printf_posix+set}" = set; then
19343   echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345
19346       if test "$cross_compiling" = yes; then
19347
19348         cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h.  */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h.  */
19354
19355 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19356   notposix
19357 #endif
19358
19359 _ACEOF
19360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19361   $EGREP "notposix" >/dev/null 2>&1; then
19362   gt_cv_func_printf_posix="guessing no"
19363 else
19364   gt_cv_func_printf_posix="guessing yes"
19365 fi
19366 rm -f conftest*
19367
19368
19369 else
19370   cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h.  */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h.  */
19376
19377 #include <stdio.h>
19378 #include <string.h>
19379 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19380    dollar expansion (possibly an autoconf bug).  */
19381 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19382 static char buf[100];
19383 int main ()
19384 {
19385   sprintf (buf, format, 33, 55);
19386   return (strcmp (buf, "55 33") != 0);
19387 }
19388 _ACEOF
19389 rm -f conftest$ac_exeext
19390 if { (ac_try="$ac_link"
19391 case "(($ac_try" in
19392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393   *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396   (eval "$ac_link") 2>&5
19397   ac_status=$?
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19400   { (case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_try") 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; }; then
19409   gt_cv_func_printf_posix=yes
19410 else
19411   echo "$as_me: program exited with status $ac_status" >&5
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415 ( exit $ac_status )
19416 gt_cv_func_printf_posix=no
19417 fi
19418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19419 fi
19420
19421
19422
19423 fi
19424 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19425 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19426   case $gt_cv_func_printf_posix in
19427     *yes)
19428
19429 cat >>confdefs.h <<\_ACEOF
19430 #define HAVE_POSIX_PRINTF 1
19431 _ACEOF
19432
19433       ;;
19434   esac
19435
19436 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19437 # for constant arguments.  Useless!
19438 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19439 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19440 if test "${ac_cv_working_alloca_h+set}" = set; then
19441   echo $ECHO_N "(cached) $ECHO_C" >&6
19442 else
19443   cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449 #include <alloca.h>
19450 int
19451 main ()
19452 {
19453 char *p = (char *) alloca (2 * sizeof (int));
19454                           if (p) return 0;
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (ac_try="$ac_link"
19461 case "(($ac_try" in
19462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463   *) ac_try_echo=$ac_try;;
19464 esac
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466   (eval "$ac_link") 2>conftest.er1
19467   ac_status=$?
19468   grep -v '^ *+' conftest.er1 >conftest.err
19469   rm -f conftest.er1
19470   cat conftest.err >&5
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); } && {
19473          test -z "$ac_c_werror_flag" ||
19474          test ! -s conftest.err
19475        } && test -s conftest$ac_exeext &&
19476        $as_test_x conftest$ac_exeext; then
19477   ac_cv_working_alloca_h=yes
19478 else
19479   echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482         ac_cv_working_alloca_h=no
19483 fi
19484
19485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19486       conftest$ac_exeext conftest.$ac_ext
19487 fi
19488 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19489 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19490 if test $ac_cv_working_alloca_h = yes; then
19491
19492 cat >>confdefs.h <<\_ACEOF
19493 #define HAVE_ALLOCA_H 1
19494 _ACEOF
19495
19496 fi
19497
19498 { echo "$as_me:$LINENO: checking for alloca" >&5
19499 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19500 if test "${ac_cv_func_alloca_works+set}" = set; then
19501   echo $ECHO_N "(cached) $ECHO_C" >&6
19502 else
19503   cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h.  */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h.  */
19509 #ifdef __GNUC__
19510 # define alloca __builtin_alloca
19511 #else
19512 # ifdef _MSC_VER
19513 #  include <malloc.h>
19514 #  define alloca _alloca
19515 # else
19516 #  ifdef HAVE_ALLOCA_H
19517 #   include <alloca.h>
19518 #  else
19519 #   ifdef _AIX
19520  #pragma alloca
19521 #   else
19522 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19523 char *alloca ();
19524 #    endif
19525 #   endif
19526 #  endif
19527 # endif
19528 #endif
19529
19530 int
19531 main ()
19532 {
19533 char *p = (char *) alloca (1);
19534                                     if (p) return 0;
19535   ;
19536   return 0;
19537 }
19538 _ACEOF
19539 rm -f conftest.$ac_objext conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546   (eval "$ac_link") 2>conftest.er1
19547   ac_status=$?
19548   grep -v '^ *+' conftest.er1 >conftest.err
19549   rm -f conftest.er1
19550   cat conftest.err >&5
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); } && {
19553          test -z "$ac_c_werror_flag" ||
19554          test ! -s conftest.err
19555        } && test -s conftest$ac_exeext &&
19556        $as_test_x conftest$ac_exeext; then
19557   ac_cv_func_alloca_works=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562         ac_cv_func_alloca_works=no
19563 fi
19564
19565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19566       conftest$ac_exeext conftest.$ac_ext
19567 fi
19568 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19569 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19570
19571 if test $ac_cv_func_alloca_works = yes; then
19572
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE_ALLOCA 1
19575 _ACEOF
19576
19577 else
19578   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19579 # that cause trouble.  Some versions do not even contain alloca or
19580 # contain a buggy version.  If you still want to use their alloca,
19581 # use ar to extract alloca.o from them instead of compiling alloca.c.
19582
19583 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19584
19585 cat >>confdefs.h <<\_ACEOF
19586 #define C_ALLOCA 1
19587 _ACEOF
19588
19589
19590 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19591 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19592 if test "${ac_cv_os_cray+set}" = set; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   cat >conftest.$ac_ext <<_ACEOF
19596 /* confdefs.h.  */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h.  */
19601 #if defined CRAY && ! defined CRAY2
19602 webecray
19603 #else
19604 wenotbecray
19605 #endif
19606
19607 _ACEOF
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609   $EGREP "webecray" >/dev/null 2>&1; then
19610   ac_cv_os_cray=yes
19611 else
19612   ac_cv_os_cray=no
19613 fi
19614 rm -f conftest*
19615
19616 fi
19617 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19618 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19619 if test $ac_cv_os_cray = yes; then
19620   for ac_func in _getb67 GETB67 getb67; do
19621     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19625   echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627   cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h.  */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h.  */
19633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19635 #define $ac_func innocuous_$ac_func
19636
19637 /* System header to define __stub macros and hopefully few prototypes,
19638     which can conflict with char $ac_func (); below.
19639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19640     <limits.h> exists even on freestanding compilers.  */
19641
19642 #ifdef __STDC__
19643 # include <limits.h>
19644 #else
19645 # include <assert.h>
19646 #endif
19647
19648 #undef $ac_func
19649
19650 /* Override any GCC internal prototype to avoid an error.
19651    Use char because int might match the return type of a GCC
19652    builtin and then its argument prototype would still apply.  */
19653 #ifdef __cplusplus
19654 extern "C"
19655 #endif
19656 char $ac_func ();
19657 /* The GNU C library defines this for functions which it implements
19658     to always fail with ENOSYS.  Some functions are actually named
19659     something starting with __ and the normal name is an alias.  */
19660 #if defined __stub_$ac_func || defined __stub___$ac_func
19661 choke me
19662 #endif
19663
19664 int
19665 main ()
19666 {
19667 return $ac_func ();
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (ac_try="$ac_link"
19674 case "(($ac_try" in
19675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676   *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679   (eval "$ac_link") 2>conftest.er1
19680   ac_status=$?
19681   grep -v '^ *+' conftest.er1 >conftest.err
19682   rm -f conftest.er1
19683   cat conftest.err >&5
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); } && {
19686          test -z "$ac_c_werror_flag" ||
19687          test ! -s conftest.err
19688        } && test -s conftest$ac_exeext &&
19689        $as_test_x conftest$ac_exeext; then
19690   eval "$as_ac_var=yes"
19691 else
19692   echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19694
19695         eval "$as_ac_var=no"
19696 fi
19697
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699       conftest$ac_exeext conftest.$ac_ext
19700 fi
19701 ac_res=`eval echo '${'$as_ac_var'}'`
19702                { echo "$as_me:$LINENO: result: $ac_res" >&5
19703 echo "${ECHO_T}$ac_res" >&6; }
19704 if test `eval echo '${'$as_ac_var'}'` = yes; then
19705
19706 cat >>confdefs.h <<_ACEOF
19707 #define CRAY_STACKSEG_END $ac_func
19708 _ACEOF
19709
19710     break
19711 fi
19712
19713   done
19714 fi
19715
19716 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19717 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19718 if test "${ac_cv_c_stack_direction+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   if test "$cross_compiling" = yes; then
19722   ac_cv_c_stack_direction=0
19723 else
19724   cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730 $ac_includes_default
19731 int
19732 find_stack_direction ()
19733 {
19734   static char *addr = 0;
19735   auto char dummy;
19736   if (addr == 0)
19737     {
19738       addr = &dummy;
19739       return find_stack_direction ();
19740     }
19741   else
19742     return (&dummy > addr) ? 1 : -1;
19743 }
19744
19745 int
19746 main ()
19747 {
19748   return find_stack_direction () < 0;
19749 }
19750 _ACEOF
19751 rm -f conftest$ac_exeext
19752 if { (ac_try="$ac_link"
19753 case "(($ac_try" in
19754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755   *) ac_try_echo=$ac_try;;
19756 esac
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758   (eval "$ac_link") 2>&5
19759   ac_status=$?
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19762   { (case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_try") 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; }; then
19771   ac_cv_c_stack_direction=1
19772 else
19773   echo "$as_me: program exited with status $ac_status" >&5
19774 echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19776
19777 ( exit $ac_status )
19778 ac_cv_c_stack_direction=-1
19779 fi
19780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19781 fi
19782
19783
19784 fi
19785 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19786 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19787
19788 cat >>confdefs.h <<_ACEOF
19789 #define STACK_DIRECTION $ac_cv_c_stack_direction
19790 _ACEOF
19791
19792
19793 fi
19794
19795
19796
19797 for ac_header in stdlib.h unistd.h
19798 do
19799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19804   echo $ECHO_N "(cached) $ECHO_C" >&6
19805 fi
19806 ac_res=`eval echo '${'$as_ac_Header'}'`
19807                { echo "$as_me:$LINENO: result: $ac_res" >&5
19808 echo "${ECHO_T}$ac_res" >&6; }
19809 else
19810   # Is the header compilable?
19811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h.  */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h.  */
19819 $ac_includes_default
19820 #include <$ac_header>
19821 _ACEOF
19822 rm -f conftest.$ac_objext
19823 if { (ac_try="$ac_compile"
19824 case "(($ac_try" in
19825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826   *) ac_try_echo=$ac_try;;
19827 esac
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829   (eval "$ac_compile") 2>conftest.er1
19830   ac_status=$?
19831   grep -v '^ *+' conftest.er1 >conftest.err
19832   rm -f conftest.er1
19833   cat conftest.err >&5
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } && {
19836          test -z "$ac_c_werror_flag" ||
19837          test ! -s conftest.err
19838        } && test -s conftest.$ac_objext; then
19839   ac_header_compiler=yes
19840 else
19841   echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19843
19844         ac_header_compiler=no
19845 fi
19846
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19849 echo "${ECHO_T}$ac_header_compiler" >&6; }
19850
19851 # Is the header present?
19852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860 #include <$ac_header>
19861 _ACEOF
19862 if { (ac_try="$ac_cpp conftest.$ac_ext"
19863 case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19869   ac_status=$?
19870   grep -v '^ *+' conftest.er1 >conftest.err
19871   rm -f conftest.er1
19872   cat conftest.err >&5
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } >/dev/null && {
19875          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19876          test ! -s conftest.err
19877        }; then
19878   ac_header_preproc=yes
19879 else
19880   echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883   ac_header_preproc=no
19884 fi
19885
19886 rm -f conftest.err conftest.$ac_ext
19887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19888 echo "${ECHO_T}$ac_header_preproc" >&6; }
19889
19890 # So?  What about this header?
19891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19892   yes:no: )
19893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19897     ac_header_preproc=yes
19898     ;;
19899   no:yes:* )
19900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19912
19913     ;;
19914 esac
19915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19918   echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920   eval "$as_ac_Header=\$ac_header_preproc"
19921 fi
19922 ac_res=`eval echo '${'$as_ac_Header'}'`
19923                { echo "$as_me:$LINENO: result: $ac_res" >&5
19924 echo "${ECHO_T}$ac_res" >&6; }
19925
19926 fi
19927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19928   cat >>confdefs.h <<_ACEOF
19929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19930 _ACEOF
19931
19932 fi
19933
19934 done
19935
19936
19937 for ac_func in getpagesize
19938 do
19939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19953 #define $ac_func innocuous_$ac_func
19954
19955 /* System header to define __stub macros and hopefully few prototypes,
19956     which can conflict with char $ac_func (); below.
19957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19958     <limits.h> exists even on freestanding compilers.  */
19959
19960 #ifdef __STDC__
19961 # include <limits.h>
19962 #else
19963 # include <assert.h>
19964 #endif
19965
19966 #undef $ac_func
19967
19968 /* Override any GCC internal prototype to avoid an error.
19969    Use char because int might match the return type of a GCC
19970    builtin and then its argument prototype would still apply.  */
19971 #ifdef __cplusplus
19972 extern "C"
19973 #endif
19974 char $ac_func ();
19975 /* The GNU C library defines this for functions which it implements
19976     to always fail with ENOSYS.  Some functions are actually named
19977     something starting with __ and the normal name is an alias.  */
19978 #if defined __stub_$ac_func || defined __stub___$ac_func
19979 choke me
19980 #endif
19981
19982 int
19983 main ()
19984 {
19985 return $ac_func ();
19986   ;
19987   return 0;
19988 }
19989 _ACEOF
19990 rm -f conftest.$ac_objext conftest$ac_exeext
19991 if { (ac_try="$ac_link"
19992 case "(($ac_try" in
19993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994   *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997   (eval "$ac_link") 2>conftest.er1
19998   ac_status=$?
19999   grep -v '^ *+' conftest.er1 >conftest.err
20000   rm -f conftest.er1
20001   cat conftest.err >&5
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); } && {
20004          test -z "$ac_c_werror_flag" ||
20005          test ! -s conftest.err
20006        } && test -s conftest$ac_exeext &&
20007        $as_test_x conftest$ac_exeext; then
20008   eval "$as_ac_var=yes"
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013         eval "$as_ac_var=no"
20014 fi
20015
20016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20017       conftest$ac_exeext conftest.$ac_ext
20018 fi
20019 ac_res=`eval echo '${'$as_ac_var'}'`
20020                { echo "$as_me:$LINENO: result: $ac_res" >&5
20021 echo "${ECHO_T}$ac_res" >&6; }
20022 if test `eval echo '${'$as_ac_var'}'` = yes; then
20023   cat >>confdefs.h <<_ACEOF
20024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20025 _ACEOF
20026
20027 fi
20028 done
20029
20030 { echo "$as_me:$LINENO: checking for working mmap" >&5
20031 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20032 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20033   echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035   if test "$cross_compiling" = yes; then
20036   ac_cv_func_mmap_fixed_mapped=no
20037 else
20038   cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044 $ac_includes_default
20045 /* malloc might have been renamed as rpl_malloc. */
20046 #undef malloc
20047
20048 /* Thanks to Mike Haertel and Jim Avera for this test.
20049    Here is a matrix of mmap possibilities:
20050         mmap private not fixed
20051         mmap private fixed at somewhere currently unmapped
20052         mmap private fixed at somewhere already mapped
20053         mmap shared not fixed
20054         mmap shared fixed at somewhere currently unmapped
20055         mmap shared fixed at somewhere already mapped
20056    For private mappings, we should verify that changes cannot be read()
20057    back from the file, nor mmap's back from the file at a different
20058    address.  (There have been systems where private was not correctly
20059    implemented like the infamous i386 svr4.0, and systems where the
20060    VM page cache was not coherent with the file system buffer cache
20061    like early versions of FreeBSD and possibly contemporary NetBSD.)
20062    For shared mappings, we should conversely verify that changes get
20063    propagated back to all the places they're supposed to be.
20064
20065    Grep wants private fixed already mapped.
20066    The main things grep needs to know about mmap are:
20067    * does it exist and is it safe to write into the mmap'd area
20068    * how to use it (BSD variants)  */
20069
20070 #include <fcntl.h>
20071 #include <sys/mman.h>
20072
20073 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20074 char *malloc ();
20075 #endif
20076
20077 /* This mess was copied from the GNU getpagesize.h.  */
20078 #ifndef HAVE_GETPAGESIZE
20079 /* Assume that all systems that can run configure have sys/param.h.  */
20080 # ifndef HAVE_SYS_PARAM_H
20081 #  define HAVE_SYS_PARAM_H 1
20082 # endif
20083
20084 # ifdef _SC_PAGESIZE
20085 #  define getpagesize() sysconf(_SC_PAGESIZE)
20086 # else /* no _SC_PAGESIZE */
20087 #  ifdef HAVE_SYS_PARAM_H
20088 #   include <sys/param.h>
20089 #   ifdef EXEC_PAGESIZE
20090 #    define getpagesize() EXEC_PAGESIZE
20091 #   else /* no EXEC_PAGESIZE */
20092 #    ifdef NBPG
20093 #     define getpagesize() NBPG * CLSIZE
20094 #     ifndef CLSIZE
20095 #      define CLSIZE 1
20096 #     endif /* no CLSIZE */
20097 #    else /* no NBPG */
20098 #     ifdef NBPC
20099 #      define getpagesize() NBPC
20100 #     else /* no NBPC */
20101 #      ifdef PAGESIZE
20102 #       define getpagesize() PAGESIZE
20103 #      endif /* PAGESIZE */
20104 #     endif /* no NBPC */
20105 #    endif /* no NBPG */
20106 #   endif /* no EXEC_PAGESIZE */
20107 #  else /* no HAVE_SYS_PARAM_H */
20108 #   define getpagesize() 8192   /* punt totally */
20109 #  endif /* no HAVE_SYS_PARAM_H */
20110 # endif /* no _SC_PAGESIZE */
20111
20112 #endif /* no HAVE_GETPAGESIZE */
20113
20114 int
20115 main ()
20116 {
20117   char *data, *data2, *data3;
20118   int i, pagesize;
20119   int fd;
20120
20121   pagesize = getpagesize ();
20122
20123   /* First, make a file with some known garbage in it. */
20124   data = (char *) malloc (pagesize);
20125   if (!data)
20126     return 1;
20127   for (i = 0; i < pagesize; ++i)
20128     *(data + i) = rand ();
20129   umask (0);
20130   fd = creat ("conftest.mmap", 0600);
20131   if (fd < 0)
20132     return 1;
20133   if (write (fd, data, pagesize) != pagesize)
20134     return 1;
20135   close (fd);
20136
20137   /* Next, try to mmap the file at a fixed address which already has
20138      something else allocated at it.  If we can, also make sure that
20139      we see the same garbage.  */
20140   fd = open ("conftest.mmap", O_RDWR);
20141   if (fd < 0)
20142     return 1;
20143   data2 = (char *) malloc (2 * pagesize);
20144   if (!data2)
20145     return 1;
20146   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20147   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20148                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20149     return 1;
20150   for (i = 0; i < pagesize; ++i)
20151     if (*(data + i) != *(data2 + i))
20152       return 1;
20153
20154   /* Finally, make sure that changes to the mapped area do not
20155      percolate back to the file as seen by read().  (This is a bug on
20156      some variants of i386 svr4.0.)  */
20157   for (i = 0; i < pagesize; ++i)
20158     *(data2 + i) = *(data2 + i) + 1;
20159   data3 = (char *) malloc (pagesize);
20160   if (!data3)
20161     return 1;
20162   if (read (fd, data3, pagesize) != pagesize)
20163     return 1;
20164   for (i = 0; i < pagesize; ++i)
20165     if (*(data + i) != *(data3 + i))
20166       return 1;
20167   close (fd);
20168   return 0;
20169 }
20170 _ACEOF
20171 rm -f conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175   *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178   (eval "$ac_link") 2>&5
20179   ac_status=$?
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20182   { (case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187   (eval "$ac_try") 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; }; then
20191   ac_cv_func_mmap_fixed_mapped=yes
20192 else
20193   echo "$as_me: program exited with status $ac_status" >&5
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 ( exit $ac_status )
20198 ac_cv_func_mmap_fixed_mapped=no
20199 fi
20200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20201 fi
20202
20203
20204 fi
20205 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20206 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20207 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20208
20209 cat >>confdefs.h <<\_ACEOF
20210 #define HAVE_MMAP 1
20211 _ACEOF
20212
20213 fi
20214 rm -f conftest.mmap
20215
20216
20217     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20218 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20219 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20220   echo $ECHO_N "(cached) $ECHO_C" >&6
20221 else
20222   cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h.  */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h.  */
20228
20229 #include <features.h>
20230 #ifdef __GNU_LIBRARY__
20231  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20232   Lucky GNU user
20233  #endif
20234 #endif
20235
20236 _ACEOF
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20239   ac_cv_gnu_library_2_1=yes
20240 else
20241   ac_cv_gnu_library_2_1=no
20242 fi
20243 rm -f conftest*
20244
20245
20246
20247 fi
20248 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20249 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20250
20251     GLIBC21="$ac_cv_gnu_library_2_1"
20252
20253
20254
20255
20256   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20257 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20258 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261
20262       if test "$cross_compiling" = yes; then
20263
20264           # Guess based on the CPU.
20265           case "$host_cpu" in
20266             alpha* | i3456786 | m68k | s390*)
20267               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20268             *)
20269               gt_cv_int_divbyzero_sigfpe="guessing no";;
20270           esac
20271
20272 else
20273   cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279
20280 #include <stdlib.h>
20281 #include <signal.h>
20282
20283 static void
20284 #ifdef __cplusplus
20285 sigfpe_handler (int sig)
20286 #else
20287 sigfpe_handler (sig) int sig;
20288 #endif
20289 {
20290   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20291   exit (sig != SIGFPE);
20292 }
20293
20294 int x = 1;
20295 int y = 0;
20296 int z;
20297 int nan;
20298
20299 int main ()
20300 {
20301   signal (SIGFPE, sigfpe_handler);
20302 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20303 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20304   signal (SIGTRAP, sigfpe_handler);
20305 #endif
20306 /* Linux/SPARC yields signal SIGILL.  */
20307 #if defined (__sparc__) && defined (__linux__)
20308   signal (SIGILL, sigfpe_handler);
20309 #endif
20310
20311   z = x / y;
20312   nan = y / y;
20313   exit (1);
20314 }
20315
20316 _ACEOF
20317 rm -f conftest$ac_exeext
20318 if { (ac_try="$ac_link"
20319 case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_link") 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20328   { (case "(($ac_try" in
20329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330   *) ac_try_echo=$ac_try;;
20331 esac
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333   (eval "$ac_try") 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); }; }; then
20337   gt_cv_int_divbyzero_sigfpe=yes
20338 else
20339   echo "$as_me: program exited with status $ac_status" >&5
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343 ( exit $ac_status )
20344 gt_cv_int_divbyzero_sigfpe=no
20345 fi
20346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20347 fi
20348
20349
20350
20351 fi
20352 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20353 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20354   case "$gt_cv_int_divbyzero_sigfpe" in
20355     *yes) value=1;;
20356     *) value=0;;
20357   esac
20358
20359 cat >>confdefs.h <<_ACEOF
20360 #define INTDIV0_RAISES_SIGFPE $value
20361 _ACEOF
20362
20363
20364
20365   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20366 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20367 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20368   echo $ECHO_N "(cached) $ECHO_C" >&6
20369 else
20370   cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h.  */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h.  */
20376 unsigned long long ull = 1ULL; int i = 63;
20377 int
20378 main ()
20379 {
20380 unsigned long long ullmax = (unsigned long long) -1;
20381      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (ac_try="$ac_link"
20388 case "(($ac_try" in
20389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390   *) ac_try_echo=$ac_try;;
20391 esac
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393   (eval "$ac_link") 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } && {
20400          test -z "$ac_c_werror_flag" ||
20401          test ! -s conftest.err
20402        } && test -s conftest$ac_exeext &&
20403        $as_test_x conftest$ac_exeext; then
20404   ac_cv_type_unsigned_long_long=yes
20405 else
20406   echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409         ac_cv_type_unsigned_long_long=no
20410 fi
20411
20412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20413       conftest$ac_exeext conftest.$ac_ext
20414 fi
20415 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20416 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20417   if test $ac_cv_type_unsigned_long_long = yes; then
20418
20419 cat >>confdefs.h <<\_ACEOF
20420 #define HAVE_UNSIGNED_LONG_LONG 1
20421 _ACEOF
20422
20423   fi
20424
20425
20426
20427
20428   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20429
20430     test $ac_cv_type_unsigned_long_long = yes \
20431       && ac_type='unsigned long long' \
20432       || ac_type='unsigned long'
20433
20434 cat >>confdefs.h <<_ACEOF
20435 #define uintmax_t $ac_type
20436 _ACEOF
20437
20438   else
20439
20440 cat >>confdefs.h <<\_ACEOF
20441 #define HAVE_UINTMAX_T 1
20442 _ACEOF
20443
20444   fi
20445
20446
20447   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20448 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20449 if test "${gt_cv_header_inttypes_h+set}" = set; then
20450   echo $ECHO_N "(cached) $ECHO_C" >&6
20451 else
20452
20453     cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 #include <sys/types.h>
20460 #include <inttypes.h>
20461 int
20462 main ()
20463 {
20464
20465   ;
20466   return 0;
20467 }
20468 _ACEOF
20469 rm -f conftest.$ac_objext
20470 if { (ac_try="$ac_compile"
20471 case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_compile") 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } && {
20483          test -z "$ac_c_werror_flag" ||
20484          test ! -s conftest.err
20485        } && test -s conftest.$ac_objext; then
20486   gt_cv_header_inttypes_h=yes
20487 else
20488   echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491         gt_cv_header_inttypes_h=no
20492 fi
20493
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20495
20496 fi
20497 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20498 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20499   if test $gt_cv_header_inttypes_h = yes; then
20500
20501 cat >>confdefs.h <<_ACEOF
20502 #define HAVE_INTTYPES_H 1
20503 _ACEOF
20504
20505   fi
20506
20507
20508
20509   if test $gt_cv_header_inttypes_h = yes; then
20510     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20511 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20512 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515
20516         cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h.  */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h.  */
20522 #include <inttypes.h>
20523 #ifdef PRId32
20524 char *p = PRId32;
20525 #endif
20526
20527 int
20528 main ()
20529 {
20530
20531   ;
20532   return 0;
20533 }
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (ac_try="$ac_compile"
20537 case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_compile") 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } && {
20549          test -z "$ac_c_werror_flag" ||
20550          test ! -s conftest.err
20551        } && test -s conftest.$ac_objext; then
20552   gt_cv_inttypes_pri_broken=no
20553 else
20554   echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557         gt_cv_inttypes_pri_broken=yes
20558 fi
20559
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561
20562 fi
20563 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20564 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20565   fi
20566   if test "$gt_cv_inttypes_pri_broken" = yes; then
20567
20568 cat >>confdefs.h <<_ACEOF
20569 #define PRI_MACROS_BROKEN 1
20570 _ACEOF
20571
20572   fi
20573
20574
20575
20576 for ac_header in stdint.h
20577 do
20578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20580   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20583   echo $ECHO_N "(cached) $ECHO_C" >&6
20584 fi
20585 ac_res=`eval echo '${'$as_ac_Header'}'`
20586                { echo "$as_me:$LINENO: result: $ac_res" >&5
20587 echo "${ECHO_T}$ac_res" >&6; }
20588 else
20589   # Is the header compilable?
20590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598 $ac_includes_default
20599 #include <$ac_header>
20600 _ACEOF
20601 rm -f conftest.$ac_objext
20602 if { (ac_try="$ac_compile"
20603 case "(($ac_try" in
20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605   *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608   (eval "$ac_compile") 2>conftest.er1
20609   ac_status=$?
20610   grep -v '^ *+' conftest.er1 >conftest.err
20611   rm -f conftest.er1
20612   cat conftest.err >&5
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); } && {
20615          test -z "$ac_c_werror_flag" ||
20616          test ! -s conftest.err
20617        } && test -s conftest.$ac_objext; then
20618   ac_header_compiler=yes
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623         ac_header_compiler=no
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628 echo "${ECHO_T}$ac_header_compiler" >&6; }
20629
20630 # Is the header present?
20631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639 #include <$ac_header>
20640 _ACEOF
20641 if { (ac_try="$ac_cpp conftest.$ac_ext"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20648   ac_status=$?
20649   grep -v '^ *+' conftest.er1 >conftest.err
20650   rm -f conftest.er1
20651   cat conftest.err >&5
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } >/dev/null && {
20654          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20655          test ! -s conftest.err
20656        }; then
20657   ac_header_preproc=yes
20658 else
20659   echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662   ac_header_preproc=no
20663 fi
20664
20665 rm -f conftest.err conftest.$ac_ext
20666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20667 echo "${ECHO_T}$ac_header_preproc" >&6; }
20668
20669 # So?  What about this header?
20670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20671   yes:no: )
20672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20676     ac_header_preproc=yes
20677     ;;
20678   no:yes:* )
20679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20681     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20682 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20683     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20685     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20686 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20689     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20691
20692     ;;
20693 esac
20694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20697   echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699   eval "$as_ac_Header=\$ac_header_preproc"
20700 fi
20701 ac_res=`eval echo '${'$as_ac_Header'}'`
20702                { echo "$as_me:$LINENO: result: $ac_res" >&5
20703 echo "${ECHO_T}$ac_res" >&6; }
20704
20705 fi
20706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20707   cat >>confdefs.h <<_ACEOF
20708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20709 _ACEOF
20710
20711 fi
20712
20713 done
20714
20715     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20716 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20717   result=
20718   cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724
20725 #include <limits.h>
20726 #if HAVE_STDINT_H
20727 #include <stdint.h>
20728 #endif
20729 #ifdef SIZE_MAX
20730 Found it
20731 #endif
20732
20733 _ACEOF
20734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20735   $EGREP "Found it" >/dev/null 2>&1; then
20736   result=yes
20737 fi
20738 rm -f conftest*
20739
20740   if test -z "$result"; then
20741                     if test "$cross_compiling" = yes; then
20742   # Depending upon the size, compute the lo and hi bounds.
20743 cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 #include <stddef.h>
20750 int
20751 main ()
20752 {
20753 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20754 test_array [0] = 0
20755
20756   ;
20757   return 0;
20758 }
20759 _ACEOF
20760 rm -f conftest.$ac_objext
20761 if { (ac_try="$ac_compile"
20762 case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_compile") 2>conftest.er1
20768   ac_status=$?
20769   grep -v '^ *+' conftest.er1 >conftest.err
20770   rm -f conftest.er1
20771   cat conftest.err >&5
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); } && {
20774          test -z "$ac_c_werror_flag" ||
20775          test ! -s conftest.err
20776        } && test -s conftest.$ac_objext; then
20777   ac_lo=0 ac_mid=0
20778   while :; do
20779     cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785 #include <stddef.h>
20786 int
20787 main ()
20788 {
20789 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20790 test_array [0] = 0
20791
20792   ;
20793   return 0;
20794 }
20795 _ACEOF
20796 rm -f conftest.$ac_objext
20797 if { (ac_try="$ac_compile"
20798 case "(($ac_try" in
20799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800   *) ac_try_echo=$ac_try;;
20801 esac
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803   (eval "$ac_compile") 2>conftest.er1
20804   ac_status=$?
20805   grep -v '^ *+' conftest.er1 >conftest.err
20806   rm -f conftest.er1
20807   cat conftest.err >&5
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); } && {
20810          test -z "$ac_c_werror_flag" ||
20811          test ! -s conftest.err
20812        } && test -s conftest.$ac_objext; then
20813   ac_hi=$ac_mid; break
20814 else
20815   echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818         ac_lo=`expr $ac_mid + 1`
20819                         if test $ac_lo -le $ac_mid; then
20820                           ac_lo= ac_hi=
20821                           break
20822                         fi
20823                         ac_mid=`expr 2 '*' $ac_mid + 1`
20824 fi
20825
20826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20827   done
20828 else
20829   echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832         cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838 #include <stddef.h>
20839 int
20840 main ()
20841 {
20842 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20843 test_array [0] = 0
20844
20845   ;
20846   return 0;
20847 }
20848 _ACEOF
20849 rm -f conftest.$ac_objext
20850 if { (ac_try="$ac_compile"
20851 case "(($ac_try" in
20852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853   *) ac_try_echo=$ac_try;;
20854 esac
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856   (eval "$ac_compile") 2>conftest.er1
20857   ac_status=$?
20858   grep -v '^ *+' conftest.er1 >conftest.err
20859   rm -f conftest.er1
20860   cat conftest.err >&5
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); } && {
20863          test -z "$ac_c_werror_flag" ||
20864          test ! -s conftest.err
20865        } && test -s conftest.$ac_objext; then
20866   ac_hi=-1 ac_mid=-1
20867   while :; do
20868     cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h.  */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h.  */
20874 #include <stddef.h>
20875 int
20876 main ()
20877 {
20878 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20879 test_array [0] = 0
20880
20881   ;
20882   return 0;
20883 }
20884 _ACEOF
20885 rm -f conftest.$ac_objext
20886 if { (ac_try="$ac_compile"
20887 case "(($ac_try" in
20888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889   *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892   (eval "$ac_compile") 2>conftest.er1
20893   ac_status=$?
20894   grep -v '^ *+' conftest.er1 >conftest.err
20895   rm -f conftest.er1
20896   cat conftest.err >&5
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); } && {
20899          test -z "$ac_c_werror_flag" ||
20900          test ! -s conftest.err
20901        } && test -s conftest.$ac_objext; then
20902   ac_lo=$ac_mid; break
20903 else
20904   echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907         ac_hi=`expr '(' $ac_mid ')' - 1`
20908                         if test $ac_mid -le $ac_hi; then
20909                           ac_lo= ac_hi=
20910                           break
20911                         fi
20912                         ac_mid=`expr 2 '*' $ac_mid`
20913 fi
20914
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916   done
20917 else
20918   echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921         ac_lo= ac_hi=
20922 fi
20923
20924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925 fi
20926
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928 # Binary search between lo and hi bounds.
20929 while test "x$ac_lo" != "x$ac_hi"; do
20930   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20931   cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937 #include <stddef.h>
20938 int
20939 main ()
20940 {
20941 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20942 test_array [0] = 0
20943
20944   ;
20945   return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952   *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955   (eval "$ac_compile") 2>conftest.er1
20956   ac_status=$?
20957   grep -v '^ *+' conftest.er1 >conftest.err
20958   rm -f conftest.er1
20959   cat conftest.err >&5
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } && {
20962          test -z "$ac_c_werror_flag" ||
20963          test ! -s conftest.err
20964        } && test -s conftest.$ac_objext; then
20965   ac_hi=$ac_mid
20966 else
20967   echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970         ac_lo=`expr '(' $ac_mid ')' + 1`
20971 fi
20972
20973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20974 done
20975 case $ac_lo in
20976 ?*) res_hi=$ac_lo;;
20977 '') result=? ;;
20978 esac
20979 else
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 static long int longval () { return ~(size_t)0 / 10; }
20988 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
20989 #include <stdio.h>
20990 #include <stdlib.h>
20991 int
20992 main ()
20993 {
20994
20995   FILE *f = fopen ("conftest.val", "w");
20996   if (! f)
20997     return 1;
20998   if ((~(size_t)0 / 10) < 0)
20999     {
21000       long int i = longval ();
21001       if (i != (~(size_t)0 / 10))
21002         return 1;
21003       fprintf (f, "%ld\n", i);
21004     }
21005   else
21006     {
21007       unsigned long int i = ulongval ();
21008       if (i != (~(size_t)0 / 10))
21009         return 1;
21010       fprintf (f, "%lu\n", i);
21011     }
21012   return ferror (f) || fclose (f) != 0;
21013
21014   ;
21015   return 0;
21016 }
21017 _ACEOF
21018 rm -f conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_link") 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21029   { (case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034   (eval "$ac_try") 2>&5
21035   ac_status=$?
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); }; }; then
21038   res_hi=`cat conftest.val`
21039 else
21040   echo "$as_me: program exited with status $ac_status" >&5
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 ( exit $ac_status )
21045 result=?
21046 fi
21047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21048 fi
21049 rm -f conftest.val
21050
21051     if test "$cross_compiling" = yes; then
21052   # Depending upon the size, compute the lo and hi bounds.
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 #include <stddef.h>
21060 int
21061 main ()
21062 {
21063 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21064 test_array [0] = 0
21065
21066   ;
21067   return 0;
21068 }
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_compile") 2>conftest.er1
21078   ac_status=$?
21079   grep -v '^ *+' conftest.er1 >conftest.err
21080   rm -f conftest.er1
21081   cat conftest.err >&5
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } && {
21084          test -z "$ac_c_werror_flag" ||
21085          test ! -s conftest.err
21086        } && test -s conftest.$ac_objext; then
21087   ac_lo=0 ac_mid=0
21088   while :; do
21089     cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h.  */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h.  */
21095 #include <stddef.h>
21096 int
21097 main ()
21098 {
21099 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21100 test_array [0] = 0
21101
21102   ;
21103   return 0;
21104 }
21105 _ACEOF
21106 rm -f conftest.$ac_objext
21107 if { (ac_try="$ac_compile"
21108 case "(($ac_try" in
21109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110   *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113   (eval "$ac_compile") 2>conftest.er1
21114   ac_status=$?
21115   grep -v '^ *+' conftest.er1 >conftest.err
21116   rm -f conftest.er1
21117   cat conftest.err >&5
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); } && {
21120          test -z "$ac_c_werror_flag" ||
21121          test ! -s conftest.err
21122        } && test -s conftest.$ac_objext; then
21123   ac_hi=$ac_mid; break
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128         ac_lo=`expr $ac_mid + 1`
21129                         if test $ac_lo -le $ac_mid; then
21130                           ac_lo= ac_hi=
21131                           break
21132                         fi
21133                         ac_mid=`expr 2 '*' $ac_mid + 1`
21134 fi
21135
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137   done
21138 else
21139   echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21141
21142         cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 #include <stddef.h>
21149 int
21150 main ()
21151 {
21152 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21153 test_array [0] = 0
21154
21155   ;
21156   return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163   *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166   (eval "$ac_compile") 2>conftest.er1
21167   ac_status=$?
21168   grep -v '^ *+' conftest.er1 >conftest.err
21169   rm -f conftest.er1
21170   cat conftest.err >&5
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } && {
21173          test -z "$ac_c_werror_flag" ||
21174          test ! -s conftest.err
21175        } && test -s conftest.$ac_objext; then
21176   ac_hi=-1 ac_mid=-1
21177   while :; do
21178     cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184 #include <stddef.h>
21185 int
21186 main ()
21187 {
21188 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21189 test_array [0] = 0
21190
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199   *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202   (eval "$ac_compile") 2>conftest.er1
21203   ac_status=$?
21204   grep -v '^ *+' conftest.er1 >conftest.err
21205   rm -f conftest.er1
21206   cat conftest.err >&5
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } && {
21209          test -z "$ac_c_werror_flag" ||
21210          test ! -s conftest.err
21211        } && test -s conftest.$ac_objext; then
21212   ac_lo=$ac_mid; break
21213 else
21214   echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217         ac_hi=`expr '(' $ac_mid ')' - 1`
21218                         if test $ac_mid -le $ac_hi; then
21219                           ac_lo= ac_hi=
21220                           break
21221                         fi
21222                         ac_mid=`expr 2 '*' $ac_mid`
21223 fi
21224
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226   done
21227 else
21228   echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231         ac_lo= ac_hi=
21232 fi
21233
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235 fi
21236
21237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21238 # Binary search between lo and hi bounds.
21239 while test "x$ac_lo" != "x$ac_hi"; do
21240   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21241   cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247 #include <stddef.h>
21248 int
21249 main ()
21250 {
21251 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21252 test_array [0] = 0
21253
21254   ;
21255   return 0;
21256 }
21257 _ACEOF
21258 rm -f conftest.$ac_objext
21259 if { (ac_try="$ac_compile"
21260 case "(($ac_try" in
21261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262   *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265   (eval "$ac_compile") 2>conftest.er1
21266   ac_status=$?
21267   grep -v '^ *+' conftest.er1 >conftest.err
21268   rm -f conftest.er1
21269   cat conftest.err >&5
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); } && {
21272          test -z "$ac_c_werror_flag" ||
21273          test ! -s conftest.err
21274        } && test -s conftest.$ac_objext; then
21275   ac_hi=$ac_mid
21276 else
21277   echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21279
21280         ac_lo=`expr '(' $ac_mid ')' + 1`
21281 fi
21282
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284 done
21285 case $ac_lo in
21286 ?*) res_lo=$ac_lo;;
21287 '') result=? ;;
21288 esac
21289 else
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 static long int longval () { return ~(size_t)0 % 10; }
21298 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21299 #include <stdio.h>
21300 #include <stdlib.h>
21301 int
21302 main ()
21303 {
21304
21305   FILE *f = fopen ("conftest.val", "w");
21306   if (! f)
21307     return 1;
21308   if ((~(size_t)0 % 10) < 0)
21309     {
21310       long int i = longval ();
21311       if (i != (~(size_t)0 % 10))
21312         return 1;
21313       fprintf (f, "%ld\n", i);
21314     }
21315   else
21316     {
21317       unsigned long int i = ulongval ();
21318       if (i != (~(size_t)0 % 10))
21319         return 1;
21320       fprintf (f, "%lu\n", i);
21321     }
21322   return ferror (f) || fclose (f) != 0;
21323
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_link") 2>&5
21336   ac_status=$?
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339   { (case "(($ac_try" in
21340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341   *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344   (eval "$ac_try") 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   res_lo=`cat conftest.val`
21349 else
21350   echo "$as_me: program exited with status $ac_status" >&5
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ( exit $ac_status )
21355 result=?
21356 fi
21357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21358 fi
21359 rm -f conftest.val
21360
21361     if test "$cross_compiling" = yes; then
21362   # Depending upon the size, compute the lo and hi bounds.
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h.  */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h.  */
21369 #include <stddef.h>
21370 int
21371 main ()
21372 {
21373 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21374 test_array [0] = 0
21375
21376   ;
21377   return 0;
21378 }
21379 _ACEOF
21380 rm -f conftest.$ac_objext
21381 if { (ac_try="$ac_compile"
21382 case "(($ac_try" in
21383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384   *) ac_try_echo=$ac_try;;
21385 esac
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387   (eval "$ac_compile") 2>conftest.er1
21388   ac_status=$?
21389   grep -v '^ *+' conftest.er1 >conftest.err
21390   rm -f conftest.er1
21391   cat conftest.err >&5
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); } && {
21394          test -z "$ac_c_werror_flag" ||
21395          test ! -s conftest.err
21396        } && test -s conftest.$ac_objext; then
21397   ac_lo=0 ac_mid=0
21398   while :; do
21399     cat >conftest.$ac_ext <<_ACEOF
21400 /* confdefs.h.  */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h.  */
21405 #include <stddef.h>
21406 int
21407 main ()
21408 {
21409 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21410 test_array [0] = 0
21411
21412   ;
21413   return 0;
21414 }
21415 _ACEOF
21416 rm -f conftest.$ac_objext
21417 if { (ac_try="$ac_compile"
21418 case "(($ac_try" in
21419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420   *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423   (eval "$ac_compile") 2>conftest.er1
21424   ac_status=$?
21425   grep -v '^ *+' conftest.er1 >conftest.err
21426   rm -f conftest.er1
21427   cat conftest.err >&5
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } && {
21430          test -z "$ac_c_werror_flag" ||
21431          test ! -s conftest.err
21432        } && test -s conftest.$ac_objext; then
21433   ac_hi=$ac_mid; break
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438         ac_lo=`expr $ac_mid + 1`
21439                         if test $ac_lo -le $ac_mid; then
21440                           ac_lo= ac_hi=
21441                           break
21442                         fi
21443                         ac_mid=`expr 2 '*' $ac_mid + 1`
21444 fi
21445
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447   done
21448 else
21449   echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21451
21452         cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h.  */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h.  */
21458 #include <stddef.h>
21459 int
21460 main ()
21461 {
21462 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21463 test_array [0] = 0
21464
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest.$ac_objext
21470 if { (ac_try="$ac_compile"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_compile") 2>conftest.er1
21477   ac_status=$?
21478   grep -v '^ *+' conftest.er1 >conftest.err
21479   rm -f conftest.er1
21480   cat conftest.err >&5
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); } && {
21483          test -z "$ac_c_werror_flag" ||
21484          test ! -s conftest.err
21485        } && test -s conftest.$ac_objext; then
21486   ac_hi=-1 ac_mid=-1
21487   while :; do
21488     cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h.  */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h.  */
21494 #include <stddef.h>
21495 int
21496 main ()
21497 {
21498 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21499 test_array [0] = 0
21500
21501   ;
21502   return 0;
21503 }
21504 _ACEOF
21505 rm -f conftest.$ac_objext
21506 if { (ac_try="$ac_compile"
21507 case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_compile") 2>conftest.er1
21513   ac_status=$?
21514   grep -v '^ *+' conftest.er1 >conftest.err
21515   rm -f conftest.er1
21516   cat conftest.err >&5
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); } && {
21519          test -z "$ac_c_werror_flag" ||
21520          test ! -s conftest.err
21521        } && test -s conftest.$ac_objext; then
21522   ac_lo=$ac_mid; break
21523 else
21524   echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21526
21527         ac_hi=`expr '(' $ac_mid ')' - 1`
21528                         if test $ac_mid -le $ac_hi; then
21529                           ac_lo= ac_hi=
21530                           break
21531                         fi
21532                         ac_mid=`expr 2 '*' $ac_mid`
21533 fi
21534
21535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536   done
21537 else
21538   echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541         ac_lo= ac_hi=
21542 fi
21543
21544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21545 fi
21546
21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548 # Binary search between lo and hi bounds.
21549 while test "x$ac_lo" != "x$ac_hi"; do
21550   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21551   cat >conftest.$ac_ext <<_ACEOF
21552 /* confdefs.h.  */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h.  */
21557 #include <stddef.h>
21558 int
21559 main ()
21560 {
21561 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21562 test_array [0] = 0
21563
21564   ;
21565   return 0;
21566 }
21567 _ACEOF
21568 rm -f conftest.$ac_objext
21569 if { (ac_try="$ac_compile"
21570 case "(($ac_try" in
21571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572   *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575   (eval "$ac_compile") 2>conftest.er1
21576   ac_status=$?
21577   grep -v '^ *+' conftest.er1 >conftest.err
21578   rm -f conftest.er1
21579   cat conftest.err >&5
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); } && {
21582          test -z "$ac_c_werror_flag" ||
21583          test ! -s conftest.err
21584        } && test -s conftest.$ac_objext; then
21585   ac_hi=$ac_mid
21586 else
21587   echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590         ac_lo=`expr '(' $ac_mid ')' + 1`
21591 fi
21592
21593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21594 done
21595 case $ac_lo in
21596 ?*) fits_in_uint=$ac_lo;;
21597 '') result=? ;;
21598 esac
21599 else
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 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21608 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21609 #include <stdio.h>
21610 #include <stdlib.h>
21611 int
21612 main ()
21613 {
21614
21615   FILE *f = fopen ("conftest.val", "w");
21616   if (! f)
21617     return 1;
21618   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21619     {
21620       long int i = longval ();
21621       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21622         return 1;
21623       fprintf (f, "%ld\n", i);
21624     }
21625   else
21626     {
21627       unsigned long int i = ulongval ();
21628       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21629         return 1;
21630       fprintf (f, "%lu\n", i);
21631     }
21632   return ferror (f) || fclose (f) != 0;
21633
21634   ;
21635   return 0;
21636 }
21637 _ACEOF
21638 rm -f conftest$ac_exeext
21639 if { (ac_try="$ac_link"
21640 case "(($ac_try" in
21641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642   *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645   (eval "$ac_link") 2>&5
21646   ac_status=$?
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21649   { (case "(($ac_try" in
21650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651   *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654   (eval "$ac_try") 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; }; then
21658   fits_in_uint=`cat conftest.val`
21659 else
21660   echo "$as_me: program exited with status $ac_status" >&5
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21663
21664 ( exit $ac_status )
21665 result=?
21666 fi
21667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21668 fi
21669 rm -f conftest.val
21670
21671     if test "$fits_in_uint" = 1; then
21672                   cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h.  */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h.  */
21678 #include <stddef.h>
21679         extern size_t foo;
21680         extern unsigned long foo;
21681
21682 int
21683 main ()
21684 {
21685
21686   ;
21687   return 0;
21688 }
21689 _ACEOF
21690 rm -f conftest.$ac_objext
21691 if { (ac_try="$ac_compile"
21692 case "(($ac_try" in
21693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694   *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697   (eval "$ac_compile") 2>conftest.er1
21698   ac_status=$?
21699   grep -v '^ *+' conftest.er1 >conftest.err
21700   rm -f conftest.er1
21701   cat conftest.err >&5
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } && {
21704          test -z "$ac_c_werror_flag" ||
21705          test ! -s conftest.err
21706        } && test -s conftest.$ac_objext; then
21707   fits_in_uint=0
21708 else
21709   echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21711
21712
21713 fi
21714
21715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716     fi
21717     if test -z "$result"; then
21718       if test "$fits_in_uint" = 1; then
21719         result="$res_hi$res_lo"U
21720       else
21721         result="$res_hi$res_lo"UL
21722       fi
21723     else
21724             result='~(size_t)0'
21725     fi
21726   fi
21727   { echo "$as_me:$LINENO: result: $result" >&5
21728 echo "${ECHO_T}$result" >&6; }
21729   if test "$result" != yes; then
21730
21731 cat >>confdefs.h <<_ACEOF
21732 #define SIZE_MAX $result
21733 _ACEOF
21734
21735   fi
21736
21737
21738
21739
21740
21741 for ac_header in stdint.h
21742 do
21743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21748   echo $ECHO_N "(cached) $ECHO_C" >&6
21749 fi
21750 ac_res=`eval echo '${'$as_ac_Header'}'`
21751                { echo "$as_me:$LINENO: result: $ac_res" >&5
21752 echo "${ECHO_T}$ac_res" >&6; }
21753 else
21754   # Is the header compilable?
21755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21757 cat >conftest.$ac_ext <<_ACEOF
21758 /* confdefs.h.  */
21759 _ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h.  */
21763 $ac_includes_default
21764 #include <$ac_header>
21765 _ACEOF
21766 rm -f conftest.$ac_objext
21767 if { (ac_try="$ac_compile"
21768 case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_compile") 2>conftest.er1
21774   ac_status=$?
21775   grep -v '^ *+' conftest.er1 >conftest.err
21776   rm -f conftest.er1
21777   cat conftest.err >&5
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); } && {
21780          test -z "$ac_c_werror_flag" ||
21781          test ! -s conftest.err
21782        } && test -s conftest.$ac_objext; then
21783   ac_header_compiler=yes
21784 else
21785   echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788         ac_header_compiler=no
21789 fi
21790
21791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21793 echo "${ECHO_T}$ac_header_compiler" >&6; }
21794
21795 # Is the header present?
21796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21798 cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804 #include <$ac_header>
21805 _ACEOF
21806 if { (ac_try="$ac_cpp conftest.$ac_ext"
21807 case "(($ac_try" in
21808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809   *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } >/dev/null && {
21819          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21820          test ! -s conftest.err
21821        }; then
21822   ac_header_preproc=yes
21823 else
21824   echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827   ac_header_preproc=no
21828 fi
21829
21830 rm -f conftest.err conftest.$ac_ext
21831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21832 echo "${ECHO_T}$ac_header_preproc" >&6; }
21833
21834 # So?  What about this header?
21835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21836   yes:no: )
21837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21841     ac_header_preproc=yes
21842     ;;
21843   no:yes:* )
21844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21856
21857     ;;
21858 esac
21859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21862   echo $ECHO_N "(cached) $ECHO_C" >&6
21863 else
21864   eval "$as_ac_Header=\$ac_header_preproc"
21865 fi
21866 ac_res=`eval echo '${'$as_ac_Header'}'`
21867                { echo "$as_me:$LINENO: result: $ac_res" >&5
21868 echo "${ECHO_T}$ac_res" >&6; }
21869
21870 fi
21871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21872   cat >>confdefs.h <<_ACEOF
21873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21874 _ACEOF
21875
21876 fi
21877
21878 done
21879
21880
21881
21882
21883
21884
21885
21886
21887   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21888 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21889 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21890   echo $ECHO_N "(cached) $ECHO_C" >&6
21891 else
21892   cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 $ac_includes_default
21899 typedef ptrdiff_t ac__type_new_;
21900 int
21901 main ()
21902 {
21903 if ((ac__type_new_ *) 0)
21904   return 0;
21905 if (sizeof (ac__type_new_))
21906   return 0;
21907   ;
21908   return 0;
21909 }
21910 _ACEOF
21911 rm -f conftest.$ac_objext
21912 if { (ac_try="$ac_compile"
21913 case "(($ac_try" in
21914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915   *) ac_try_echo=$ac_try;;
21916 esac
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918   (eval "$ac_compile") 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } && {
21925          test -z "$ac_c_werror_flag" ||
21926          test ! -s conftest.err
21927        } && test -s conftest.$ac_objext; then
21928   ac_cv_type_ptrdiff_t=yes
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933         ac_cv_type_ptrdiff_t=no
21934 fi
21935
21936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21937 fi
21938 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21939 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21940 if test $ac_cv_type_ptrdiff_t = yes; then
21941   :
21942 else
21943
21944 cat >>confdefs.h <<\_ACEOF
21945 #define ptrdiff_t long
21946 _ACEOF
21947
21948
21949 fi
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21962 stdlib.h string.h unistd.h sys/param.h
21963 do
21964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 fi
21971 ac_res=`eval echo '${'$as_ac_Header'}'`
21972                { echo "$as_me:$LINENO: result: $ac_res" >&5
21973 echo "${ECHO_T}$ac_res" >&6; }
21974 else
21975   # Is the header compilable?
21976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h.  */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h.  */
21984 $ac_includes_default
21985 #include <$ac_header>
21986 _ACEOF
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991   *) ac_try_echo=$ac_try;;
21992 esac
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994   (eval "$ac_compile") 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } && {
22001          test -z "$ac_c_werror_flag" ||
22002          test ! -s conftest.err
22003        } && test -s conftest.$ac_objext; then
22004   ac_header_compiler=yes
22005 else
22006   echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009         ac_header_compiler=no
22010 fi
22011
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22014 echo "${ECHO_T}$ac_header_compiler" >&6; }
22015
22016 # Is the header present?
22017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22019 cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h.  */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h.  */
22025 #include <$ac_header>
22026 _ACEOF
22027 if { (ac_try="$ac_cpp conftest.$ac_ext"
22028 case "(($ac_try" in
22029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030   *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } >/dev/null && {
22040          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22041          test ! -s conftest.err
22042        }; then
22043   ac_header_preproc=yes
22044 else
22045   echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048   ac_header_preproc=no
22049 fi
22050
22051 rm -f conftest.err conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22053 echo "${ECHO_T}$ac_header_preproc" >&6; }
22054
22055 # So?  What about this header?
22056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22057   yes:no: )
22058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22062     ac_header_preproc=yes
22063     ;;
22064   no:yes:* )
22065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22077
22078     ;;
22079 esac
22080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22083   echo $ECHO_N "(cached) $ECHO_C" >&6
22084 else
22085   eval "$as_ac_Header=\$ac_header_preproc"
22086 fi
22087 ac_res=`eval echo '${'$as_ac_Header'}'`
22088                { echo "$as_me:$LINENO: result: $ac_res" >&5
22089 echo "${ECHO_T}$ac_res" >&6; }
22090
22091 fi
22092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22093   cat >>confdefs.h <<_ACEOF
22094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22095 _ACEOF
22096
22097 fi
22098
22099 done
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22125 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22126 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22127 __fsetlocking
22128 do
22129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22133   echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135   cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h.  */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h.  */
22141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22143 #define $ac_func innocuous_$ac_func
22144
22145 /* System header to define __stub macros and hopefully few prototypes,
22146     which can conflict with char $ac_func (); below.
22147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22148     <limits.h> exists even on freestanding compilers.  */
22149
22150 #ifdef __STDC__
22151 # include <limits.h>
22152 #else
22153 # include <assert.h>
22154 #endif
22155
22156 #undef $ac_func
22157
22158 /* Override any GCC internal prototype to avoid an error.
22159    Use char because int might match the return type of a GCC
22160    builtin and then its argument prototype would still apply.  */
22161 #ifdef __cplusplus
22162 extern "C"
22163 #endif
22164 char $ac_func ();
22165 /* The GNU C library defines this for functions which it implements
22166     to always fail with ENOSYS.  Some functions are actually named
22167     something starting with __ and the normal name is an alias.  */
22168 #if defined __stub_$ac_func || defined __stub___$ac_func
22169 choke me
22170 #endif
22171
22172 int
22173 main ()
22174 {
22175 return $ac_func ();
22176   ;
22177   return 0;
22178 }
22179 _ACEOF
22180 rm -f conftest.$ac_objext conftest$ac_exeext
22181 if { (ac_try="$ac_link"
22182 case "(($ac_try" in
22183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184   *) ac_try_echo=$ac_try;;
22185 esac
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187   (eval "$ac_link") 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } && {
22194          test -z "$ac_c_werror_flag" ||
22195          test ! -s conftest.err
22196        } && test -s conftest$ac_exeext &&
22197        $as_test_x conftest$ac_exeext; then
22198   eval "$as_ac_var=yes"
22199 else
22200   echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22202
22203         eval "$as_ac_var=no"
22204 fi
22205
22206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22207       conftest$ac_exeext conftest.$ac_ext
22208 fi
22209 ac_res=`eval echo '${'$as_ac_var'}'`
22210                { echo "$as_me:$LINENO: result: $ac_res" >&5
22211 echo "${ECHO_T}$ac_res" >&6; }
22212 if test `eval echo '${'$as_ac_var'}'` = yes; then
22213   cat >>confdefs.h <<_ACEOF
22214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22215 _ACEOF
22216
22217 fi
22218 done
22219
22220
22221
22222   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22223 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22224 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22225   echo $ECHO_N "(cached) $ECHO_C" >&6
22226 else
22227   cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h.  */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h.  */
22233 #include <stdio.h>
22234 int
22235 main ()
22236 {
22237
22238 #ifndef _snprintf
22239   char *p = (char *) _snprintf;
22240 #endif
22241
22242   ;
22243   return 0;
22244 }
22245 _ACEOF
22246 rm -f conftest.$ac_objext
22247 if { (ac_try="$ac_compile"
22248 case "(($ac_try" in
22249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250   *) ac_try_echo=$ac_try;;
22251 esac
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253   (eval "$ac_compile") 2>conftest.er1
22254   ac_status=$?
22255   grep -v '^ *+' conftest.er1 >conftest.err
22256   rm -f conftest.er1
22257   cat conftest.err >&5
22258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259   (exit $ac_status); } && {
22260          test -z "$ac_c_werror_flag" ||
22261          test ! -s conftest.err
22262        } && test -s conftest.$ac_objext; then
22263   ac_cv_have_decl__snprintf=yes
22264 else
22265   echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268         ac_cv_have_decl__snprintf=no
22269 fi
22270
22271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22272 fi
22273 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22274 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22275   if test $ac_cv_have_decl__snprintf = yes; then
22276     gt_value=1
22277   else
22278     gt_value=0
22279   fi
22280
22281 cat >>confdefs.h <<_ACEOF
22282 #define HAVE_DECL__SNPRINTF $gt_value
22283 _ACEOF
22284
22285
22286
22287   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22288 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22289 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22290   echo $ECHO_N "(cached) $ECHO_C" >&6
22291 else
22292   cat >conftest.$ac_ext <<_ACEOF
22293 /* confdefs.h.  */
22294 _ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h.  */
22298 #include <stdio.h>
22299 int
22300 main ()
22301 {
22302
22303 #ifndef _snwprintf
22304   char *p = (char *) _snwprintf;
22305 #endif
22306
22307   ;
22308   return 0;
22309 }
22310 _ACEOF
22311 rm -f conftest.$ac_objext
22312 if { (ac_try="$ac_compile"
22313 case "(($ac_try" in
22314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315   *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318   (eval "$ac_compile") 2>conftest.er1
22319   ac_status=$?
22320   grep -v '^ *+' conftest.er1 >conftest.err
22321   rm -f conftest.er1
22322   cat conftest.err >&5
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); } && {
22325          test -z "$ac_c_werror_flag" ||
22326          test ! -s conftest.err
22327        } && test -s conftest.$ac_objext; then
22328   ac_cv_have_decl__snwprintf=yes
22329 else
22330   echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22332
22333         ac_cv_have_decl__snwprintf=no
22334 fi
22335
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337 fi
22338 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22339 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22340   if test $ac_cv_have_decl__snwprintf = yes; then
22341     gt_value=1
22342   else
22343     gt_value=0
22344   fi
22345
22346 cat >>confdefs.h <<_ACEOF
22347 #define HAVE_DECL__SNWPRINTF $gt_value
22348 _ACEOF
22349
22350
22351
22352
22353   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22354 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22355 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22356   echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358   cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h.  */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h.  */
22364 #include <stdio.h>
22365 int
22366 main ()
22367 {
22368
22369 #ifndef feof_unlocked
22370   char *p = (char *) feof_unlocked;
22371 #endif
22372
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext
22378 if { (ac_try="$ac_compile"
22379 case "(($ac_try" in
22380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381   *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384   (eval "$ac_compile") 2>conftest.er1
22385   ac_status=$?
22386   grep -v '^ *+' conftest.er1 >conftest.err
22387   rm -f conftest.er1
22388   cat conftest.err >&5
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); } && {
22391          test -z "$ac_c_werror_flag" ||
22392          test ! -s conftest.err
22393        } && test -s conftest.$ac_objext; then
22394   ac_cv_have_decl_feof_unlocked=yes
22395 else
22396   echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399         ac_cv_have_decl_feof_unlocked=no
22400 fi
22401
22402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22403 fi
22404 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22405 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22406   if test $ac_cv_have_decl_feof_unlocked = yes; then
22407     gt_value=1
22408   else
22409     gt_value=0
22410   fi
22411
22412 cat >>confdefs.h <<_ACEOF
22413 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22414 _ACEOF
22415
22416
22417
22418   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22419 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22420 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22421   echo $ECHO_N "(cached) $ECHO_C" >&6
22422 else
22423   cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h.  */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h.  */
22429 #include <stdio.h>
22430 int
22431 main ()
22432 {
22433
22434 #ifndef fgets_unlocked
22435   char *p = (char *) fgets_unlocked;
22436 #endif
22437
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest.$ac_objext
22443 if { (ac_try="$ac_compile"
22444 case "(($ac_try" in
22445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446   *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449   (eval "$ac_compile") 2>conftest.er1
22450   ac_status=$?
22451   grep -v '^ *+' conftest.er1 >conftest.err
22452   rm -f conftest.er1
22453   cat conftest.err >&5
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); } && {
22456          test -z "$ac_c_werror_flag" ||
22457          test ! -s conftest.err
22458        } && test -s conftest.$ac_objext; then
22459   ac_cv_have_decl_fgets_unlocked=yes
22460 else
22461   echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22463
22464         ac_cv_have_decl_fgets_unlocked=no
22465 fi
22466
22467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22468 fi
22469 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22470 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22471   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22472     gt_value=1
22473   else
22474     gt_value=0
22475   fi
22476
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22479 _ACEOF
22480
22481
22482
22483   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22484 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22485 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22486   echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 #include <stdio.h>
22495 int
22496 main ()
22497 {
22498
22499 #ifndef getc_unlocked
22500   char *p = (char *) getc_unlocked;
22501 #endif
22502
22503   ;
22504   return 0;
22505 }
22506 _ACEOF
22507 rm -f conftest.$ac_objext
22508 if { (ac_try="$ac_compile"
22509 case "(($ac_try" in
22510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511   *) ac_try_echo=$ac_try;;
22512 esac
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514   (eval "$ac_compile") 2>conftest.er1
22515   ac_status=$?
22516   grep -v '^ *+' conftest.er1 >conftest.err
22517   rm -f conftest.er1
22518   cat conftest.err >&5
22519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520   (exit $ac_status); } && {
22521          test -z "$ac_c_werror_flag" ||
22522          test ! -s conftest.err
22523        } && test -s conftest.$ac_objext; then
22524   ac_cv_have_decl_getc_unlocked=yes
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529         ac_cv_have_decl_getc_unlocked=no
22530 fi
22531
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22535 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22536   if test $ac_cv_have_decl_getc_unlocked = yes; then
22537     gt_value=1
22538   else
22539     gt_value=0
22540   fi
22541
22542 cat >>confdefs.h <<_ACEOF
22543 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22544 _ACEOF
22545
22546
22547
22548   case $gt_cv_func_printf_posix in
22549     *yes) HAVE_POSIX_PRINTF=1 ;;
22550     *) HAVE_POSIX_PRINTF=0 ;;
22551   esac
22552
22553   if test "$ac_cv_func_asprintf" = yes; then
22554     HAVE_ASPRINTF=1
22555   else
22556     HAVE_ASPRINTF=0
22557   fi
22558
22559   if test "$ac_cv_func_snprintf" = yes; then
22560     HAVE_SNPRINTF=1
22561   else
22562     HAVE_SNPRINTF=0
22563   fi
22564
22565   if test "$ac_cv_func_wprintf" = yes; then
22566     HAVE_WPRINTF=1
22567   else
22568     HAVE_WPRINTF=0
22569   fi
22570
22571
22572
22573
22574
22575
22576
22577           am_save_CPPFLAGS="$CPPFLAGS"
22578
22579   for element in $INCICONV; do
22580     haveit=
22581     for x in $CPPFLAGS; do
22582
22583   acl_save_prefix="$prefix"
22584   prefix="$acl_final_prefix"
22585   acl_save_exec_prefix="$exec_prefix"
22586   exec_prefix="$acl_final_exec_prefix"
22587   eval x=\"$x\"
22588   exec_prefix="$acl_save_exec_prefix"
22589   prefix="$acl_save_prefix"
22590
22591       if test "X$x" = "X$element"; then
22592         haveit=yes
22593         break
22594       fi
22595     done
22596     if test -z "$haveit"; then
22597       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22598     fi
22599   done
22600
22601
22602   { echo "$as_me:$LINENO: checking for iconv" >&5
22603 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22604 if test "${am_cv_func_iconv+set}" = set; then
22605   echo $ECHO_N "(cached) $ECHO_C" >&6
22606 else
22607
22608     am_cv_func_iconv="no, consider installing GNU libiconv"
22609     am_cv_lib_iconv=no
22610     cat >conftest.$ac_ext <<_ACEOF
22611 /* confdefs.h.  */
22612 _ACEOF
22613 cat confdefs.h >>conftest.$ac_ext
22614 cat >>conftest.$ac_ext <<_ACEOF
22615 /* end confdefs.h.  */
22616 #include <stdlib.h>
22617 #include <iconv.h>
22618 int
22619 main ()
22620 {
22621 iconv_t cd = iconv_open("","");
22622        iconv(cd,NULL,NULL,NULL,NULL);
22623        iconv_close(cd);
22624   ;
22625   return 0;
22626 }
22627 _ACEOF
22628 rm -f conftest.$ac_objext conftest$ac_exeext
22629 if { (ac_try="$ac_link"
22630 case "(($ac_try" in
22631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632   *) ac_try_echo=$ac_try;;
22633 esac
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635   (eval "$ac_link") 2>conftest.er1
22636   ac_status=$?
22637   grep -v '^ *+' conftest.er1 >conftest.err
22638   rm -f conftest.er1
22639   cat conftest.err >&5
22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); } && {
22642          test -z "$ac_c_werror_flag" ||
22643          test ! -s conftest.err
22644        } && test -s conftest$ac_exeext &&
22645        $as_test_x conftest$ac_exeext; then
22646   am_cv_func_iconv=yes
22647 else
22648   echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651
22652 fi
22653
22654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22655       conftest$ac_exeext conftest.$ac_ext
22656     if test "$am_cv_func_iconv" != yes; then
22657       am_save_LIBS="$LIBS"
22658       LIBS="$LIBS $LIBICONV"
22659       cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h.  */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h.  */
22665 #include <stdlib.h>
22666 #include <iconv.h>
22667 int
22668 main ()
22669 {
22670 iconv_t cd = iconv_open("","");
22671          iconv(cd,NULL,NULL,NULL,NULL);
22672          iconv_close(cd);
22673   ;
22674   return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest.$ac_objext conftest$ac_exeext
22678 if { (ac_try="$ac_link"
22679 case "(($ac_try" in
22680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681   *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684   (eval "$ac_link") 2>conftest.er1
22685   ac_status=$?
22686   grep -v '^ *+' conftest.er1 >conftest.err
22687   rm -f conftest.er1
22688   cat conftest.err >&5
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); } && {
22691          test -z "$ac_c_werror_flag" ||
22692          test ! -s conftest.err
22693        } && test -s conftest$ac_exeext &&
22694        $as_test_x conftest$ac_exeext; then
22695   am_cv_lib_iconv=yes
22696         am_cv_func_iconv=yes
22697 else
22698   echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22700
22701
22702 fi
22703
22704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22705       conftest$ac_exeext conftest.$ac_ext
22706       LIBS="$am_save_LIBS"
22707     fi
22708
22709 fi
22710 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22711 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22712   if test "$am_cv_func_iconv" = yes; then
22713
22714 cat >>confdefs.h <<\_ACEOF
22715 #define HAVE_ICONV 1
22716 _ACEOF
22717
22718   fi
22719   if test "$am_cv_lib_iconv" = yes; then
22720     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22721 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22722     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22723 echo "${ECHO_T}$LIBICONV" >&6; }
22724   else
22725             CPPFLAGS="$am_save_CPPFLAGS"
22726     LIBICONV=
22727     LTLIBICONV=
22728   fi
22729
22730
22731
22732   if test "$am_cv_func_iconv" = yes; then
22733     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22734 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22735     if test "${am_cv_proto_iconv+set}" = set; then
22736   echo $ECHO_N "(cached) $ECHO_C" >&6
22737 else
22738
22739       cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h.  */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h.  */
22745
22746 #include <stdlib.h>
22747 #include <iconv.h>
22748 extern
22749 #ifdef __cplusplus
22750 "C"
22751 #endif
22752 #if defined(__STDC__) || defined(__cplusplus)
22753 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22754 #else
22755 size_t iconv();
22756 #endif
22757
22758 int
22759 main ()
22760 {
22761
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770   *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773   (eval "$ac_compile") 2>conftest.er1
22774   ac_status=$?
22775   grep -v '^ *+' conftest.er1 >conftest.err
22776   rm -f conftest.er1
22777   cat conftest.err >&5
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); } && {
22780          test -z "$ac_c_werror_flag" ||
22781          test ! -s conftest.err
22782        } && test -s conftest.$ac_objext; then
22783   am_cv_proto_iconv_arg1=""
22784 else
22785   echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788         am_cv_proto_iconv_arg1="const"
22789 fi
22790
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792       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);"
22793 fi
22794
22795     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22796     { echo "$as_me:$LINENO: result: ${ac_t:-
22797          }$am_cv_proto_iconv" >&5
22798 echo "${ECHO_T}${ac_t:-
22799          }$am_cv_proto_iconv" >&6; }
22800
22801 cat >>confdefs.h <<_ACEOF
22802 #define ICONV_CONST $am_cv_proto_iconv_arg1
22803 _ACEOF
22804
22805   fi
22806
22807
22808   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22809 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22810 if test "${am_cv_langinfo_codeset+set}" = set; then
22811   echo $ECHO_N "(cached) $ECHO_C" >&6
22812 else
22813   cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h.  */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h.  */
22819 #include <langinfo.h>
22820 int
22821 main ()
22822 {
22823 char* cs = nl_langinfo(CODESET);
22824   ;
22825   return 0;
22826 }
22827 _ACEOF
22828 rm -f conftest.$ac_objext conftest$ac_exeext
22829 if { (ac_try="$ac_link"
22830 case "(($ac_try" in
22831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832   *) ac_try_echo=$ac_try;;
22833 esac
22834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22835   (eval "$ac_link") 2>conftest.er1
22836   ac_status=$?
22837   grep -v '^ *+' conftest.er1 >conftest.err
22838   rm -f conftest.er1
22839   cat conftest.err >&5
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); } && {
22842          test -z "$ac_c_werror_flag" ||
22843          test ! -s conftest.err
22844        } && test -s conftest$ac_exeext &&
22845        $as_test_x conftest$ac_exeext; then
22846   am_cv_langinfo_codeset=yes
22847 else
22848   echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851         am_cv_langinfo_codeset=no
22852 fi
22853
22854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22855       conftest$ac_exeext conftest.$ac_ext
22856
22857 fi
22858 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22859 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22860   if test $am_cv_langinfo_codeset = yes; then
22861
22862 cat >>confdefs.h <<\_ACEOF
22863 #define HAVE_LANGINFO_CODESET 1
22864 _ACEOF
22865
22866   fi
22867
22868   if test $ac_cv_header_locale_h = yes; then
22869
22870   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22871 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22872 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22873   echo $ECHO_N "(cached) $ECHO_C" >&6
22874 else
22875   cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h.  */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h.  */
22881 #include <locale.h>
22882 int
22883 main ()
22884 {
22885 return LC_MESSAGES
22886   ;
22887   return 0;
22888 }
22889 _ACEOF
22890 rm -f conftest.$ac_objext conftest$ac_exeext
22891 if { (ac_try="$ac_link"
22892 case "(($ac_try" in
22893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894   *) ac_try_echo=$ac_try;;
22895 esac
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897   (eval "$ac_link") 2>conftest.er1
22898   ac_status=$?
22899   grep -v '^ *+' conftest.er1 >conftest.err
22900   rm -f conftest.er1
22901   cat conftest.err >&5
22902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903   (exit $ac_status); } && {
22904          test -z "$ac_c_werror_flag" ||
22905          test ! -s conftest.err
22906        } && test -s conftest$ac_exeext &&
22907        $as_test_x conftest$ac_exeext; then
22908   gt_cv_val_LC_MESSAGES=yes
22909 else
22910   echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913         gt_cv_val_LC_MESSAGES=no
22914 fi
22915
22916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22917       conftest$ac_exeext conftest.$ac_ext
22918 fi
22919 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22920 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22921   if test $gt_cv_val_LC_MESSAGES = yes; then
22922
22923 cat >>confdefs.h <<\_ACEOF
22924 #define HAVE_LC_MESSAGES 1
22925 _ACEOF
22926
22927   fi
22928
22929   fi
22930
22931   if test -n "$INTL_MACOSX_LIBS"; then
22932     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22933   fi
22934
22935                       for ac_prog in bison
22936 do
22937   # Extract the first word of "$ac_prog", so it can be a program name with args.
22938 set dummy $ac_prog; ac_word=$2
22939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22941 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22942   echo $ECHO_N "(cached) $ECHO_C" >&6
22943 else
22944   if test -n "$INTLBISON"; then
22945   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22946 else
22947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22948 for as_dir in $PATH
22949 do
22950   IFS=$as_save_IFS
22951   test -z "$as_dir" && as_dir=.
22952   for ac_exec_ext in '' $ac_executable_extensions; do
22953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22954     ac_cv_prog_INTLBISON="$ac_prog"
22955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22956     break 2
22957   fi
22958 done
22959 done
22960 IFS=$as_save_IFS
22961
22962 fi
22963 fi
22964 INTLBISON=$ac_cv_prog_INTLBISON
22965 if test -n "$INTLBISON"; then
22966   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22967 echo "${ECHO_T}$INTLBISON" >&6; }
22968 else
22969   { echo "$as_me:$LINENO: result: no" >&5
22970 echo "${ECHO_T}no" >&6; }
22971 fi
22972
22973
22974   test -n "$INTLBISON" && break
22975 done
22976
22977   if test -z "$INTLBISON"; then
22978     ac_verc_fail=yes
22979   else
22980         { echo "$as_me:$LINENO: checking version of bison" >&5
22981 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
22982     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22983     case $ac_prog_version in
22984       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22985       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
22986          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22987       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22988     esac
22989     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
22990 echo "${ECHO_T}$ac_prog_version" >&6; }
22991   fi
22992   if test $ac_verc_fail = yes; then
22993     INTLBISON=:
22994   fi
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23012 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23013 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23014   echo $ECHO_N "(cached) $ECHO_C" >&6
23015 else
23016   gt_save_CPPFLAGS="$CPPFLAGS"
23017      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23018      gt_save_LIBS="$LIBS"
23019      LIBS="$LIBS -framework CoreFoundation"
23020      cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026 #include <CFPreferences.h>
23027 int
23028 main ()
23029 {
23030 CFPreferencesCopyAppValue(NULL, NULL)
23031   ;
23032   return 0;
23033 }
23034 _ACEOF
23035 rm -f conftest.$ac_objext conftest$ac_exeext
23036 if { (ac_try="$ac_link"
23037 case "(($ac_try" in
23038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039   *) ac_try_echo=$ac_try;;
23040 esac
23041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23042   (eval "$ac_link") 2>conftest.er1
23043   ac_status=$?
23044   grep -v '^ *+' conftest.er1 >conftest.err
23045   rm -f conftest.er1
23046   cat conftest.err >&5
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); } && {
23049          test -z "$ac_c_werror_flag" ||
23050          test ! -s conftest.err
23051        } && test -s conftest$ac_exeext &&
23052        $as_test_x conftest$ac_exeext; then
23053   gt_cv_func_CFPreferencesCopyAppValue=yes
23054 else
23055   echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23057
23058         gt_cv_func_CFPreferencesCopyAppValue=no
23059 fi
23060
23061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23062       conftest$ac_exeext conftest.$ac_ext
23063      CPPFLAGS="$gt_save_CPPFLAGS"
23064      LIBS="$gt_save_LIBS"
23065 fi
23066 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23067 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23068   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23069
23070 cat >>confdefs.h <<\_ACEOF
23071 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23072 _ACEOF
23073
23074   fi
23075     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23076 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23077 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23078   echo $ECHO_N "(cached) $ECHO_C" >&6
23079 else
23080   gt_save_CPPFLAGS="$CPPFLAGS"
23081      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23082      gt_save_LIBS="$LIBS"
23083      LIBS="$LIBS -framework CoreFoundation"
23084      cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h.  */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h.  */
23090 #include <CFLocale.h>
23091 int
23092 main ()
23093 {
23094 CFLocaleCopyCurrent();
23095   ;
23096   return 0;
23097 }
23098 _ACEOF
23099 rm -f conftest.$ac_objext conftest$ac_exeext
23100 if { (ac_try="$ac_link"
23101 case "(($ac_try" in
23102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103   *) ac_try_echo=$ac_try;;
23104 esac
23105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23106   (eval "$ac_link") 2>conftest.er1
23107   ac_status=$?
23108   grep -v '^ *+' conftest.er1 >conftest.err
23109   rm -f conftest.er1
23110   cat conftest.err >&5
23111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112   (exit $ac_status); } && {
23113          test -z "$ac_c_werror_flag" ||
23114          test ! -s conftest.err
23115        } && test -s conftest$ac_exeext &&
23116        $as_test_x conftest$ac_exeext; then
23117   gt_cv_func_CFLocaleCopyCurrent=yes
23118 else
23119   echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23121
23122         gt_cv_func_CFLocaleCopyCurrent=no
23123 fi
23124
23125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23126       conftest$ac_exeext conftest.$ac_ext
23127      CPPFLAGS="$gt_save_CPPFLAGS"
23128      LIBS="$gt_save_LIBS"
23129 fi
23130 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23131 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23132   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23133
23134 cat >>confdefs.h <<\_ACEOF
23135 #define HAVE_CFLOCALECOPYCURRENT 1
23136 _ACEOF
23137
23138   fi
23139   INTL_MACOSX_LIBS=
23140   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23141     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23142   fi
23143
23144
23145
23146
23147   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23148 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23149     # Check whether --enable-nls was given.
23150 if test "${enable_nls+set}" = set; then
23151   enableval=$enable_nls; USE_NLS=$enableval
23152 else
23153   USE_NLS=yes
23154 fi
23155
23156   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23157 echo "${ECHO_T}$USE_NLS" >&6; }
23158
23159
23160
23161
23162     BUILD_INCLUDED_LIBINTL=no
23163     USE_INCLUDED_LIBINTL=no
23164
23165   LIBINTL=
23166   LTLIBINTL=
23167   POSUB=
23168
23169     if test "$USE_NLS" = "yes"; then
23170     gt_use_preinstalled_gnugettext=no
23171
23172       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23173 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23174
23175 # Check whether --with-included-gettext was given.
23176 if test "${with_included_gettext+set}" = set; then
23177   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23178 else
23179   nls_cv_force_use_gnu_gettext=no
23180 fi
23181
23182       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23183 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23184
23185       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23186       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23187
23188
23189
23190
23191
23192
23193         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23194 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23195 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23196   echo $ECHO_N "(cached) $ECHO_C" >&6
23197 else
23198   cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h.  */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h.  */
23204 #include <libintl.h>
23205 extern int _nl_msg_cat_cntr;
23206 extern int *_nl_domain_bindings;
23207 int
23208 main ()
23209 {
23210 bindtextdomain ("", "");
23211 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23212   ;
23213   return 0;
23214 }
23215 _ACEOF
23216 rm -f conftest.$ac_objext conftest$ac_exeext
23217 if { (ac_try="$ac_link"
23218 case "(($ac_try" in
23219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220   *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223   (eval "$ac_link") 2>conftest.er1
23224   ac_status=$?
23225   grep -v '^ *+' conftest.er1 >conftest.err
23226   rm -f conftest.er1
23227   cat conftest.err >&5
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); } && {
23230          test -z "$ac_c_werror_flag" ||
23231          test ! -s conftest.err
23232        } && test -s conftest$ac_exeext &&
23233        $as_test_x conftest$ac_exeext; then
23234   gt_cv_func_gnugettext1_libc=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239         gt_cv_func_gnugettext1_libc=no
23240 fi
23241
23242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23243       conftest$ac_exeext conftest.$ac_ext
23244 fi
23245 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23246 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23247
23248         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23249
23250
23251
23252     use_additional=yes
23253
23254   acl_save_prefix="$prefix"
23255   prefix="$acl_final_prefix"
23256   acl_save_exec_prefix="$exec_prefix"
23257   exec_prefix="$acl_final_exec_prefix"
23258
23259     eval additional_includedir=\"$includedir\"
23260     eval additional_libdir=\"$libdir\"
23261
23262   exec_prefix="$acl_save_exec_prefix"
23263   prefix="$acl_save_prefix"
23264
23265
23266 # Check whether --with-libintl-prefix was given.
23267 if test "${with_libintl_prefix+set}" = set; then
23268   withval=$with_libintl_prefix;
23269     if test "X$withval" = "Xno"; then
23270       use_additional=no
23271     else
23272       if test "X$withval" = "X"; then
23273
23274   acl_save_prefix="$prefix"
23275   prefix="$acl_final_prefix"
23276   acl_save_exec_prefix="$exec_prefix"
23277   exec_prefix="$acl_final_exec_prefix"
23278
23279           eval additional_includedir=\"$includedir\"
23280           eval additional_libdir=\"$libdir\"
23281
23282   exec_prefix="$acl_save_exec_prefix"
23283   prefix="$acl_save_prefix"
23284
23285       else
23286         additional_includedir="$withval/include"
23287         additional_libdir="$withval/lib"
23288       fi
23289     fi
23290
23291 fi
23292
23293       LIBINTL=
23294   LTLIBINTL=
23295   INCINTL=
23296   rpathdirs=
23297   ltrpathdirs=
23298   names_already_handled=
23299   names_next_round='intl '
23300   while test -n "$names_next_round"; do
23301     names_this_round="$names_next_round"
23302     names_next_round=
23303     for name in $names_this_round; do
23304       already_handled=
23305       for n in $names_already_handled; do
23306         if test "$n" = "$name"; then
23307           already_handled=yes
23308           break
23309         fi
23310       done
23311       if test -z "$already_handled"; then
23312         names_already_handled="$names_already_handled $name"
23313                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23314         eval value=\"\$HAVE_LIB$uppername\"
23315         if test -n "$value"; then
23316           if test "$value" = yes; then
23317             eval value=\"\$LIB$uppername\"
23318             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23319             eval value=\"\$LTLIB$uppername\"
23320             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23321           else
23322                                     :
23323           fi
23324         else
23325                               found_dir=
23326           found_la=
23327           found_so=
23328           found_a=
23329           if test $use_additional = yes; then
23330             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23331               found_dir="$additional_libdir"
23332               found_so="$additional_libdir/lib$name.$shlibext"
23333               if test -f "$additional_libdir/lib$name.la"; then
23334                 found_la="$additional_libdir/lib$name.la"
23335               fi
23336             else
23337               if test -f "$additional_libdir/lib$name.$libext"; then
23338                 found_dir="$additional_libdir"
23339                 found_a="$additional_libdir/lib$name.$libext"
23340                 if test -f "$additional_libdir/lib$name.la"; then
23341                   found_la="$additional_libdir/lib$name.la"
23342                 fi
23343               fi
23344             fi
23345           fi
23346           if test "X$found_dir" = "X"; then
23347             for x in $LDFLAGS $LTLIBINTL; do
23348
23349   acl_save_prefix="$prefix"
23350   prefix="$acl_final_prefix"
23351   acl_save_exec_prefix="$exec_prefix"
23352   exec_prefix="$acl_final_exec_prefix"
23353   eval x=\"$x\"
23354   exec_prefix="$acl_save_exec_prefix"
23355   prefix="$acl_save_prefix"
23356
23357               case "$x" in
23358                 -L*)
23359                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23360                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23361                     found_dir="$dir"
23362                     found_so="$dir/lib$name.$shlibext"
23363                     if test -f "$dir/lib$name.la"; then
23364                       found_la="$dir/lib$name.la"
23365                     fi
23366                   else
23367                     if test -f "$dir/lib$name.$libext"; then
23368                       found_dir="$dir"
23369                       found_a="$dir/lib$name.$libext"
23370                       if test -f "$dir/lib$name.la"; then
23371                         found_la="$dir/lib$name.la"
23372                       fi
23373                     fi
23374                   fi
23375                   ;;
23376               esac
23377               if test "X$found_dir" != "X"; then
23378                 break
23379               fi
23380             done
23381           fi
23382           if test "X$found_dir" != "X"; then
23383                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23384             if test "X$found_so" != "X"; then
23385                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23386                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23387               else
23388                                                                                 haveit=
23389                 for x in $ltrpathdirs; do
23390                   if test "X$x" = "X$found_dir"; then
23391                     haveit=yes
23392                     break
23393                   fi
23394                 done
23395                 if test -z "$haveit"; then
23396                   ltrpathdirs="$ltrpathdirs $found_dir"
23397                 fi
23398                                 if test "$hardcode_direct" = yes; then
23399                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23400                 else
23401                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23402                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23403                                                             haveit=
23404                     for x in $rpathdirs; do
23405                       if test "X$x" = "X$found_dir"; then
23406                         haveit=yes
23407                         break
23408                       fi
23409                     done
23410                     if test -z "$haveit"; then
23411                       rpathdirs="$rpathdirs $found_dir"
23412                     fi
23413                   else
23414                                                                                 haveit=
23415                     for x in $LDFLAGS $LIBINTL; do
23416
23417   acl_save_prefix="$prefix"
23418   prefix="$acl_final_prefix"
23419   acl_save_exec_prefix="$exec_prefix"
23420   exec_prefix="$acl_final_exec_prefix"
23421   eval x=\"$x\"
23422   exec_prefix="$acl_save_exec_prefix"
23423   prefix="$acl_save_prefix"
23424
23425                       if test "X$x" = "X-L$found_dir"; then
23426                         haveit=yes
23427                         break
23428                       fi
23429                     done
23430                     if test -z "$haveit"; then
23431                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23432                     fi
23433                     if test "$hardcode_minus_L" != no; then
23434                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23435                     else
23436                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23437                     fi
23438                   fi
23439                 fi
23440               fi
23441             else
23442               if test "X$found_a" != "X"; then
23443                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23444               else
23445                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23446               fi
23447             fi
23448                         additional_includedir=
23449             case "$found_dir" in
23450               */lib | */lib/)
23451                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23452                 additional_includedir="$basedir/include"
23453                 ;;
23454             esac
23455             if test "X$additional_includedir" != "X"; then
23456                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23457                 haveit=
23458                 if test "X$additional_includedir" = "X/usr/local/include"; then
23459                   if test -n "$GCC"; then
23460                     case $host_os in
23461                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23462                     esac
23463                   fi
23464                 fi
23465                 if test -z "$haveit"; then
23466                   for x in $CPPFLAGS $INCINTL; do
23467
23468   acl_save_prefix="$prefix"
23469   prefix="$acl_final_prefix"
23470   acl_save_exec_prefix="$exec_prefix"
23471   exec_prefix="$acl_final_exec_prefix"
23472   eval x=\"$x\"
23473   exec_prefix="$acl_save_exec_prefix"
23474   prefix="$acl_save_prefix"
23475
23476                     if test "X$x" = "X-I$additional_includedir"; then
23477                       haveit=yes
23478                       break
23479                     fi
23480                   done
23481                   if test -z "$haveit"; then
23482                     if test -d "$additional_includedir"; then
23483                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23484                     fi
23485                   fi
23486                 fi
23487               fi
23488             fi
23489                         if test -n "$found_la"; then
23490                                                         save_libdir="$libdir"
23491               case "$found_la" in
23492                 */* | *\\*) . "$found_la" ;;
23493                 *) . "./$found_la" ;;
23494               esac
23495               libdir="$save_libdir"
23496                             for dep in $dependency_libs; do
23497                 case "$dep" in
23498                   -L*)
23499                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23500                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23501                       haveit=
23502                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23503                         if test -n "$GCC"; then
23504                           case $host_os in
23505                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23506                           esac
23507                         fi
23508                       fi
23509                       if test -z "$haveit"; then
23510                         haveit=
23511                         for x in $LDFLAGS $LIBINTL; do
23512
23513   acl_save_prefix="$prefix"
23514   prefix="$acl_final_prefix"
23515   acl_save_exec_prefix="$exec_prefix"
23516   exec_prefix="$acl_final_exec_prefix"
23517   eval x=\"$x\"
23518   exec_prefix="$acl_save_exec_prefix"
23519   prefix="$acl_save_prefix"
23520
23521                           if test "X$x" = "X-L$additional_libdir"; then
23522                             haveit=yes
23523                             break
23524                           fi
23525                         done
23526                         if test -z "$haveit"; then
23527                           if test -d "$additional_libdir"; then
23528                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23529                           fi
23530                         fi
23531                         haveit=
23532                         for x in $LDFLAGS $LTLIBINTL; do
23533
23534   acl_save_prefix="$prefix"
23535   prefix="$acl_final_prefix"
23536   acl_save_exec_prefix="$exec_prefix"
23537   exec_prefix="$acl_final_exec_prefix"
23538   eval x=\"$x\"
23539   exec_prefix="$acl_save_exec_prefix"
23540   prefix="$acl_save_prefix"
23541
23542                           if test "X$x" = "X-L$additional_libdir"; then
23543                             haveit=yes
23544                             break
23545                           fi
23546                         done
23547                         if test -z "$haveit"; then
23548                           if test -d "$additional_libdir"; then
23549                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23550                           fi
23551                         fi
23552                       fi
23553                     fi
23554                     ;;
23555                   -R*)
23556                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23557                     if test "$enable_rpath" != no; then
23558                                                                   haveit=
23559                       for x in $rpathdirs; do
23560                         if test "X$x" = "X$dir"; then
23561                           haveit=yes
23562                           break
23563                         fi
23564                       done
23565                       if test -z "$haveit"; then
23566                         rpathdirs="$rpathdirs $dir"
23567                       fi
23568                                                                   haveit=
23569                       for x in $ltrpathdirs; do
23570                         if test "X$x" = "X$dir"; then
23571                           haveit=yes
23572                           break
23573                         fi
23574                       done
23575                       if test -z "$haveit"; then
23576                         ltrpathdirs="$ltrpathdirs $dir"
23577                       fi
23578                     fi
23579                     ;;
23580                   -l*)
23581                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23582                     ;;
23583                   *.la)
23584                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23585                     ;;
23586                   *)
23587                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23588                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23589                     ;;
23590                 esac
23591               done
23592             fi
23593           else
23594                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23595             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23596           fi
23597         fi
23598       fi
23599     done
23600   done
23601   if test "X$rpathdirs" != "X"; then
23602     if test -n "$hardcode_libdir_separator"; then
23603                         alldirs=
23604       for found_dir in $rpathdirs; do
23605         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23606       done
23607             acl_save_libdir="$libdir"
23608       libdir="$alldirs"
23609       eval flag=\"$hardcode_libdir_flag_spec\"
23610       libdir="$acl_save_libdir"
23611       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23612     else
23613             for found_dir in $rpathdirs; do
23614         acl_save_libdir="$libdir"
23615         libdir="$found_dir"
23616         eval flag=\"$hardcode_libdir_flag_spec\"
23617         libdir="$acl_save_libdir"
23618         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23619       done
23620     fi
23621   fi
23622   if test "X$ltrpathdirs" != "X"; then
23623             for found_dir in $ltrpathdirs; do
23624       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23625     done
23626   fi
23627
23628           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23629 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23630 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23631   echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633   gt_save_CPPFLAGS="$CPPFLAGS"
23634             CPPFLAGS="$CPPFLAGS $INCINTL"
23635             gt_save_LIBS="$LIBS"
23636             LIBS="$LIBS $LIBINTL"
23637                         cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643 #include <libintl.h>
23644 extern int _nl_msg_cat_cntr;
23645 extern
23646 #ifdef __cplusplus
23647 "C"
23648 #endif
23649 const char *_nl_expand_alias (const char *);
23650 int
23651 main ()
23652 {
23653 bindtextdomain ("", "");
23654 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23655   ;
23656   return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext conftest$ac_exeext
23660 if { (ac_try="$ac_link"
23661 case "(($ac_try" in
23662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663   *) ac_try_echo=$ac_try;;
23664 esac
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666   (eval "$ac_link") 2>conftest.er1
23667   ac_status=$?
23668   grep -v '^ *+' conftest.er1 >conftest.err
23669   rm -f conftest.er1
23670   cat conftest.err >&5
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); } && {
23673          test -z "$ac_c_werror_flag" ||
23674          test ! -s conftest.err
23675        } && test -s conftest$ac_exeext &&
23676        $as_test_x conftest$ac_exeext; then
23677   gt_cv_func_gnugettext1_libintl=yes
23678 else
23679   echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23681
23682         gt_cv_func_gnugettext1_libintl=no
23683 fi
23684
23685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23686       conftest$ac_exeext conftest.$ac_ext
23687                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23688               LIBS="$LIBS $LIBICONV"
23689               cat >conftest.$ac_ext <<_ACEOF
23690 /* confdefs.h.  */
23691 _ACEOF
23692 cat confdefs.h >>conftest.$ac_ext
23693 cat >>conftest.$ac_ext <<_ACEOF
23694 /* end confdefs.h.  */
23695 #include <libintl.h>
23696 extern int _nl_msg_cat_cntr;
23697 extern
23698 #ifdef __cplusplus
23699 "C"
23700 #endif
23701 const char *_nl_expand_alias (const char *);
23702 int
23703 main ()
23704 {
23705 bindtextdomain ("", "");
23706 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23707   ;
23708   return 0;
23709 }
23710 _ACEOF
23711 rm -f conftest.$ac_objext conftest$ac_exeext
23712 if { (ac_try="$ac_link"
23713 case "(($ac_try" in
23714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715   *) ac_try_echo=$ac_try;;
23716 esac
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718   (eval "$ac_link") 2>conftest.er1
23719   ac_status=$?
23720   grep -v '^ *+' conftest.er1 >conftest.err
23721   rm -f conftest.er1
23722   cat conftest.err >&5
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); } && {
23725          test -z "$ac_c_werror_flag" ||
23726          test ! -s conftest.err
23727        } && test -s conftest$ac_exeext &&
23728        $as_test_x conftest$ac_exeext; then
23729   LIBINTL="$LIBINTL $LIBICONV"
23730                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23731                 gt_cv_func_gnugettext1_libintl=yes
23732
23733 else
23734   echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23736
23737
23738 fi
23739
23740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23741       conftest$ac_exeext conftest.$ac_ext
23742             fi
23743             CPPFLAGS="$gt_save_CPPFLAGS"
23744             LIBS="$gt_save_LIBS"
23745 fi
23746 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23747 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23748         fi
23749
23750                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23751            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23752                 && test "$PACKAGE" != gettext-runtime \
23753                 && test "$PACKAGE" != gettext-tools; }; then
23754           gt_use_preinstalled_gnugettext=yes
23755         else
23756                     LIBINTL=
23757           LTLIBINTL=
23758           INCINTL=
23759         fi
23760
23761
23762         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23763                               nls_cv_use_gnu_gettext=yes
23764         fi
23765       fi
23766
23767       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23768                 BUILD_INCLUDED_LIBINTL=yes
23769         USE_INCLUDED_LIBINTL=yes
23770         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23771         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23772         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23773       fi
23774
23775       CATOBJEXT=
23776       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23777          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23778                 CATOBJEXT=.gmo
23779       fi
23780
23781
23782     if test -n "$INTL_MACOSX_LIBS"; then
23783       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23784          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23785                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23786         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23787       fi
23788     fi
23789
23790     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23791        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23792
23793 cat >>confdefs.h <<\_ACEOF
23794 #define ENABLE_NLS 1
23795 _ACEOF
23796
23797     else
23798       USE_NLS=no
23799     fi
23800   fi
23801
23802   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23803 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23804   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23805 echo "${ECHO_T}$USE_NLS" >&6; }
23806   if test "$USE_NLS" = "yes"; then
23807     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23808 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23809     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23810       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23811         gt_source="external libintl"
23812       else
23813         gt_source="libc"
23814       fi
23815     else
23816       gt_source="included intl directory"
23817     fi
23818     { echo "$as_me:$LINENO: result: $gt_source" >&5
23819 echo "${ECHO_T}$gt_source" >&6; }
23820   fi
23821
23822   if test "$USE_NLS" = "yes"; then
23823
23824     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23825       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23826         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23827 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23828         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23829 echo "${ECHO_T}$LIBINTL" >&6; }
23830
23831   for element in $INCINTL; do
23832     haveit=
23833     for x in $CPPFLAGS; do
23834
23835   acl_save_prefix="$prefix"
23836   prefix="$acl_final_prefix"
23837   acl_save_exec_prefix="$exec_prefix"
23838   exec_prefix="$acl_final_exec_prefix"
23839   eval x=\"$x\"
23840   exec_prefix="$acl_save_exec_prefix"
23841   prefix="$acl_save_prefix"
23842
23843       if test "X$x" = "X$element"; then
23844         haveit=yes
23845         break
23846       fi
23847     done
23848     if test -z "$haveit"; then
23849       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23850     fi
23851   done
23852
23853       fi
23854
23855
23856 cat >>confdefs.h <<\_ACEOF
23857 #define HAVE_GETTEXT 1
23858 _ACEOF
23859
23860
23861 cat >>confdefs.h <<\_ACEOF
23862 #define HAVE_DCGETTEXT 1
23863 _ACEOF
23864
23865     fi
23866
23867         POSUB=po
23868   fi
23869
23870
23871             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23872       BUILD_INCLUDED_LIBINTL=yes
23873     fi
23874
23875
23876
23877
23878
23879         nls_cv_header_intl=
23880     nls_cv_header_libgt=
23881
23882         DATADIRNAME=share
23883
23884
23885         INSTOBJEXT=.mo
23886
23887
23888         GENCAT=gencat
23889
23890
23891         INTLOBJS=
23892     if test "$USE_INCLUDED_LIBINTL" = yes; then
23893       INTLOBJS="\$(GETTOBJS)"
23894     fi
23895
23896
23897         INTL_LIBTOOL_SUFFIX_PREFIX=
23898
23899
23900
23901     INTLLIBS="$LIBINTL"
23902
23903
23904
23905
23906
23907
23908 fi
23909
23910 support_mysql=no
23911 support_sqlite=no
23912 support_sqlite3=no
23913 support_postgresql=no
23914 support_dbi=no
23915 support_smartalloc=yes
23916 support_readline=yes
23917 support_conio=yes
23918 support_gnome=no
23919 support_bat=no
23920 support_wx_console=no
23921 support_tls=no
23922 support_crypto=no
23923 gnome_version=
23924 wx_version=
23925 support_static_tools=no
23926 support_static_fd=no
23927 support_static_sd=no
23928 support_static_dir=no
23929 support_static_cons=no
23930 support_python=no
23931 build_client_only=no
23932 build_dird=yes
23933 build_stored=yes
23934 cats=
23935 db_type=Internal
23936 DB_TYPE=bdb
23937
23938
23939 # Check whether --enable-gnome was given.
23940 if test "${enable_gnome+set}" = set; then
23941   enableval=$enable_gnome;
23942        if test x$enableval = xyes; then
23943           support_gnome=yes
23944        fi
23945
23946
23947 fi
23948
23949
23950 GNOME_DIR=
23951 if test x$support_gnome = xyes; then
23952    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23953    pkg=$?
23954    if test $pkg = 0; then
23955       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23956       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23957       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23958       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23959
23960
23961
23962
23963       GNOME_DIR=src/gnome2-console
23964       gnome_version="Version 2.x"
23965    else
23966       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23967 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23968    { (exit 1); exit 1; }; }
23969    fi
23970 fi
23971
23972
23973 # Check whether --enable-bat was given.
23974 if test "${enable_bat+set}" = set; then
23975   enableval=$enable_bat;
23976        if test x$enableval = xyes; then
23977
23978 cat >>confdefs.h <<\_ACEOF
23979 #define HAVE_BAT 1
23980 _ACEOF
23981
23982           support_bat=yes
23983        fi
23984
23985
23986 fi
23987
23988
23989 BAT_DIR=
23990 if test x$support_bat = xyes; then
23991    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
23992    pkg=$?
23993    if test $pkg = 0; then
23994       BAT_DIR=src/qt-console
23995    else
23996       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
23997 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
23998    { (exit 1); exit 1; }; }
23999    fi
24000 fi
24001
24002 got_qwt=no
24003 QWT_INC=
24004 QWT_LDFLAGS=
24005 QWT_LIB=
24006 QWT=
24007 no_qwt=no
24008 if test x$support_bat = xyes; then
24009    { echo "$as_me:$LINENO: checking for qwt support" >&5
24010 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24011
24012 # Check whether --with-qwt was given.
24013 if test "${with_qwt+set}" = set; then
24014   withval=$with_qwt;
24015           case "$with_qwt" in
24016           no)
24017              no_qwt=yes
24018              ;;
24019           yes|*)
24020              if test -f ${with_qwt}/include/qwt.h; then
24021                 QWT_INC="${with_qwt}/include"
24022                 QWT_LDFLAGS="-L${with_qwt}/lib"
24023                 QWT_LIB="-lqwt"
24024                 QWT="qwt"
24025              fi
24026              ;;
24027           esac
24028
24029
24030 fi
24031
24032
24033             if test $no_qwt = no; then
24034       if test x$QWT_INC = x; then
24035          for root in /usr /usr/local; do
24036             for ver in qwt qwt5 qwt-qt4; do
24037                if test -f ${root}/include/${ver}/qwt.h; then
24038                   QWT_INC="${root}/include/${ver}"
24039                   if test -d ${root}/lib64/; then
24040                      QWT_LDFLAGS="-L${root}/lib64"
24041                   elif test -d ${root}/lib/64/; then
24042                      QWT_LDFLAGS="-L${root}/64"
24043                   else
24044                      QWT_LDFLAGS="-L${root}/lib"
24045                   fi
24046                   QWT_LIB="-lqwt"
24047                   QWT="qwt"
24048                   got_qwt=yes
24049                   break;
24050                fi
24051             done
24052          done
24053       fi
24054    fi
24055    if test x$QWT_INC = x; then
24056       { echo "$as_me:$LINENO: result: no" >&5
24057 echo "${ECHO_T}no" >&6; }
24058    else
24059
24060 cat >>confdefs.h <<\_ACEOF
24061 #define HAVE_QWT 1
24062 _ACEOF
24063
24064       { echo "$as_me:$LINENO: result: yes" >&5
24065 echo "${ECHO_T}yes" >&6; }
24066    fi
24067 fi
24068
24069
24070
24071
24072
24073
24074
24075 # Check whether --enable-bwx-console was given.
24076 if test "${enable_bwx_console+set}" = set; then
24077   enableval=$enable_bwx_console;
24078        if test x$enableval = xyes; then
24079           support_wx_console=yes
24080        fi
24081
24082
24083 fi
24084
24085
24086 WX_DIR=
24087 if test x$support_wx_console = xyes; then
24088    abc=`$WXCONFIG $WXFLAGS --cppflags`
24089    pkg=$?
24090    if test $pkg = 0; then
24091       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24092       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24093       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24094
24095
24096
24097       WX_DIR=src/wx-console
24098    else
24099       echo " "
24100       echo "wx-config program not found. bwx-console disabled."
24101       echo " "
24102       support_wx_console=no
24103    fi
24104 fi
24105
24106
24107 # Check whether --enable-tray-monitor was given.
24108 if test "${enable_tray_monitor+set}" = set; then
24109   enableval=$enable_tray_monitor;
24110        if test x$enableval = xyes; then
24111           support_tray_monitor=yes
24112        fi
24113
24114
24115 fi
24116
24117
24118 TRAY_MONITOR_DIR=
24119 if test x$support_tray_monitor = xyes; then
24120    abc=`$PKGCONFIG --exists gtk+-2.0`
24121    pkg=$?
24122    if test $pkg = 0; then
24123       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24124       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24125
24126
24127       TRAY_MONITOR_DIR=src/tray-monitor
24128       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24129       pkg=$?
24130       if test $pkg = 0; then
24131
24132 cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_GTK_2_4 1
24134 _ACEOF
24135
24136       fi
24137    fi
24138 fi
24139
24140
24141 # Check whether --enable-smartalloc was given.
24142 if test "${enable_smartalloc+set}" = set; then
24143   enableval=$enable_smartalloc;
24144        if test x$enableval = xno; then
24145           support_smartalloc=no
24146        fi
24147
24148
24149 fi
24150
24151
24152 if test x$support_smartalloc = xyes; then
24153
24154 cat >>confdefs.h <<\_ACEOF
24155 #define SMARTALLOC 1
24156 _ACEOF
24157
24158 fi
24159
24160 # Check whether --enable-static-tools was given.
24161 if test "${enable_static_tools+set}" = set; then
24162   enableval=$enable_static_tools;
24163        if test x$enableval = xyes; then
24164           support_static_tools=yes
24165        fi
24166
24167
24168 fi
24169
24170
24171 TTOOL_LDFLAGS=
24172 if test x$support_static_tools = xyes; then
24173    TTOOL_LDFLAGS="-static"
24174 fi
24175
24176
24177 # Check whether --enable-static-fd was given.
24178 if test "${enable_static_fd+set}" = set; then
24179   enableval=$enable_static_fd;
24180        if test x$enableval = xyes; then
24181           support_static_fd=yes
24182        fi
24183
24184
24185 fi
24186
24187
24188 STATIC_FD=
24189 if test x$support_static_fd = xyes; then
24190    STATIC_FD="static-bacula-fd"
24191 fi
24192
24193
24194 # Check whether --enable-static-sd was given.
24195 if test "${enable_static_sd+set}" = set; then
24196   enableval=$enable_static_sd;
24197        if test x$enableval = xyes; then
24198           support_static_sd=yes
24199        fi
24200
24201
24202 fi
24203
24204
24205 STATIC_SD=
24206 if test x$support_static_sd = xyes; then
24207    STATIC_SD="static-bacula-sd"
24208 fi
24209
24210
24211 # Check whether --enable-static-dir was given.
24212 if test "${enable_static_dir+set}" = set; then
24213   enableval=$enable_static_dir;
24214        if test x$enableval = xyes; then
24215           support_static_dir=yes
24216        fi
24217
24218
24219 fi
24220
24221
24222 STATIC_DIR=
24223 if test x$support_static_dir = xyes; then
24224    STATIC_DIR="static-bacula-dir"
24225 fi
24226
24227
24228 # Check whether --enable-static-cons was given.
24229 if test "${enable_static_cons+set}" = set; then
24230   enableval=$enable_static_cons;
24231        if test x$enableval = xyes; then
24232           support_static_cons=yes
24233        fi
24234
24235
24236 fi
24237
24238
24239 STATIC_CONS=
24240 STATIC_GNOME_CONS=
24241 STATIC_WX_CONS=
24242 if test x$support_static_cons = xyes; then
24243    STATIC_CONS="static-bconsole"
24244    STATIC_GNOME_CONS="static-bgnome-console"
24245    STATIC_WX_CONS="static-bwx-console"
24246 fi
24247
24248
24249
24250
24251 # Check whether --enable-client-only was given.
24252 if test "${enable_client_only+set}" = set; then
24253   enableval=$enable_client_only;
24254        if test x$enableval = xyes; then
24255           build_client_only=yes
24256           db_type=None
24257           DB_TYPE=none
24258        fi
24259
24260
24261 fi
24262
24263 if test x$build_client_only = xno; then
24264    ALL_DIRS="subdirs"
24265 else
24266    ALL_DIRS=""
24267 fi
24268
24269
24270 # Check whether --enable-build-dird was given.
24271 if test "${enable_build_dird+set}" = set; then
24272   enableval=$enable_build_dird;
24273        if test x$enableval = xno; then
24274           build_dird=no
24275        fi
24276
24277
24278 fi
24279
24280 if test x$build_dird = xyes; then
24281    DIRD_DIR="src/dird"
24282    DIR_TOOLS="DIRTOOLS"
24283 else
24284    DIRD_DIR=""
24285    DIR_TOOLS="NODIRTOOLS"
24286 fi
24287
24288
24289
24290 # Check whether --enable-build-stored was given.
24291 if test "${enable_build_stored+set}" = set; then
24292   enableval=$enable_build_stored;
24293       if test x$enableval = xno; then
24294          build_stored=no
24295       fi
24296
24297
24298 fi
24299
24300 if test x$build_stored = xyes; then
24301    STORED_DIR="src/stored"
24302 else
24303    STORED_DIR=""
24304 fi
24305
24306
24307 # Check whether --enable-conio was given.
24308 if test "${enable_conio+set}" = set; then
24309   enableval=$enable_conio;
24310        if test x$enableval = xno; then
24311           support_conio=no
24312        fi
24313
24314
24315 fi
24316
24317
24318
24319 support_ipv6=yes
24320 # Check whether --enable-ipv6 was given.
24321 if test "${enable_ipv6+set}" = set; then
24322   enableval=$enable_ipv6;
24323        if test x$enableval = xno; then
24324           support_ipv6=no
24325        fi
24326
24327
24328 fi
24329
24330
24331 if test x$support_ipv6 = xyes; then
24332     cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h.  */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h.  */
24338  #include <sys/types.h>
24339 #include <sys/socket.h>
24340 #include <netinet/in.h>
24341 int
24342 main ()
24343 {
24344 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24345   ;
24346   return 0;
24347 }
24348 _ACEOF
24349 rm -f conftest.$ac_objext conftest$ac_exeext
24350 if { (ac_try="$ac_link"
24351 case "(($ac_try" in
24352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353   *) ac_try_echo=$ac_try;;
24354 esac
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356   (eval "$ac_link") 2>conftest.er1
24357   ac_status=$?
24358   grep -v '^ *+' conftest.er1 >conftest.err
24359   rm -f conftest.er1
24360   cat conftest.err >&5
24361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362   (exit $ac_status); } && {
24363          test -z "$ac_c_werror_flag" ||
24364          test ! -s conftest.err
24365        } && test -s conftest$ac_exeext &&
24366        $as_test_x conftest$ac_exeext; then
24367   support_ipv6=yes
24368 else
24369   echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24371
24372         support_ipv6=no
24373 fi
24374
24375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24376       conftest$ac_exeext conftest.$ac_ext
24377 fi
24378
24379 if test x$support_ipv6 = xyes; then
24380
24381 cat >>confdefs.h <<\_ACEOF
24382 #define HAVE_IPV6 1
24383 _ACEOF
24384
24385 fi
24386
24387 got_conio="no"
24388 if test x$support_conio = xyes; then
24389    if test "${ac_cv_header_termcap_h+set}" = set; then
24390   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24391 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24392 if test "${ac_cv_header_termcap_h+set}" = set; then
24393   echo $ECHO_N "(cached) $ECHO_C" >&6
24394 fi
24395 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24396 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24397 else
24398   # Is the header compilable?
24399 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24400 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h.  */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h.  */
24407 $ac_includes_default
24408 #include <termcap.h>
24409 _ACEOF
24410 rm -f conftest.$ac_objext
24411 if { (ac_try="$ac_compile"
24412 case "(($ac_try" in
24413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414   *) ac_try_echo=$ac_try;;
24415 esac
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417   (eval "$ac_compile") 2>conftest.er1
24418   ac_status=$?
24419   grep -v '^ *+' conftest.er1 >conftest.err
24420   rm -f conftest.er1
24421   cat conftest.err >&5
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); } && {
24424          test -z "$ac_c_werror_flag" ||
24425          test ! -s conftest.err
24426        } && test -s conftest.$ac_objext; then
24427   ac_header_compiler=yes
24428 else
24429   echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24431
24432         ac_header_compiler=no
24433 fi
24434
24435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24437 echo "${ECHO_T}$ac_header_compiler" >&6; }
24438
24439 # Is the header present?
24440 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24441 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24442 cat >conftest.$ac_ext <<_ACEOF
24443 /* confdefs.h.  */
24444 _ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h.  */
24448 #include <termcap.h>
24449 _ACEOF
24450 if { (ac_try="$ac_cpp conftest.$ac_ext"
24451 case "(($ac_try" in
24452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453   *) ac_try_echo=$ac_try;;
24454 esac
24455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24457   ac_status=$?
24458   grep -v '^ *+' conftest.er1 >conftest.err
24459   rm -f conftest.er1
24460   cat conftest.err >&5
24461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); } >/dev/null && {
24463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24464          test ! -s conftest.err
24465        }; then
24466   ac_header_preproc=yes
24467 else
24468   echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24470
24471   ac_header_preproc=no
24472 fi
24473
24474 rm -f conftest.err conftest.$ac_ext
24475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24476 echo "${ECHO_T}$ac_header_preproc" >&6; }
24477
24478 # So?  What about this header?
24479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24480   yes:no: )
24481     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24482 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24483     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24484 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24485     ac_header_preproc=yes
24486     ;;
24487   no:yes:* )
24488     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24489 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24490     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24491 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24492     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24493 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24494     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24495 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24496     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24497 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24498     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24499 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24500
24501     ;;
24502 esac
24503 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24504 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24505 if test "${ac_cv_header_termcap_h+set}" = set; then
24506   echo $ECHO_N "(cached) $ECHO_C" >&6
24507 else
24508   ac_cv_header_termcap_h=$ac_header_preproc
24509 fi
24510 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24511 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24512
24513 fi
24514 if test $ac_cv_header_termcap_h = yes; then
24515    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24516 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24517 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24518   echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520   ac_check_lib_save_LIBS=$LIBS
24521 LIBS="-ltermcap  $LIBS"
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h.  */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h.  */
24528
24529 /* Override any GCC internal prototype to avoid an error.
24530    Use char because int might match the return type of a GCC
24531    builtin and then its argument prototype would still apply.  */
24532 #ifdef __cplusplus
24533 extern "C"
24534 #endif
24535 char tgetent ();
24536 int
24537 main ()
24538 {
24539 return tgetent ();
24540   ;
24541   return 0;
24542 }
24543 _ACEOF
24544 rm -f conftest.$ac_objext conftest$ac_exeext
24545 if { (ac_try="$ac_link"
24546 case "(($ac_try" in
24547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548   *) ac_try_echo=$ac_try;;
24549 esac
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551   (eval "$ac_link") 2>conftest.er1
24552   ac_status=$?
24553   grep -v '^ *+' conftest.er1 >conftest.err
24554   rm -f conftest.er1
24555   cat conftest.err >&5
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); } && {
24558          test -z "$ac_c_werror_flag" ||
24559          test ! -s conftest.err
24560        } && test -s conftest$ac_exeext &&
24561        $as_test_x conftest$ac_exeext; then
24562   ac_cv_lib_termcap_tgetent=yes
24563 else
24564   echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24566
24567         ac_cv_lib_termcap_tgetent=no
24568 fi
24569
24570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24571       conftest$ac_exeext conftest.$ac_ext
24572 LIBS=$ac_check_lib_save_LIBS
24573 fi
24574 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24575 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24576 if test $ac_cv_lib_termcap_tgetent = yes; then
24577    CONS_LIBS="-ltermcap"
24578     CONS_OBJ="conio.o"
24579     CONS_SRC="conio.c"
24580     got_conio="yes"
24581     support_readline=no
24582
24583 cat >>confdefs.h <<\_ACEOF
24584 #define HAVE_CONIO 1
24585 _ACEOF
24586
24587
24588 else
24589    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24590 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24591 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24592   echo $ECHO_N "(cached) $ECHO_C" >&6
24593 else
24594   ac_check_lib_save_LIBS=$LIBS
24595 LIBS="-lncurses  $LIBS"
24596 cat >conftest.$ac_ext <<_ACEOF
24597 /* confdefs.h.  */
24598 _ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h.  */
24602
24603 /* Override any GCC internal prototype to avoid an error.
24604    Use char because int might match the return type of a GCC
24605    builtin and then its argument prototype would still apply.  */
24606 #ifdef __cplusplus
24607 extern "C"
24608 #endif
24609 char tgetent ();
24610 int
24611 main ()
24612 {
24613 return tgetent ();
24614   ;
24615   return 0;
24616 }
24617 _ACEOF
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (ac_try="$ac_link"
24620 case "(($ac_try" in
24621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622   *) ac_try_echo=$ac_try;;
24623 esac
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625   (eval "$ac_link") 2>conftest.er1
24626   ac_status=$?
24627   grep -v '^ *+' conftest.er1 >conftest.err
24628   rm -f conftest.er1
24629   cat conftest.err >&5
24630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631   (exit $ac_status); } && {
24632          test -z "$ac_c_werror_flag" ||
24633          test ! -s conftest.err
24634        } && test -s conftest$ac_exeext &&
24635        $as_test_x conftest$ac_exeext; then
24636   ac_cv_lib_ncurses_tgetent=yes
24637 else
24638   echo "$as_me: failed program was:" >&5
24639 sed 's/^/| /' conftest.$ac_ext >&5
24640
24641         ac_cv_lib_ncurses_tgetent=no
24642 fi
24643
24644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24645       conftest$ac_exeext conftest.$ac_ext
24646 LIBS=$ac_check_lib_save_LIBS
24647 fi
24648 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24649 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24650 if test $ac_cv_lib_ncurses_tgetent = yes; then
24651    CONS_LIBS="-lncurses"
24652       CONS_OBJ="conio.o"
24653       CONS_SRC="conio.c"
24654       got_conio="yes"
24655       support_readline=no
24656
24657 cat >>confdefs.h <<\_ACEOF
24658 #define HAVE_CONIO 1
24659 _ACEOF
24660
24661
24662 fi
24663
24664
24665 fi
24666
24667
24668 else
24669
24670
24671 for ac_header in curses.h
24672 do
24673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24675   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24678   echo $ECHO_N "(cached) $ECHO_C" >&6
24679 fi
24680 ac_res=`eval echo '${'$as_ac_Header'}'`
24681                { echo "$as_me:$LINENO: result: $ac_res" >&5
24682 echo "${ECHO_T}$ac_res" >&6; }
24683 else
24684   # Is the header compilable?
24685 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24687 cat >conftest.$ac_ext <<_ACEOF
24688 /* confdefs.h.  */
24689 _ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h.  */
24693 $ac_includes_default
24694 #include <$ac_header>
24695 _ACEOF
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703   (eval "$ac_compile") 2>conftest.er1
24704   ac_status=$?
24705   grep -v '^ *+' conftest.er1 >conftest.err
24706   rm -f conftest.er1
24707   cat conftest.err >&5
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); } && {
24710          test -z "$ac_c_werror_flag" ||
24711          test ! -s conftest.err
24712        } && test -s conftest.$ac_objext; then
24713   ac_header_compiler=yes
24714 else
24715   echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24717
24718         ac_header_compiler=no
24719 fi
24720
24721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24723 echo "${ECHO_T}$ac_header_compiler" >&6; }
24724
24725 # Is the header present?
24726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24728 cat >conftest.$ac_ext <<_ACEOF
24729 /* confdefs.h.  */
24730 _ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h.  */
24734 #include <$ac_header>
24735 _ACEOF
24736 if { (ac_try="$ac_cpp conftest.$ac_ext"
24737 case "(($ac_try" in
24738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739   *) ac_try_echo=$ac_try;;
24740 esac
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24743   ac_status=$?
24744   grep -v '^ *+' conftest.er1 >conftest.err
24745   rm -f conftest.er1
24746   cat conftest.err >&5
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); } >/dev/null && {
24749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24750          test ! -s conftest.err
24751        }; then
24752   ac_header_preproc=yes
24753 else
24754   echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24756
24757   ac_header_preproc=no
24758 fi
24759
24760 rm -f conftest.err conftest.$ac_ext
24761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24762 echo "${ECHO_T}$ac_header_preproc" >&6; }
24763
24764 # So?  What about this header?
24765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24766   yes:no: )
24767     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24771     ac_header_preproc=yes
24772     ;;
24773   no:yes:* )
24774     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24776     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24777 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24778     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24780     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24781 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24784     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24786
24787     ;;
24788 esac
24789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24792   echo $ECHO_N "(cached) $ECHO_C" >&6
24793 else
24794   eval "$as_ac_Header=\$ac_header_preproc"
24795 fi
24796 ac_res=`eval echo '${'$as_ac_Header'}'`
24797                { echo "$as_me:$LINENO: result: $ac_res" >&5
24798 echo "${ECHO_T}$ac_res" >&6; }
24799
24800 fi
24801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24802   cat >>confdefs.h <<_ACEOF
24803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24804 _ACEOF
24805
24806 fi
24807
24808 done
24809
24810     { echo "$as_me:$LINENO: checking for term.h" >&5
24811 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24812 if test "${ac_cv_header_term_h+set}" = set; then
24813   echo $ECHO_N "(cached) $ECHO_C" >&6
24814 else
24815   cat >conftest.$ac_ext <<_ACEOF
24816 /* confdefs.h.  */
24817 _ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h.  */
24821 #if HAVE_CURSES_H
24822 #include <curses.h>
24823 #endif
24824
24825
24826 #include <term.h>
24827 _ACEOF
24828 rm -f conftest.$ac_objext
24829 if { (ac_try="$ac_compile"
24830 case "(($ac_try" in
24831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24832   *) ac_try_echo=$ac_try;;
24833 esac
24834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24835   (eval "$ac_compile") 2>conftest.er1
24836   ac_status=$?
24837   grep -v '^ *+' conftest.er1 >conftest.err
24838   rm -f conftest.er1
24839   cat conftest.err >&5
24840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841   (exit $ac_status); } && {
24842          test -z "$ac_c_werror_flag" ||
24843          test ! -s conftest.err
24844        } && test -s conftest.$ac_objext; then
24845   ac_cv_header_term_h=yes
24846 else
24847   echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24849
24850         ac_cv_header_term_h=no
24851 fi
24852
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24854 fi
24855 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24856 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24857 if test $ac_cv_header_term_h = yes; then
24858    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24859 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24860 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   ac_check_lib_save_LIBS=$LIBS
24864 LIBS="-lcurses  $LIBS"
24865 cat >conftest.$ac_ext <<_ACEOF
24866 /* confdefs.h.  */
24867 _ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h.  */
24871
24872 /* Override any GCC internal prototype to avoid an error.
24873    Use char because int might match the return type of a GCC
24874    builtin and then its argument prototype would still apply.  */
24875 #ifdef __cplusplus
24876 extern "C"
24877 #endif
24878 char tgetent ();
24879 int
24880 main ()
24881 {
24882 return tgetent ();
24883   ;
24884   return 0;
24885 }
24886 _ACEOF
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891   *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894   (eval "$ac_link") 2>conftest.er1
24895   ac_status=$?
24896   grep -v '^ *+' conftest.er1 >conftest.err
24897   rm -f conftest.er1
24898   cat conftest.err >&5
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); } && {
24901          test -z "$ac_c_werror_flag" ||
24902          test ! -s conftest.err
24903        } && test -s conftest$ac_exeext &&
24904        $as_test_x conftest$ac_exeext; then
24905   ac_cv_lib_curses_tgetent=yes
24906 else
24907   echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24909
24910         ac_cv_lib_curses_tgetent=no
24911 fi
24912
24913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24914       conftest$ac_exeext conftest.$ac_ext
24915 LIBS=$ac_check_lib_save_LIBS
24916 fi
24917 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24918 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24919 if test $ac_cv_lib_curses_tgetent = yes; then
24920    CONS_LIBS="-lcurses"
24921          CONS_OBJ="conio.o"
24922          CONS_SRC="conio.c"
24923          got_conio="yes"
24924          support_readline=no
24925
24926 cat >>confdefs.h <<\_ACEOF
24927 #define HAVE_CONIO 1
24928 _ACEOF
24929
24930
24931 fi
24932
24933
24934 else
24935    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24936 fi
24937
24938
24939
24940 fi
24941
24942
24943 fi
24944
24945
24946 # Check whether --enable-readline was given.
24947 if test "${enable_readline+set}" = set; then
24948   enableval=$enable_readline;
24949        if test x$enableval = xno; then
24950           support_readline=no
24951        fi
24952
24953
24954 fi
24955
24956
24957 got_readline="no"
24958 READLINE_SRC=
24959 if test x$support_readline = xyes; then
24960
24961 # Check whether --with-readline was given.
24962 if test "${with_readline+set}" = set; then
24963   withval=$with_readline;
24964           case "$with_readline" in
24965           no)
24966              :
24967              ;;
24968           yes|*)
24969              if test -f ${with_readline}/readline.h; then
24970                 CONS_INC="-I${with_readline}"
24971                 CONS_LDFLAGS="-L$with_readline"
24972              elif test -f ${with_readline}/include/readline/readline.h; then
24973                 CONS_INC="-I${with_readline}/include/readline"
24974                 CONS_LDFLAGS="-L${with_readline}/lib"
24975                 with_readline="${with_readline}/include/readline"
24976              else
24977                 with_readline="/usr/include/readline"
24978              fi
24979
24980              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
24981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24982   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
24983 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
24984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24985   echo $ECHO_N "(cached) $ECHO_C" >&6
24986 fi
24987 ac_res=`eval echo '${'$as_ac_Header'}'`
24988                { echo "$as_me:$LINENO: result: $ac_res" >&5
24989 echo "${ECHO_T}$ac_res" >&6; }
24990 else
24991   # Is the header compilable?
24992 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
24993 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
24994 cat >conftest.$ac_ext <<_ACEOF
24995 /* confdefs.h.  */
24996 _ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h.  */
25000 $ac_includes_default
25001 #include <${with_readline}/readline.h>
25002 _ACEOF
25003 rm -f conftest.$ac_objext
25004 if { (ac_try="$ac_compile"
25005 case "(($ac_try" in
25006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007   *) ac_try_echo=$ac_try;;
25008 esac
25009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010   (eval "$ac_compile") 2>conftest.er1
25011   ac_status=$?
25012   grep -v '^ *+' conftest.er1 >conftest.err
25013   rm -f conftest.er1
25014   cat conftest.err >&5
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); } && {
25017          test -z "$ac_c_werror_flag" ||
25018          test ! -s conftest.err
25019        } && test -s conftest.$ac_objext; then
25020   ac_header_compiler=yes
25021 else
25022   echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025         ac_header_compiler=no
25026 fi
25027
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25030 echo "${ECHO_T}$ac_header_compiler" >&6; }
25031
25032 # Is the header present?
25033 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25034 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25035 cat >conftest.$ac_ext <<_ACEOF
25036 /* confdefs.h.  */
25037 _ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h.  */
25041 #include <${with_readline}/readline.h>
25042 _ACEOF
25043 if { (ac_try="$ac_cpp conftest.$ac_ext"
25044 case "(($ac_try" in
25045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046   *) ac_try_echo=$ac_try;;
25047 esac
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25050   ac_status=$?
25051   grep -v '^ *+' conftest.er1 >conftest.err
25052   rm -f conftest.er1
25053   cat conftest.err >&5
25054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055   (exit $ac_status); } >/dev/null && {
25056          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25057          test ! -s conftest.err
25058        }; then
25059   ac_header_preproc=yes
25060 else
25061   echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25063
25064   ac_header_preproc=no
25065 fi
25066
25067 rm -f conftest.err conftest.$ac_ext
25068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25069 echo "${ECHO_T}$ac_header_preproc" >&6; }
25070
25071 # So?  What about this header?
25072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25073   yes:no: )
25074     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25075 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25076     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25077 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25078     ac_header_preproc=yes
25079     ;;
25080   no:yes:* )
25081     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25082 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25083     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25084 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25085     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25086 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25087     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25088 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25089     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25090 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25091     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25092 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25093
25094     ;;
25095 esac
25096 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25097 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25099   echo $ECHO_N "(cached) $ECHO_C" >&6
25100 else
25101   eval "$as_ac_Header=\$ac_header_preproc"
25102 fi
25103 ac_res=`eval echo '${'$as_ac_Header'}'`
25104                { echo "$as_me:$LINENO: result: $ac_res" >&5
25105 echo "${ECHO_T}$ac_res" >&6; }
25106
25107 fi
25108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25109
25110
25111 cat >>confdefs.h <<\_ACEOF
25112 #define HAVE_READLINE 1
25113 _ACEOF
25114
25115                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25116                     got_readline="yes"
25117
25118 else
25119
25120                     echo " "
25121                     echo "readline.h not found. readline turned off ..."
25122                     echo " "
25123
25124
25125 fi
25126
25127
25128              ;;
25129           esac
25130
25131 else
25132
25133                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25134   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25135 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25136 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25137   echo $ECHO_N "(cached) $ECHO_C" >&6
25138 fi
25139 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25140 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25141 else
25142   # Is the header compilable?
25143 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25144 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h.  */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h.  */
25151 $ac_includes_default
25152 #include </usr/include/readline/readline.h>
25153 _ACEOF
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158   *) ac_try_echo=$ac_try;;
25159 esac
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161   (eval "$ac_compile") 2>conftest.er1
25162   ac_status=$?
25163   grep -v '^ *+' conftest.er1 >conftest.err
25164   rm -f conftest.er1
25165   cat conftest.err >&5
25166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); } && {
25168          test -z "$ac_c_werror_flag" ||
25169          test ! -s conftest.err
25170        } && test -s conftest.$ac_objext; then
25171   ac_header_compiler=yes
25172 else
25173   echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176         ac_header_compiler=no
25177 fi
25178
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25181 echo "${ECHO_T}$ac_header_compiler" >&6; }
25182
25183 # Is the header present?
25184 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25185 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25186 cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25192 #include </usr/include/readline/readline.h>
25193 _ACEOF
25194 if { (ac_try="$ac_cpp conftest.$ac_ext"
25195 case "(($ac_try" in
25196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197   *) ac_try_echo=$ac_try;;
25198 esac
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25201   ac_status=$?
25202   grep -v '^ *+' conftest.er1 >conftest.err
25203   rm -f conftest.er1
25204   cat conftest.err >&5
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); } >/dev/null && {
25207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25208          test ! -s conftest.err
25209        }; then
25210   ac_header_preproc=yes
25211 else
25212   echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215   ac_header_preproc=no
25216 fi
25217
25218 rm -f conftest.err conftest.$ac_ext
25219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25220 echo "${ECHO_T}$ac_header_preproc" >&6; }
25221
25222 # So?  What about this header?
25223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25224   yes:no: )
25225     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25226 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25227     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25228 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25229     ac_header_preproc=yes
25230     ;;
25231   no:yes:* )
25232     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25233 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25234     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25235 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25236     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25237 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25238     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25239 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25241 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25242     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25243 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25244
25245     ;;
25246 esac
25247 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25248 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25249 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25253 fi
25254 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25255 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25256
25257 fi
25258 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25259
25260
25261 cat >>confdefs.h <<\_ACEOF
25262 #define HAVE_READLINE 1
25263 _ACEOF
25264
25265                 got_readline="yes"
25266                 CONS_INC="-I/usr/include/readline"
25267                 CONS_LIBS="-lreadline -ltermcap"
25268
25269 else
25270
25271                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25273   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25274 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25276   echo $ECHO_N "(cached) $ECHO_C" >&6
25277 fi
25278 ac_res=`eval echo '${'$as_ac_Header'}'`
25279                { echo "$as_me:$LINENO: result: $ac_res" >&5
25280 echo "${ECHO_T}$ac_res" >&6; }
25281 else
25282   # Is the header compilable?
25283 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25284 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $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 $ac_includes_default
25292 #include <${TOP_DIR}/depkgs/readline/readline.h>
25293 _ACEOF
25294 rm -f conftest.$ac_objext
25295 if { (ac_try="$ac_compile"
25296 case "(($ac_try" in
25297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298   *) ac_try_echo=$ac_try;;
25299 esac
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301   (eval "$ac_compile") 2>conftest.er1
25302   ac_status=$?
25303   grep -v '^ *+' conftest.er1 >conftest.err
25304   rm -f conftest.er1
25305   cat conftest.err >&5
25306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); } && {
25308          test -z "$ac_c_werror_flag" ||
25309          test ! -s conftest.err
25310        } && test -s conftest.$ac_objext; then
25311   ac_header_compiler=yes
25312 else
25313   echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25315
25316         ac_header_compiler=no
25317 fi
25318
25319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25321 echo "${ECHO_T}$ac_header_compiler" >&6; }
25322
25323 # Is the header present?
25324 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25325 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25326 cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h.  */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h.  */
25332 #include <${TOP_DIR}/depkgs/readline/readline.h>
25333 _ACEOF
25334 if { (ac_try="$ac_cpp conftest.$ac_ext"
25335 case "(($ac_try" in
25336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337   *) ac_try_echo=$ac_try;;
25338 esac
25339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25341   ac_status=$?
25342   grep -v '^ *+' conftest.er1 >conftest.err
25343   rm -f conftest.er1
25344   cat conftest.err >&5
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); } >/dev/null && {
25347          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25348          test ! -s conftest.err
25349        }; then
25350   ac_header_preproc=yes
25351 else
25352   echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25354
25355   ac_header_preproc=no
25356 fi
25357
25358 rm -f conftest.err conftest.$ac_ext
25359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25360 echo "${ECHO_T}$ac_header_preproc" >&6; }
25361
25362 # So?  What about this header?
25363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25364   yes:no: )
25365     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25367     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25369     ac_header_preproc=yes
25370     ;;
25371   no:yes:* )
25372     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25373 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25374     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25375 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25376     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25377 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25378     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25379 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25380     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25381 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25382     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25383 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25384
25385     ;;
25386 esac
25387 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25388 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25390   echo $ECHO_N "(cached) $ECHO_C" >&6
25391 else
25392   eval "$as_ac_Header=\$ac_header_preproc"
25393 fi
25394 ac_res=`eval echo '${'$as_ac_Header'}'`
25395                { echo "$as_me:$LINENO: result: $ac_res" >&5
25396 echo "${ECHO_T}$ac_res" >&6; }
25397
25398 fi
25399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25400
25401
25402 cat >>confdefs.h <<\_ACEOF
25403 #define HAVE_READLINE 1
25404 _ACEOF
25405
25406                         got_readline="yes"
25407                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25408                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25409                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25410                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25411
25412 else
25413
25414                         echo " "
25415                         echo "readline.h not found. readline turned off ..."
25416                         echo " "
25417
25418
25419 fi
25420
25421
25422
25423
25424 fi
25425
25426
25427
25428
25429 fi
25430
25431 fi
25432
25433
25434
25435
25436
25437
25438
25439
25440 MAKE_SHELL=/bin/sh
25441
25442 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25443 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25444 if test "${ac_cv_header_stat_broken+set}" = set; then
25445   echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447   cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453 #include <sys/types.h>
25454 #include <sys/stat.h>
25455
25456 #if defined S_ISBLK && defined S_IFDIR
25457 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25458 #endif
25459
25460 #if defined S_ISBLK && defined S_IFCHR
25461 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25462 #endif
25463
25464 #if defined S_ISLNK && defined S_IFREG
25465 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25466 #endif
25467
25468 #if defined S_ISSOCK && defined S_IFREG
25469 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25470 #endif
25471
25472 _ACEOF
25473 rm -f conftest.$ac_objext
25474 if { (ac_try="$ac_compile"
25475 case "(($ac_try" in
25476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25477   *) ac_try_echo=$ac_try;;
25478 esac
25479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25480   (eval "$ac_compile") 2>conftest.er1
25481   ac_status=$?
25482   grep -v '^ *+' conftest.er1 >conftest.err
25483   rm -f conftest.er1
25484   cat conftest.err >&5
25485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486   (exit $ac_status); } && {
25487          test -z "$ac_c_werror_flag" ||
25488          test ! -s conftest.err
25489        } && test -s conftest.$ac_objext; then
25490   ac_cv_header_stat_broken=no
25491 else
25492   echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25494
25495         ac_cv_header_stat_broken=yes
25496 fi
25497
25498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25499 fi
25500 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25501 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25502 if test $ac_cv_header_stat_broken = yes; then
25503
25504 cat >>confdefs.h <<\_ACEOF
25505 #define STAT_MACROS_BROKEN 1
25506 _ACEOF
25507
25508 fi
25509
25510
25511
25512
25513
25514
25515 ac_header_dirent=no
25516 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25517   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25518 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25519 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25521   echo $ECHO_N "(cached) $ECHO_C" >&6
25522 else
25523   cat >conftest.$ac_ext <<_ACEOF
25524 /* confdefs.h.  */
25525 _ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h.  */
25529 #include <sys/types.h>
25530 #include <$ac_hdr>
25531
25532 int
25533 main ()
25534 {
25535 if ((DIR *) 0)
25536 return 0;
25537   ;
25538   return 0;
25539 }
25540 _ACEOF
25541 rm -f conftest.$ac_objext
25542 if { (ac_try="$ac_compile"
25543 case "(($ac_try" in
25544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545   *) ac_try_echo=$ac_try;;
25546 esac
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548   (eval "$ac_compile") 2>conftest.er1
25549   ac_status=$?
25550   grep -v '^ *+' conftest.er1 >conftest.err
25551   rm -f conftest.er1
25552   cat conftest.err >&5
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); } && {
25555          test -z "$ac_c_werror_flag" ||
25556          test ! -s conftest.err
25557        } && test -s conftest.$ac_objext; then
25558   eval "$as_ac_Header=yes"
25559 else
25560   echo "$as_me: failed program was:" >&5
25561 sed 's/^/| /' conftest.$ac_ext >&5
25562
25563         eval "$as_ac_Header=no"
25564 fi
25565
25566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25567 fi
25568 ac_res=`eval echo '${'$as_ac_Header'}'`
25569                { echo "$as_me:$LINENO: result: $ac_res" >&5
25570 echo "${ECHO_T}$ac_res" >&6; }
25571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25572   cat >>confdefs.h <<_ACEOF
25573 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25574 _ACEOF
25575
25576 ac_header_dirent=$ac_hdr; break
25577 fi
25578
25579 done
25580 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25581 if test $ac_header_dirent = dirent.h; then
25582   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25583 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25584 if test "${ac_cv_search_opendir+set}" = set; then
25585   echo $ECHO_N "(cached) $ECHO_C" >&6
25586 else
25587   ac_func_search_save_LIBS=$LIBS
25588 cat >conftest.$ac_ext <<_ACEOF
25589 /* confdefs.h.  */
25590 _ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h.  */
25594
25595 /* Override any GCC internal prototype to avoid an error.
25596    Use char because int might match the return type of a GCC
25597    builtin and then its argument prototype would still apply.  */
25598 #ifdef __cplusplus
25599 extern "C"
25600 #endif
25601 char opendir ();
25602 int
25603 main ()
25604 {
25605 return opendir ();
25606   ;
25607   return 0;
25608 }
25609 _ACEOF
25610 for ac_lib in '' dir; do
25611   if test -z "$ac_lib"; then
25612     ac_res="none required"
25613   else
25614     ac_res=-l$ac_lib
25615     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25616   fi
25617   rm -f conftest.$ac_objext conftest$ac_exeext
25618 if { (ac_try="$ac_link"
25619 case "(($ac_try" in
25620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621   *) ac_try_echo=$ac_try;;
25622 esac
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624   (eval "$ac_link") 2>conftest.er1
25625   ac_status=$?
25626   grep -v '^ *+' conftest.er1 >conftest.err
25627   rm -f conftest.er1
25628   cat conftest.err >&5
25629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630   (exit $ac_status); } && {
25631          test -z "$ac_c_werror_flag" ||
25632          test ! -s conftest.err
25633        } && test -s conftest$ac_exeext &&
25634        $as_test_x conftest$ac_exeext; then
25635   ac_cv_search_opendir=$ac_res
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640
25641 fi
25642
25643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25644       conftest$ac_exeext
25645   if test "${ac_cv_search_opendir+set}" = set; then
25646   break
25647 fi
25648 done
25649 if test "${ac_cv_search_opendir+set}" = set; then
25650   :
25651 else
25652   ac_cv_search_opendir=no
25653 fi
25654 rm conftest.$ac_ext
25655 LIBS=$ac_func_search_save_LIBS
25656 fi
25657 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25658 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25659 ac_res=$ac_cv_search_opendir
25660 if test "$ac_res" != no; then
25661   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25662
25663 fi
25664
25665 else
25666   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25667 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25668 if test "${ac_cv_search_opendir+set}" = set; then
25669   echo $ECHO_N "(cached) $ECHO_C" >&6
25670 else
25671   ac_func_search_save_LIBS=$LIBS
25672 cat >conftest.$ac_ext <<_ACEOF
25673 /* confdefs.h.  */
25674 _ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h.  */
25678
25679 /* Override any GCC internal prototype to avoid an error.
25680    Use char because int might match the return type of a GCC
25681    builtin and then its argument prototype would still apply.  */
25682 #ifdef __cplusplus
25683 extern "C"
25684 #endif
25685 char opendir ();
25686 int
25687 main ()
25688 {
25689 return opendir ();
25690   ;
25691   return 0;
25692 }
25693 _ACEOF
25694 for ac_lib in '' x; do
25695   if test -z "$ac_lib"; then
25696     ac_res="none required"
25697   else
25698     ac_res=-l$ac_lib
25699     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25700   fi
25701   rm -f conftest.$ac_objext conftest$ac_exeext
25702 if { (ac_try="$ac_link"
25703 case "(($ac_try" in
25704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705   *) ac_try_echo=$ac_try;;
25706 esac
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708   (eval "$ac_link") 2>conftest.er1
25709   ac_status=$?
25710   grep -v '^ *+' conftest.er1 >conftest.err
25711   rm -f conftest.er1
25712   cat conftest.err >&5
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } && {
25715          test -z "$ac_c_werror_flag" ||
25716          test ! -s conftest.err
25717        } && test -s conftest$ac_exeext &&
25718        $as_test_x conftest$ac_exeext; then
25719   ac_cv_search_opendir=$ac_res
25720 else
25721   echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25723
25724
25725 fi
25726
25727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25728       conftest$ac_exeext
25729   if test "${ac_cv_search_opendir+set}" = set; then
25730   break
25731 fi
25732 done
25733 if test "${ac_cv_search_opendir+set}" = set; then
25734   :
25735 else
25736   ac_cv_search_opendir=no
25737 fi
25738 rm conftest.$ac_ext
25739 LIBS=$ac_func_search_save_LIBS
25740 fi
25741 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25742 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25743 ac_res=$ac_cv_search_opendir
25744 if test "$ac_res" != no; then
25745   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25746
25747 fi
25748
25749 fi
25750
25751
25752
25753
25754
25755
25756
25757
25758 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25759 do
25760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25764   echo $ECHO_N "(cached) $ECHO_C" >&6
25765 else
25766   cat >conftest.$ac_ext <<_ACEOF
25767 /* confdefs.h.  */
25768 _ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h.  */
25772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25774 #define $ac_func innocuous_$ac_func
25775
25776 /* System header to define __stub macros and hopefully few prototypes,
25777     which can conflict with char $ac_func (); below.
25778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25779     <limits.h> exists even on freestanding compilers.  */
25780
25781 #ifdef __STDC__
25782 # include <limits.h>
25783 #else
25784 # include <assert.h>
25785 #endif
25786
25787 #undef $ac_func
25788
25789 /* Override any GCC internal prototype to avoid an error.
25790    Use char because int might match the return type of a GCC
25791    builtin and then its argument prototype would still apply.  */
25792 #ifdef __cplusplus
25793 extern "C"
25794 #endif
25795 char $ac_func ();
25796 /* The GNU C library defines this for functions which it implements
25797     to always fail with ENOSYS.  Some functions are actually named
25798     something starting with __ and the normal name is an alias.  */
25799 #if defined __stub_$ac_func || defined __stub___$ac_func
25800 choke me
25801 #endif
25802
25803 int
25804 main ()
25805 {
25806 return $ac_func ();
25807   ;
25808   return 0;
25809 }
25810 _ACEOF
25811 rm -f conftest.$ac_objext conftest$ac_exeext
25812 if { (ac_try="$ac_link"
25813 case "(($ac_try" in
25814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25815   *) ac_try_echo=$ac_try;;
25816 esac
25817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25818   (eval "$ac_link") 2>conftest.er1
25819   ac_status=$?
25820   grep -v '^ *+' conftest.er1 >conftest.err
25821   rm -f conftest.er1
25822   cat conftest.err >&5
25823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824   (exit $ac_status); } && {
25825          test -z "$ac_c_werror_flag" ||
25826          test ! -s conftest.err
25827        } && test -s conftest$ac_exeext &&
25828        $as_test_x conftest$ac_exeext; then
25829   eval "$as_ac_var=yes"
25830 else
25831   echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25833
25834         eval "$as_ac_var=no"
25835 fi
25836
25837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25838       conftest$ac_exeext conftest.$ac_ext
25839 fi
25840 ac_res=`eval echo '${'$as_ac_var'}'`
25841                { echo "$as_me:$LINENO: result: $ac_res" >&5
25842 echo "${ECHO_T}$ac_res" >&6; }
25843 if test `eval echo '${'$as_ac_var'}'` = yes; then
25844   cat >>confdefs.h <<_ACEOF
25845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25846 _ACEOF
25847
25848 fi
25849 done
25850
25851
25852
25853 for ac_func in nanosleep nl_langinfo
25854 do
25855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25859   echo $ECHO_N "(cached) $ECHO_C" >&6
25860 else
25861   cat >conftest.$ac_ext <<_ACEOF
25862 /* confdefs.h.  */
25863 _ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h.  */
25867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25869 #define $ac_func innocuous_$ac_func
25870
25871 /* System header to define __stub macros and hopefully few prototypes,
25872     which can conflict with char $ac_func (); below.
25873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25874     <limits.h> exists even on freestanding compilers.  */
25875
25876 #ifdef __STDC__
25877 # include <limits.h>
25878 #else
25879 # include <assert.h>
25880 #endif
25881
25882 #undef $ac_func
25883
25884 /* Override any GCC internal prototype to avoid an error.
25885    Use char because int might match the return type of a GCC
25886    builtin and then its argument prototype would still apply.  */
25887 #ifdef __cplusplus
25888 extern "C"
25889 #endif
25890 char $ac_func ();
25891 /* The GNU C library defines this for functions which it implements
25892     to always fail with ENOSYS.  Some functions are actually named
25893     something starting with __ and the normal name is an alias.  */
25894 #if defined __stub_$ac_func || defined __stub___$ac_func
25895 choke me
25896 #endif
25897
25898 int
25899 main ()
25900 {
25901 return $ac_func ();
25902   ;
25903   return 0;
25904 }
25905 _ACEOF
25906 rm -f conftest.$ac_objext conftest$ac_exeext
25907 if { (ac_try="$ac_link"
25908 case "(($ac_try" in
25909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910   *) ac_try_echo=$ac_try;;
25911 esac
25912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25913   (eval "$ac_link") 2>conftest.er1
25914   ac_status=$?
25915   grep -v '^ *+' conftest.er1 >conftest.err
25916   rm -f conftest.er1
25917   cat conftest.err >&5
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); } && {
25920          test -z "$ac_c_werror_flag" ||
25921          test ! -s conftest.err
25922        } && test -s conftest$ac_exeext &&
25923        $as_test_x conftest$ac_exeext; then
25924   eval "$as_ac_var=yes"
25925 else
25926   echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25928
25929         eval "$as_ac_var=no"
25930 fi
25931
25932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25933       conftest$ac_exeext conftest.$ac_ext
25934 fi
25935 ac_res=`eval echo '${'$as_ac_var'}'`
25936                { echo "$as_me:$LINENO: result: $ac_res" >&5
25937 echo "${ECHO_T}$ac_res" >&6; }
25938 if test `eval echo '${'$as_ac_var'}'` = yes; then
25939   cat >>confdefs.h <<_ACEOF
25940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25941 _ACEOF
25942
25943 fi
25944 done
25945
25946
25947 for ac_header in varargs.h
25948 do
25949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25951   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25954   echo $ECHO_N "(cached) $ECHO_C" >&6
25955 fi
25956 ac_res=`eval echo '${'$as_ac_Header'}'`
25957                { echo "$as_me:$LINENO: result: $ac_res" >&5
25958 echo "${ECHO_T}$ac_res" >&6; }
25959 else
25960   # Is the header compilable?
25961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25963 cat >conftest.$ac_ext <<_ACEOF
25964 /* confdefs.h.  */
25965 _ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h.  */
25969 $ac_includes_default
25970 #include <$ac_header>
25971 _ACEOF
25972 rm -f conftest.$ac_objext
25973 if { (ac_try="$ac_compile"
25974 case "(($ac_try" in
25975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976   *) ac_try_echo=$ac_try;;
25977 esac
25978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979   (eval "$ac_compile") 2>conftest.er1
25980   ac_status=$?
25981   grep -v '^ *+' conftest.er1 >conftest.err
25982   rm -f conftest.er1
25983   cat conftest.err >&5
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); } && {
25986          test -z "$ac_c_werror_flag" ||
25987          test ! -s conftest.err
25988        } && test -s conftest.$ac_objext; then
25989   ac_header_compiler=yes
25990 else
25991   echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25993
25994         ac_header_compiler=no
25995 fi
25996
25997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25999 echo "${ECHO_T}$ac_header_compiler" >&6; }
26000
26001 # Is the header present?
26002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26004 cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010 #include <$ac_header>
26011 _ACEOF
26012 if { (ac_try="$ac_cpp conftest.$ac_ext"
26013 case "(($ac_try" in
26014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26015   *) ac_try_echo=$ac_try;;
26016 esac
26017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26019   ac_status=$?
26020   grep -v '^ *+' conftest.er1 >conftest.err
26021   rm -f conftest.er1
26022   cat conftest.err >&5
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); } >/dev/null && {
26025          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26026          test ! -s conftest.err
26027        }; then
26028   ac_header_preproc=yes
26029 else
26030   echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26032
26033   ac_header_preproc=no
26034 fi
26035
26036 rm -f conftest.err conftest.$ac_ext
26037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26038 echo "${ECHO_T}$ac_header_preproc" >&6; }
26039
26040 # So?  What about this header?
26041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26042   yes:no: )
26043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26047     ac_header_preproc=yes
26048     ;;
26049   no:yes:* )
26050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26062
26063     ;;
26064 esac
26065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26068   echo $ECHO_N "(cached) $ECHO_C" >&6
26069 else
26070   eval "$as_ac_Header=\$ac_header_preproc"
26071 fi
26072 ac_res=`eval echo '${'$as_ac_Header'}'`
26073                { echo "$as_me:$LINENO: result: $ac_res" >&5
26074 echo "${ECHO_T}$ac_res" >&6; }
26075
26076 fi
26077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26078   cat >>confdefs.h <<_ACEOF
26079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26080 _ACEOF
26081
26082 fi
26083
26084 done
26085
26086
26087
26088 { echo "$as_me:$LINENO: checking for Python support" >&5
26089 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26090
26091 # Check whether --with-python was given.
26092 if test "${with_python+set}" = set; then
26093   withval=$with_python;
26094        PYTHON_INCDIR=
26095        PYTHON_LIBS=
26096        if test "$withval" != "no"; then
26097           if test "$withval" = "yes"; then
26098              for python_root in /usr /usr/local /usr/sfw; do
26099                 for ver in python2.2 python2.3 python2.4 python2.5; do
26100                    if test -f $python_root/include/${ver}/Python.h; then
26101                       PYTHON_INCDIR=-I$python_root/include/${ver}
26102                       if test -d $python_root/lib64/${ver}/config; then
26103                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26104                       else
26105                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26106                       fi
26107                       break
26108                    fi
26109                 done
26110              done
26111
26112              if test x$PYTHON_INCDIR = x; then
26113                 if test -f $prefix/include/Python.h; then
26114                    PYTHON_INCDIR=-I$prefix/include
26115                    if test -d $prefix/lib64/config; then
26116                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26117                    else
26118                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26119                    fi
26120                 else
26121                    { echo "$as_me:$LINENO: result: no" >&5
26122 echo "${ECHO_T}no" >&6; }
26123                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26124 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26125    { (exit 1); exit 1; }; }
26126                 fi
26127              fi
26128           else
26129              if test -f $withval/Python.h; then
26130                 PYTHON_INCDIR=-I$withval
26131                 PYTHON_LIBS="-L$withval/config -lpython"
26132              elif test -f $withval/include/Python.h; then
26133                 PYTHON_INCDIR=-I$withval/include
26134                 if test -d $withval/lib64/config; then
26135                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26136                 else
26137                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26138                 fi
26139              elif test -f $withval/include/python/Python.h; then
26140                 PYTHON_INCDIR=-I$withval/include/python
26141                 if test -d $withval/lib64/python/config; then
26142                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26143                 else
26144                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26145                 fi
26146              else
26147                 { echo "$as_me:$LINENO: result: no" >&5
26148 echo "${ECHO_T}no" >&6; }
26149                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26150 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26151    { (exit 1); exit 1; }; }
26152              fi
26153           fi
26154
26155           cat >>confdefs.h <<\_ACEOF
26156 #define HAVE_PYTHON 1
26157 _ACEOF
26158
26159           { echo "$as_me:$LINENO: result: yes" >&5
26160 echo "${ECHO_T}yes" >&6; }
26161           support_python=yes
26162           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26163 echo "$as_me: checking for more Python libs" >&6;}
26164           saved_LIBS="$LIBS"; LIBS=
26165           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26166 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26167 if test "${ac_cv_search_shm_open+set}" = set; then
26168   echo $ECHO_N "(cached) $ECHO_C" >&6
26169 else
26170   ac_func_search_save_LIBS=$LIBS
26171 cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h.  */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h.  */
26177
26178 /* Override any GCC internal prototype to avoid an error.
26179    Use char because int might match the return type of a GCC
26180    builtin and then its argument prototype would still apply.  */
26181 #ifdef __cplusplus
26182 extern "C"
26183 #endif
26184 char shm_open ();
26185 int
26186 main ()
26187 {
26188 return shm_open ();
26189   ;
26190   return 0;
26191 }
26192 _ACEOF
26193 for ac_lib in '' rt; do
26194   if test -z "$ac_lib"; then
26195     ac_res="none required"
26196   else
26197     ac_res=-l$ac_lib
26198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26199   fi
26200   rm -f conftest.$ac_objext conftest$ac_exeext
26201 if { (ac_try="$ac_link"
26202 case "(($ac_try" in
26203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204   *) ac_try_echo=$ac_try;;
26205 esac
26206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26207   (eval "$ac_link") 2>conftest.er1
26208   ac_status=$?
26209   grep -v '^ *+' conftest.er1 >conftest.err
26210   rm -f conftest.er1
26211   cat conftest.err >&5
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); } && {
26214          test -z "$ac_c_werror_flag" ||
26215          test ! -s conftest.err
26216        } && test -s conftest$ac_exeext &&
26217        $as_test_x conftest$ac_exeext; then
26218   ac_cv_search_shm_open=$ac_res
26219 else
26220   echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26222
26223
26224 fi
26225
26226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26227       conftest$ac_exeext
26228   if test "${ac_cv_search_shm_open+set}" = set; then
26229   break
26230 fi
26231 done
26232 if test "${ac_cv_search_shm_open+set}" = set; then
26233   :
26234 else
26235   ac_cv_search_shm_open=no
26236 fi
26237 rm conftest.$ac_ext
26238 LIBS=$ac_func_search_save_LIBS
26239 fi
26240 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26241 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26242 ac_res=$ac_cv_search_shm_open
26243 if test "$ac_res" != no; then
26244   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26245
26246 fi
26247
26248
26249 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26250 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26251 if test "${ac_cv_lib_util_openpty+set}" = set; then
26252   echo $ECHO_N "(cached) $ECHO_C" >&6
26253 else
26254   ac_check_lib_save_LIBS=$LIBS
26255 LIBS="-lutil  $LIBS"
26256 cat >conftest.$ac_ext <<_ACEOF
26257 /* confdefs.h.  */
26258 _ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h.  */
26262
26263 /* Override any GCC internal prototype to avoid an error.
26264    Use char because int might match the return type of a GCC
26265    builtin and then its argument prototype would still apply.  */
26266 #ifdef __cplusplus
26267 extern "C"
26268 #endif
26269 char openpty ();
26270 int
26271 main ()
26272 {
26273 return openpty ();
26274   ;
26275   return 0;
26276 }
26277 _ACEOF
26278 rm -f conftest.$ac_objext conftest$ac_exeext
26279 if { (ac_try="$ac_link"
26280 case "(($ac_try" in
26281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282   *) ac_try_echo=$ac_try;;
26283 esac
26284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26285   (eval "$ac_link") 2>conftest.er1
26286   ac_status=$?
26287   grep -v '^ *+' conftest.er1 >conftest.err
26288   rm -f conftest.er1
26289   cat conftest.err >&5
26290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291   (exit $ac_status); } && {
26292          test -z "$ac_c_werror_flag" ||
26293          test ! -s conftest.err
26294        } && test -s conftest$ac_exeext &&
26295        $as_test_x conftest$ac_exeext; then
26296   ac_cv_lib_util_openpty=yes
26297 else
26298   echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26300
26301         ac_cv_lib_util_openpty=no
26302 fi
26303
26304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26305       conftest$ac_exeext conftest.$ac_ext
26306 LIBS=$ac_check_lib_save_LIBS
26307 fi
26308 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26309 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26310 if test $ac_cv_lib_util_openpty = yes; then
26311   cat >>confdefs.h <<_ACEOF
26312 #define HAVE_LIBUTIL 1
26313 _ACEOF
26314
26315   LIBS="-lutil $LIBS"
26316
26317 fi
26318
26319           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26320           LIBS="$saved_LIBS"
26321        else
26322           { echo "$as_me:$LINENO: result: no" >&5
26323 echo "${ECHO_T}no" >&6; }
26324        fi
26325
26326 else
26327
26328        { echo "$as_me:$LINENO: result: no" >&5
26329 echo "${ECHO_T}no" >&6; }
26330
26331
26332 fi
26333
26334
26335
26336
26337 { echo "$as_me:$LINENO: checking for socket" >&5
26338 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26339 if test "${ac_cv_func_socket+set}" = set; then
26340   echo $ECHO_N "(cached) $ECHO_C" >&6
26341 else
26342   cat >conftest.$ac_ext <<_ACEOF
26343 /* confdefs.h.  */
26344 _ACEOF
26345 cat confdefs.h >>conftest.$ac_ext
26346 cat >>conftest.$ac_ext <<_ACEOF
26347 /* end confdefs.h.  */
26348 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26350 #define socket innocuous_socket
26351
26352 /* System header to define __stub macros and hopefully few prototypes,
26353     which can conflict with char socket (); below.
26354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26355     <limits.h> exists even on freestanding compilers.  */
26356
26357 #ifdef __STDC__
26358 # include <limits.h>
26359 #else
26360 # include <assert.h>
26361 #endif
26362
26363 #undef socket
26364
26365 /* Override any GCC internal prototype to avoid an error.
26366    Use char because int might match the return type of a GCC
26367    builtin and then its argument prototype would still apply.  */
26368 #ifdef __cplusplus
26369 extern "C"
26370 #endif
26371 char socket ();
26372 /* The GNU C library defines this for functions which it implements
26373     to always fail with ENOSYS.  Some functions are actually named
26374     something starting with __ and the normal name is an alias.  */
26375 #if defined __stub_socket || defined __stub___socket
26376 choke me
26377 #endif
26378
26379 int
26380 main ()
26381 {
26382 return socket ();
26383   ;
26384   return 0;
26385 }
26386 _ACEOF
26387 rm -f conftest.$ac_objext conftest$ac_exeext
26388 if { (ac_try="$ac_link"
26389 case "(($ac_try" in
26390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391   *) ac_try_echo=$ac_try;;
26392 esac
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394   (eval "$ac_link") 2>conftest.er1
26395   ac_status=$?
26396   grep -v '^ *+' conftest.er1 >conftest.err
26397   rm -f conftest.er1
26398   cat conftest.err >&5
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); } && {
26401          test -z "$ac_c_werror_flag" ||
26402          test ! -s conftest.err
26403        } && test -s conftest$ac_exeext &&
26404        $as_test_x conftest$ac_exeext; then
26405   ac_cv_func_socket=yes
26406 else
26407   echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26409
26410         ac_cv_func_socket=no
26411 fi
26412
26413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26414       conftest$ac_exeext conftest.$ac_ext
26415 fi
26416 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26417 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26418 if test $ac_cv_func_socket = yes; then
26419   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26420 echo "${ECHO_T}using libc's socket" >&6; }
26421 else
26422
26423 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26424 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26425 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26426   echo $ECHO_N "(cached) $ECHO_C" >&6
26427 else
26428   ac_check_lib_save_LIBS=$LIBS
26429 LIBS="-lxnet  $LIBS"
26430 cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436
26437 /* Override any GCC internal prototype to avoid an error.
26438    Use char because int might match the return type of a GCC
26439    builtin and then its argument prototype would still apply.  */
26440 #ifdef __cplusplus
26441 extern "C"
26442 #endif
26443 char socket ();
26444 int
26445 main ()
26446 {
26447 return socket ();
26448   ;
26449   return 0;
26450 }
26451 _ACEOF
26452 rm -f conftest.$ac_objext conftest$ac_exeext
26453 if { (ac_try="$ac_link"
26454 case "(($ac_try" in
26455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26456   *) ac_try_echo=$ac_try;;
26457 esac
26458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26459   (eval "$ac_link") 2>conftest.er1
26460   ac_status=$?
26461   grep -v '^ *+' conftest.er1 >conftest.err
26462   rm -f conftest.er1
26463   cat conftest.err >&5
26464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465   (exit $ac_status); } && {
26466          test -z "$ac_c_werror_flag" ||
26467          test ! -s conftest.err
26468        } && test -s conftest$ac_exeext &&
26469        $as_test_x conftest$ac_exeext; then
26470   ac_cv_lib_xnet_socket=yes
26471 else
26472   echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26474
26475         ac_cv_lib_xnet_socket=no
26476 fi
26477
26478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26479       conftest$ac_exeext conftest.$ac_ext
26480 LIBS=$ac_check_lib_save_LIBS
26481 fi
26482 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26483 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26484 if test $ac_cv_lib_xnet_socket = yes; then
26485   cat >>confdefs.h <<_ACEOF
26486 #define HAVE_LIBXNET 1
26487 _ACEOF
26488
26489   LIBS="-lxnet $LIBS"
26490
26491 fi
26492
26493
26494 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26495 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26496 if test "${ac_cv_lib_socket_socket+set}" = set; then
26497   echo $ECHO_N "(cached) $ECHO_C" >&6
26498 else
26499   ac_check_lib_save_LIBS=$LIBS
26500 LIBS="-lsocket  $LIBS"
26501 cat >conftest.$ac_ext <<_ACEOF
26502 /* confdefs.h.  */
26503 _ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h.  */
26507
26508 /* Override any GCC internal prototype to avoid an error.
26509    Use char because int might match the return type of a GCC
26510    builtin and then its argument prototype would still apply.  */
26511 #ifdef __cplusplus
26512 extern "C"
26513 #endif
26514 char socket ();
26515 int
26516 main ()
26517 {
26518 return socket ();
26519   ;
26520   return 0;
26521 }
26522 _ACEOF
26523 rm -f conftest.$ac_objext conftest$ac_exeext
26524 if { (ac_try="$ac_link"
26525 case "(($ac_try" in
26526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26527   *) ac_try_echo=$ac_try;;
26528 esac
26529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26530   (eval "$ac_link") 2>conftest.er1
26531   ac_status=$?
26532   grep -v '^ *+' conftest.er1 >conftest.err
26533   rm -f conftest.er1
26534   cat conftest.err >&5
26535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536   (exit $ac_status); } && {
26537          test -z "$ac_c_werror_flag" ||
26538          test ! -s conftest.err
26539        } && test -s conftest$ac_exeext &&
26540        $as_test_x conftest$ac_exeext; then
26541   ac_cv_lib_socket_socket=yes
26542 else
26543   echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26545
26546         ac_cv_lib_socket_socket=no
26547 fi
26548
26549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26550       conftest$ac_exeext conftest.$ac_ext
26551 LIBS=$ac_check_lib_save_LIBS
26552 fi
26553 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26554 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26555 if test $ac_cv_lib_socket_socket = yes; then
26556   cat >>confdefs.h <<_ACEOF
26557 #define HAVE_LIBSOCKET 1
26558 _ACEOF
26559
26560   LIBS="-lsocket $LIBS"
26561
26562 fi
26563
26564
26565 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26566 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26567 if test "${ac_cv_lib_inet_socket+set}" = set; then
26568   echo $ECHO_N "(cached) $ECHO_C" >&6
26569 else
26570   ac_check_lib_save_LIBS=$LIBS
26571 LIBS="-linet  $LIBS"
26572 cat >conftest.$ac_ext <<_ACEOF
26573 /* confdefs.h.  */
26574 _ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h.  */
26578
26579 /* Override any GCC internal prototype to avoid an error.
26580    Use char because int might match the return type of a GCC
26581    builtin and then its argument prototype would still apply.  */
26582 #ifdef __cplusplus
26583 extern "C"
26584 #endif
26585 char socket ();
26586 int
26587 main ()
26588 {
26589 return socket ();
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 rm -f conftest.$ac_objext conftest$ac_exeext
26595 if { (ac_try="$ac_link"
26596 case "(($ac_try" in
26597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598   *) ac_try_echo=$ac_try;;
26599 esac
26600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26601   (eval "$ac_link") 2>conftest.er1
26602   ac_status=$?
26603   grep -v '^ *+' conftest.er1 >conftest.err
26604   rm -f conftest.er1
26605   cat conftest.err >&5
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); } && {
26608          test -z "$ac_c_werror_flag" ||
26609          test ! -s conftest.err
26610        } && test -s conftest$ac_exeext &&
26611        $as_test_x conftest$ac_exeext; then
26612   ac_cv_lib_inet_socket=yes
26613 else
26614   echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26616
26617         ac_cv_lib_inet_socket=no
26618 fi
26619
26620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26621       conftest$ac_exeext conftest.$ac_ext
26622 LIBS=$ac_check_lib_save_LIBS
26623 fi
26624 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26625 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26626 if test $ac_cv_lib_inet_socket = yes; then
26627   cat >>confdefs.h <<_ACEOF
26628 #define HAVE_LIBINET 1
26629 _ACEOF
26630
26631   LIBS="-linet $LIBS"
26632
26633 fi
26634
26635 fi
26636
26637
26638 TCPW_MSG="no"
26639 WRAPLIBS=""
26640
26641 # Check whether --with-tcp-wrappers was given.
26642 if test "${with_tcp_wrappers+set}" = set; then
26643   withval=$with_tcp_wrappers;
26644        if test "x$withval" != "xno" ; then
26645           saved_LIBS="$LIBS"
26646           LIBS="$saved_LIBS -lwrap"
26647           { echo "$as_me:$LINENO: checking for libwrap" >&5
26648 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26649           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26650 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26651 if test "${ac_cv_search_nanosleep+set}" = set; then
26652   echo $ECHO_N "(cached) $ECHO_C" >&6
26653 else
26654   ac_func_search_save_LIBS=$LIBS
26655 cat >conftest.$ac_ext <<_ACEOF
26656 /* confdefs.h.  */
26657 _ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h.  */
26661
26662 /* Override any GCC internal prototype to avoid an error.
26663    Use char because int might match the return type of a GCC
26664    builtin and then its argument prototype would still apply.  */
26665 #ifdef __cplusplus
26666 extern "C"
26667 #endif
26668 char nanosleep ();
26669 int
26670 main ()
26671 {
26672 return nanosleep ();
26673   ;
26674   return 0;
26675 }
26676 _ACEOF
26677 for ac_lib in '' rt; do
26678   if test -z "$ac_lib"; then
26679     ac_res="none required"
26680   else
26681     ac_res=-l$ac_lib
26682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26683   fi
26684   rm -f conftest.$ac_objext conftest$ac_exeext
26685 if { (ac_try="$ac_link"
26686 case "(($ac_try" in
26687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688   *) ac_try_echo=$ac_try;;
26689 esac
26690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691   (eval "$ac_link") 2>conftest.er1
26692   ac_status=$?
26693   grep -v '^ *+' conftest.er1 >conftest.err
26694   rm -f conftest.er1
26695   cat conftest.err >&5
26696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697   (exit $ac_status); } && {
26698          test -z "$ac_c_werror_flag" ||
26699          test ! -s conftest.err
26700        } && test -s conftest$ac_exeext &&
26701        $as_test_x conftest$ac_exeext; then
26702   ac_cv_search_nanosleep=$ac_res
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707
26708 fi
26709
26710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26711       conftest$ac_exeext
26712   if test "${ac_cv_search_nanosleep+set}" = set; then
26713   break
26714 fi
26715 done
26716 if test "${ac_cv_search_nanosleep+set}" = set; then
26717   :
26718 else
26719   ac_cv_search_nanosleep=no
26720 fi
26721 rm conftest.$ac_ext
26722 LIBS=$ac_func_search_save_LIBS
26723 fi
26724 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26725 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26726 ac_res=$ac_cv_search_nanosleep
26727 if test "$ac_res" != no; then
26728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26729
26730 fi
26731
26732           cat >conftest.$ac_ext <<_ACEOF
26733 /* confdefs.h.  */
26734 _ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h.  */
26738
26739                #include <sys/types.h>
26740                #include <tcpd.h>
26741                int deny_severity = 0;
26742                int allow_severity = 0;
26743                struct request_info *req;
26744
26745 int
26746 main ()
26747 {
26748
26749                 hosts_access(req);
26750
26751   ;
26752   return 0;
26753 }
26754 _ACEOF
26755 rm -f conftest.$ac_objext conftest$ac_exeext
26756 if { (ac_try="$ac_link"
26757 case "(($ac_try" in
26758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759   *) ac_try_echo=$ac_try;;
26760 esac
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762   (eval "$ac_link") 2>conftest.er1
26763   ac_status=$?
26764   grep -v '^ *+' conftest.er1 >conftest.err
26765   rm -f conftest.er1
26766   cat conftest.err >&5
26767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768   (exit $ac_status); } && {
26769          test -z "$ac_c_werror_flag" ||
26770          test ! -s conftest.err
26771        } && test -s conftest$ac_exeext &&
26772        $as_test_x conftest$ac_exeext; then
26773
26774                  { echo "$as_me:$LINENO: result: yes" >&5
26775 echo "${ECHO_T}yes" >&6; }
26776
26777 cat >>confdefs.h <<\_ACEOF
26778 #define HAVE_LIBWRAP 1
26779 _ACEOF
26780
26781                  TCPW_MSG="yes"
26782                  LIBS="$saved_LIBS"
26783                  WRAPLIBS="-lwrap"
26784
26785 else
26786   echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26788
26789
26790                  LIBS="$saved_LIBS -lwrap -lnsl"
26791                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26792                  cat >conftest.$ac_ext <<_ACEOF
26793 /* confdefs.h.  */
26794 _ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h.  */
26798
26799                        #include <sys/types.h>
26800                        #include <tcpd.h>
26801                        int deny_severity = 0;
26802                        int allow_severity = 0;
26803                        struct request_info *req;
26804
26805 int
26806 main ()
26807 {
26808
26809                        hosts_access(req);
26810
26811   ;
26812   return 0;
26813 }
26814 _ACEOF
26815 rm -f conftest.$ac_objext conftest$ac_exeext
26816 if { (ac_try="$ac_link"
26817 case "(($ac_try" in
26818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819   *) ac_try_echo=$ac_try;;
26820 esac
26821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822   (eval "$ac_link") 2>conftest.er1
26823   ac_status=$?
26824   grep -v '^ *+' conftest.er1 >conftest.err
26825   rm -f conftest.er1
26826   cat conftest.err >&5
26827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828   (exit $ac_status); } && {
26829          test -z "$ac_c_werror_flag" ||
26830          test ! -s conftest.err
26831        } && test -s conftest$ac_exeext &&
26832        $as_test_x conftest$ac_exeext; then
26833
26834                       { echo "$as_me:$LINENO: result: yes" >&5
26835 echo "${ECHO_T}yes" >&6; }
26836
26837 cat >>confdefs.h <<\_ACEOF
26838 #define HAVE_LIBWRAP 1
26839 _ACEOF
26840
26841                       TCPW_MSG="yes"
26842                       LIBS="$saved_LIBS"
26843                       WRAPLIBS="-lwrap"
26844
26845 else
26846   echo "$as_me: failed program was:" >&5
26847 sed 's/^/| /' conftest.$ac_ext >&5
26848
26849
26850                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26851 echo "$as_me: error: *** libwrap missing" >&2;}
26852    { (exit 1); exit 1; }; }
26853
26854
26855 fi
26856
26857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26858       conftest$ac_exeext conftest.$ac_ext
26859
26860
26861 fi
26862
26863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26864       conftest$ac_exeext conftest.$ac_ext
26865        fi
26866
26867
26868 fi
26869
26870
26871 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26872 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26873
26874 # Check whether --with-openssl was given.
26875 if test "${with_openssl+set}" = set; then
26876   withval=$with_openssl;
26877         with_openssl_directory=${withval}
26878
26879
26880 fi
26881
26882
26883 if test "x$with_openssl_directory" != "xno"; then
26884    OPENSSL_LIBS="-lssl -lcrypto"
26885    OPENSSL_INC=""
26886
26887    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26888       #
26889       # Make sure the $with_openssl_directory also makes sense
26890       #
26891       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26892          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26893          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26894       fi
26895    fi
26896
26897    saved_LIBS="${LIBS}"
26898    saved_CFLAGS="${CFLAGS}"
26899    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26900    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26901
26902    cat >conftest.$ac_ext <<_ACEOF
26903 /* confdefs.h.  */
26904 _ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h.  */
26908
26909           #include <openssl/ssl.h>
26910
26911 int
26912 main ()
26913 {
26914
26915            CRYPTO_set_id_callback(NULL);
26916
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 rm -f conftest.$ac_objext conftest$ac_exeext
26922 if { (ac_try="$ac_link"
26923 case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928   (eval "$ac_link") 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } && {
26935          test -z "$ac_c_werror_flag" ||
26936          test ! -s conftest.err
26937        } && test -s conftest$ac_exeext &&
26938        $as_test_x conftest$ac_exeext; then
26939
26940           support_tls="yes"
26941           support_crypto="yes"
26942
26943 else
26944   echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26946
26947
26948           support_tls="no"
26949
26950
26951 fi
26952
26953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26954       conftest$ac_exeext conftest.$ac_ext
26955
26956    cat >conftest.$ac_ext <<_ACEOF
26957 /* confdefs.h.  */
26958 _ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h.  */
26962
26963           #include <openssl/evp.h>
26964
26965 int
26966 main ()
26967 {
26968
26969           EVP_sha512();
26970
26971   ;
26972   return 0;
26973 }
26974 _ACEOF
26975 rm -f conftest.$ac_objext conftest$ac_exeext
26976 if { (ac_try="$ac_link"
26977 case "(($ac_try" in
26978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979   *) ac_try_echo=$ac_try;;
26980 esac
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982   (eval "$ac_link") 2>conftest.er1
26983   ac_status=$?
26984   grep -v '^ *+' conftest.er1 >conftest.err
26985   rm -f conftest.er1
26986   cat conftest.err >&5
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); } && {
26989          test -z "$ac_c_werror_flag" ||
26990          test ! -s conftest.err
26991        } && test -s conftest$ac_exeext &&
26992        $as_test_x conftest$ac_exeext; then
26993
26994           ac_cv_openssl_sha2="yes"
26995
26996 else
26997   echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
26999
27000
27001           ac_cv_openssl_sha2="no"
27002
27003
27004 fi
27005
27006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27007       conftest$ac_exeext conftest.$ac_ext
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/evp.h>
27017
27018 int
27019 main ()
27020 {
27021
27022           EVP_aes_192_cbc();
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           ac_cv_openssl_export="no"
27048
27049 else
27050   echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27052
27053
27054           ac_cv_openssl_export="yes"
27055
27056
27057 fi
27058
27059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27060       conftest$ac_exeext conftest.$ac_ext
27061
27062    LIBS="${saved_LIBS}"
27063    CFLAGS="${saved_CFLAGS}"
27064
27065    if test "$support_tls" = "yes"; then
27066
27067 cat >>confdefs.h <<\_ACEOF
27068 #define HAVE_OPENSSL 1
27069 _ACEOF
27070
27071
27072 cat >>confdefs.h <<\_ACEOF
27073 #define HAVE_TLS 1
27074 _ACEOF
27075
27076
27077 cat >>confdefs.h <<\_ACEOF
27078 #define HAVE_CRYPTO 1
27079 _ACEOF
27080
27081    fi
27082
27083    if test "$ac_cv_openssl_sha2" = "yes"; then
27084
27085 cat >>confdefs.h <<\_ACEOF
27086 #define HAVE_SHA2 1
27087 _ACEOF
27088
27089    fi
27090
27091    if test "$ac_cv_openssl_export" = "yes"; then
27092
27093 cat >>confdefs.h <<\_ACEOF
27094 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27095 _ACEOF
27096
27097    fi
27098 else
27099    support_tls="no"
27100    support_crypto="no"
27101    OPENSSL_LIBS=""
27102    OPENSSL_INC=""
27103 fi
27104
27105 { echo "$as_me:$LINENO: result: $support_tls" >&5
27106 echo "${ECHO_T}$support_tls" >&6; }
27107
27108
27109
27110 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27111 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27112 if test "${ac_cv_search_dlopen+set}" = set; then
27113   echo $ECHO_N "(cached) $ECHO_C" >&6
27114 else
27115   ac_func_search_save_LIBS=$LIBS
27116 cat >conftest.$ac_ext <<_ACEOF
27117 /* confdefs.h.  */
27118 _ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h.  */
27122
27123 /* Override any GCC internal prototype to avoid an error.
27124    Use char because int might match the return type of a GCC
27125    builtin and then its argument prototype would still apply.  */
27126 #ifdef __cplusplus
27127 extern "C"
27128 #endif
27129 char dlopen ();
27130 int
27131 main ()
27132 {
27133 return dlopen ();
27134   ;
27135   return 0;
27136 }
27137 _ACEOF
27138 for ac_lib in '' dl; do
27139   if test -z "$ac_lib"; then
27140     ac_res="none required"
27141   else
27142     ac_res=-l$ac_lib
27143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27144   fi
27145   rm -f conftest.$ac_objext conftest$ac_exeext
27146 if { (ac_try="$ac_link"
27147 case "(($ac_try" in
27148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149   *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152   (eval "$ac_link") 2>conftest.er1
27153   ac_status=$?
27154   grep -v '^ *+' conftest.er1 >conftest.err
27155   rm -f conftest.er1
27156   cat conftest.err >&5
27157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); } && {
27159          test -z "$ac_c_werror_flag" ||
27160          test ! -s conftest.err
27161        } && test -s conftest$ac_exeext &&
27162        $as_test_x conftest$ac_exeext; then
27163   ac_cv_search_dlopen=$ac_res
27164 else
27165   echo "$as_me: failed program was:" >&5
27166 sed 's/^/| /' conftest.$ac_ext >&5
27167
27168
27169 fi
27170
27171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27172       conftest$ac_exeext
27173   if test "${ac_cv_search_dlopen+set}" = set; then
27174   break
27175 fi
27176 done
27177 if test "${ac_cv_search_dlopen+set}" = set; then
27178   :
27179 else
27180   ac_cv_search_dlopen=no
27181 fi
27182 rm conftest.$ac_ext
27183 LIBS=$ac_func_search_save_LIBS
27184 fi
27185 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27186 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27187 ac_res=$ac_cv_search_dlopen
27188 if test "$ac_res" != no; then
27189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27190
27191 fi
27192
27193
27194 working_dir=`eval echo ${prefix}/var/bacula/working`
27195
27196 # Check whether --with-working-dir was given.
27197 if test "${with_working_dir+set}" = set; then
27198   withval=$with_working_dir;
27199        if test "x$withval" != "xno" ; then
27200          working_dir=$withval
27201        fi
27202
27203
27204 fi
27205
27206
27207
27208
27209 archive_dir=/tmp
27210
27211 # Check whether --with-archivedir was given.
27212 if test "${with_archivedir+set}" = set; then
27213   withval=$with_archivedir;
27214        if test "x$withval" != "xno" ; then
27215           archivedir=$withval
27216        fi
27217
27218
27219 fi
27220
27221
27222
27223
27224 scriptdir=`eval echo ${sysconfdir}`
27225
27226 # Check whether --with-scriptdir was given.
27227 if test "${with_scriptdir+set}" = set; then
27228   withval=$with_scriptdir;
27229        if test "x$withval" != "xno" ; then
27230           scriptdir=$withval
27231        fi
27232
27233
27234 fi
27235
27236
27237
27238
27239 # ------------------------------------------
27240 # Where to place plugindir (script files)
27241 # ------------------------------------------
27242 plugindir=`eval echo ${sysconfdir}`
27243
27244 # Check whether --with-plugindir was given.
27245 if test "${with_plugindir+set}" = set; then
27246   withval=$with_plugindir;
27247        if test "x$withval" != "xno" ; then
27248           plugindir=$withval
27249        fi
27250
27251
27252 fi
27253
27254
27255
27256
27257 dump_email=root@localhost
27258
27259 # Check whether --with-dump-email was given.
27260 if test "${with_dump_email+set}" = set; then
27261   withval=$with_dump_email;
27262        if test "x$withval" != "xno" ; then
27263           dump_email=$withval
27264        fi
27265
27266
27267 fi
27268
27269
27270
27271
27272 job_email=root@localhost
27273
27274 # Check whether --with-job-email was given.
27275 if test "${with_job_email+set}" = set; then
27276   withval=$with_job_email;
27277        if test "x$withval" != "xno" ; then
27278           job_email=$withval
27279        fi
27280
27281
27282 fi
27283
27284
27285
27286
27287 smtp_host=localhost
27288
27289 # Check whether --with-smtp_host was given.
27290 if test "${with_smtp_host+set}" = set; then
27291   withval=$with_smtp_host;
27292        if test "x$withval" != "xno" ; then
27293           smtp_host=$withval
27294        fi
27295
27296
27297 fi
27298
27299
27300
27301
27302 piddir=/var/run
27303
27304 # Check whether --with-pid-dir was given.
27305 if test "${with_pid_dir+set}" = set; then
27306   withval=$with_pid_dir;
27307        if test "x$withval" != "xno" ; then
27308           piddir=$withval
27309        fi
27310
27311
27312 fi
27313
27314
27315 cat >>confdefs.h <<_ACEOF
27316 #define _PATH_BACULA_PIDDIR "$piddir"
27317 _ACEOF
27318
27319
27320
27321 subsysdir=/var/run/subsys
27322 if test -d /var/run/subsys; then
27323    subsysdir=/var/run/subsys
27324 elif test -d /var/lock/subsys; then
27325    subsysdir=/var/lock/subsys
27326 else
27327    subsysdir=/var/run/subsys
27328 fi
27329
27330 # Check whether --with-subsys-dir was given.
27331 if test "${with_subsys_dir+set}" = set; then
27332   withval=$with_subsys_dir;
27333        if test "x$withval" != "xno" ; then
27334           subsysdir=$withval
27335        fi
27336
27337
27338 fi
27339
27340
27341
27342
27343 baseport=9101
27344
27345 # Check whether --with-baseport was given.
27346 if test "${with_baseport+set}" = set; then
27347   withval=$with_baseport;
27348        if test "x$withval" != "xno" ; then
27349           baseport=$withval
27350        fi
27351
27352
27353 fi
27354
27355
27356
27357 dir_port=`expr $baseport`
27358 fd_port=`expr $baseport + 1`
27359 sd_port=`expr $fd_port + 1`
27360
27361
27362
27363
27364
27365 dir_password=
27366
27367 # Check whether --with-dir-password was given.
27368 if test "${with_dir_password+set}" = set; then
27369   withval=$with_dir_password;
27370        if test "x$withval" != "xno" ; then
27371           dir_password=$withval
27372        fi
27373
27374
27375 fi
27376
27377
27378 if test "x$dir_password" = "x" ; then
27379    if test "x$OPENSSL" = "xnone" ; then
27380       key=`autoconf/randpass 33`
27381    else
27382       key=`openssl rand -base64 33`
27383    fi
27384    dir_password=$key
27385 fi
27386
27387 fd_password=
27388
27389 # Check whether --with-fd-password was given.
27390 if test "${with_fd_password+set}" = set; then
27391   withval=$with_fd_password;
27392        if test "x$withval" != "xno" ; then
27393           fd_password=$withval
27394        fi
27395
27396
27397 fi
27398
27399
27400 if test "x$fd_password" = "x" ; then
27401    if test "x$OPENSSL" = "xnone" ; then
27402       key=`autoconf/randpass 37`
27403    else
27404       key=`openssl rand -base64 33`
27405    fi
27406    fd_password=$key
27407 fi
27408
27409 sd_password=
27410
27411 # Check whether --with-sd-password was given.
27412 if test "${with_sd_password+set}" = set; then
27413   withval=$with_sd_password;
27414        if test "x$withval" != "xno" ; then
27415           sd_password=$withval
27416        fi
27417
27418
27419 fi
27420
27421
27422 if test "x$sd_password" = "x" ; then
27423    if test "x$OPENSSL" = "xnone" ; then
27424       key=`autoconf/randpass 41`
27425    else
27426       key=`openssl rand -base64 33`
27427    fi
27428    sd_password=$key
27429 fi
27430
27431 mon_dir_password=
27432
27433 # Check whether --with-mon-dir-password was given.
27434 if test "${with_mon_dir_password+set}" = set; then
27435   withval=$with_mon_dir_password;
27436        if test "x$withval" != "xno" ; then
27437           mon_dir_password=$withval
27438        fi
27439
27440
27441 fi
27442
27443
27444 if test "x$mon_dir_password" = "x" ; then
27445    if test "x$OPENSSL" = "xnone" ; then
27446       key=`autoconf/randpass 33`
27447    else
27448       key=`openssl rand -base64 33`
27449    fi
27450    mon_dir_password=$key
27451 fi
27452
27453 mon_fd_password=
27454
27455 # Check whether --with-mon-fd-password was given.
27456 if test "${with_mon_fd_password+set}" = set; then
27457   withval=$with_mon_fd_password;
27458        if test "x$withval" != "xno" ; then
27459           mon_fd_password=$withval
27460        fi
27461
27462
27463 fi
27464
27465
27466 if test "x$mon_fd_password" = "x" ; then
27467    if test "x$OPENSSL" = "xnone" ; then
27468       key=`autoconf/randpass 37`
27469    else
27470       key=`openssl rand -base64 33`
27471    fi
27472    mon_fd_password=$key
27473 fi
27474
27475 mon_sd_password=
27476
27477 # Check whether --with-mon-sd-password was given.
27478 if test "${with_mon_sd_password+set}" = set; then
27479   withval=$with_mon_sd_password;
27480        if test "x$withval" != "xno" ; then
27481           mon_sd_password=$withval
27482        fi
27483
27484
27485 fi
27486
27487
27488 if test "x$mon_sd_password" = "x" ; then
27489    if test "x$OPENSSL" = "xnone" ; then
27490       key=`autoconf/randpass 41`
27491    else
27492       key=`openssl rand -base64 33`
27493    fi
27494    mon_sd_password=$key
27495 fi
27496
27497
27498
27499
27500
27501
27502
27503
27504 db_name=bacula
27505
27506 # Check whether --with-db_name was given.
27507 if test "${with_db_name+set}" = set; then
27508   withval=$with_db_name;
27509        if test "x$withval" != "x" ; then
27510           db_name=$withval
27511        fi
27512
27513
27514 fi
27515
27516
27517
27518 db_user=bacula
27519
27520 # Check whether --with-db_user was given.
27521 if test "${with_db_user+set}" = set; then
27522   withval=$with_db_user;
27523        if test "x$withval" != "x" ; then
27524           db_user=$withval
27525        fi
27526
27527
27528 fi
27529
27530
27531
27532 db_password=
27533
27534 # Check whether --with-db_password was given.
27535 if test "${with_db_password+set}" = set; then
27536   withval=$with_db_password;
27537        if test "x$withval" != "x" ; then
27538           db_password=$withval
27539        fi
27540
27541
27542 fi
27543
27544
27545
27546 db_port=" "
27547
27548 # Check whether --with-db_port was given.
27549 if test "${with_db_port+set}" = set; then
27550   withval=$with_db_port;
27551        if test "x$withval" != "x" ; then
27552           db_port=$withval
27553        fi
27554
27555
27556 fi
27557
27558
27559
27560 #
27561 # Handle users and groups for each daemon
27562 #
27563 dir_user=
27564
27565 # Check whether --with-dir_user was given.
27566 if test "${with_dir_user+set}" = set; then
27567   withval=$with_dir_user;
27568        if test "x$withval" != "x" ; then
27569            dir_user=$withval
27570        fi
27571
27572
27573 fi
27574
27575
27576 dir_group=
27577
27578 # Check whether --with-dir_group was given.
27579 if test "${with_dir_group+set}" = set; then
27580   withval=$with_dir_group;
27581        if test "x$withval" != "x" ; then
27582           dir_group=$withval
27583        fi
27584
27585
27586 fi
27587
27588
27589 sd_user=
27590
27591 # Check whether --with-sd_user was given.
27592 if test "${with_sd_user+set}" = set; then
27593   withval=$with_sd_user;
27594        if test "x$withval" != "x" ; then
27595           sd_user=$withval
27596        fi
27597
27598
27599 fi
27600
27601
27602 sd_group=
27603
27604 # Check whether --with-sd_group was given.
27605 if test "${with_sd_group+set}" = set; then
27606   withval=$with_sd_group;
27607        if test "x$withval" != "x" ; then
27608           sd_group=$withval
27609        fi
27610
27611
27612 fi
27613
27614
27615 fd_user=
27616
27617 # Check whether --with-fd_user was given.
27618 if test "${with_fd_user+set}" = set; then
27619   withval=$with_fd_user;
27620        if test "x$withval" != "x" ; then
27621           fd_user=$withval
27622        fi
27623
27624
27625 fi
27626
27627
27628 fd_group=
27629
27630 # Check whether --with-fd_group was given.
27631 if test "${with_fd_group+set}" = set; then
27632   withval=$with_fd_group;
27633        if test "x$withval" != "x" ; then
27634           fd_group=$withval
27635        fi
27636
27637
27638 fi
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648 SBINPERM=0754
27649
27650 # Check whether --with-sbin-perm was given.
27651 if test "${with_sbin_perm+set}" = set; then
27652   withval=$with_sbin_perm;
27653        if test "x$withval" != "x" ; then
27654           SBINPERM=$withval
27655        fi
27656
27657
27658 fi
27659
27660
27661
27662
27663 SQL_LIB=
27664
27665 db_found=no
27666 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27667 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27668
27669 # Check whether --with-postgresql was given.
27670 if test "${with_postgresql+set}" = set; then
27671   withval=$with_postgresql;
27672   if test "$withval" != "no"; then
27673       if test "$db_found" = "yes"; then
27674           { echo "$as_me:$LINENO: result: error" >&5
27675 echo "${ECHO_T}error" >&6; }
27676           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27677 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27678    { (exit 1); exit 1; }; };
27679       fi
27680       if test "$withval" = "yes"; then
27681           PG_CONFIG=`which pg_config`
27682           if test -n "$PG_CONFIG";then
27683               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27684               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27685               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27686           elif test -f /usr/local/include/libpq-fe.h; then
27687               POSTGRESQL_INCDIR=/usr/local/include
27688               if test -d /usr/local/lib64; then
27689                  POSTGRESQL_LIBDIR=/usr/local/lib64
27690               else
27691                  POSTGRESQL_LIBDIR=/usr/local/lib
27692               fi
27693               POSTGRESQL_BINDIR=/usr/local/bin
27694           elif test -f /usr/include/libpq-fe.h; then
27695               POSTGRESQL_INCDIR=/usr/include
27696               if test -d /usr/lib64; then
27697                  POSTGRESQL_LIBDIR=/usr/lib64
27698               else
27699                  POSTGRESQL_LIBDIR=/usr/lib
27700               fi
27701               POSTGRESQL_BINDIR=/usr/bin
27702           elif test -f /usr/include/pgsql/libpq-fe.h; then
27703               POSTGRESQL_INCDIR=/usr/include/pgsql
27704               if test -d /usr/lib64/pgsql; then
27705                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27706               else
27707                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27708               fi
27709               POSTGRESQL_BINDIR=/usr/bin
27710           elif test -f /usr/include/postgresql/libpq-fe.h; then
27711               POSTGRESQL_INCDIR=/usr/include/postgresql
27712               if test -d /usr/lib64/postgresql; then
27713                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27714               else
27715                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27716               fi
27717               POSTGRESQL_BINDIR=/usr/bin
27718           else
27719               { echo "$as_me:$LINENO: result: no" >&5
27720 echo "${ECHO_T}no" >&6; }
27721               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27722 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27723    { (exit 1); exit 1; }; }
27724           fi
27725       elif test -f $withval/include/libpq-fe.h; then
27726           POSTGRESQL_INCDIR=$withval/include
27727           POSTGRESQL_LIBDIR=$withval/lib
27728           POSTGRESQL_BINDIR=$withval/bin
27729       elif test -f $withval/include/postgresql/libpq-fe.h; then
27730           POSTGRESQL_INCDIR=$withval/include/postgresql
27731      if test -d $withval/lib64; then
27732          POSTGRESQL_LIBDIR=$withval/lib64
27733      else
27734          POSTGRESQL_LIBDIR=$withval/lib
27735      fi
27736           POSTGRESQL_BINDIR=$withval/bin
27737       else
27738           { echo "$as_me:$LINENO: result: no" >&5
27739 echo "${ECHO_T}no" >&6; }
27740           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27741 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27742    { (exit 1); exit 1; }; }
27743       fi
27744       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27745       { echo "$as_me:$LINENO: checking for crypt" >&5
27746 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27747 if test "${ac_cv_func_crypt+set}" = set; then
27748   echo $ECHO_N "(cached) $ECHO_C" >&6
27749 else
27750   cat >conftest.$ac_ext <<_ACEOF
27751 /* confdefs.h.  */
27752 _ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h.  */
27756 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27758 #define crypt innocuous_crypt
27759
27760 /* System header to define __stub macros and hopefully few prototypes,
27761     which can conflict with char crypt (); below.
27762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27763     <limits.h> exists even on freestanding compilers.  */
27764
27765 #ifdef __STDC__
27766 # include <limits.h>
27767 #else
27768 # include <assert.h>
27769 #endif
27770
27771 #undef crypt
27772
27773 /* Override any GCC internal prototype to avoid an error.
27774    Use char because int might match the return type of a GCC
27775    builtin and then its argument prototype would still apply.  */
27776 #ifdef __cplusplus
27777 extern "C"
27778 #endif
27779 char crypt ();
27780 /* The GNU C library defines this for functions which it implements
27781     to always fail with ENOSYS.  Some functions are actually named
27782     something starting with __ and the normal name is an alias.  */
27783 #if defined __stub_crypt || defined __stub___crypt
27784 choke me
27785 #endif
27786
27787 int
27788 main ()
27789 {
27790 return crypt ();
27791   ;
27792   return 0;
27793 }
27794 _ACEOF
27795 rm -f conftest.$ac_objext conftest$ac_exeext
27796 if { (ac_try="$ac_link"
27797 case "(($ac_try" in
27798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27799   *) ac_try_echo=$ac_try;;
27800 esac
27801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27802   (eval "$ac_link") 2>conftest.er1
27803   ac_status=$?
27804   grep -v '^ *+' conftest.er1 >conftest.err
27805   rm -f conftest.er1
27806   cat conftest.err >&5
27807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808   (exit $ac_status); } && {
27809          test -z "$ac_c_werror_flag" ||
27810          test ! -s conftest.err
27811        } && test -s conftest$ac_exeext &&
27812        $as_test_x conftest$ac_exeext; then
27813   ac_cv_func_crypt=yes
27814 else
27815   echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27817
27818         ac_cv_func_crypt=no
27819 fi
27820
27821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27822       conftest$ac_exeext conftest.$ac_ext
27823 fi
27824 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27825 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27826 if test $ac_cv_func_crypt = yes; then
27827   :
27828 else
27829   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27830 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27831 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27832   echo $ECHO_N "(cached) $ECHO_C" >&6
27833 else
27834   ac_check_lib_save_LIBS=$LIBS
27835 LIBS="-lcrypt  $LIBS"
27836 cat >conftest.$ac_ext <<_ACEOF
27837 /* confdefs.h.  */
27838 _ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h.  */
27842
27843 /* Override any GCC internal prototype to avoid an error.
27844    Use char because int might match the return type of a GCC
27845    builtin and then its argument prototype would still apply.  */
27846 #ifdef __cplusplus
27847 extern "C"
27848 #endif
27849 char crypt ();
27850 int
27851 main ()
27852 {
27853 return crypt ();
27854   ;
27855   return 0;
27856 }
27857 _ACEOF
27858 rm -f conftest.$ac_objext conftest$ac_exeext
27859 if { (ac_try="$ac_link"
27860 case "(($ac_try" in
27861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862   *) ac_try_echo=$ac_try;;
27863 esac
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865   (eval "$ac_link") 2>conftest.er1
27866   ac_status=$?
27867   grep -v '^ *+' conftest.er1 >conftest.err
27868   rm -f conftest.er1
27869   cat conftest.err >&5
27870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871   (exit $ac_status); } && {
27872          test -z "$ac_c_werror_flag" ||
27873          test ! -s conftest.err
27874        } && test -s conftest$ac_exeext &&
27875        $as_test_x conftest$ac_exeext; then
27876   ac_cv_lib_crypt_crypt=yes
27877 else
27878   echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.$ac_ext >&5
27880
27881         ac_cv_lib_crypt_crypt=no
27882 fi
27883
27884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27885       conftest$ac_exeext conftest.$ac_ext
27886 LIBS=$ac_check_lib_save_LIBS
27887 fi
27888 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27889 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27890 if test $ac_cv_lib_crypt_crypt = yes; then
27891   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27892 fi
27893
27894 fi
27895
27896       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27897       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27898       SQL_BINDIR=$POSTGRESQL_BINDIR
27899       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27900
27901       cat >>confdefs.h <<\_ACEOF
27902 #define HAVE_POSTGRESQL 1
27903 _ACEOF
27904
27905       { echo "$as_me:$LINENO: result: yes" >&5
27906 echo "${ECHO_T}yes" >&6; }
27907       db_found=yes
27908       support_postgresql=yes
27909       db_type=PostgreSQL
27910       DB_TYPE=postgresql
27911   else
27912       { echo "$as_me:$LINENO: result: no" >&5
27913 echo "${ECHO_T}no" >&6; }
27914   fi
27915
27916 else
27917
27918   { echo "$as_me:$LINENO: result: no" >&5
27919 echo "${ECHO_T}no" >&6; }
27920
27921 fi
27922
27923
27924
27925
27926
27927
27928
27929
27930 db_found=no
27931 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27932 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27933
27934 # Check whether --with-mysql was given.
27935 if test "${with_mysql+set}" = set; then
27936   withval=$with_mysql;
27937   if test "$withval" != "no"; then
27938         if test "$withval" = "yes"; then
27939            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27940                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27941                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27942                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27943                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27944                    else
27945                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27946                    fi
27947                    MYSQL_BINDIR=/usr/local/mysql/bin
27948            elif test -f /usr/include/mysql/mysql.h; then
27949                    MYSQL_INCDIR=/usr/include/mysql
27950                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27951                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27952                            MYSQL_LIBDIR=/usr/lib64/mysql
27953                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27954                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27955                            MYSQL_LIBDIR=/usr/lib/mysql
27956                    else
27957                            MYSQL_LIBDIR=/usr/lib
27958                    fi
27959                    MYSQL_BINDIR=/usr/bin
27960            elif test -f /usr/include/mysql.h; then
27961                    MYSQL_INCDIR=/usr/include
27962                    if test -f /usr/lib64/libmysqlclient_r.a \
27963                         -o -f /usr/lib64/libmysqlclient_r.so; then
27964                            MYSQL_LIBDIR=/usr/lib64
27965                    else
27966                            MYSQL_LIBDIR=/usr/lib
27967                    fi
27968                    MYSQL_BINDIR=/usr/bin
27969            elif test -f /usr/local/include/mysql/mysql.h; then
27970                    MYSQL_INCDIR=/usr/local/include/mysql
27971                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27972                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27973                            MYSQL_LIBDIR=/usr/local/lib64/mysql
27974                    else
27975                            MYSQL_LIBDIR=/usr/local/lib/mysql
27976                    fi
27977                    MYSQL_BINDIR=/usr/local/bin
27978            elif test -f /usr/local/include/mysql.h; then
27979                    MYSQL_INCDIR=/usr/local/include
27980                    if test -f /usr/local/lib64/libmysqlclient_r.a \
27981                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
27982                            MYSQL_LIBDIR=/usr/local/lib64
27983                    else
27984                            MYSQL_LIBDIR=/usr/local/lib
27985                    fi
27986                    MYSQL_BINDIR=/usr/local/bin
27987            else
27988               { echo "$as_me:$LINENO: result: no" >&5
27989 echo "${ECHO_T}no" >&6; }
27990               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
27991 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
27992    { (exit 1); exit 1; }; }
27993            fi
27994         else
27995            if test -f $withval/include/mysql/mysql.h; then
27996               MYSQL_INCDIR=$withval/include/mysql
27997               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
27998                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
27999                  MYSQL_LIBDIR=$withval/lib64/mysql
28000               else
28001                  MYSQL_LIBDIR=$withval/lib/mysql
28002                  # Solaris ...
28003                  if test -f $withval/lib/libmysqlclient_r.so; then
28004                     MYSQL_LIBDIR=$withval/lib
28005                  fi
28006               fi
28007               MYSQL_BINDIR=$withval/bin
28008            elif test -f $withval/include/mysql.h; then
28009               MYSQL_INCDIR=$withval/include
28010               if test -f $withval/lib64/libmysqlclient_r.a \
28011                    -o -f $withval/lib64/libmysqlclient_r.so; then
28012                  MYSQL_LIBDIR=$withval/lib64
28013               else
28014                  MYSQL_LIBDIR=$withval/lib
28015               fi
28016               MYSQL_BINDIR=$withval/bin
28017            else
28018               { echo "$as_me:$LINENO: result: no" >&5
28019 echo "${ECHO_T}no" >&6; }
28020               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28021 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28022    { (exit 1); exit 1; }; }
28023            fi
28024         fi
28025     SQL_INCLUDE=-I$MYSQL_INCDIR
28026     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28027          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28028        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28029        cat >>confdefs.h <<\_ACEOF
28030 #define HAVE_THREAD_SAFE_MYSQL 1
28031 _ACEOF
28032
28033     fi
28034     SQL_BINDIR=$MYSQL_BINDIR
28035     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28036
28037     cat >>confdefs.h <<\_ACEOF
28038 #define HAVE_MYSQL 1
28039 _ACEOF
28040
28041     { echo "$as_me:$LINENO: result: yes" >&5
28042 echo "${ECHO_T}yes" >&6; }
28043     db_found=yes
28044     support_mysql=yes
28045     db_type=MySQL
28046     DB_TYPE=mysql
28047
28048   else
28049         { echo "$as_me:$LINENO: result: no" >&5
28050 echo "${ECHO_T}no" >&6; }
28051   fi
28052
28053
28054 fi
28055
28056
28057
28058 # Check whether --with-embedded-mysql was given.
28059 if test "${with_embedded_mysql+set}" = set; then
28060   withval=$with_embedded_mysql;
28061   if test "$withval" != "no"; then
28062         if test "$withval" = "yes"; then
28063                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28064                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28065                         if test -d /usr/local/mysql/lib64/mysql; then
28066                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28067                         else
28068                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28069                         fi
28070                         MYSQL_BINDIR=/usr/local/mysql/bin
28071                 elif test -f /usr/include/mysql/mysql.h; then
28072                         MYSQL_INCDIR=/usr/include/mysql
28073                         if test -d /usr/lib64/mysql; then
28074                                 MYSQL_LIBDIR=/usr/lib64/mysql
28075                         else
28076                                 MYSQL_LIBDIR=/usr/lib/mysql
28077                         fi
28078                         MYSQL_BINDIR=/usr/bin
28079                 elif test -f /usr/include/mysql.h; then
28080                         MYSQL_INCDIR=/usr/include
28081                         if test -d /usr/lib64; then
28082                                 MYSQL_LIBDIR=/usr/lib64
28083                         else
28084                                 MYSQL_LIBDIR=/usr/lib
28085                         fi
28086                         MYSQL_BINDIR=/usr/bin
28087                 elif test -f /usr/local/include/mysql/mysql.h; then
28088                         MYSQL_INCDIR=/usr/local/include/mysql
28089                         if test -d /usr/local/lib64/mysql; then
28090                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28091                         else
28092                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28093                         fi
28094                         MYSQL_BINDIR=/usr/local/bin
28095                 elif test -f /usr/local/include/mysql.h; then
28096                         MYSQL_INCDIR=/usr/local/include
28097                         if test -d /usr/local/lib64; then
28098                                 MYSQL_LIBDIR=/usr/local/lib64
28099                         else
28100                                 MYSQL_LIBDIR=/usr/local/lib
28101                         fi
28102                         MYSQL_BINDIR=/usr/local/bin
28103                 else
28104                    { echo "$as_me:$LINENO: result: no" >&5
28105 echo "${ECHO_T}no" >&6; }
28106                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28107 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28108    { (exit 1); exit 1; }; }
28109                 fi
28110         else
28111                 if test -f $withval/include/mysql/mysql.h; then
28112                         MYSQL_INCDIR=$withval/include/mysql
28113                         if test -d $withval/lib64/mysql; then
28114                                 MYSQL_LIBDIR=$withval/lib64/mysql
28115                         else
28116                                 MYSQL_LIBDIR=$withval/lib/mysql
28117                         fi
28118                         MYSQL_BINDIR=$withval/bin
28119                 elif test -f $withval/include/mysql.h; then
28120                         MYSQL_INCDIR=$withval/include
28121                         if test -d $withval/lib64; then
28122                                 MYSQL_LIBDIR=$withval/lib64
28123                         else
28124                                 MYSQL_LIBDIR=$withval/lib
28125                         fi
28126                         MYSQL_BINDIR=$withval/bin
28127                 else
28128                    { echo "$as_me:$LINENO: result: no" >&5
28129 echo "${ECHO_T}no" >&6; }
28130                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28131 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28132    { (exit 1); exit 1; }; }
28133                 fi
28134         fi
28135     SQL_INCLUDE=-I$MYSQL_INCDIR
28136     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28137     SQL_BINDIR=$MYSQL_BINDIR
28138     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28139
28140     cat >>confdefs.h <<\_ACEOF
28141 #define HAVE_MYSQL 1
28142 _ACEOF
28143
28144     cat >>confdefs.h <<\_ACEOF
28145 #define HAVE_EMBEDDED_MYSQL 1
28146 _ACEOF
28147
28148     { echo "$as_me:$LINENO: result: yes" >&5
28149 echo "${ECHO_T}yes" >&6; }
28150     db_found=yes
28151     support_mysql=yes
28152     db_type=MySQL
28153     DB_TYPE=mysql
28154
28155   else
28156         { echo "$as_me:$LINENO: result: no" >&5
28157 echo "${ECHO_T}no" >&6; }
28158   fi
28159
28160
28161 fi
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172 db_found=no
28173 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28174 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28175
28176 # Check whether --with-sqlite3 was given.
28177 if test "${with_sqlite3+set}" = set; then
28178   withval=$with_sqlite3;
28179   if test "$withval" != "no"; then
28180      if test "$withval" = "yes"; then
28181         if test -f /usr/local/include/sqlite3.h; then
28182            SQLITE_INCDIR=/usr/local/include
28183            if test -d /usr/local/lib64; then
28184               SQLITE_LIBDIR=/usr/local/lib64
28185            else
28186               SQLITE_LIBDIR=/usr/local/lib
28187            fi
28188            SQLITE_BINDIR=/usr/local/bin
28189         elif test -f /usr/include/sqlite3.h; then
28190            SQLITE_INCDIR=/usr/include
28191            if test -d /usr/lib64; then
28192               SQLITE_LIBDIR=/usr/lib64
28193            else
28194               SQLITE_LIBDIR=/usr/lib
28195            fi
28196            SQLITE_BINDIR=/usr/bin
28197         elif test -f $prefix/include/sqlite3.h; then
28198            SQLITE_INCDIR=$prefix/include
28199            if test -d $prefix/lib64; then
28200               SQLITE_LIBDIR=$prefix/lib64
28201            else
28202               SQLITE_LIBDIR=$prefix/lib
28203            fi
28204            SQLITE_BINDIR=$prefix/bin
28205         else
28206            { echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6; }
28208            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28209 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28210    { (exit 1); exit 1; }; }
28211         fi
28212      else
28213         if test -f $withval/sqlite3.h; then
28214            SQLITE_INCDIR=$withval
28215            SQLITE_LIBDIR=$withval
28216            SQLITE_BINDIR=$withval
28217         elif test -f $withval/include/sqlite3.h; then
28218            SQLITE_INCDIR=$withval/include
28219            if test -d $withval/lib64; then
28220               SQLITE_LIBDIR=$withval/lib64
28221            else
28222               SQLITE_LIBDIR=$withval/lib
28223            fi
28224            SQLITE_BINDIR=$withval/bin
28225         else
28226            { echo "$as_me:$LINENO: result: no" >&5
28227 echo "${ECHO_T}no" >&6; }
28228            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28229 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28230    { (exit 1); exit 1; }; }
28231         fi
28232      fi
28233      SQL_INCLUDE=-I$SQLITE_INCDIR
28234      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28235      SQL_BINDIR=$SQLITE_BINDIR
28236      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28237
28238      cat >>confdefs.h <<\_ACEOF
28239 #define HAVE_SQLITE3 1
28240 _ACEOF
28241
28242      { echo "$as_me:$LINENO: result: yes" >&5
28243 echo "${ECHO_T}yes" >&6; }
28244      db_found=yes
28245      support_sqlite3=yes
28246      db_type=SQLite3
28247      DB_TYPE=sqlite3
28248
28249   else
28250      { echo "$as_me:$LINENO: result: no" >&5
28251 echo "${ECHO_T}no" >&6; }
28252   fi
28253
28254 else
28255
28256   { echo "$as_me:$LINENO: result: no" >&5
28257 echo "${ECHO_T}no" >&6; }
28258
28259 fi
28260
28261
28262
28263
28264
28265
28266
28267
28268 db_found=no
28269 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28270 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28271
28272 # Check whether --with-sqlite was given.
28273 if test "${with_sqlite+set}" = set; then
28274   withval=$with_sqlite;
28275   if test "$withval" != "no"; then
28276      if test "$withval" = "yes"; then
28277         if test -f /usr/local/include/sqlite.h; then
28278            SQLITE_INCDIR=/usr/local/include
28279            if test -d /usr/local/lib64; then
28280               SQLITE_LIBDIR=/usr/local/lib64
28281            else
28282               SQLITE_LIBDIR=/usr/local/lib
28283            fi
28284            SQLITE_BINDIR=/usr/local/bin
28285         elif test -f /usr/include/sqlite.h; then
28286            SQLITE_INCDIR=/usr/include
28287            if test -d /usr/lib64; then
28288               SQLITE_LIBDIR=/usr/lib64
28289            else
28290               SQLITE_LIBDIR=/usr/lib
28291            fi
28292            SQLITE_BINDIR=/usr/bin
28293         elif test -f $prefix/include/sqlite.h; then
28294            SQLITE_INCDIR=$prefix/include
28295            if test -d $prefix/lib64; then
28296               SQLITE_LIBDIR=$prefix/lib64
28297            else
28298               SQLITE_LIBDIR=$prefix/lib
28299            fi
28300            SQLITE_BINDIR=$prefix/bin
28301         else
28302            { echo "$as_me:$LINENO: result: no" >&5
28303 echo "${ECHO_T}no" >&6; }
28304            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28305 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28306    { (exit 1); exit 1; }; }
28307         fi
28308      else
28309         if test -f $withval/sqlite.h; then
28310            SQLITE_INCDIR=$withval
28311            SQLITE_LIBDIR=$withval
28312            SQLITE_BINDIR=$withval
28313         elif test -f $withval/include/sqlite.h; then
28314            SQLITE_INCDIR=$withval/include
28315            if test -d $withval/lib64; then
28316               SQLITE_LIBDIR=$withval/lib64
28317            else
28318               SQLITE_LIBDIR=$withval/lib
28319            fi
28320            SQLITE_BINDIR=$withval/bin
28321         else
28322            { echo "$as_me:$LINENO: result: no" >&5
28323 echo "${ECHO_T}no" >&6; }
28324            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28325 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28326    { (exit 1); exit 1; }; }
28327         fi
28328      fi
28329      SQL_INCLUDE=-I$SQLITE_INCDIR
28330      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28331      SQL_BINDIR=$SQLITE_BINDIR
28332      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28333
28334      cat >>confdefs.h <<\_ACEOF
28335 #define HAVE_SQLITE 1
28336 _ACEOF
28337
28338      { echo "$as_me:$LINENO: result: yes" >&5
28339 echo "${ECHO_T}yes" >&6; }
28340      db_found=yes
28341      support_sqlite=yes
28342      db_type=SQLite
28343      DB_TYPE=sqlite
28344
28345   else
28346      { echo "$as_me:$LINENO: result: no" >&5
28347 echo "${ECHO_T}no" >&6; }
28348   fi
28349
28350 else
28351
28352   { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28354
28355 fi
28356
28357
28358
28359
28360
28361
28362
28363
28364 db_found=no
28365 { echo "$as_me:$LINENO: checking for DBI support" >&5
28366 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28367
28368 # Check whether --with-dbi was given.
28369 if test "${with_dbi+set}" = set; then
28370   withval=$with_dbi;
28371   if test "$withval" != "no"; then
28372      if test "$withval" = "yes"; then
28373         if test -f /usr/local/include/dbi/dbi.h; then
28374            DBI_INCDIR=/usr/local/dbi/include
28375            if test -d /usr/local/lib64; then
28376               DBI_LIBDIR=/usr/local/lib64
28377            else
28378               DBI_LIBDIR=/usr/local/lib
28379            fi
28380            DBI_BINDIR=/usr/local/bin
28381         elif test -f /usr/include/dbi/dbi.h; then
28382            DBI_INCDIR=/usr/include
28383            if test -d /usr/lib64; then
28384               DBI_LIBDIR=/usr/lib64
28385            else
28386               DBI_LIBDIR=/usr/lib
28387            fi
28388            DBI_BINDIR=/usr/bin
28389         elif test -f $prefix/include/dbi/dbi.h; then
28390            DBI_INCDIR=$prefix/include
28391            if test -d $prefix/lib64; then
28392               DBI_LIBDIR=$prefix/lib64
28393            else
28394               DBI_LIBDIR=$prefix/lib
28395            fi
28396            DBI_BINDIR=$prefix/bin
28397         else
28398            { echo "$as_me:$LINENO: result: no" >&5
28399 echo "${ECHO_T}no" >&6; }
28400            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28401 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28402    { (exit 1); exit 1; }; }
28403         fi
28404         if test -d /usr/local/lib/dbd; then
28405            DRIVERDIR=/usr/local/lib/dbd
28406            if test -d /usr/local/lib64/dbd; then
28407               DRIVERDIR=/usr/local/lib64/dbd
28408            else
28409               DRIVERDIR=/usr/local/lib/dbd
28410            fi
28411         elif test -d /usr/lib/dbd; then
28412            DRIVERDIR=/usr/lib/dbd
28413            if test -d /usr/lib64/dbd; then
28414               DRIVERDIR=/usr/lib64/dbd
28415            else
28416               DRIVERDIR=/usr/lib/dbd
28417            fi
28418         elif test -d $prefix/lib/dbd; then
28419            if test -d $prefix/lib64/dbd; then
28420               DRIVERDIR=$prefix/lib64/dbd
28421            else
28422               DRIVERDIR=$prefix/lib/dbd
28423            fi
28424         else
28425            { echo "$as_me:$LINENO: result: no" >&5
28426 echo "${ECHO_T}no" >&6; }
28427            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28428 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28429    { (exit 1); exit 1; }; }
28430         fi
28431      else
28432         if test -f $withval/dbi.h; then
28433            DBI_INCDIR=$withval
28434            DBI_LIBDIR=$withval
28435            DBI_BINDIR=$withval
28436         elif test -f $withval/include/dbi/dbi.h; then
28437            DBI_INCDIR=$withval/include
28438            if test -d $withval/lib64; then
28439               DBI_LIBDIR=$withval/lib64
28440            else
28441               DBI_LIBDIR=$withval/lib
28442            fi
28443            DBI_BINDIR=$withval/bin
28444         else
28445            { echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6; }
28447            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28448 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28449    { (exit 1); exit 1; }; }
28450         fi
28451         if test -d $withval/dbd; then
28452            DRIVERDIR=$withval/dbd
28453         elif test -d $withval/lib/; then
28454            if test -d $withval/lib64/dbd; then
28455               DRIVERDIR=$withval/lib64/dbd
28456            else
28457               DRIVERDIR=$withval/lib/dbd
28458            fi
28459         else
28460            { echo "$as_me:$LINENO: result: no" >&5
28461 echo "${ECHO_T}no" >&6; }
28462            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28463 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28464    { (exit 1); exit 1; }; }
28465         fi
28466      fi
28467      SQL_INCLUDE=-I$DBI_INCDIR
28468      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28469      SQL_BINDIR=$DBI_BINDIR
28470      SQL_LIB=$DBI_LIBDIR/libdbi.a
28471      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28472
28473
28474 cat >>confdefs.h <<\_ACEOF
28475 #define HAVE_DBI 1
28476 _ACEOF
28477
28478      { echo "$as_me:$LINENO: result: yes" >&5
28479 echo "${ECHO_T}yes" >&6; }
28480      db_found=yes
28481      support_dbi=yes
28482      db_type=DBI
28483      DB_TYPE=dbi
28484      uncomment_dbi=" "
28485
28486   else
28487      { echo "$as_me:$LINENO: result: no" >&5
28488 echo "${ECHO_T}no" >&6; }
28489   fi
28490
28491 else
28492
28493   { echo "$as_me:$LINENO: result: no" >&5
28494 echo "${ECHO_T}no" >&6; }
28495
28496 fi
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507 db_found=no
28508 db_prog=no
28509 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28510 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28511
28512 # Check whether --with-dbi-driver was given.
28513 if test "${with_dbi_driver+set}" = set; then
28514   withval=$with_dbi_driver;
28515   if test "$withval" != "no"; then
28516      case $withval in
28517         "mysql")
28518            db_prog="mysql"
28519            if test -f /usr/local/mysql/bin/mysql; then
28520               SQL_BINDIR=/usr/local/mysql/bin
28521               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28522                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28523                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28524               else
28525                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28526               fi
28527            elif test -f /usr/bin/mysql; then
28528               SQL_BINDIR=/usr/bin
28529               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28530                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28531                   SQL_LIBDIR=/usr/lib64/mysql
28532               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28533                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28534                   SQL_LIBDIR=/usr/lib/mysql
28535               else
28536                   SQL_LIBDIR=/usr/lib
28537               fi
28538            elif test -f /usr/local/bin/mysql; then
28539               SQL_BINDIR=/usr/local/bin
28540               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28541                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28542                   SQL_LIBDIR=/usr/local/lib64/mysql
28543               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28544                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28545                   SQL_LIBDIR=/usr/local/lib/mysql
28546               else
28547                   SQL_LIBDIR=/usr/local/lib
28548               fi
28549            elif test -f $withval/bin/mysql; then
28550               SQL_BINDIR=$withval/bin
28551               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28552                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28553                   SQL_LIBDIR=$withval/lib64/mysql
28554               elif test -f $withval/lib64/libmysqlclient_r.a \
28555                   -o -f $withval/lib64/libmysqlclient_r.so; then
28556                   SQL_LIBDIR=$withval/lib64
28557               elif test -f $withval/lib/libmysqlclient_r.a \
28558                   -o -f $withval/lib/libmysqlclient_r.so; then
28559                   SQL_LIBDIR=$withval/lib/
28560               else
28561                   SQL_LIBDIR=$withval/lib/mysql
28562               fi
28563            else
28564               { echo "$as_me:$LINENO: result: no" >&5
28565 echo "${ECHO_T}no" >&6; }
28566               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28567 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28568    { (exit 1); exit 1; }; }
28569            fi
28570            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28571         ;;
28572         "postgresql")
28573            db_prog="postgresql"
28574            PG_CONFIG=`which pg_config`
28575            if test -n "$PG_CONFIG"; then
28576               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28577               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28578            elif test -f /usr/local/bin/psql; then
28579               SQL_BINDIR=/usr/local/bin
28580               if test -d /usr/local/lib64; then
28581                  SQL_LIBDIR=/usr/local/lib64
28582               else
28583                  SQL_LIBDIR=/usr/local/lib
28584               fi
28585            elif test -f /usr/bin/psql; then
28586               SQL_BINDIR=/usr/local/bin
28587               if test -d /usr/lib64/postgresql; then
28588                  SQL_LIBDIR=/usr/lib64/postgresql
28589               elif test -d /usr/lib/postgresql; then
28590                  SQL_LIBDIR=/usr/lib/postgresql
28591               elif test -d /usr/lib64; then
28592                  SQL_LIBDIR=/usr/lib64
28593               else
28594                  SQL_LIBDIR=/usr/lib
28595               fi
28596            elif test -f $withval/bin/psql; then
28597               SQL_BINDIR=$withval/bin
28598               if test -d $withval/lib64; then
28599                  SQL_LIBDIR=$withval/lib64
28600               else
28601                  SQL_LIBDIR=$withval/lib
28602               fi
28603            else
28604               { echo "$as_me:$LINENO: result: no" >&5
28605 echo "${ECHO_T}no" >&6; }
28606               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28607 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28608    { (exit 1); exit 1; }; }
28609            fi
28610            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28611         ;;
28612         "sqlite")
28613            db_prog="sqlite"
28614            if test -f /usr/local/bin/sqlite; then
28615               SQL_BINDIR=/usr/local/bin
28616               if test -d /usr/local/lib64; then
28617                  SQL_LIBDIR=/usr/local/lib64
28618               else
28619                  SQL_LIBDIR=/usr/local/lib
28620               fi
28621            elif test -f /usr/bin/sqlite; then
28622               SQL_BINDIR=/usr/bin
28623               if test -d /usr/lib64; then
28624                  SQL_LIBDIR=/usr/lib64
28625               else
28626                  SQL_LIBDIR=/usr/lib
28627               fi
28628            elif test -f $withval/bin/sqlite; then
28629               SQL_BINDIR=$withval/bin
28630               if test -d $withval/lib64; then
28631                  SQL_LIBDIR=$withval/lib64
28632               else
28633                  SQL_LIBDIR=$withval/lib
28634               fi
28635            else
28636               { echo "$as_me:$LINENO: result: no" >&5
28637 echo "${ECHO_T}no" >&6; }
28638               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28639 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28640    { (exit 1); exit 1; }; }
28641            fi
28642            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28643         ;;
28644         "sqlite3")
28645            db_prog="sqlite3"
28646            if test -f /usr/local/bin/sqlite3; then
28647               SQL_BINDIR=/usr/local/bin
28648               if test -d /usr/local/lib64; then
28649                  SQL_LIBDIR=/usr/local/lib64
28650               else
28651                  SQL_LIBDIR=/usr/local/lib
28652               fi
28653            elif test -f /usr/bin/sqlite3; then
28654               SQL_BINDIR=/usr/bin
28655               if test -d /usr/lib64; then
28656                  SQL_LIBDIR=/usr/lib64
28657               else
28658                  SQL_LIBDIR=/usr/lib
28659               fi
28660            elif test -f $withval/bin/sqlite3; then
28661               SQL_BINDIR=$withval/bin
28662               if test -d $withval/lib64; then
28663                  SQL_LIBDIR=$withval/lib64
28664               else
28665                  SQL_LIBDIR=$withval/lib
28666               fi
28667            else
28668               { echo "$as_me:$LINENO: result: no" >&5
28669 echo "${ECHO_T}no" >&6; }
28670               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28671 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28672    { (exit 1); exit 1; }; }
28673            fi
28674            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28675         ;;
28676         *)
28677            { echo "$as_me:$LINENO: result: no" >&5
28678 echo "${ECHO_T}no" >&6; }
28679            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28680 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28681    { (exit 1); exit 1; }; }
28682         ;;
28683      esac
28684
28685      { echo "$as_me:$LINENO: result: yes" >&5
28686 echo "${ECHO_T}yes" >&6; }
28687      DB_PROG=$db_prog
28688   else
28689      { echo "$as_me:$LINENO: result: no" >&5
28690 echo "${ECHO_T}no" >&6; }
28691   fi
28692
28693 else
28694
28695   { echo "$as_me:$LINENO: result: no" >&5
28696 echo "${ECHO_T}no" >&6; }
28697
28698 fi
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709 support_batch_insert=no
28710 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28711 pkg=$?
28712 if test $pkg = 0; then
28713    support_batch_insert=yes
28714    # Check whether --enable-batch-insert was given.
28715 if test "${enable_batch_insert+set}" = set; then
28716   enableval=$enable_batch_insert;
28717           if test x$enableval = xno; then
28718              support_batch_insert=no
28719           else
28720              support_batch_insert=yes
28721           fi
28722
28723
28724 fi
28725
28726 fi
28727
28728 if test x$DB_TYPE = xpostgresql; then
28729    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28730    pkg=$?
28731    if test $pkg != 0; then
28732       support_batch_insert=no
28733    fi
28734 fi
28735
28736 if test x$DB_TYPE = xdbi; then
28737    DB_TYPE=$DB_PROG
28738    db_type=$DB_PROG
28739    pkg=1
28740       if test $DB_PROG = postgresql; then
28741       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28742       pkg=$?
28743    fi
28744
28745    if test $DB_PROG = mysql; then
28746       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28747       pkg=$?
28748    fi
28749
28750    if test $DB_PROG = sqlite3; then
28751       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28752       pkg=$?
28753    fi
28754
28755    if test $pkg = 0; then
28756       # Check whether --enable-batch-insert was given.
28757 if test "${enable_batch_insert+set}" = set; then
28758   enableval=$enable_batch_insert;
28759              if test x$enableval = xno; then
28760                 support_batch_insert=no
28761              else
28762                 support_batch_insert=yes
28763              fi
28764
28765
28766 fi
28767
28768    fi
28769 else
28770       uncomment_dbi="#"
28771 fi
28772
28773
28774
28775 if test $support_batch_insert = yes ; then
28776
28777 cat >>confdefs.h <<\_ACEOF
28778 #define HAVE_BATCH_FILE_INSERT 1
28779 _ACEOF
28780
28781 fi
28782
28783 cat >>confdefs.h <<\_ACEOF
28784 #define PROTOTYPES 1
28785 _ACEOF
28786
28787
28788 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28789    if test -z "$CCOPTS"; then
28790       CCOPTS='-g -O2 -Wall'
28791    fi
28792    CFLAGS="$CCOPTS"
28793 fi
28794
28795
28796
28797 largefile_support="no"
28798
28799    # Check whether --enable-largefile was given.
28800 if test "${enable_largefile+set}" = set; then
28801   enableval=$enable_largefile;
28802 fi
28803
28804    if test "$enable_largefile" != no; then
28805      if test -n "$ac_tool_prefix"; then
28806   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28807 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28810 if test "${ac_cv_prog_GETCONF+set}" = set; then
28811   echo $ECHO_N "(cached) $ECHO_C" >&6
28812 else
28813   if test -n "$GETCONF"; then
28814   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28815 else
28816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28817 for as_dir in $PATH
28818 do
28819   IFS=$as_save_IFS
28820   test -z "$as_dir" && as_dir=.
28821   for ac_exec_ext in '' $ac_executable_extensions; do
28822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28823     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28825     break 2
28826   fi
28827 done
28828 done
28829 IFS=$as_save_IFS
28830
28831 fi
28832 fi
28833 GETCONF=$ac_cv_prog_GETCONF
28834 if test -n "$GETCONF"; then
28835   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28836 echo "${ECHO_T}$GETCONF" >&6; }
28837 else
28838   { echo "$as_me:$LINENO: result: no" >&5
28839 echo "${ECHO_T}no" >&6; }
28840 fi
28841
28842
28843 fi
28844 if test -z "$ac_cv_prog_GETCONF"; then
28845   ac_ct_GETCONF=$GETCONF
28846   # Extract the first word of "getconf", so it can be a program name with args.
28847 set dummy getconf; ac_word=$2
28848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28850 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28851   echo $ECHO_N "(cached) $ECHO_C" >&6
28852 else
28853   if test -n "$ac_ct_GETCONF"; then
28854   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28855 else
28856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28857 for as_dir in $PATH
28858 do
28859   IFS=$as_save_IFS
28860   test -z "$as_dir" && as_dir=.
28861   for ac_exec_ext in '' $ac_executable_extensions; do
28862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28863     ac_cv_prog_ac_ct_GETCONF="getconf"
28864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28865     break 2
28866   fi
28867 done
28868 done
28869 IFS=$as_save_IFS
28870
28871 fi
28872 fi
28873 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28874 if test -n "$ac_ct_GETCONF"; then
28875   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28876 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28877 else
28878   { echo "$as_me:$LINENO: result: no" >&5
28879 echo "${ECHO_T}no" >&6; }
28880 fi
28881
28882   if test "x$ac_ct_GETCONF" = x; then
28883     GETCONF=""
28884   else
28885     case $cross_compiling:$ac_tool_warned in
28886 yes:)
28887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28888 whose name does not start with the host triplet.  If you think this
28889 configuration is useful to you, please write to autoconf@gnu.org." >&5
28890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28891 whose name does not start with the host triplet.  If you think this
28892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28893 ac_tool_warned=yes ;;
28894 esac
28895     GETCONF=$ac_ct_GETCONF
28896   fi
28897 else
28898   GETCONF="$ac_cv_prog_GETCONF"
28899 fi
28900
28901      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28902 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28903 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28904   echo $ECHO_N "(cached) $ECHO_C" >&6
28905 else
28906   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28907         ac_cv_sys_largefile_CFLAGS=no
28908         case "$host_os" in
28909            # IRIX 6.2 and later require cc -n32.
28910            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28911              if test "$GCC" != yes; then
28912                ac_cv_sys_largefile_CFLAGS=-n32
28913              fi
28914              ac_save_CC="$CC"
28915              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28916              cat >conftest.$ac_ext <<_ACEOF
28917 /* confdefs.h.  */
28918 _ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h.  */
28922
28923 int
28924 main ()
28925 {
28926
28927   ;
28928   return 0;
28929 }
28930 _ACEOF
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (ac_try="$ac_link"
28933 case "(($ac_try" in
28934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935   *) ac_try_echo=$ac_try;;
28936 esac
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938   (eval "$ac_link") 2>conftest.er1
28939   ac_status=$?
28940   grep -v '^ *+' conftest.er1 >conftest.err
28941   rm -f conftest.er1
28942   cat conftest.err >&5
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); } && {
28945          test -z "$ac_c_werror_flag" ||
28946          test ! -s conftest.err
28947        } && test -s conftest$ac_exeext &&
28948        $as_test_x conftest$ac_exeext; then
28949   :
28950 else
28951   echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28953
28954         ac_cv_sys_largefile_CFLAGS=no
28955 fi
28956
28957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28958       conftest$ac_exeext conftest.$ac_ext
28959              CC="$ac_save_CC"
28960            esac
28961       }
28962 fi
28963 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28964 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28965      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28966 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28967 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28968   echo $ECHO_N "(cached) $ECHO_C" >&6
28969 else
28970   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28971         ac_cv_sys_largefile_LDFLAGS=no
28972
28973       }
28974 fi
28975 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28976 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28977      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28978 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28979 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28980   echo $ECHO_N "(cached) $ECHO_C" >&6
28981 else
28982   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
28983         ac_cv_sys_largefile_LIBS=no
28984
28985       }
28986 fi
28987 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
28988 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
28989
28990      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
28991        case "$ac_flag" in
28992        no) ;;
28993        -D_FILE_OFFSET_BITS=*) ;;
28994        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
28995        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
28996        -D?* | -I?*)
28997          case "$ac_flag" in
28998    no) ;;
28999    ?*)
29000      case "$CPPFLAGS" in
29001      '') CPPFLAGS="$ac_flag" ;;
29002      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29003      esac ;;
29004    esac ;;
29005        *)
29006          case "$ac_flag" in
29007    no) ;;
29008    ?*)
29009      case "$CFLAGS" in
29010      '') CFLAGS="$ac_flag" ;;
29011      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29012      esac ;;
29013    esac ;;
29014        esac
29015      done
29016      case "$ac_cv_sys_largefile_LDFLAGS" in
29017    no) ;;
29018    ?*)
29019      case "$LDFLAGS" in
29020      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29021      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29022      esac ;;
29023    esac
29024      case "$ac_cv_sys_largefile_LIBS" in
29025    no) ;;
29026    ?*)
29027      case "$LIBS" in
29028      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29029      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29030      esac ;;
29031    esac
29032      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29033 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29034 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29035   echo $ECHO_N "(cached) $ECHO_C" >&6
29036 else
29037   ac_cv_sys_file_offset_bits=no
29038       ac_cv_sys_file_offset_bits=64
29039       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29040         case "$ac_flag" in
29041         -D_FILE_OFFSET_BITS)
29042           ac_cv_sys_file_offset_bits=1 ;;
29043         -D_FILE_OFFSET_BITS=*)
29044           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29045         esac
29046       done
29047
29048 fi
29049 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29050 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29051    if test "$ac_cv_sys_file_offset_bits" != no; then
29052
29053 cat >>confdefs.h <<_ACEOF
29054 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29055 _ACEOF
29056
29057    fi
29058      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29059 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29060 if test "${ac_cv_sys_largefile_source+set}" = set; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29063   ac_cv_sys_largefile_source=no
29064       ac_cv_sys_largefile_source=1
29065       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29066         case "$ac_flag" in
29067         -D_LARGEFILE_SOURCE)
29068           ac_cv_sys_largefile_source=1 ;;
29069         -D_LARGEFILE_SOURCE=*)
29070           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29071         esac
29072       done
29073
29074 fi
29075 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29076 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29077    if test "$ac_cv_sys_largefile_source" != no; then
29078
29079 cat >>confdefs.h <<_ACEOF
29080 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29081 _ACEOF
29082
29083    fi
29084      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29085 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29086 if test "${ac_cv_sys_large_files+set}" = set; then
29087   echo $ECHO_N "(cached) $ECHO_C" >&6
29088 else
29089   ac_cv_sys_large_files=no
29090       ac_cv_sys_large_files=1
29091       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29092         case "$ac_flag" in
29093         -D_LARGE_FILES)
29094           ac_cv_sys_large_files=1 ;;
29095         -D_LARGE_FILES=*)
29096           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29097         esac
29098       done
29099
29100 fi
29101 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29102 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29103    if test "$ac_cv_sys_large_files" != no; then
29104
29105 cat >>confdefs.h <<_ACEOF
29106 #define _LARGE_FILES $ac_cv_sys_large_files
29107 _ACEOF
29108
29109    fi
29110    fi
29111
29112
29113 { echo "$as_me:$LINENO: checking for X" >&5
29114 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29115
29116
29117 # Check whether --with-x was given.
29118 if test "${with_x+set}" = set; then
29119   withval=$with_x;
29120 fi
29121
29122 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29123 if test "x$with_x" = xno; then
29124   # The user explicitly disabled X.
29125   have_x=disabled
29126 else
29127   case $x_includes,$x_libraries in #(
29128     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29129 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29130    { (exit 1); exit 1; }; };; #(
29131     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29132   echo $ECHO_N "(cached) $ECHO_C" >&6
29133 else
29134   # One or both of the vars are not set, and there is no cached value.
29135 ac_x_includes=no ac_x_libraries=no
29136 rm -f -r conftest.dir
29137 if mkdir conftest.dir; then
29138   cd conftest.dir
29139   cat >Imakefile <<'_ACEOF'
29140 incroot:
29141         @echo incroot='${INCROOT}'
29142 usrlibdir:
29143         @echo usrlibdir='${USRLIBDIR}'
29144 libdir:
29145         @echo libdir='${LIBDIR}'
29146 _ACEOF
29147   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29148     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29149     for ac_var in incroot usrlibdir libdir; do
29150       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29151     done
29152     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29153     for ac_extension in a so sl; do
29154       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29155          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29156         ac_im_usrlibdir=$ac_im_libdir; break
29157       fi
29158     done
29159     # Screen out bogus values from the imake configuration.  They are
29160     # bogus both because they are the default anyway, and because
29161     # using them would break gcc on systems where it needs fixed includes.
29162     case $ac_im_incroot in
29163         /usr/include) ac_x_includes= ;;
29164         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29165     esac
29166     case $ac_im_usrlibdir in
29167         /usr/lib | /lib) ;;
29168         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29169     esac
29170   fi
29171   cd ..
29172   rm -f -r conftest.dir
29173 fi
29174
29175 # Standard set of common directories for X headers.
29176 # Check X11 before X11Rn because it is often a symlink to the current release.
29177 ac_x_header_dirs='
29178 /usr/X11/include
29179 /usr/X11R6/include
29180 /usr/X11R5/include
29181 /usr/X11R4/include
29182
29183 /usr/include/X11
29184 /usr/include/X11R6
29185 /usr/include/X11R5
29186 /usr/include/X11R4
29187
29188 /usr/local/X11/include
29189 /usr/local/X11R6/include
29190 /usr/local/X11R5/include
29191 /usr/local/X11R4/include
29192
29193 /usr/local/include/X11
29194 /usr/local/include/X11R6
29195 /usr/local/include/X11R5
29196 /usr/local/include/X11R4
29197
29198 /usr/X386/include
29199 /usr/x386/include
29200 /usr/XFree86/include/X11
29201
29202 /usr/include
29203 /usr/local/include
29204 /usr/unsupported/include
29205 /usr/athena/include
29206 /usr/local/x11r5/include
29207 /usr/lpp/Xamples/include
29208
29209 /usr/openwin/include
29210 /usr/openwin/share/include'
29211
29212 if test "$ac_x_includes" = no; then
29213   # Guess where to find include files, by looking for Xlib.h.
29214   # First, try using that file with no special directory specified.
29215   cat >conftest.$ac_ext <<_ACEOF
29216 /* confdefs.h.  */
29217 _ACEOF
29218 cat confdefs.h >>conftest.$ac_ext
29219 cat >>conftest.$ac_ext <<_ACEOF
29220 /* end confdefs.h.  */
29221 #include <X11/Xlib.h>
29222 _ACEOF
29223 if { (ac_try="$ac_cpp conftest.$ac_ext"
29224 case "(($ac_try" in
29225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226   *) ac_try_echo=$ac_try;;
29227 esac
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29230   ac_status=$?
29231   grep -v '^ *+' conftest.er1 >conftest.err
29232   rm -f conftest.er1
29233   cat conftest.err >&5
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); } >/dev/null && {
29236          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29237          test ! -s conftest.err
29238        }; then
29239   # We can compile using X headers with no special include directory.
29240 ac_x_includes=
29241 else
29242   echo "$as_me: failed program was:" >&5
29243 sed 's/^/| /' conftest.$ac_ext >&5
29244
29245   for ac_dir in $ac_x_header_dirs; do
29246   if test -r "$ac_dir/X11/Xlib.h"; then
29247     ac_x_includes=$ac_dir
29248     break
29249   fi
29250 done
29251 fi
29252
29253 rm -f conftest.err conftest.$ac_ext
29254 fi # $ac_x_includes = no
29255
29256 if test "$ac_x_libraries" = no; then
29257   # Check for the libraries.
29258   # See if we find them without any special options.
29259   # Don't add to $LIBS permanently.
29260   ac_save_LIBS=$LIBS
29261   LIBS="-lX11 $LIBS"
29262   cat >conftest.$ac_ext <<_ACEOF
29263 /* confdefs.h.  */
29264 _ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h.  */
29268 #include <X11/Xlib.h>
29269 int
29270 main ()
29271 {
29272 XrmInitialize ()
29273   ;
29274   return 0;
29275 }
29276 _ACEOF
29277 rm -f conftest.$ac_objext conftest$ac_exeext
29278 if { (ac_try="$ac_link"
29279 case "(($ac_try" in
29280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281   *) ac_try_echo=$ac_try;;
29282 esac
29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284   (eval "$ac_link") 2>conftest.er1
29285   ac_status=$?
29286   grep -v '^ *+' conftest.er1 >conftest.err
29287   rm -f conftest.er1
29288   cat conftest.err >&5
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); } && {
29291          test -z "$ac_c_werror_flag" ||
29292          test ! -s conftest.err
29293        } && test -s conftest$ac_exeext &&
29294        $as_test_x conftest$ac_exeext; then
29295   LIBS=$ac_save_LIBS
29296 # We can link X programs with no special library path.
29297 ac_x_libraries=
29298 else
29299   echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302         LIBS=$ac_save_LIBS
29303 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29304 do
29305   # Don't even attempt the hair of trying to link an X program!
29306   for ac_extension in a so sl; do
29307     if test -r "$ac_dir/libX11.$ac_extension"; then
29308       ac_x_libraries=$ac_dir
29309       break 2
29310     fi
29311   done
29312 done
29313 fi
29314
29315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29316       conftest$ac_exeext conftest.$ac_ext
29317 fi # $ac_x_libraries = no
29318
29319 case $ac_x_includes,$ac_x_libraries in #(
29320   no,* | *,no | *\'*)
29321     # Didn't find X, or a directory has "'" in its name.
29322     ac_cv_have_x="have_x=no";; #(
29323   *)
29324     # Record where we found X for the cache.
29325     ac_cv_have_x="have_x=yes\
29326         ac_x_includes='$ac_x_includes'\
29327         ac_x_libraries='$ac_x_libraries'"
29328 esac
29329 fi
29330 ;; #(
29331     *) have_x=yes;;
29332   esac
29333   eval "$ac_cv_have_x"
29334 fi # $with_x != no
29335
29336 if test "$have_x" != yes; then
29337   { echo "$as_me:$LINENO: result: $have_x" >&5
29338 echo "${ECHO_T}$have_x" >&6; }
29339   no_x=yes
29340 else
29341   # If each of the values was on the command line, it overrides each guess.
29342   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29343   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29344   # Update the cache value to reflect the command line values.
29345   ac_cv_have_x="have_x=yes\
29346         ac_x_includes='$x_includes'\
29347         ac_x_libraries='$x_libraries'"
29348   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29349 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29350 fi
29351
29352 if test "$no_x" = yes; then
29353   # Not all programs may use this symbol, but it does not hurt to define it.
29354
29355 cat >>confdefs.h <<\_ACEOF
29356 #define X_DISPLAY_MISSING 1
29357 _ACEOF
29358
29359   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29360 else
29361   if test -n "$x_includes"; then
29362     X_CFLAGS="$X_CFLAGS -I$x_includes"
29363   fi
29364
29365   # It would also be nice to do this for all -L options, not just this one.
29366   if test -n "$x_libraries"; then
29367     X_LIBS="$X_LIBS -L$x_libraries"
29368     # For Solaris; some versions of Sun CC require a space after -R and
29369     # others require no space.  Words are not sufficient . . . .
29370     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29371 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29372     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29373     ac_xsave_c_werror_flag=$ac_c_werror_flag
29374     ac_c_werror_flag=yes
29375     cat >conftest.$ac_ext <<_ACEOF
29376 /* confdefs.h.  */
29377 _ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h.  */
29381
29382 int
29383 main ()
29384 {
29385
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 rm -f conftest.$ac_objext conftest$ac_exeext
29391 if { (ac_try="$ac_link"
29392 case "(($ac_try" in
29393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394   *) ac_try_echo=$ac_try;;
29395 esac
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397   (eval "$ac_link") 2>conftest.er1
29398   ac_status=$?
29399   grep -v '^ *+' conftest.er1 >conftest.err
29400   rm -f conftest.er1
29401   cat conftest.err >&5
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } && {
29404          test -z "$ac_c_werror_flag" ||
29405          test ! -s conftest.err
29406        } && test -s conftest$ac_exeext &&
29407        $as_test_x conftest$ac_exeext; then
29408   { echo "$as_me:$LINENO: result: no" >&5
29409 echo "${ECHO_T}no" >&6; }
29410        X_LIBS="$X_LIBS -R$x_libraries"
29411 else
29412   echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29414
29415         LIBS="$ac_xsave_LIBS -R $x_libraries"
29416        cat >conftest.$ac_ext <<_ACEOF
29417 /* confdefs.h.  */
29418 _ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h.  */
29422
29423 int
29424 main ()
29425 {
29426
29427   ;
29428   return 0;
29429 }
29430 _ACEOF
29431 rm -f conftest.$ac_objext conftest$ac_exeext
29432 if { (ac_try="$ac_link"
29433 case "(($ac_try" in
29434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29435   *) ac_try_echo=$ac_try;;
29436 esac
29437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438   (eval "$ac_link") 2>conftest.er1
29439   ac_status=$?
29440   grep -v '^ *+' conftest.er1 >conftest.err
29441   rm -f conftest.er1
29442   cat conftest.err >&5
29443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444   (exit $ac_status); } && {
29445          test -z "$ac_c_werror_flag" ||
29446          test ! -s conftest.err
29447        } && test -s conftest$ac_exeext &&
29448        $as_test_x conftest$ac_exeext; then
29449   { echo "$as_me:$LINENO: result: yes" >&5
29450 echo "${ECHO_T}yes" >&6; }
29451           X_LIBS="$X_LIBS -R $x_libraries"
29452 else
29453   echo "$as_me: failed program was:" >&5
29454 sed 's/^/| /' conftest.$ac_ext >&5
29455
29456         { echo "$as_me:$LINENO: result: neither works" >&5
29457 echo "${ECHO_T}neither works" >&6; }
29458 fi
29459
29460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29461       conftest$ac_exeext conftest.$ac_ext
29462 fi
29463
29464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29465       conftest$ac_exeext conftest.$ac_ext
29466     ac_c_werror_flag=$ac_xsave_c_werror_flag
29467     LIBS=$ac_xsave_LIBS
29468   fi
29469
29470   # Check for system-dependent libraries X programs must link with.
29471   # Do this before checking for the system-independent R6 libraries
29472   # (-lICE), since we may need -lsocket or whatever for X linking.
29473
29474   if test "$ISC" = yes; then
29475     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29476   else
29477     # Martyn Johnson says this is needed for Ultrix, if the X
29478     # libraries were built with DECnet support.  And Karl Berry says
29479     # the Alpha needs dnet_stub (dnet does not exist).
29480     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29481     cat >conftest.$ac_ext <<_ACEOF
29482 /* confdefs.h.  */
29483 _ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h.  */
29487
29488 /* Override any GCC internal prototype to avoid an error.
29489    Use char because int might match the return type of a GCC
29490    builtin and then its argument prototype would still apply.  */
29491 #ifdef __cplusplus
29492 extern "C"
29493 #endif
29494 char XOpenDisplay ();
29495 int
29496 main ()
29497 {
29498 return XOpenDisplay ();
29499   ;
29500   return 0;
29501 }
29502 _ACEOF
29503 rm -f conftest.$ac_objext conftest$ac_exeext
29504 if { (ac_try="$ac_link"
29505 case "(($ac_try" in
29506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507   *) ac_try_echo=$ac_try;;
29508 esac
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510   (eval "$ac_link") 2>conftest.er1
29511   ac_status=$?
29512   grep -v '^ *+' conftest.er1 >conftest.err
29513   rm -f conftest.er1
29514   cat conftest.err >&5
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); } && {
29517          test -z "$ac_c_werror_flag" ||
29518          test ! -s conftest.err
29519        } && test -s conftest$ac_exeext &&
29520        $as_test_x conftest$ac_exeext; then
29521   :
29522 else
29523   echo "$as_me: failed program was:" >&5
29524 sed 's/^/| /' conftest.$ac_ext >&5
29525
29526         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29527 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29528 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29529   echo $ECHO_N "(cached) $ECHO_C" >&6
29530 else
29531   ac_check_lib_save_LIBS=$LIBS
29532 LIBS="-ldnet  $LIBS"
29533 cat >conftest.$ac_ext <<_ACEOF
29534 /* confdefs.h.  */
29535 _ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h.  */
29539
29540 /* Override any GCC internal prototype to avoid an error.
29541    Use char because int might match the return type of a GCC
29542    builtin and then its argument prototype would still apply.  */
29543 #ifdef __cplusplus
29544 extern "C"
29545 #endif
29546 char dnet_ntoa ();
29547 int
29548 main ()
29549 {
29550 return dnet_ntoa ();
29551   ;
29552   return 0;
29553 }
29554 _ACEOF
29555 rm -f conftest.$ac_objext conftest$ac_exeext
29556 if { (ac_try="$ac_link"
29557 case "(($ac_try" in
29558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559   *) ac_try_echo=$ac_try;;
29560 esac
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562   (eval "$ac_link") 2>conftest.er1
29563   ac_status=$?
29564   grep -v '^ *+' conftest.er1 >conftest.err
29565   rm -f conftest.er1
29566   cat conftest.err >&5
29567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568   (exit $ac_status); } && {
29569          test -z "$ac_c_werror_flag" ||
29570          test ! -s conftest.err
29571        } && test -s conftest$ac_exeext &&
29572        $as_test_x conftest$ac_exeext; then
29573   ac_cv_lib_dnet_dnet_ntoa=yes
29574 else
29575   echo "$as_me: failed program was:" >&5
29576 sed 's/^/| /' conftest.$ac_ext >&5
29577
29578         ac_cv_lib_dnet_dnet_ntoa=no
29579 fi
29580
29581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29582       conftest$ac_exeext conftest.$ac_ext
29583 LIBS=$ac_check_lib_save_LIBS
29584 fi
29585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29586 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29587 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29588   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29589 fi
29590
29591     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29592       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29593 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29594 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29595   echo $ECHO_N "(cached) $ECHO_C" >&6
29596 else
29597   ac_check_lib_save_LIBS=$LIBS
29598 LIBS="-ldnet_stub  $LIBS"
29599 cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h.  */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h.  */
29605
29606 /* Override any GCC internal prototype to avoid an error.
29607    Use char because int might match the return type of a GCC
29608    builtin and then its argument prototype would still apply.  */
29609 #ifdef __cplusplus
29610 extern "C"
29611 #endif
29612 char dnet_ntoa ();
29613 int
29614 main ()
29615 {
29616 return dnet_ntoa ();
29617   ;
29618   return 0;
29619 }
29620 _ACEOF
29621 rm -f conftest.$ac_objext conftest$ac_exeext
29622 if { (ac_try="$ac_link"
29623 case "(($ac_try" in
29624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625   *) ac_try_echo=$ac_try;;
29626 esac
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628   (eval "$ac_link") 2>conftest.er1
29629   ac_status=$?
29630   grep -v '^ *+' conftest.er1 >conftest.err
29631   rm -f conftest.er1
29632   cat conftest.err >&5
29633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634   (exit $ac_status); } && {
29635          test -z "$ac_c_werror_flag" ||
29636          test ! -s conftest.err
29637        } && test -s conftest$ac_exeext &&
29638        $as_test_x conftest$ac_exeext; then
29639   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29640 else
29641   echo "$as_me: failed program was:" >&5
29642 sed 's/^/| /' conftest.$ac_ext >&5
29643
29644         ac_cv_lib_dnet_stub_dnet_ntoa=no
29645 fi
29646
29647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29648       conftest$ac_exeext conftest.$ac_ext
29649 LIBS=$ac_check_lib_save_LIBS
29650 fi
29651 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29652 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29653 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29654   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29655 fi
29656
29657     fi
29658 fi
29659
29660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29661       conftest$ac_exeext conftest.$ac_ext
29662     LIBS="$ac_xsave_LIBS"
29663
29664     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29665     # to get the SysV transport functions.
29666     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29667     # needs -lnsl.
29668     # The nsl library prevents programs from opening the X display
29669     # on Irix 5.2, according to T.E. Dickey.
29670     # The functions gethostbyname, getservbyname, and inet_addr are
29671     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29672     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29673 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29674 if test "${ac_cv_func_gethostbyname+set}" = set; then
29675   echo $ECHO_N "(cached) $ECHO_C" >&6
29676 else
29677   cat >conftest.$ac_ext <<_ACEOF
29678 /* confdefs.h.  */
29679 _ACEOF
29680 cat confdefs.h >>conftest.$ac_ext
29681 cat >>conftest.$ac_ext <<_ACEOF
29682 /* end confdefs.h.  */
29683 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29685 #define gethostbyname innocuous_gethostbyname
29686
29687 /* System header to define __stub macros and hopefully few prototypes,
29688     which can conflict with char gethostbyname (); below.
29689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29690     <limits.h> exists even on freestanding compilers.  */
29691
29692 #ifdef __STDC__
29693 # include <limits.h>
29694 #else
29695 # include <assert.h>
29696 #endif
29697
29698 #undef gethostbyname
29699
29700 /* Override any GCC internal prototype to avoid an error.
29701    Use char because int might match the return type of a GCC
29702    builtin and then its argument prototype would still apply.  */
29703 #ifdef __cplusplus
29704 extern "C"
29705 #endif
29706 char gethostbyname ();
29707 /* The GNU C library defines this for functions which it implements
29708     to always fail with ENOSYS.  Some functions are actually named
29709     something starting with __ and the normal name is an alias.  */
29710 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29711 choke me
29712 #endif
29713
29714 int
29715 main ()
29716 {
29717 return gethostbyname ();
29718   ;
29719   return 0;
29720 }
29721 _ACEOF
29722 rm -f conftest.$ac_objext conftest$ac_exeext
29723 if { (ac_try="$ac_link"
29724 case "(($ac_try" in
29725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726   *) ac_try_echo=$ac_try;;
29727 esac
29728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729   (eval "$ac_link") 2>conftest.er1
29730   ac_status=$?
29731   grep -v '^ *+' conftest.er1 >conftest.err
29732   rm -f conftest.er1
29733   cat conftest.err >&5
29734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735   (exit $ac_status); } && {
29736          test -z "$ac_c_werror_flag" ||
29737          test ! -s conftest.err
29738        } && test -s conftest$ac_exeext &&
29739        $as_test_x conftest$ac_exeext; then
29740   ac_cv_func_gethostbyname=yes
29741 else
29742   echo "$as_me: failed program was:" >&5
29743 sed 's/^/| /' conftest.$ac_ext >&5
29744
29745         ac_cv_func_gethostbyname=no
29746 fi
29747
29748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29749       conftest$ac_exeext conftest.$ac_ext
29750 fi
29751 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29752 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29753
29754     if test $ac_cv_func_gethostbyname = no; then
29755       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29756 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29757 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29758   echo $ECHO_N "(cached) $ECHO_C" >&6
29759 else
29760   ac_check_lib_save_LIBS=$LIBS
29761 LIBS="-lnsl  $LIBS"
29762 cat >conftest.$ac_ext <<_ACEOF
29763 /* confdefs.h.  */
29764 _ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h.  */
29768
29769 /* Override any GCC internal prototype to avoid an error.
29770    Use char because int might match the return type of a GCC
29771    builtin and then its argument prototype would still apply.  */
29772 #ifdef __cplusplus
29773 extern "C"
29774 #endif
29775 char gethostbyname ();
29776 int
29777 main ()
29778 {
29779 return gethostbyname ();
29780   ;
29781   return 0;
29782 }
29783 _ACEOF
29784 rm -f conftest.$ac_objext conftest$ac_exeext
29785 if { (ac_try="$ac_link"
29786 case "(($ac_try" in
29787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788   *) ac_try_echo=$ac_try;;
29789 esac
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791   (eval "$ac_link") 2>conftest.er1
29792   ac_status=$?
29793   grep -v '^ *+' conftest.er1 >conftest.err
29794   rm -f conftest.er1
29795   cat conftest.err >&5
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); } && {
29798          test -z "$ac_c_werror_flag" ||
29799          test ! -s conftest.err
29800        } && test -s conftest$ac_exeext &&
29801        $as_test_x conftest$ac_exeext; then
29802   ac_cv_lib_nsl_gethostbyname=yes
29803 else
29804   echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29806
29807         ac_cv_lib_nsl_gethostbyname=no
29808 fi
29809
29810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29811       conftest$ac_exeext conftest.$ac_ext
29812 LIBS=$ac_check_lib_save_LIBS
29813 fi
29814 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29815 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29816 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29817   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29818 fi
29819
29820       if test $ac_cv_lib_nsl_gethostbyname = no; then
29821         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29822 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29823 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29824   echo $ECHO_N "(cached) $ECHO_C" >&6
29825 else
29826   ac_check_lib_save_LIBS=$LIBS
29827 LIBS="-lbsd  $LIBS"
29828 cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834
29835 /* Override any GCC internal prototype to avoid an error.
29836    Use char because int might match the return type of a GCC
29837    builtin and then its argument prototype would still apply.  */
29838 #ifdef __cplusplus
29839 extern "C"
29840 #endif
29841 char gethostbyname ();
29842 int
29843 main ()
29844 {
29845 return gethostbyname ();
29846   ;
29847   return 0;
29848 }
29849 _ACEOF
29850 rm -f conftest.$ac_objext conftest$ac_exeext
29851 if { (ac_try="$ac_link"
29852 case "(($ac_try" in
29853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854   *) ac_try_echo=$ac_try;;
29855 esac
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857   (eval "$ac_link") 2>conftest.er1
29858   ac_status=$?
29859   grep -v '^ *+' conftest.er1 >conftest.err
29860   rm -f conftest.er1
29861   cat conftest.err >&5
29862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863   (exit $ac_status); } && {
29864          test -z "$ac_c_werror_flag" ||
29865          test ! -s conftest.err
29866        } && test -s conftest$ac_exeext &&
29867        $as_test_x conftest$ac_exeext; then
29868   ac_cv_lib_bsd_gethostbyname=yes
29869 else
29870   echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.$ac_ext >&5
29872
29873         ac_cv_lib_bsd_gethostbyname=no
29874 fi
29875
29876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29877       conftest$ac_exeext conftest.$ac_ext
29878 LIBS=$ac_check_lib_save_LIBS
29879 fi
29880 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29881 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29882 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29883   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29884 fi
29885
29886       fi
29887     fi
29888
29889     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29890     # socket/setsockopt and other routines are undefined under SCO ODT
29891     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29892     # on later versions), says Simon Leinen: it contains gethostby*
29893     # variants that don't use the name server (or something).  -lsocket
29894     # must be given before -lnsl if both are needed.  We assume that
29895     # if connect needs -lnsl, so does gethostbyname.
29896     { echo "$as_me:$LINENO: checking for connect" >&5
29897 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29898 if test "${ac_cv_func_connect+set}" = set; then
29899   echo $ECHO_N "(cached) $ECHO_C" >&6
29900 else
29901   cat >conftest.$ac_ext <<_ACEOF
29902 /* confdefs.h.  */
29903 _ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h.  */
29907 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29909 #define connect innocuous_connect
29910
29911 /* System header to define __stub macros and hopefully few prototypes,
29912     which can conflict with char connect (); below.
29913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29914     <limits.h> exists even on freestanding compilers.  */
29915
29916 #ifdef __STDC__
29917 # include <limits.h>
29918 #else
29919 # include <assert.h>
29920 #endif
29921
29922 #undef connect
29923
29924 /* Override any GCC internal prototype to avoid an error.
29925    Use char because int might match the return type of a GCC
29926    builtin and then its argument prototype would still apply.  */
29927 #ifdef __cplusplus
29928 extern "C"
29929 #endif
29930 char connect ();
29931 /* The GNU C library defines this for functions which it implements
29932     to always fail with ENOSYS.  Some functions are actually named
29933     something starting with __ and the normal name is an alias.  */
29934 #if defined __stub_connect || defined __stub___connect
29935 choke me
29936 #endif
29937
29938 int
29939 main ()
29940 {
29941 return connect ();
29942   ;
29943   return 0;
29944 }
29945 _ACEOF
29946 rm -f conftest.$ac_objext conftest$ac_exeext
29947 if { (ac_try="$ac_link"
29948 case "(($ac_try" in
29949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950   *) ac_try_echo=$ac_try;;
29951 esac
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953   (eval "$ac_link") 2>conftest.er1
29954   ac_status=$?
29955   grep -v '^ *+' conftest.er1 >conftest.err
29956   rm -f conftest.er1
29957   cat conftest.err >&5
29958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959   (exit $ac_status); } && {
29960          test -z "$ac_c_werror_flag" ||
29961          test ! -s conftest.err
29962        } && test -s conftest$ac_exeext &&
29963        $as_test_x conftest$ac_exeext; then
29964   ac_cv_func_connect=yes
29965 else
29966   echo "$as_me: failed program was:" >&5
29967 sed 's/^/| /' conftest.$ac_ext >&5
29968
29969         ac_cv_func_connect=no
29970 fi
29971
29972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29973       conftest$ac_exeext conftest.$ac_ext
29974 fi
29975 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29976 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29977
29978     if test $ac_cv_func_connect = no; then
29979       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29980 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29981 if test "${ac_cv_lib_socket_connect+set}" = set; then
29982   echo $ECHO_N "(cached) $ECHO_C" >&6
29983 else
29984   ac_check_lib_save_LIBS=$LIBS
29985 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29986 cat >conftest.$ac_ext <<_ACEOF
29987 /* confdefs.h.  */
29988 _ACEOF
29989 cat confdefs.h >>conftest.$ac_ext
29990 cat >>conftest.$ac_ext <<_ACEOF
29991 /* end confdefs.h.  */
29992
29993 /* Override any GCC internal prototype to avoid an error.
29994    Use char because int might match the return type of a GCC
29995    builtin and then its argument prototype would still apply.  */
29996 #ifdef __cplusplus
29997 extern "C"
29998 #endif
29999 char connect ();
30000 int
30001 main ()
30002 {
30003 return connect ();
30004   ;
30005   return 0;
30006 }
30007 _ACEOF
30008 rm -f conftest.$ac_objext conftest$ac_exeext
30009 if { (ac_try="$ac_link"
30010 case "(($ac_try" in
30011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012   *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015   (eval "$ac_link") 2>conftest.er1
30016   ac_status=$?
30017   grep -v '^ *+' conftest.er1 >conftest.err
30018   rm -f conftest.er1
30019   cat conftest.err >&5
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); } && {
30022          test -z "$ac_c_werror_flag" ||
30023          test ! -s conftest.err
30024        } && test -s conftest$ac_exeext &&
30025        $as_test_x conftest$ac_exeext; then
30026   ac_cv_lib_socket_connect=yes
30027 else
30028   echo "$as_me: failed program was:" >&5
30029 sed 's/^/| /' conftest.$ac_ext >&5
30030
30031         ac_cv_lib_socket_connect=no
30032 fi
30033
30034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30035       conftest$ac_exeext conftest.$ac_ext
30036 LIBS=$ac_check_lib_save_LIBS
30037 fi
30038 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30039 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30040 if test $ac_cv_lib_socket_connect = yes; then
30041   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30042 fi
30043
30044     fi
30045
30046     # Guillermo Gomez says -lposix is necessary on A/UX.
30047     { echo "$as_me:$LINENO: checking for remove" >&5
30048 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30049 if test "${ac_cv_func_remove+set}" = set; then
30050   echo $ECHO_N "(cached) $ECHO_C" >&6
30051 else
30052   cat >conftest.$ac_ext <<_ACEOF
30053 /* confdefs.h.  */
30054 _ACEOF
30055 cat confdefs.h >>conftest.$ac_ext
30056 cat >>conftest.$ac_ext <<_ACEOF
30057 /* end confdefs.h.  */
30058 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30060 #define remove innocuous_remove
30061
30062 /* System header to define __stub macros and hopefully few prototypes,
30063     which can conflict with char remove (); below.
30064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30065     <limits.h> exists even on freestanding compilers.  */
30066
30067 #ifdef __STDC__
30068 # include <limits.h>
30069 #else
30070 # include <assert.h>
30071 #endif
30072
30073 #undef remove
30074
30075 /* Override any GCC internal prototype to avoid an error.
30076    Use char because int might match the return type of a GCC
30077    builtin and then its argument prototype would still apply.  */
30078 #ifdef __cplusplus
30079 extern "C"
30080 #endif
30081 char remove ();
30082 /* The GNU C library defines this for functions which it implements
30083     to always fail with ENOSYS.  Some functions are actually named
30084     something starting with __ and the normal name is an alias.  */
30085 #if defined __stub_remove || defined __stub___remove
30086 choke me
30087 #endif
30088
30089 int
30090 main ()
30091 {
30092 return remove ();
30093   ;
30094   return 0;
30095 }
30096 _ACEOF
30097 rm -f conftest.$ac_objext conftest$ac_exeext
30098 if { (ac_try="$ac_link"
30099 case "(($ac_try" in
30100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101   *) ac_try_echo=$ac_try;;
30102 esac
30103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30104   (eval "$ac_link") 2>conftest.er1
30105   ac_status=$?
30106   grep -v '^ *+' conftest.er1 >conftest.err
30107   rm -f conftest.er1
30108   cat conftest.err >&5
30109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110   (exit $ac_status); } && {
30111          test -z "$ac_c_werror_flag" ||
30112          test ! -s conftest.err
30113        } && test -s conftest$ac_exeext &&
30114        $as_test_x conftest$ac_exeext; then
30115   ac_cv_func_remove=yes
30116 else
30117   echo "$as_me: failed program was:" >&5
30118 sed 's/^/| /' conftest.$ac_ext >&5
30119
30120         ac_cv_func_remove=no
30121 fi
30122
30123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30124       conftest$ac_exeext conftest.$ac_ext
30125 fi
30126 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30127 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30128
30129     if test $ac_cv_func_remove = no; then
30130       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30131 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30132 if test "${ac_cv_lib_posix_remove+set}" = set; then
30133   echo $ECHO_N "(cached) $ECHO_C" >&6
30134 else
30135   ac_check_lib_save_LIBS=$LIBS
30136 LIBS="-lposix  $LIBS"
30137 cat >conftest.$ac_ext <<_ACEOF
30138 /* confdefs.h.  */
30139 _ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h.  */
30143
30144 /* Override any GCC internal prototype to avoid an error.
30145    Use char because int might match the return type of a GCC
30146    builtin and then its argument prototype would still apply.  */
30147 #ifdef __cplusplus
30148 extern "C"
30149 #endif
30150 char remove ();
30151 int
30152 main ()
30153 {
30154 return remove ();
30155   ;
30156   return 0;
30157 }
30158 _ACEOF
30159 rm -f conftest.$ac_objext conftest$ac_exeext
30160 if { (ac_try="$ac_link"
30161 case "(($ac_try" in
30162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163   *) ac_try_echo=$ac_try;;
30164 esac
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166   (eval "$ac_link") 2>conftest.er1
30167   ac_status=$?
30168   grep -v '^ *+' conftest.er1 >conftest.err
30169   rm -f conftest.er1
30170   cat conftest.err >&5
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); } && {
30173          test -z "$ac_c_werror_flag" ||
30174          test ! -s conftest.err
30175        } && test -s conftest$ac_exeext &&
30176        $as_test_x conftest$ac_exeext; then
30177   ac_cv_lib_posix_remove=yes
30178 else
30179   echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30181
30182         ac_cv_lib_posix_remove=no
30183 fi
30184
30185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30186       conftest$ac_exeext conftest.$ac_ext
30187 LIBS=$ac_check_lib_save_LIBS
30188 fi
30189 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30190 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30191 if test $ac_cv_lib_posix_remove = yes; then
30192   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30193 fi
30194
30195     fi
30196
30197     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30198     { echo "$as_me:$LINENO: checking for shmat" >&5
30199 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30200 if test "${ac_cv_func_shmat+set}" = set; then
30201   echo $ECHO_N "(cached) $ECHO_C" >&6
30202 else
30203   cat >conftest.$ac_ext <<_ACEOF
30204 /* confdefs.h.  */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h.  */
30209 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30211 #define shmat innocuous_shmat
30212
30213 /* System header to define __stub macros and hopefully few prototypes,
30214     which can conflict with char shmat (); below.
30215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216     <limits.h> exists even on freestanding compilers.  */
30217
30218 #ifdef __STDC__
30219 # include <limits.h>
30220 #else
30221 # include <assert.h>
30222 #endif
30223
30224 #undef shmat
30225
30226 /* Override any GCC internal prototype to avoid an error.
30227    Use char because int might match the return type of a GCC
30228    builtin and then its argument prototype would still apply.  */
30229 #ifdef __cplusplus
30230 extern "C"
30231 #endif
30232 char shmat ();
30233 /* The GNU C library defines this for functions which it implements
30234     to always fail with ENOSYS.  Some functions are actually named
30235     something starting with __ and the normal name is an alias.  */
30236 #if defined __stub_shmat || defined __stub___shmat
30237 choke me
30238 #endif
30239
30240 int
30241 main ()
30242 {
30243 return shmat ();
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_func_shmat=yes
30267 else
30268   echo "$as_me: failed program was:" >&5
30269 sed 's/^/| /' conftest.$ac_ext >&5
30270
30271         ac_cv_func_shmat=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 fi
30277 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30278 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30279
30280     if test $ac_cv_func_shmat = no; then
30281       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30282 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30283 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30284   echo $ECHO_N "(cached) $ECHO_C" >&6
30285 else
30286   ac_check_lib_save_LIBS=$LIBS
30287 LIBS="-lipc  $LIBS"
30288 cat >conftest.$ac_ext <<_ACEOF
30289 /* confdefs.h.  */
30290 _ACEOF
30291 cat confdefs.h >>conftest.$ac_ext
30292 cat >>conftest.$ac_ext <<_ACEOF
30293 /* end confdefs.h.  */
30294
30295 /* Override any GCC internal prototype to avoid an error.
30296    Use char because int might match the return type of a GCC
30297    builtin and then its argument prototype would still apply.  */
30298 #ifdef __cplusplus
30299 extern "C"
30300 #endif
30301 char shmat ();
30302 int
30303 main ()
30304 {
30305 return shmat ();
30306   ;
30307   return 0;
30308 }
30309 _ACEOF
30310 rm -f conftest.$ac_objext conftest$ac_exeext
30311 if { (ac_try="$ac_link"
30312 case "(($ac_try" in
30313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30314   *) ac_try_echo=$ac_try;;
30315 esac
30316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30317   (eval "$ac_link") 2>conftest.er1
30318   ac_status=$?
30319   grep -v '^ *+' conftest.er1 >conftest.err
30320   rm -f conftest.er1
30321   cat conftest.err >&5
30322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323   (exit $ac_status); } && {
30324          test -z "$ac_c_werror_flag" ||
30325          test ! -s conftest.err
30326        } && test -s conftest$ac_exeext &&
30327        $as_test_x conftest$ac_exeext; then
30328   ac_cv_lib_ipc_shmat=yes
30329 else
30330   echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30332
30333         ac_cv_lib_ipc_shmat=no
30334 fi
30335
30336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30337       conftest$ac_exeext conftest.$ac_ext
30338 LIBS=$ac_check_lib_save_LIBS
30339 fi
30340 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30341 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30342 if test $ac_cv_lib_ipc_shmat = yes; then
30343   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30344 fi
30345
30346     fi
30347   fi
30348
30349   # Check for libraries that X11R6 Xt/Xaw programs need.
30350   ac_save_LDFLAGS=$LDFLAGS
30351   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30352   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30353   # check for ICE first), but we must link in the order -lSM -lICE or
30354   # we get undefined symbols.  So assume we have SM if we have ICE.
30355   # These have to be linked with before -lX11, unlike the other
30356   # libraries we check for below, so use a different variable.
30357   # John Interrante, Karl Berry
30358   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30359 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30360 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30361   echo $ECHO_N "(cached) $ECHO_C" >&6
30362 else
30363   ac_check_lib_save_LIBS=$LIBS
30364 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
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
30372 /* Override any GCC internal prototype to avoid an error.
30373    Use char because int might match the return type of a GCC
30374    builtin and then its argument prototype would still apply.  */
30375 #ifdef __cplusplus
30376 extern "C"
30377 #endif
30378 char IceConnectionNumber ();
30379 int
30380 main ()
30381 {
30382 return IceConnectionNumber ();
30383   ;
30384   return 0;
30385 }
30386 _ACEOF
30387 rm -f conftest.$ac_objext conftest$ac_exeext
30388 if { (ac_try="$ac_link"
30389 case "(($ac_try" in
30390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391   *) ac_try_echo=$ac_try;;
30392 esac
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394   (eval "$ac_link") 2>conftest.er1
30395   ac_status=$?
30396   grep -v '^ *+' conftest.er1 >conftest.err
30397   rm -f conftest.er1
30398   cat conftest.err >&5
30399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400   (exit $ac_status); } && {
30401          test -z "$ac_c_werror_flag" ||
30402          test ! -s conftest.err
30403        } && test -s conftest$ac_exeext &&
30404        $as_test_x conftest$ac_exeext; then
30405   ac_cv_lib_ICE_IceConnectionNumber=yes
30406 else
30407   echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30409
30410         ac_cv_lib_ICE_IceConnectionNumber=no
30411 fi
30412
30413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30414       conftest$ac_exeext conftest.$ac_ext
30415 LIBS=$ac_check_lib_save_LIBS
30416 fi
30417 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30418 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30419 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30420   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30421 fi
30422
30423   LDFLAGS=$ac_save_LDFLAGS
30424
30425 fi
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458 for ac_header in \
30459    assert.h \
30460    fcntl.h \
30461    grp.h \
30462    pwd.h \
30463    libc.h \
30464    limits.h \
30465    stdarg.h \
30466    stdlib.h \
30467    stdint.h \
30468    string.h \
30469    strings.h \
30470    termios.h \
30471    termcap.h \
30472    term.h \
30473    unistd.h \
30474    sys/bitypes.h \
30475    sys/byteorder.h \
30476    sys/ioctl.h \
30477    sys/select.h \
30478    sys/socket.h \
30479    sys/sockio.h \
30480    sys/stat.h \
30481    sys/time.h \
30482    sys/types.h \
30483    arpa/nameser.h \
30484    resolv.h \
30485    mtio.h \
30486    sys/mtio.h \
30487    sys/tape.h \
30488    regex.h \
30489
30490 do
30491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30493   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30496   echo $ECHO_N "(cached) $ECHO_C" >&6
30497 fi
30498 ac_res=`eval echo '${'$as_ac_Header'}'`
30499                { echo "$as_me:$LINENO: result: $ac_res" >&5
30500 echo "${ECHO_T}$ac_res" >&6; }
30501 else
30502   # Is the header compilable?
30503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30505 cat >conftest.$ac_ext <<_ACEOF
30506 /* confdefs.h.  */
30507 _ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h.  */
30511 $ac_includes_default
30512 #include <$ac_header>
30513 _ACEOF
30514 rm -f conftest.$ac_objext
30515 if { (ac_try="$ac_compile"
30516 case "(($ac_try" in
30517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518   *) ac_try_echo=$ac_try;;
30519 esac
30520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521   (eval "$ac_compile") 2>conftest.er1
30522   ac_status=$?
30523   grep -v '^ *+' conftest.er1 >conftest.err
30524   rm -f conftest.er1
30525   cat conftest.err >&5
30526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527   (exit $ac_status); } && {
30528          test -z "$ac_c_werror_flag" ||
30529          test ! -s conftest.err
30530        } && test -s conftest.$ac_objext; then
30531   ac_header_compiler=yes
30532 else
30533   echo "$as_me: failed program was:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30535
30536         ac_header_compiler=no
30537 fi
30538
30539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30541 echo "${ECHO_T}$ac_header_compiler" >&6; }
30542
30543 # Is the header present?
30544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30546 cat >conftest.$ac_ext <<_ACEOF
30547 /* confdefs.h.  */
30548 _ACEOF
30549 cat confdefs.h >>conftest.$ac_ext
30550 cat >>conftest.$ac_ext <<_ACEOF
30551 /* end confdefs.h.  */
30552 #include <$ac_header>
30553 _ACEOF
30554 if { (ac_try="$ac_cpp conftest.$ac_ext"
30555 case "(($ac_try" in
30556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557   *) ac_try_echo=$ac_try;;
30558 esac
30559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30561   ac_status=$?
30562   grep -v '^ *+' conftest.er1 >conftest.err
30563   rm -f conftest.er1
30564   cat conftest.err >&5
30565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566   (exit $ac_status); } >/dev/null && {
30567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30568          test ! -s conftest.err
30569        }; then
30570   ac_header_preproc=yes
30571 else
30572   echo "$as_me: failed program was:" >&5
30573 sed 's/^/| /' conftest.$ac_ext >&5
30574
30575   ac_header_preproc=no
30576 fi
30577
30578 rm -f conftest.err conftest.$ac_ext
30579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30580 echo "${ECHO_T}$ac_header_preproc" >&6; }
30581
30582 # So?  What about this header?
30583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30584   yes:no: )
30585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30589     ac_header_preproc=yes
30590     ;;
30591   no:yes:* )
30592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30604
30605     ;;
30606 esac
30607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30610   echo $ECHO_N "(cached) $ECHO_C" >&6
30611 else
30612   eval "$as_ac_Header=\$ac_header_preproc"
30613 fi
30614 ac_res=`eval echo '${'$as_ac_Header'}'`
30615                { echo "$as_me:$LINENO: result: $ac_res" >&5
30616 echo "${ECHO_T}$ac_res" >&6; }
30617
30618 fi
30619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30620   cat >>confdefs.h <<_ACEOF
30621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30622 _ACEOF
30623
30624 fi
30625
30626 done
30627
30628 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30630 if test "${ac_cv_header_stdc+set}" = set; then
30631   echo $ECHO_N "(cached) $ECHO_C" >&6
30632 else
30633   cat >conftest.$ac_ext <<_ACEOF
30634 /* confdefs.h.  */
30635 _ACEOF
30636 cat confdefs.h >>conftest.$ac_ext
30637 cat >>conftest.$ac_ext <<_ACEOF
30638 /* end confdefs.h.  */
30639 #include <stdlib.h>
30640 #include <stdarg.h>
30641 #include <string.h>
30642 #include <float.h>
30643
30644 int
30645 main ()
30646 {
30647
30648   ;
30649   return 0;
30650 }
30651 _ACEOF
30652 rm -f conftest.$ac_objext
30653 if { (ac_try="$ac_compile"
30654 case "(($ac_try" in
30655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656   *) ac_try_echo=$ac_try;;
30657 esac
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659   (eval "$ac_compile") 2>conftest.er1
30660   ac_status=$?
30661   grep -v '^ *+' conftest.er1 >conftest.err
30662   rm -f conftest.er1
30663   cat conftest.err >&5
30664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665   (exit $ac_status); } && {
30666          test -z "$ac_c_werror_flag" ||
30667          test ! -s conftest.err
30668        } && test -s conftest.$ac_objext; then
30669   ac_cv_header_stdc=yes
30670 else
30671   echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30673
30674         ac_cv_header_stdc=no
30675 fi
30676
30677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30678
30679 if test $ac_cv_header_stdc = yes; then
30680   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30681   cat >conftest.$ac_ext <<_ACEOF
30682 /* confdefs.h.  */
30683 _ACEOF
30684 cat confdefs.h >>conftest.$ac_ext
30685 cat >>conftest.$ac_ext <<_ACEOF
30686 /* end confdefs.h.  */
30687 #include <string.h>
30688
30689 _ACEOF
30690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30691   $EGREP "memchr" >/dev/null 2>&1; then
30692   :
30693 else
30694   ac_cv_header_stdc=no
30695 fi
30696 rm -f conftest*
30697
30698 fi
30699
30700 if test $ac_cv_header_stdc = yes; then
30701   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30702   cat >conftest.$ac_ext <<_ACEOF
30703 /* confdefs.h.  */
30704 _ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h.  */
30708 #include <stdlib.h>
30709
30710 _ACEOF
30711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30712   $EGREP "free" >/dev/null 2>&1; then
30713   :
30714 else
30715   ac_cv_header_stdc=no
30716 fi
30717 rm -f conftest*
30718
30719 fi
30720
30721 if test $ac_cv_header_stdc = yes; then
30722   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30723   if test "$cross_compiling" = yes; then
30724   :
30725 else
30726   cat >conftest.$ac_ext <<_ACEOF
30727 /* confdefs.h.  */
30728 _ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h.  */
30732 #include <ctype.h>
30733 #include <stdlib.h>
30734 #if ((' ' & 0x0FF) == 0x020)
30735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30737 #else
30738 # define ISLOWER(c) \
30739                    (('a' <= (c) && (c) <= 'i') \
30740                      || ('j' <= (c) && (c) <= 'r') \
30741                      || ('s' <= (c) && (c) <= 'z'))
30742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30743 #endif
30744
30745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30746 int
30747 main ()
30748 {
30749   int i;
30750   for (i = 0; i < 256; i++)
30751     if (XOR (islower (i), ISLOWER (i))
30752         || toupper (i) != TOUPPER (i))
30753       return 2;
30754   return 0;
30755 }
30756 _ACEOF
30757 rm -f conftest$ac_exeext
30758 if { (ac_try="$ac_link"
30759 case "(($ac_try" in
30760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761   *) ac_try_echo=$ac_try;;
30762 esac
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764   (eval "$ac_link") 2>&5
30765   ac_status=$?
30766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30768   { (case "(($ac_try" in
30769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30770   *) ac_try_echo=$ac_try;;
30771 esac
30772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30773   (eval "$ac_try") 2>&5
30774   ac_status=$?
30775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776   (exit $ac_status); }; }; then
30777   :
30778 else
30779   echo "$as_me: program exited with status $ac_status" >&5
30780 echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30782
30783 ( exit $ac_status )
30784 ac_cv_header_stdc=no
30785 fi
30786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30787 fi
30788
30789
30790 fi
30791 fi
30792 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30793 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30794 if test $ac_cv_header_stdc = yes; then
30795
30796 cat >>confdefs.h <<\_ACEOF
30797 #define STDC_HEADERS 1
30798 _ACEOF
30799
30800 fi
30801
30802 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30803 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30804 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30805   echo $ECHO_N "(cached) $ECHO_C" >&6
30806 else
30807   cat >conftest.$ac_ext <<_ACEOF
30808 /* confdefs.h.  */
30809 _ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h.  */
30813 #include <sys/types.h>
30814 int
30815 main ()
30816 {
30817 return makedev(0, 0);
30818   ;
30819   return 0;
30820 }
30821 _ACEOF
30822 rm -f conftest.$ac_objext conftest$ac_exeext
30823 if { (ac_try="$ac_link"
30824 case "(($ac_try" in
30825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30826   *) ac_try_echo=$ac_try;;
30827 esac
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829   (eval "$ac_link") 2>conftest.er1
30830   ac_status=$?
30831   grep -v '^ *+' conftest.er1 >conftest.err
30832   rm -f conftest.er1
30833   cat conftest.err >&5
30834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835   (exit $ac_status); } && {
30836          test -z "$ac_c_werror_flag" ||
30837          test ! -s conftest.err
30838        } && test -s conftest$ac_exeext &&
30839        $as_test_x conftest$ac_exeext; then
30840   ac_cv_header_sys_types_h_makedev=yes
30841 else
30842   echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30844
30845         ac_cv_header_sys_types_h_makedev=no
30846 fi
30847
30848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30849       conftest$ac_exeext conftest.$ac_ext
30850
30851 fi
30852 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30853 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30854
30855 if test $ac_cv_header_sys_types_h_makedev = no; then
30856 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30857   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30858 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30859 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30860   echo $ECHO_N "(cached) $ECHO_C" >&6
30861 fi
30862 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30863 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30864 else
30865   # Is the header compilable?
30866 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30867 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30868 cat >conftest.$ac_ext <<_ACEOF
30869 /* confdefs.h.  */
30870 _ACEOF
30871 cat confdefs.h >>conftest.$ac_ext
30872 cat >>conftest.$ac_ext <<_ACEOF
30873 /* end confdefs.h.  */
30874 $ac_includes_default
30875 #include <sys/mkdev.h>
30876 _ACEOF
30877 rm -f conftest.$ac_objext
30878 if { (ac_try="$ac_compile"
30879 case "(($ac_try" in
30880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881   *) ac_try_echo=$ac_try;;
30882 esac
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884   (eval "$ac_compile") 2>conftest.er1
30885   ac_status=$?
30886   grep -v '^ *+' conftest.er1 >conftest.err
30887   rm -f conftest.er1
30888   cat conftest.err >&5
30889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890   (exit $ac_status); } && {
30891          test -z "$ac_c_werror_flag" ||
30892          test ! -s conftest.err
30893        } && test -s conftest.$ac_objext; then
30894   ac_header_compiler=yes
30895 else
30896   echo "$as_me: failed program was:" >&5
30897 sed 's/^/| /' conftest.$ac_ext >&5
30898
30899         ac_header_compiler=no
30900 fi
30901
30902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30904 echo "${ECHO_T}$ac_header_compiler" >&6; }
30905
30906 # Is the header present?
30907 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30908 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30909 cat >conftest.$ac_ext <<_ACEOF
30910 /* confdefs.h.  */
30911 _ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h.  */
30915 #include <sys/mkdev.h>
30916 _ACEOF
30917 if { (ac_try="$ac_cpp conftest.$ac_ext"
30918 case "(($ac_try" in
30919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920   *) ac_try_echo=$ac_try;;
30921 esac
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30924   ac_status=$?
30925   grep -v '^ *+' conftest.er1 >conftest.err
30926   rm -f conftest.er1
30927   cat conftest.err >&5
30928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929   (exit $ac_status); } >/dev/null && {
30930          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30931          test ! -s conftest.err
30932        }; then
30933   ac_header_preproc=yes
30934 else
30935   echo "$as_me: failed program was:" >&5
30936 sed 's/^/| /' conftest.$ac_ext >&5
30937
30938   ac_header_preproc=no
30939 fi
30940
30941 rm -f conftest.err conftest.$ac_ext
30942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30943 echo "${ECHO_T}$ac_header_preproc" >&6; }
30944
30945 # So?  What about this header?
30946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30947   yes:no: )
30948     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30949 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30950     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30951 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30952     ac_header_preproc=yes
30953     ;;
30954   no:yes:* )
30955     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30956 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30957     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30958 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30959     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30960 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30961     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30962 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30963     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30964 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30965     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30966 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30967
30968     ;;
30969 esac
30970 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30971 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30972 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30973   echo $ECHO_N "(cached) $ECHO_C" >&6
30974 else
30975   ac_cv_header_sys_mkdev_h=$ac_header_preproc
30976 fi
30977 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30978 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30979
30980 fi
30981 if test $ac_cv_header_sys_mkdev_h = yes; then
30982
30983 cat >>confdefs.h <<\_ACEOF
30984 #define MAJOR_IN_MKDEV 1
30985 _ACEOF
30986
30987 fi
30988
30989
30990
30991   if test $ac_cv_header_sys_mkdev_h = no; then
30992     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
30993   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
30994 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
30995 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
30996   echo $ECHO_N "(cached) $ECHO_C" >&6
30997 fi
30998 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
30999 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31000 else
31001   # Is the header compilable?
31002 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31003 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31004 cat >conftest.$ac_ext <<_ACEOF
31005 /* confdefs.h.  */
31006 _ACEOF
31007 cat confdefs.h >>conftest.$ac_ext
31008 cat >>conftest.$ac_ext <<_ACEOF
31009 /* end confdefs.h.  */
31010 $ac_includes_default
31011 #include <sys/sysmacros.h>
31012 _ACEOF
31013 rm -f conftest.$ac_objext
31014 if { (ac_try="$ac_compile"
31015 case "(($ac_try" in
31016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31017   *) ac_try_echo=$ac_try;;
31018 esac
31019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31020   (eval "$ac_compile") 2>conftest.er1
31021   ac_status=$?
31022   grep -v '^ *+' conftest.er1 >conftest.err
31023   rm -f conftest.er1
31024   cat conftest.err >&5
31025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026   (exit $ac_status); } && {
31027          test -z "$ac_c_werror_flag" ||
31028          test ! -s conftest.err
31029        } && test -s conftest.$ac_objext; then
31030   ac_header_compiler=yes
31031 else
31032   echo "$as_me: failed program was:" >&5
31033 sed 's/^/| /' conftest.$ac_ext >&5
31034
31035         ac_header_compiler=no
31036 fi
31037
31038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31040 echo "${ECHO_T}$ac_header_compiler" >&6; }
31041
31042 # Is the header present?
31043 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31044 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31045 cat >conftest.$ac_ext <<_ACEOF
31046 /* confdefs.h.  */
31047 _ACEOF
31048 cat confdefs.h >>conftest.$ac_ext
31049 cat >>conftest.$ac_ext <<_ACEOF
31050 /* end confdefs.h.  */
31051 #include <sys/sysmacros.h>
31052 _ACEOF
31053 if { (ac_try="$ac_cpp conftest.$ac_ext"
31054 case "(($ac_try" in
31055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056   *) ac_try_echo=$ac_try;;
31057 esac
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31060   ac_status=$?
31061   grep -v '^ *+' conftest.er1 >conftest.err
31062   rm -f conftest.er1
31063   cat conftest.err >&5
31064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065   (exit $ac_status); } >/dev/null && {
31066          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31067          test ! -s conftest.err
31068        }; then
31069   ac_header_preproc=yes
31070 else
31071   echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31073
31074   ac_header_preproc=no
31075 fi
31076
31077 rm -f conftest.err conftest.$ac_ext
31078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31079 echo "${ECHO_T}$ac_header_preproc" >&6; }
31080
31081 # So?  What about this header?
31082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31083   yes:no: )
31084     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31085 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31086     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31087 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31088     ac_header_preproc=yes
31089     ;;
31090   no:yes:* )
31091     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31092 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31093     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31094 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31095     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31096 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31097     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31098 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31099     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31100 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31101     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31102 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31103
31104     ;;
31105 esac
31106 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31107 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31108 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31109   echo $ECHO_N "(cached) $ECHO_C" >&6
31110 else
31111   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31112 fi
31113 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31114 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31115
31116 fi
31117 if test $ac_cv_header_sys_sysmacros_h = yes; then
31118
31119 cat >>confdefs.h <<\_ACEOF
31120 #define MAJOR_IN_SYSMACROS 1
31121 _ACEOF
31122
31123 fi
31124
31125
31126   fi
31127 fi
31128
31129
31130
31131
31132
31133
31134 ac_header_dirent=no
31135 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31136   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31137 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31138 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31140   echo $ECHO_N "(cached) $ECHO_C" >&6
31141 else
31142   cat >conftest.$ac_ext <<_ACEOF
31143 /* confdefs.h.  */
31144 _ACEOF
31145 cat confdefs.h >>conftest.$ac_ext
31146 cat >>conftest.$ac_ext <<_ACEOF
31147 /* end confdefs.h.  */
31148 #include <sys/types.h>
31149 #include <$ac_hdr>
31150
31151 int
31152 main ()
31153 {
31154 if ((DIR *) 0)
31155 return 0;
31156   ;
31157   return 0;
31158 }
31159 _ACEOF
31160 rm -f conftest.$ac_objext
31161 if { (ac_try="$ac_compile"
31162 case "(($ac_try" in
31163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164   *) ac_try_echo=$ac_try;;
31165 esac
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167   (eval "$ac_compile") 2>conftest.er1
31168   ac_status=$?
31169   grep -v '^ *+' conftest.er1 >conftest.err
31170   rm -f conftest.er1
31171   cat conftest.err >&5
31172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173   (exit $ac_status); } && {
31174          test -z "$ac_c_werror_flag" ||
31175          test ! -s conftest.err
31176        } && test -s conftest.$ac_objext; then
31177   eval "$as_ac_Header=yes"
31178 else
31179   echo "$as_me: failed program was:" >&5
31180 sed 's/^/| /' conftest.$ac_ext >&5
31181
31182         eval "$as_ac_Header=no"
31183 fi
31184
31185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31186 fi
31187 ac_res=`eval echo '${'$as_ac_Header'}'`
31188                { echo "$as_me:$LINENO: result: $ac_res" >&5
31189 echo "${ECHO_T}$ac_res" >&6; }
31190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31191   cat >>confdefs.h <<_ACEOF
31192 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31193 _ACEOF
31194
31195 ac_header_dirent=$ac_hdr; break
31196 fi
31197
31198 done
31199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31200 if test $ac_header_dirent = dirent.h; then
31201   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31203 if test "${ac_cv_search_opendir+set}" = set; then
31204   echo $ECHO_N "(cached) $ECHO_C" >&6
31205 else
31206   ac_func_search_save_LIBS=$LIBS
31207 cat >conftest.$ac_ext <<_ACEOF
31208 /* confdefs.h.  */
31209 _ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h.  */
31213
31214 /* Override any GCC internal prototype to avoid an error.
31215    Use char because int might match the return type of a GCC
31216    builtin and then its argument prototype would still apply.  */
31217 #ifdef __cplusplus
31218 extern "C"
31219 #endif
31220 char opendir ();
31221 int
31222 main ()
31223 {
31224 return opendir ();
31225   ;
31226   return 0;
31227 }
31228 _ACEOF
31229 for ac_lib in '' dir; do
31230   if test -z "$ac_lib"; then
31231     ac_res="none required"
31232   else
31233     ac_res=-l$ac_lib
31234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31235   fi
31236   rm -f conftest.$ac_objext conftest$ac_exeext
31237 if { (ac_try="$ac_link"
31238 case "(($ac_try" in
31239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240   *) ac_try_echo=$ac_try;;
31241 esac
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243   (eval "$ac_link") 2>conftest.er1
31244   ac_status=$?
31245   grep -v '^ *+' conftest.er1 >conftest.err
31246   rm -f conftest.er1
31247   cat conftest.err >&5
31248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249   (exit $ac_status); } && {
31250          test -z "$ac_c_werror_flag" ||
31251          test ! -s conftest.err
31252        } && test -s conftest$ac_exeext &&
31253        $as_test_x conftest$ac_exeext; then
31254   ac_cv_search_opendir=$ac_res
31255 else
31256   echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31258
31259
31260 fi
31261
31262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31263       conftest$ac_exeext
31264   if test "${ac_cv_search_opendir+set}" = set; then
31265   break
31266 fi
31267 done
31268 if test "${ac_cv_search_opendir+set}" = set; then
31269   :
31270 else
31271   ac_cv_search_opendir=no
31272 fi
31273 rm conftest.$ac_ext
31274 LIBS=$ac_func_search_save_LIBS
31275 fi
31276 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31277 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31278 ac_res=$ac_cv_search_opendir
31279 if test "$ac_res" != no; then
31280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31281
31282 fi
31283
31284 else
31285   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31286 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31287 if test "${ac_cv_search_opendir+set}" = set; then
31288   echo $ECHO_N "(cached) $ECHO_C" >&6
31289 else
31290   ac_func_search_save_LIBS=$LIBS
31291 cat >conftest.$ac_ext <<_ACEOF
31292 /* confdefs.h.  */
31293 _ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h.  */
31297
31298 /* Override any GCC internal prototype to avoid an error.
31299    Use char because int might match the return type of a GCC
31300    builtin and then its argument prototype would still apply.  */
31301 #ifdef __cplusplus
31302 extern "C"
31303 #endif
31304 char opendir ();
31305 int
31306 main ()
31307 {
31308 return opendir ();
31309   ;
31310   return 0;
31311 }
31312 _ACEOF
31313 for ac_lib in '' x; do
31314   if test -z "$ac_lib"; then
31315     ac_res="none required"
31316   else
31317     ac_res=-l$ac_lib
31318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31319   fi
31320   rm -f conftest.$ac_objext conftest$ac_exeext
31321 if { (ac_try="$ac_link"
31322 case "(($ac_try" in
31323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324   *) ac_try_echo=$ac_try;;
31325 esac
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327   (eval "$ac_link") 2>conftest.er1
31328   ac_status=$?
31329   grep -v '^ *+' conftest.er1 >conftest.err
31330   rm -f conftest.er1
31331   cat conftest.err >&5
31332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333   (exit $ac_status); } && {
31334          test -z "$ac_c_werror_flag" ||
31335          test ! -s conftest.err
31336        } && test -s conftest$ac_exeext &&
31337        $as_test_x conftest$ac_exeext; then
31338   ac_cv_search_opendir=$ac_res
31339 else
31340   echo "$as_me: failed program was:" >&5
31341 sed 's/^/| /' conftest.$ac_ext >&5
31342
31343
31344 fi
31345
31346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31347       conftest$ac_exeext
31348   if test "${ac_cv_search_opendir+set}" = set; then
31349   break
31350 fi
31351 done
31352 if test "${ac_cv_search_opendir+set}" = set; then
31353   :
31354 else
31355   ac_cv_search_opendir=no
31356 fi
31357 rm conftest.$ac_ext
31358 LIBS=$ac_func_search_save_LIBS
31359 fi
31360 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31361 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31362 ac_res=$ac_cv_search_opendir
31363 if test "$ac_res" != no; then
31364   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31365
31366 fi
31367
31368 fi
31369
31370 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31371 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31372 if test "${ac_cv_header_stat_broken+set}" = set; then
31373   echo $ECHO_N "(cached) $ECHO_C" >&6
31374 else
31375   cat >conftest.$ac_ext <<_ACEOF
31376 /* confdefs.h.  */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h.  */
31381 #include <sys/types.h>
31382 #include <sys/stat.h>
31383
31384 #if defined S_ISBLK && defined S_IFDIR
31385 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31386 #endif
31387
31388 #if defined S_ISBLK && defined S_IFCHR
31389 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31390 #endif
31391
31392 #if defined S_ISLNK && defined S_IFREG
31393 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31394 #endif
31395
31396 #if defined S_ISSOCK && defined S_IFREG
31397 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31398 #endif
31399
31400 _ACEOF
31401 rm -f conftest.$ac_objext
31402 if { (ac_try="$ac_compile"
31403 case "(($ac_try" in
31404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405   *) ac_try_echo=$ac_try;;
31406 esac
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408   (eval "$ac_compile") 2>conftest.er1
31409   ac_status=$?
31410   grep -v '^ *+' conftest.er1 >conftest.err
31411   rm -f conftest.er1
31412   cat conftest.err >&5
31413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414   (exit $ac_status); } && {
31415          test -z "$ac_c_werror_flag" ||
31416          test ! -s conftest.err
31417        } && test -s conftest.$ac_objext; then
31418   ac_cv_header_stat_broken=no
31419 else
31420   echo "$as_me: failed program was:" >&5
31421 sed 's/^/| /' conftest.$ac_ext >&5
31422
31423         ac_cv_header_stat_broken=yes
31424 fi
31425
31426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31427 fi
31428 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31429 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31430 if test $ac_cv_header_stat_broken = yes; then
31431
31432 cat >>confdefs.h <<\_ACEOF
31433 #define STAT_MACROS_BROKEN 1
31434 _ACEOF
31435
31436 fi
31437
31438 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31439 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31440 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31441   echo $ECHO_N "(cached) $ECHO_C" >&6
31442 else
31443   cat >conftest.$ac_ext <<_ACEOF
31444 /* confdefs.h.  */
31445 _ACEOF
31446 cat confdefs.h >>conftest.$ac_ext
31447 cat >>conftest.$ac_ext <<_ACEOF
31448 /* end confdefs.h.  */
31449 #include <sys/types.h>
31450 #include <sys/wait.h>
31451 #ifndef WEXITSTATUS
31452 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31453 #endif
31454 #ifndef WIFEXITED
31455 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31456 #endif
31457
31458 int
31459 main ()
31460 {
31461   int s;
31462   wait (&s);
31463   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31464   ;
31465   return 0;
31466 }
31467 _ACEOF
31468 rm -f conftest.$ac_objext
31469 if { (ac_try="$ac_compile"
31470 case "(($ac_try" in
31471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31472   *) ac_try_echo=$ac_try;;
31473 esac
31474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31475   (eval "$ac_compile") 2>conftest.er1
31476   ac_status=$?
31477   grep -v '^ *+' conftest.er1 >conftest.err
31478   rm -f conftest.er1
31479   cat conftest.err >&5
31480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481   (exit $ac_status); } && {
31482          test -z "$ac_c_werror_flag" ||
31483          test ! -s conftest.err
31484        } && test -s conftest.$ac_objext; then
31485   ac_cv_header_sys_wait_h=yes
31486 else
31487   echo "$as_me: failed program was:" >&5
31488 sed 's/^/| /' conftest.$ac_ext >&5
31489
31490         ac_cv_header_sys_wait_h=no
31491 fi
31492
31493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31494 fi
31495 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31496 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31497 if test $ac_cv_header_sys_wait_h = yes; then
31498
31499 cat >>confdefs.h <<\_ACEOF
31500 #define HAVE_SYS_WAIT_H 1
31501 _ACEOF
31502
31503 fi
31504
31505 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31506 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31507 if test "${ac_cv_header_time+set}" = set; then
31508   echo $ECHO_N "(cached) $ECHO_C" >&6
31509 else
31510   cat >conftest.$ac_ext <<_ACEOF
31511 /* confdefs.h.  */
31512 _ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h.  */
31516 #include <sys/types.h>
31517 #include <sys/time.h>
31518 #include <time.h>
31519
31520 int
31521 main ()
31522 {
31523 if ((struct tm *) 0)
31524 return 0;
31525   ;
31526   return 0;
31527 }
31528 _ACEOF
31529 rm -f conftest.$ac_objext
31530 if { (ac_try="$ac_compile"
31531 case "(($ac_try" in
31532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533   *) ac_try_echo=$ac_try;;
31534 esac
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536   (eval "$ac_compile") 2>conftest.er1
31537   ac_status=$?
31538   grep -v '^ *+' conftest.er1 >conftest.err
31539   rm -f conftest.er1
31540   cat conftest.err >&5
31541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542   (exit $ac_status); } && {
31543          test -z "$ac_c_werror_flag" ||
31544          test ! -s conftest.err
31545        } && test -s conftest.$ac_objext; then
31546   ac_cv_header_time=yes
31547 else
31548   echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31550
31551         ac_cv_header_time=no
31552 fi
31553
31554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31555 fi
31556 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31557 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31558 if test $ac_cv_header_time = yes; then
31559
31560 cat >>confdefs.h <<\_ACEOF
31561 #define TIME_WITH_SYS_TIME 1
31562 _ACEOF
31563
31564 fi
31565
31566 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31567 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31568 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31569   echo $ECHO_N "(cached) $ECHO_C" >&6
31570 else
31571   cat >conftest.$ac_ext <<_ACEOF
31572 /* confdefs.h.  */
31573 _ACEOF
31574 cat confdefs.h >>conftest.$ac_ext
31575 cat >>conftest.$ac_ext <<_ACEOF
31576 /* end confdefs.h.  */
31577 $ac_includes_default
31578 int
31579 main ()
31580 {
31581 static struct stat ac_aggr;
31582 if (ac_aggr.st_blksize)
31583 return 0;
31584   ;
31585   return 0;
31586 }
31587 _ACEOF
31588 rm -f conftest.$ac_objext
31589 if { (ac_try="$ac_compile"
31590 case "(($ac_try" in
31591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592   *) ac_try_echo=$ac_try;;
31593 esac
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595   (eval "$ac_compile") 2>conftest.er1
31596   ac_status=$?
31597   grep -v '^ *+' conftest.er1 >conftest.err
31598   rm -f conftest.er1
31599   cat conftest.err >&5
31600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601   (exit $ac_status); } && {
31602          test -z "$ac_c_werror_flag" ||
31603          test ! -s conftest.err
31604        } && test -s conftest.$ac_objext; then
31605   ac_cv_member_struct_stat_st_blksize=yes
31606 else
31607   echo "$as_me: failed program was:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31609
31610         cat >conftest.$ac_ext <<_ACEOF
31611 /* confdefs.h.  */
31612 _ACEOF
31613 cat confdefs.h >>conftest.$ac_ext
31614 cat >>conftest.$ac_ext <<_ACEOF
31615 /* end confdefs.h.  */
31616 $ac_includes_default
31617 int
31618 main ()
31619 {
31620 static struct stat ac_aggr;
31621 if (sizeof ac_aggr.st_blksize)
31622 return 0;
31623   ;
31624   return 0;
31625 }
31626 _ACEOF
31627 rm -f conftest.$ac_objext
31628 if { (ac_try="$ac_compile"
31629 case "(($ac_try" in
31630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631   *) ac_try_echo=$ac_try;;
31632 esac
31633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31634   (eval "$ac_compile") 2>conftest.er1
31635   ac_status=$?
31636   grep -v '^ *+' conftest.er1 >conftest.err
31637   rm -f conftest.er1
31638   cat conftest.err >&5
31639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640   (exit $ac_status); } && {
31641          test -z "$ac_c_werror_flag" ||
31642          test ! -s conftest.err
31643        } && test -s conftest.$ac_objext; then
31644   ac_cv_member_struct_stat_st_blksize=yes
31645 else
31646   echo "$as_me: failed program was:" >&5
31647 sed 's/^/| /' conftest.$ac_ext >&5
31648
31649         ac_cv_member_struct_stat_st_blksize=no
31650 fi
31651
31652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31653 fi
31654
31655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31656 fi
31657 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31658 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31659 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31660
31661 cat >>confdefs.h <<_ACEOF
31662 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31663 _ACEOF
31664
31665
31666 cat >>confdefs.h <<\_ACEOF
31667 #define HAVE_ST_BLKSIZE 1
31668 _ACEOF
31669
31670 fi
31671
31672
31673 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31674 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31675 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31676   echo $ECHO_N "(cached) $ECHO_C" >&6
31677 else
31678   cat >conftest.$ac_ext <<_ACEOF
31679 /* confdefs.h.  */
31680 _ACEOF
31681 cat confdefs.h >>conftest.$ac_ext
31682 cat >>conftest.$ac_ext <<_ACEOF
31683 /* end confdefs.h.  */
31684 $ac_includes_default
31685 int
31686 main ()
31687 {
31688 static struct stat ac_aggr;
31689 if (ac_aggr.st_blocks)
31690 return 0;
31691   ;
31692   return 0;
31693 }
31694 _ACEOF
31695 rm -f conftest.$ac_objext
31696 if { (ac_try="$ac_compile"
31697 case "(($ac_try" in
31698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699   *) ac_try_echo=$ac_try;;
31700 esac
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702   (eval "$ac_compile") 2>conftest.er1
31703   ac_status=$?
31704   grep -v '^ *+' conftest.er1 >conftest.err
31705   rm -f conftest.er1
31706   cat conftest.err >&5
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); } && {
31709          test -z "$ac_c_werror_flag" ||
31710          test ! -s conftest.err
31711        } && test -s conftest.$ac_objext; then
31712   ac_cv_member_struct_stat_st_blocks=yes
31713 else
31714   echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31716
31717         cat >conftest.$ac_ext <<_ACEOF
31718 /* confdefs.h.  */
31719 _ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h.  */
31723 $ac_includes_default
31724 int
31725 main ()
31726 {
31727 static struct stat ac_aggr;
31728 if (sizeof ac_aggr.st_blocks)
31729 return 0;
31730   ;
31731   return 0;
31732 }
31733 _ACEOF
31734 rm -f conftest.$ac_objext
31735 if { (ac_try="$ac_compile"
31736 case "(($ac_try" in
31737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738   *) ac_try_echo=$ac_try;;
31739 esac
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741   (eval "$ac_compile") 2>conftest.er1
31742   ac_status=$?
31743   grep -v '^ *+' conftest.er1 >conftest.err
31744   rm -f conftest.er1
31745   cat conftest.err >&5
31746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747   (exit $ac_status); } && {
31748          test -z "$ac_c_werror_flag" ||
31749          test ! -s conftest.err
31750        } && test -s conftest.$ac_objext; then
31751   ac_cv_member_struct_stat_st_blocks=yes
31752 else
31753   echo "$as_me: failed program was:" >&5
31754 sed 's/^/| /' conftest.$ac_ext >&5
31755
31756         ac_cv_member_struct_stat_st_blocks=no
31757 fi
31758
31759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31760 fi
31761
31762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31763 fi
31764 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31765 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31766 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31767
31768 cat >>confdefs.h <<_ACEOF
31769 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31770 _ACEOF
31771
31772
31773 cat >>confdefs.h <<\_ACEOF
31774 #define HAVE_ST_BLOCKS 1
31775 _ACEOF
31776
31777 else
31778   case " $LIBOBJS " in
31779   *" fileblocks.$ac_objext "* ) ;;
31780   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31781  ;;
31782 esac
31783
31784 fi
31785
31786
31787 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31788 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31789 if test "${ac_cv_struct_tm+set}" = set; then
31790   echo $ECHO_N "(cached) $ECHO_C" >&6
31791 else
31792   cat >conftest.$ac_ext <<_ACEOF
31793 /* confdefs.h.  */
31794 _ACEOF
31795 cat confdefs.h >>conftest.$ac_ext
31796 cat >>conftest.$ac_ext <<_ACEOF
31797 /* end confdefs.h.  */
31798 #include <sys/types.h>
31799 #include <time.h>
31800
31801 int
31802 main ()
31803 {
31804 struct tm tm;
31805                                      int *p = &tm.tm_sec;
31806                                      return !p;
31807   ;
31808   return 0;
31809 }
31810 _ACEOF
31811 rm -f conftest.$ac_objext
31812 if { (ac_try="$ac_compile"
31813 case "(($ac_try" in
31814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31815   *) ac_try_echo=$ac_try;;
31816 esac
31817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31818   (eval "$ac_compile") 2>conftest.er1
31819   ac_status=$?
31820   grep -v '^ *+' conftest.er1 >conftest.err
31821   rm -f conftest.er1
31822   cat conftest.err >&5
31823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824   (exit $ac_status); } && {
31825          test -z "$ac_c_werror_flag" ||
31826          test ! -s conftest.err
31827        } && test -s conftest.$ac_objext; then
31828   ac_cv_struct_tm=time.h
31829 else
31830   echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31832
31833         ac_cv_struct_tm=sys/time.h
31834 fi
31835
31836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31837 fi
31838 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31839 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31840 if test $ac_cv_struct_tm = sys/time.h; then
31841
31842 cat >>confdefs.h <<\_ACEOF
31843 #define TM_IN_SYS_TIME 1
31844 _ACEOF
31845
31846 fi
31847
31848 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31849 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31850 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31851   echo $ECHO_N "(cached) $ECHO_C" >&6
31852 else
31853   cat >conftest.$ac_ext <<_ACEOF
31854 /* confdefs.h.  */
31855 _ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h.  */
31859 #include <sys/types.h>
31860 #include <$ac_cv_struct_tm>
31861
31862
31863 int
31864 main ()
31865 {
31866 static struct tm ac_aggr;
31867 if (ac_aggr.tm_zone)
31868 return 0;
31869   ;
31870   return 0;
31871 }
31872 _ACEOF
31873 rm -f conftest.$ac_objext
31874 if { (ac_try="$ac_compile"
31875 case "(($ac_try" in
31876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31877   *) ac_try_echo=$ac_try;;
31878 esac
31879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31880   (eval "$ac_compile") 2>conftest.er1
31881   ac_status=$?
31882   grep -v '^ *+' conftest.er1 >conftest.err
31883   rm -f conftest.er1
31884   cat conftest.err >&5
31885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886   (exit $ac_status); } && {
31887          test -z "$ac_c_werror_flag" ||
31888          test ! -s conftest.err
31889        } && test -s conftest.$ac_objext; then
31890   ac_cv_member_struct_tm_tm_zone=yes
31891 else
31892   echo "$as_me: failed program was:" >&5
31893 sed 's/^/| /' conftest.$ac_ext >&5
31894
31895         cat >conftest.$ac_ext <<_ACEOF
31896 /* confdefs.h.  */
31897 _ACEOF
31898 cat confdefs.h >>conftest.$ac_ext
31899 cat >>conftest.$ac_ext <<_ACEOF
31900 /* end confdefs.h.  */
31901 #include <sys/types.h>
31902 #include <$ac_cv_struct_tm>
31903
31904
31905 int
31906 main ()
31907 {
31908 static struct tm ac_aggr;
31909 if (sizeof ac_aggr.tm_zone)
31910 return 0;
31911   ;
31912   return 0;
31913 }
31914 _ACEOF
31915 rm -f conftest.$ac_objext
31916 if { (ac_try="$ac_compile"
31917 case "(($ac_try" in
31918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919   *) ac_try_echo=$ac_try;;
31920 esac
31921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922   (eval "$ac_compile") 2>conftest.er1
31923   ac_status=$?
31924   grep -v '^ *+' conftest.er1 >conftest.err
31925   rm -f conftest.er1
31926   cat conftest.err >&5
31927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928   (exit $ac_status); } && {
31929          test -z "$ac_c_werror_flag" ||
31930          test ! -s conftest.err
31931        } && test -s conftest.$ac_objext; then
31932   ac_cv_member_struct_tm_tm_zone=yes
31933 else
31934   echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31936
31937         ac_cv_member_struct_tm_tm_zone=no
31938 fi
31939
31940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31941 fi
31942
31943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31944 fi
31945 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31946 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31947 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31948
31949 cat >>confdefs.h <<_ACEOF
31950 #define HAVE_STRUCT_TM_TM_ZONE 1
31951 _ACEOF
31952
31953
31954 fi
31955
31956 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31957
31958 cat >>confdefs.h <<\_ACEOF
31959 #define HAVE_TM_ZONE 1
31960 _ACEOF
31961
31962 else
31963   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31964 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31965 if test "${ac_cv_have_decl_tzname+set}" = set; then
31966   echo $ECHO_N "(cached) $ECHO_C" >&6
31967 else
31968   cat >conftest.$ac_ext <<_ACEOF
31969 /* confdefs.h.  */
31970 _ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h.  */
31974 #include <time.h>
31975
31976 int
31977 main ()
31978 {
31979 #ifndef tzname
31980   (void) tzname;
31981 #endif
31982
31983   ;
31984   return 0;
31985 }
31986 _ACEOF
31987 rm -f conftest.$ac_objext
31988 if { (ac_try="$ac_compile"
31989 case "(($ac_try" in
31990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991   *) ac_try_echo=$ac_try;;
31992 esac
31993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994   (eval "$ac_compile") 2>conftest.er1
31995   ac_status=$?
31996   grep -v '^ *+' conftest.er1 >conftest.err
31997   rm -f conftest.er1
31998   cat conftest.err >&5
31999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000   (exit $ac_status); } && {
32001          test -z "$ac_c_werror_flag" ||
32002          test ! -s conftest.err
32003        } && test -s conftest.$ac_objext; then
32004   ac_cv_have_decl_tzname=yes
32005 else
32006   echo "$as_me: failed program was:" >&5
32007 sed 's/^/| /' conftest.$ac_ext >&5
32008
32009         ac_cv_have_decl_tzname=no
32010 fi
32011
32012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32013 fi
32014 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32015 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32016 if test $ac_cv_have_decl_tzname = yes; then
32017
32018 cat >>confdefs.h <<_ACEOF
32019 #define HAVE_DECL_TZNAME 1
32020 _ACEOF
32021
32022
32023 else
32024   cat >>confdefs.h <<_ACEOF
32025 #define HAVE_DECL_TZNAME 0
32026 _ACEOF
32027
32028
32029 fi
32030
32031
32032   { echo "$as_me:$LINENO: checking for tzname" >&5
32033 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32034 if test "${ac_cv_var_tzname+set}" = set; then
32035   echo $ECHO_N "(cached) $ECHO_C" >&6
32036 else
32037   cat >conftest.$ac_ext <<_ACEOF
32038 /* confdefs.h.  */
32039 _ACEOF
32040 cat confdefs.h >>conftest.$ac_ext
32041 cat >>conftest.$ac_ext <<_ACEOF
32042 /* end confdefs.h.  */
32043 #include <time.h>
32044 #if !HAVE_DECL_TZNAME
32045 extern char *tzname[];
32046 #endif
32047
32048 int
32049 main ()
32050 {
32051 return tzname[0][0];
32052   ;
32053   return 0;
32054 }
32055 _ACEOF
32056 rm -f conftest.$ac_objext conftest$ac_exeext
32057 if { (ac_try="$ac_link"
32058 case "(($ac_try" in
32059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060   *) ac_try_echo=$ac_try;;
32061 esac
32062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063   (eval "$ac_link") 2>conftest.er1
32064   ac_status=$?
32065   grep -v '^ *+' conftest.er1 >conftest.err
32066   rm -f conftest.er1
32067   cat conftest.err >&5
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); } && {
32070          test -z "$ac_c_werror_flag" ||
32071          test ! -s conftest.err
32072        } && test -s conftest$ac_exeext &&
32073        $as_test_x conftest$ac_exeext; then
32074   ac_cv_var_tzname=yes
32075 else
32076   echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32078
32079         ac_cv_var_tzname=no
32080 fi
32081
32082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32083       conftest$ac_exeext conftest.$ac_ext
32084 fi
32085 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32086 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32087   if test $ac_cv_var_tzname = yes; then
32088
32089 cat >>confdefs.h <<\_ACEOF
32090 #define HAVE_TZNAME 1
32091 _ACEOF
32092
32093   fi
32094 fi
32095
32096
32097 { echo "$as_me:$LINENO: checking for utime.h" >&5
32098 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32099 if test "${ba_cv_header_utime_h+set}" = set; then
32100   echo $ECHO_N "(cached) $ECHO_C" >&6
32101 else
32102
32103        cat >conftest.$ac_ext <<_ACEOF
32104 /* confdefs.h.  */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h.  */
32109
32110               #include <sys/types.h>
32111               #include <utime.h>
32112
32113 int
32114 main ()
32115 {
32116
32117               struct utimbuf foo
32118
32119   ;
32120   return 0;
32121 }
32122 _ACEOF
32123 rm -f conftest.$ac_objext
32124 if { (ac_try="$ac_compile"
32125 case "(($ac_try" in
32126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32127   *) ac_try_echo=$ac_try;;
32128 esac
32129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32130   (eval "$ac_compile") 2>conftest.er1
32131   ac_status=$?
32132   grep -v '^ *+' conftest.er1 >conftest.err
32133   rm -f conftest.er1
32134   cat conftest.err >&5
32135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136   (exit $ac_status); } && {
32137          test -z "$ac_c_werror_flag" ||
32138          test ! -s conftest.err
32139        } && test -s conftest.$ac_objext; then
32140
32141               ba_cv_header_utime_h=yes
32142
32143 else
32144   echo "$as_me: failed program was:" >&5
32145 sed 's/^/| /' conftest.$ac_ext >&5
32146
32147
32148               ba_cv_header_utime_h=no
32149
32150
32151 fi
32152
32153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32154
32155
32156 fi
32157 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32158 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32159 test $ba_cv_header_utime_h = yes &&
32160 cat >>confdefs.h <<\_ACEOF
32161 #define HAVE_UTIME_H 1
32162 _ACEOF
32163
32164
32165 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32166 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32167 if test "${ba_cv_header_socklen_t+set}" = set; then
32168   echo $ECHO_N "(cached) $ECHO_C" >&6
32169 else
32170
32171        cat >conftest.$ac_ext <<_ACEOF
32172 /* confdefs.h.  */
32173 _ACEOF
32174 cat confdefs.h >>conftest.$ac_ext
32175 cat >>conftest.$ac_ext <<_ACEOF
32176 /* end confdefs.h.  */
32177
32178               #include <sys/types.h>
32179               #include <sys/socket.h>
32180
32181 int
32182 main ()
32183 {
32184
32185               socklen_t x
32186
32187   ;
32188   return 0;
32189 }
32190 _ACEOF
32191 rm -f conftest.$ac_objext
32192 if { (ac_try="$ac_compile"
32193 case "(($ac_try" in
32194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195   *) ac_try_echo=$ac_try;;
32196 esac
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198   (eval "$ac_compile") 2>conftest.er1
32199   ac_status=$?
32200   grep -v '^ *+' conftest.er1 >conftest.err
32201   rm -f conftest.er1
32202   cat conftest.err >&5
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); } && {
32205          test -z "$ac_c_werror_flag" ||
32206          test ! -s conftest.err
32207        } && test -s conftest.$ac_objext; then
32208
32209              ba_cv_header_socklen_t=yes
32210
32211 else
32212   echo "$as_me: failed program was:" >&5
32213 sed 's/^/| /' conftest.$ac_ext >&5
32214
32215
32216              ba_cv_header_socklen_t=no
32217
32218
32219 fi
32220
32221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32222
32223
32224 fi
32225 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32226 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32227 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32228 #define HAVE_SOCKLEN_T 1
32229 _ACEOF
32230
32231
32232 { echo "$as_me:$LINENO: checking for bigendian" >&5
32233 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32234 if test "${ba_cv_bigendian+set}" = set; then
32235   echo $ECHO_N "(cached) $ECHO_C" >&6
32236 else
32237
32238        if test "$cross_compiling" = yes; then
32239
32240              ba_cv_bigendian=no
32241
32242
32243 else
32244   cat >conftest.$ac_ext <<_ACEOF
32245 /* confdefs.h.  */
32246 _ACEOF
32247 cat confdefs.h >>conftest.$ac_ext
32248 cat >>conftest.$ac_ext <<_ACEOF
32249 /* end confdefs.h.  */
32250
32251               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32252
32253 _ACEOF
32254 rm -f conftest$ac_exeext
32255 if { (ac_try="$ac_link"
32256 case "(($ac_try" in
32257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258   *) ac_try_echo=$ac_try;;
32259 esac
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261   (eval "$ac_link") 2>&5
32262   ac_status=$?
32263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32265   { (case "(($ac_try" in
32266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32267   *) ac_try_echo=$ac_try;;
32268 esac
32269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32270   (eval "$ac_try") 2>&5
32271   ac_status=$?
32272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273   (exit $ac_status); }; }; then
32274
32275              ba_cv_bigendian=yes
32276
32277 else
32278   echo "$as_me: program exited with status $ac_status" >&5
32279 echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32281
32282 ( exit $ac_status )
32283
32284              ba_cv_bigendian=no
32285
32286 fi
32287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32288 fi
32289
32290
32291
32292
32293 fi
32294 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32295 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32296 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32297 #define HAVE_BIGENDIAN 1
32298 _ACEOF
32299
32300
32301 ac_ext=cpp
32302 ac_cpp='$CXXCPP $CPPFLAGS'
32303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32306
32307 { echo "$as_me:$LINENO: checking for typeof" >&5
32308 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32309 if test "${ba_cv_have_typeof+set}" = set; then
32310   echo $ECHO_N "(cached) $ECHO_C" >&6
32311 else
32312
32313        if test "$cross_compiling" = yes; then
32314
32315               ba_cv_have_typeof=no
32316
32317
32318 else
32319   cat >conftest.$ac_ext <<_ACEOF
32320 /* confdefs.h.  */
32321 _ACEOF
32322 cat confdefs.h >>conftest.$ac_ext
32323 cat >>conftest.$ac_ext <<_ACEOF
32324 /* end confdefs.h.  */
32325
32326               main(){char *a = 0; a = (typeof a)a;}
32327
32328 _ACEOF
32329 rm -f conftest$ac_exeext
32330 if { (ac_try="$ac_link"
32331 case "(($ac_try" in
32332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32333   *) ac_try_echo=$ac_try;;
32334 esac
32335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32336   (eval "$ac_link") 2>&5
32337   ac_status=$?
32338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32340   { (case "(($ac_try" in
32341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32342   *) ac_try_echo=$ac_try;;
32343 esac
32344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32345   (eval "$ac_try") 2>&5
32346   ac_status=$?
32347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348   (exit $ac_status); }; }; then
32349
32350               ba_cv_have_typeof=yes
32351
32352 else
32353   echo "$as_me: program exited with status $ac_status" >&5
32354 echo "$as_me: failed program was:" >&5
32355 sed 's/^/| /' conftest.$ac_ext >&5
32356
32357 ( exit $ac_status )
32358
32359               ba_cv_have_typeof=no
32360
32361 fi
32362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32363 fi
32364
32365
32366
32367
32368 fi
32369 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32370 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32371 test $ba_cv_have_typeof = yes &&
32372 cat >>confdefs.h <<\_ACEOF
32373 #define HAVE_TYPEOF 1
32374 _ACEOF
32375
32376 ac_ext=c
32377 ac_cpp='$CPP $CPPFLAGS'
32378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32381
32382
32383 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32384 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32385 if test "${ac_cv_c_const+set}" = set; then
32386   echo $ECHO_N "(cached) $ECHO_C" >&6
32387 else
32388   cat >conftest.$ac_ext <<_ACEOF
32389 /* confdefs.h.  */
32390 _ACEOF
32391 cat confdefs.h >>conftest.$ac_ext
32392 cat >>conftest.$ac_ext <<_ACEOF
32393 /* end confdefs.h.  */
32394
32395 int
32396 main ()
32397 {
32398 /* FIXME: Include the comments suggested by Paul. */
32399 #ifndef __cplusplus
32400   /* Ultrix mips cc rejects this.  */
32401   typedef int charset[2];
32402   const charset cs;
32403   /* SunOS 4.1.1 cc rejects this.  */
32404   char const *const *pcpcc;
32405   char **ppc;
32406   /* NEC SVR4.0.2 mips cc rejects this.  */
32407   struct point {int x, y;};
32408   static struct point const zero = {0,0};
32409   /* AIX XL C 1.02.0.0 rejects this.
32410      It does not let you subtract one const X* pointer from another in
32411      an arm of an if-expression whose if-part is not a constant
32412      expression */
32413   const char *g = "string";
32414   pcpcc = &g + (g ? g-g : 0);
32415   /* HPUX 7.0 cc rejects these. */
32416   ++pcpcc;
32417   ppc = (char**) pcpcc;
32418   pcpcc = (char const *const *) ppc;
32419   { /* SCO 3.2v4 cc rejects this.  */
32420     char *t;
32421     char const *s = 0 ? (char *) 0 : (char const *) 0;
32422
32423     *t++ = 0;
32424     if (s) return 0;
32425   }
32426   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32427     int x[] = {25, 17};
32428     const int *foo = &x[0];
32429     ++foo;
32430   }
32431   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32432     typedef const int *iptr;
32433     iptr p = 0;
32434     ++p;
32435   }
32436   { /* AIX XL C 1.02.0.0 rejects this saying
32437        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32438     struct s { int j; const int *ap[3]; };
32439     struct s *b; b->j = 5;
32440   }
32441   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32442     const int foo = 10;
32443     if (!foo) return 0;
32444   }
32445   return !cs[0] && !zero.x;
32446 #endif
32447
32448   ;
32449   return 0;
32450 }
32451 _ACEOF
32452 rm -f conftest.$ac_objext
32453 if { (ac_try="$ac_compile"
32454 case "(($ac_try" in
32455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456   *) ac_try_echo=$ac_try;;
32457 esac
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459   (eval "$ac_compile") 2>conftest.er1
32460   ac_status=$?
32461   grep -v '^ *+' conftest.er1 >conftest.err
32462   rm -f conftest.er1
32463   cat conftest.err >&5
32464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465   (exit $ac_status); } && {
32466          test -z "$ac_c_werror_flag" ||
32467          test ! -s conftest.err
32468        } && test -s conftest.$ac_objext; then
32469   ac_cv_c_const=yes
32470 else
32471   echo "$as_me: failed program was:" >&5
32472 sed 's/^/| /' conftest.$ac_ext >&5
32473
32474         ac_cv_c_const=no
32475 fi
32476
32477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32478 fi
32479 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32480 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32481 if test $ac_cv_c_const = no; then
32482
32483 cat >>confdefs.h <<\_ACEOF
32484 #define const
32485 _ACEOF
32486
32487 fi
32488
32489
32490 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32491 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32492 fstype=no
32493 # The order of these tests is important.
32494 cat >conftest.$ac_ext <<_ACEOF
32495 /* confdefs.h.  */
32496 _ACEOF
32497 cat confdefs.h >>conftest.$ac_ext
32498 cat >>conftest.$ac_ext <<_ACEOF
32499 /* end confdefs.h.  */
32500
32501        #include <sys/statvfs.h>
32502        #include <sys/fstyp.h>
32503
32504 _ACEOF
32505 if { (ac_try="$ac_cpp conftest.$ac_ext"
32506 case "(($ac_try" in
32507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508   *) ac_try_echo=$ac_try;;
32509 esac
32510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32512   ac_status=$?
32513   grep -v '^ *+' conftest.er1 >conftest.err
32514   rm -f conftest.er1
32515   cat conftest.err >&5
32516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517   (exit $ac_status); } >/dev/null && {
32518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32519          test ! -s conftest.err
32520        }; then
32521   cat >>confdefs.h <<\_ACEOF
32522 #define FSTYPE_STATVFS 1
32523 _ACEOF
32524  fstype=SVR4
32525
32526 else
32527   echo "$as_me: failed program was:" >&5
32528 sed 's/^/| /' conftest.$ac_ext >&5
32529
32530
32531 fi
32532
32533 rm -f conftest.err conftest.$ac_ext
32534 if test $fstype = no; then
32535    cat >conftest.$ac_ext <<_ACEOF
32536 /* confdefs.h.  */
32537 _ACEOF
32538 cat confdefs.h >>conftest.$ac_ext
32539 cat >>conftest.$ac_ext <<_ACEOF
32540 /* end confdefs.h.  */
32541
32542           #include <sys/statfs.h>
32543           #include <sys/fstyp.h>
32544
32545 _ACEOF
32546 if { (ac_try="$ac_cpp conftest.$ac_ext"
32547 case "(($ac_try" in
32548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32549   *) ac_try_echo=$ac_try;;
32550 esac
32551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32553   ac_status=$?
32554   grep -v '^ *+' conftest.er1 >conftest.err
32555   rm -f conftest.er1
32556   cat conftest.err >&5
32557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558   (exit $ac_status); } >/dev/null && {
32559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32560          test ! -s conftest.err
32561        }; then
32562   cat >>confdefs.h <<\_ACEOF
32563 #define FSTYPE_USG_STATFS 1
32564 _ACEOF
32565  fstype=SVR3
32566
32567 else
32568   echo "$as_me: failed program was:" >&5
32569 sed 's/^/| /' conftest.$ac_ext >&5
32570
32571
32572 fi
32573
32574 rm -f conftest.err conftest.$ac_ext
32575 fi
32576 if test $fstype = no; then
32577    cat >conftest.$ac_ext <<_ACEOF
32578 /* confdefs.h.  */
32579 _ACEOF
32580 cat confdefs.h >>conftest.$ac_ext
32581 cat >>conftest.$ac_ext <<_ACEOF
32582 /* end confdefs.h.  */
32583
32584           #include <sys/statfs.h>
32585           #include <sys/vmount.h>
32586
32587 _ACEOF
32588 if { (ac_try="$ac_cpp conftest.$ac_ext"
32589 case "(($ac_try" in
32590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591   *) ac_try_echo=$ac_try;;
32592 esac
32593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32595   ac_status=$?
32596   grep -v '^ *+' conftest.er1 >conftest.err
32597   rm -f conftest.er1
32598   cat conftest.err >&5
32599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600   (exit $ac_status); } >/dev/null && {
32601          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32602          test ! -s conftest.err
32603        }; then
32604   cat >>confdefs.h <<\_ACEOF
32605 #define FSTYPE_AIX_STATFS 1
32606 _ACEOF
32607  fstype=AIX
32608
32609 else
32610   echo "$as_me: failed program was:" >&5
32611 sed 's/^/| /' conftest.$ac_ext >&5
32612
32613
32614 fi
32615
32616 rm -f conftest.err conftest.$ac_ext
32617 fi
32618 if test $fstype = no; then
32619    cat >conftest.$ac_ext <<_ACEOF
32620 /* confdefs.h.  */
32621 _ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h.  */
32625
32626           #include <mntent.h>
32627
32628 _ACEOF
32629 if { (ac_try="$ac_cpp conftest.$ac_ext"
32630 case "(($ac_try" in
32631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632   *) ac_try_echo=$ac_try;;
32633 esac
32634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32636   ac_status=$?
32637   grep -v '^ *+' conftest.er1 >conftest.err
32638   rm -f conftest.er1
32639   cat conftest.err >&5
32640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641   (exit $ac_status); } >/dev/null && {
32642          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32643          test ! -s conftest.err
32644        }; then
32645   cat >>confdefs.h <<\_ACEOF
32646 #define FSTYPE_MNTENT 1
32647 _ACEOF
32648  fstype=4.3BSD
32649
32650 else
32651   echo "$as_me: failed program was:" >&5
32652 sed 's/^/| /' conftest.$ac_ext >&5
32653
32654
32655 fi
32656
32657 rm -f conftest.err conftest.$ac_ext
32658 fi
32659 if test $fstype = no; then
32660    cat >conftest.$ac_ext <<_ACEOF
32661 /* confdefs.h.  */
32662 _ACEOF
32663 cat confdefs.h >>conftest.$ac_ext
32664 cat >>conftest.$ac_ext <<_ACEOF
32665 /* end confdefs.h.  */
32666 #include <sys/mount.h>
32667
32668 _ACEOF
32669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32670   $EGREP "f_type;" >/dev/null 2>&1; then
32671   cat >>confdefs.h <<\_ACEOF
32672 #define FSTYPE_STATFS 1
32673 _ACEOF
32674  fstype=4.4BSD/OSF1
32675 fi
32676 rm -f conftest*
32677
32678 fi
32679 if test $fstype = no; then
32680    cat >conftest.$ac_ext <<_ACEOF
32681 /* confdefs.h.  */
32682 _ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h.  */
32686
32687           #include <sys/mount.h>
32688           #include <sys/fs_types.h>
32689
32690 _ACEOF
32691 if { (ac_try="$ac_cpp conftest.$ac_ext"
32692 case "(($ac_try" in
32693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694   *) ac_try_echo=$ac_try;;
32695 esac
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32698   ac_status=$?
32699   grep -v '^ *+' conftest.er1 >conftest.err
32700   rm -f conftest.er1
32701   cat conftest.err >&5
32702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703   (exit $ac_status); } >/dev/null && {
32704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32705          test ! -s conftest.err
32706        }; then
32707   cat >>confdefs.h <<\_ACEOF
32708 #define FSTYPE_GETMNT 1
32709 _ACEOF
32710  fstype=Ultrix
32711
32712 else
32713   echo "$as_me: failed program was:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32715
32716
32717 fi
32718
32719 rm -f conftest.err conftest.$ac_ext
32720 fi
32721 { echo "$as_me:$LINENO: result: $fstype" >&5
32722 echo "${ECHO_T}$fstype" >&6; }
32723
32724 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32725   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32726 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32727 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32728   echo $ECHO_N "(cached) $ECHO_C" >&6
32729 fi
32730 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32731 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32732 else
32733   # Is the header compilable?
32734 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32735 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32736 cat >conftest.$ac_ext <<_ACEOF
32737 /* confdefs.h.  */
32738 _ACEOF
32739 cat confdefs.h >>conftest.$ac_ext
32740 cat >>conftest.$ac_ext <<_ACEOF
32741 /* end confdefs.h.  */
32742 $ac_includes_default
32743 #include <sys/statvfs.h>
32744 _ACEOF
32745 rm -f conftest.$ac_objext
32746 if { (ac_try="$ac_compile"
32747 case "(($ac_try" in
32748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32749   *) ac_try_echo=$ac_try;;
32750 esac
32751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32752   (eval "$ac_compile") 2>conftest.er1
32753   ac_status=$?
32754   grep -v '^ *+' conftest.er1 >conftest.err
32755   rm -f conftest.er1
32756   cat conftest.err >&5
32757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758   (exit $ac_status); } && {
32759          test -z "$ac_c_werror_flag" ||
32760          test ! -s conftest.err
32761        } && test -s conftest.$ac_objext; then
32762   ac_header_compiler=yes
32763 else
32764   echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32766
32767         ac_header_compiler=no
32768 fi
32769
32770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32772 echo "${ECHO_T}$ac_header_compiler" >&6; }
32773
32774 # Is the header present?
32775 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32776 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32777 cat >conftest.$ac_ext <<_ACEOF
32778 /* confdefs.h.  */
32779 _ACEOF
32780 cat confdefs.h >>conftest.$ac_ext
32781 cat >>conftest.$ac_ext <<_ACEOF
32782 /* end confdefs.h.  */
32783 #include <sys/statvfs.h>
32784 _ACEOF
32785 if { (ac_try="$ac_cpp conftest.$ac_ext"
32786 case "(($ac_try" in
32787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788   *) ac_try_echo=$ac_try;;
32789 esac
32790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32792   ac_status=$?
32793   grep -v '^ *+' conftest.er1 >conftest.err
32794   rm -f conftest.er1
32795   cat conftest.err >&5
32796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797   (exit $ac_status); } >/dev/null && {
32798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32799          test ! -s conftest.err
32800        }; then
32801   ac_header_preproc=yes
32802 else
32803   echo "$as_me: failed program was:" >&5
32804 sed 's/^/| /' conftest.$ac_ext >&5
32805
32806   ac_header_preproc=no
32807 fi
32808
32809 rm -f conftest.err conftest.$ac_ext
32810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32811 echo "${ECHO_T}$ac_header_preproc" >&6; }
32812
32813 # So?  What about this header?
32814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32815   yes:no: )
32816     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32817 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32818     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32819 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32820     ac_header_preproc=yes
32821     ;;
32822   no:yes:* )
32823     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32824 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32825     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32826 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32827     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32828 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32829     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32830 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32831     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32832 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32833     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32834 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32835
32836     ;;
32837 esac
32838 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32839 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32840 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32841   echo $ECHO_N "(cached) $ECHO_C" >&6
32842 else
32843   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32844 fi
32845 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32846 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32847
32848 fi
32849 if test $ac_cv_header_sys_statvfs_h = yes; then
32850
32851 cat >>confdefs.h <<\_ACEOF
32852 #define HAVE_SYS_STATVFS_H 1
32853 _ACEOF
32854
32855 fi
32856
32857
32858
32859 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32860 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32861 if test "${ac_cv_type_signal+set}" = set; then
32862   echo $ECHO_N "(cached) $ECHO_C" >&6
32863 else
32864   cat >conftest.$ac_ext <<_ACEOF
32865 /* confdefs.h.  */
32866 _ACEOF
32867 cat confdefs.h >>conftest.$ac_ext
32868 cat >>conftest.$ac_ext <<_ACEOF
32869 /* end confdefs.h.  */
32870 #include <sys/types.h>
32871 #include <signal.h>
32872
32873 int
32874 main ()
32875 {
32876 return *(signal (0, 0)) (0) == 1;
32877   ;
32878   return 0;
32879 }
32880 _ACEOF
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885   *) ac_try_echo=$ac_try;;
32886 esac
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888   (eval "$ac_compile") 2>conftest.er1
32889   ac_status=$?
32890   grep -v '^ *+' conftest.er1 >conftest.err
32891   rm -f conftest.er1
32892   cat conftest.err >&5
32893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894   (exit $ac_status); } && {
32895          test -z "$ac_c_werror_flag" ||
32896          test ! -s conftest.err
32897        } && test -s conftest.$ac_objext; then
32898   ac_cv_type_signal=int
32899 else
32900   echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32902
32903         ac_cv_type_signal=void
32904 fi
32905
32906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32907 fi
32908 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32909 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32910
32911 cat >>confdefs.h <<_ACEOF
32912 #define RETSIGTYPE $ac_cv_type_signal
32913 _ACEOF
32914
32915
32916
32917   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32918 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32919   if test "${bash_cv_signal_vintage+set}" = set; then
32920   echo $ECHO_N "(cached) $ECHO_C" >&6
32921 else
32922
32923     cat >conftest.$ac_ext <<_ACEOF
32924 /* confdefs.h.  */
32925 _ACEOF
32926 cat confdefs.h >>conftest.$ac_ext
32927 cat >>conftest.$ac_ext <<_ACEOF
32928 /* end confdefs.h.  */
32929 #include <signal.h>
32930 int
32931 main ()
32932 {
32933
32934       sigset_t ss;
32935       struct sigaction sa;
32936       sigemptyset(&ss); sigsuspend(&ss);
32937       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32938       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32939
32940   ;
32941   return 0;
32942 }
32943 _ACEOF
32944 rm -f conftest.$ac_objext conftest$ac_exeext
32945 if { (ac_try="$ac_link"
32946 case "(($ac_try" in
32947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948   *) ac_try_echo=$ac_try;;
32949 esac
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951   (eval "$ac_link") 2>conftest.er1
32952   ac_status=$?
32953   grep -v '^ *+' conftest.er1 >conftest.err
32954   rm -f conftest.er1
32955   cat conftest.err >&5
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); } && {
32958          test -z "$ac_c_werror_flag" ||
32959          test ! -s conftest.err
32960        } && test -s conftest$ac_exeext &&
32961        $as_test_x conftest$ac_exeext; then
32962   bash_cv_signal_vintage="posix"
32963 else
32964   echo "$as_me: failed program was:" >&5
32965 sed 's/^/| /' conftest.$ac_ext >&5
32966
32967
32968       cat >conftest.$ac_ext <<_ACEOF
32969 /* confdefs.h.  */
32970 _ACEOF
32971 cat confdefs.h >>conftest.$ac_ext
32972 cat >>conftest.$ac_ext <<_ACEOF
32973 /* end confdefs.h.  */
32974 #include <signal.h>
32975 int
32976 main ()
32977 {
32978
32979           int mask = sigmask(SIGINT);
32980           sigsetmask(mask); sigblock(mask); sigpause(mask);
32981
32982   ;
32983   return 0;
32984 }
32985 _ACEOF
32986 rm -f conftest.$ac_objext conftest$ac_exeext
32987 if { (ac_try="$ac_link"
32988 case "(($ac_try" in
32989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990   *) ac_try_echo=$ac_try;;
32991 esac
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993   (eval "$ac_link") 2>conftest.er1
32994   ac_status=$?
32995   grep -v '^ *+' conftest.er1 >conftest.err
32996   rm -f conftest.er1
32997   cat conftest.err >&5
32998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999   (exit $ac_status); } && {
33000          test -z "$ac_c_werror_flag" ||
33001          test ! -s conftest.err
33002        } && test -s conftest$ac_exeext &&
33003        $as_test_x conftest$ac_exeext; then
33004   bash_cv_signal_vintage="4.2bsd"
33005 else
33006   echo "$as_me: failed program was:" >&5
33007 sed 's/^/| /' conftest.$ac_ext >&5
33008
33009
33010         cat >conftest.$ac_ext <<_ACEOF
33011 /* confdefs.h.  */
33012 _ACEOF
33013 cat confdefs.h >>conftest.$ac_ext
33014 cat >>conftest.$ac_ext <<_ACEOF
33015 /* end confdefs.h.  */
33016
33017           #include <signal.h>
33018           RETSIGTYPE foo() { }
33019 int
33020 main ()
33021 {
33022
33023                   int mask = sigmask(SIGINT);
33024                   sigset(SIGINT, foo); sigrelse(SIGINT);
33025                   sighold(SIGINT); sigpause(SIGINT);
33026
33027   ;
33028   return 0;
33029 }
33030 _ACEOF
33031 rm -f conftest.$ac_objext conftest$ac_exeext
33032 if { (ac_try="$ac_link"
33033 case "(($ac_try" in
33034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035   *) ac_try_echo=$ac_try;;
33036 esac
33037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33038   (eval "$ac_link") 2>conftest.er1
33039   ac_status=$?
33040   grep -v '^ *+' conftest.er1 >conftest.err
33041   rm -f conftest.er1
33042   cat conftest.err >&5
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); } && {
33045          test -z "$ac_c_werror_flag" ||
33046          test ! -s conftest.err
33047        } && test -s conftest$ac_exeext &&
33048        $as_test_x conftest$ac_exeext; then
33049   bash_cv_signal_vintage="svr3"
33050 else
33051   echo "$as_me: failed program was:" >&5
33052 sed 's/^/| /' conftest.$ac_ext >&5
33053
33054         bash_cv_signal_vintage="v7"
33055
33056 fi
33057
33058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33059       conftest$ac_exeext conftest.$ac_ext
33060
33061 fi
33062
33063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33064       conftest$ac_exeext conftest.$ac_ext
33065
33066 fi
33067
33068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33069       conftest$ac_exeext conftest.$ac_ext
33070
33071 fi
33072
33073   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33074 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33075   if test "$bash_cv_signal_vintage" = "posix"; then
33076     cat >>confdefs.h <<\_ACEOF
33077 #define HAVE_POSIX_SIGNALS 1
33078 _ACEOF
33079
33080   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33081     cat >>confdefs.h <<\_ACEOF
33082 #define HAVE_BSD_SIGNALS 1
33083 _ACEOF
33084
33085   elif test "$bash_cv_signal_vintage" = "svr3"; then
33086     cat >>confdefs.h <<\_ACEOF
33087 #define HAVE_USG_SIGHOLD 1
33088 _ACEOF
33089
33090   fi
33091
33092 { echo "$as_me:$LINENO: checking for mode_t" >&5
33093 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33094 if test "${ac_cv_type_mode_t+set}" = set; then
33095   echo $ECHO_N "(cached) $ECHO_C" >&6
33096 else
33097   cat >conftest.$ac_ext <<_ACEOF
33098 /* confdefs.h.  */
33099 _ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h.  */
33103 $ac_includes_default
33104 typedef mode_t ac__type_new_;
33105 int
33106 main ()
33107 {
33108 if ((ac__type_new_ *) 0)
33109   return 0;
33110 if (sizeof (ac__type_new_))
33111   return 0;
33112   ;
33113   return 0;
33114 }
33115 _ACEOF
33116 rm -f conftest.$ac_objext
33117 if { (ac_try="$ac_compile"
33118 case "(($ac_try" in
33119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120   *) ac_try_echo=$ac_try;;
33121 esac
33122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123   (eval "$ac_compile") 2>conftest.er1
33124   ac_status=$?
33125   grep -v '^ *+' conftest.er1 >conftest.err
33126   rm -f conftest.er1
33127   cat conftest.err >&5
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); } && {
33130          test -z "$ac_c_werror_flag" ||
33131          test ! -s conftest.err
33132        } && test -s conftest.$ac_objext; then
33133   ac_cv_type_mode_t=yes
33134 else
33135   echo "$as_me: failed program was:" >&5
33136 sed 's/^/| /' conftest.$ac_ext >&5
33137
33138         ac_cv_type_mode_t=no
33139 fi
33140
33141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33142 fi
33143 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33144 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33145 if test $ac_cv_type_mode_t = yes; then
33146   :
33147 else
33148
33149 cat >>confdefs.h <<_ACEOF
33150 #define mode_t int
33151 _ACEOF
33152
33153 fi
33154
33155 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33156 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33157 if test "${ac_cv_type_uid_t+set}" = set; then
33158   echo $ECHO_N "(cached) $ECHO_C" >&6
33159 else
33160   cat >conftest.$ac_ext <<_ACEOF
33161 /* confdefs.h.  */
33162 _ACEOF
33163 cat confdefs.h >>conftest.$ac_ext
33164 cat >>conftest.$ac_ext <<_ACEOF
33165 /* end confdefs.h.  */
33166 #include <sys/types.h>
33167
33168 _ACEOF
33169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33170   $EGREP "uid_t" >/dev/null 2>&1; then
33171   ac_cv_type_uid_t=yes
33172 else
33173   ac_cv_type_uid_t=no
33174 fi
33175 rm -f conftest*
33176
33177 fi
33178 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33179 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33180 if test $ac_cv_type_uid_t = no; then
33181
33182 cat >>confdefs.h <<\_ACEOF
33183 #define uid_t int
33184 _ACEOF
33185
33186
33187 cat >>confdefs.h <<\_ACEOF
33188 #define gid_t int
33189 _ACEOF
33190
33191 fi
33192
33193 { echo "$as_me:$LINENO: checking for size_t" >&5
33194 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33195 if test "${ac_cv_type_size_t+set}" = set; then
33196   echo $ECHO_N "(cached) $ECHO_C" >&6
33197 else
33198   cat >conftest.$ac_ext <<_ACEOF
33199 /* confdefs.h.  */
33200 _ACEOF
33201 cat confdefs.h >>conftest.$ac_ext
33202 cat >>conftest.$ac_ext <<_ACEOF
33203 /* end confdefs.h.  */
33204 $ac_includes_default
33205 typedef size_t ac__type_new_;
33206 int
33207 main ()
33208 {
33209 if ((ac__type_new_ *) 0)
33210   return 0;
33211 if (sizeof (ac__type_new_))
33212   return 0;
33213   ;
33214   return 0;
33215 }
33216 _ACEOF
33217 rm -f conftest.$ac_objext
33218 if { (ac_try="$ac_compile"
33219 case "(($ac_try" in
33220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221   *) ac_try_echo=$ac_try;;
33222 esac
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224   (eval "$ac_compile") 2>conftest.er1
33225   ac_status=$?
33226   grep -v '^ *+' conftest.er1 >conftest.err
33227   rm -f conftest.er1
33228   cat conftest.err >&5
33229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230   (exit $ac_status); } && {
33231          test -z "$ac_c_werror_flag" ||
33232          test ! -s conftest.err
33233        } && test -s conftest.$ac_objext; then
33234   ac_cv_type_size_t=yes
33235 else
33236   echo "$as_me: failed program was:" >&5
33237 sed 's/^/| /' conftest.$ac_ext >&5
33238
33239         ac_cv_type_size_t=no
33240 fi
33241
33242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33243 fi
33244 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33245 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33246 if test $ac_cv_type_size_t = yes; then
33247   :
33248 else
33249
33250 cat >>confdefs.h <<_ACEOF
33251 #define size_t unsigned int
33252 _ACEOF
33253
33254 fi
33255
33256 { echo "$as_me:$LINENO: checking for pid_t" >&5
33257 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33258 if test "${ac_cv_type_pid_t+set}" = set; then
33259   echo $ECHO_N "(cached) $ECHO_C" >&6
33260 else
33261   cat >conftest.$ac_ext <<_ACEOF
33262 /* confdefs.h.  */
33263 _ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h.  */
33267 $ac_includes_default
33268 typedef pid_t ac__type_new_;
33269 int
33270 main ()
33271 {
33272 if ((ac__type_new_ *) 0)
33273   return 0;
33274 if (sizeof (ac__type_new_))
33275   return 0;
33276   ;
33277   return 0;
33278 }
33279 _ACEOF
33280 rm -f conftest.$ac_objext
33281 if { (ac_try="$ac_compile"
33282 case "(($ac_try" in
33283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284   *) ac_try_echo=$ac_try;;
33285 esac
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287   (eval "$ac_compile") 2>conftest.er1
33288   ac_status=$?
33289   grep -v '^ *+' conftest.er1 >conftest.err
33290   rm -f conftest.er1
33291   cat conftest.err >&5
33292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293   (exit $ac_status); } && {
33294          test -z "$ac_c_werror_flag" ||
33295          test ! -s conftest.err
33296        } && test -s conftest.$ac_objext; then
33297   ac_cv_type_pid_t=yes
33298 else
33299   echo "$as_me: failed program was:" >&5
33300 sed 's/^/| /' conftest.$ac_ext >&5
33301
33302         ac_cv_type_pid_t=no
33303 fi
33304
33305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33306 fi
33307 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33308 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33309 if test $ac_cv_type_pid_t = yes; then
33310   :
33311 else
33312
33313 cat >>confdefs.h <<_ACEOF
33314 #define pid_t int
33315 _ACEOF
33316
33317 fi
33318
33319 { echo "$as_me:$LINENO: checking for off_t" >&5
33320 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33321 if test "${ac_cv_type_off_t+set}" = set; then
33322   echo $ECHO_N "(cached) $ECHO_C" >&6
33323 else
33324   cat >conftest.$ac_ext <<_ACEOF
33325 /* confdefs.h.  */
33326 _ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h.  */
33330 $ac_includes_default
33331 typedef off_t ac__type_new_;
33332 int
33333 main ()
33334 {
33335 if ((ac__type_new_ *) 0)
33336   return 0;
33337 if (sizeof (ac__type_new_))
33338   return 0;
33339   ;
33340   return 0;
33341 }
33342 _ACEOF
33343 rm -f conftest.$ac_objext
33344 if { (ac_try="$ac_compile"
33345 case "(($ac_try" in
33346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33347   *) ac_try_echo=$ac_try;;
33348 esac
33349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33350   (eval "$ac_compile") 2>conftest.er1
33351   ac_status=$?
33352   grep -v '^ *+' conftest.er1 >conftest.err
33353   rm -f conftest.er1
33354   cat conftest.err >&5
33355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356   (exit $ac_status); } && {
33357          test -z "$ac_c_werror_flag" ||
33358          test ! -s conftest.err
33359        } && test -s conftest.$ac_objext; then
33360   ac_cv_type_off_t=yes
33361 else
33362   echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33364
33365         ac_cv_type_off_t=no
33366 fi
33367
33368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33369 fi
33370 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33371 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33372 if test $ac_cv_type_off_t = yes; then
33373   :
33374 else
33375
33376 cat >>confdefs.h <<_ACEOF
33377 #define off_t long int
33378 _ACEOF
33379
33380 fi
33381
33382 { echo "$as_me:$LINENO: checking for ino_t" >&5
33383 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33384 if test "${ac_cv_type_ino_t+set}" = set; then
33385   echo $ECHO_N "(cached) $ECHO_C" >&6
33386 else
33387   cat >conftest.$ac_ext <<_ACEOF
33388 /* confdefs.h.  */
33389 _ACEOF
33390 cat confdefs.h >>conftest.$ac_ext
33391 cat >>conftest.$ac_ext <<_ACEOF
33392 /* end confdefs.h.  */
33393 $ac_includes_default
33394 typedef ino_t ac__type_new_;
33395 int
33396 main ()
33397 {
33398 if ((ac__type_new_ *) 0)
33399   return 0;
33400 if (sizeof (ac__type_new_))
33401   return 0;
33402   ;
33403   return 0;
33404 }
33405 _ACEOF
33406 rm -f conftest.$ac_objext
33407 if { (ac_try="$ac_compile"
33408 case "(($ac_try" in
33409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410   *) ac_try_echo=$ac_try;;
33411 esac
33412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413   (eval "$ac_compile") 2>conftest.er1
33414   ac_status=$?
33415   grep -v '^ *+' conftest.er1 >conftest.err
33416   rm -f conftest.er1
33417   cat conftest.err >&5
33418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419   (exit $ac_status); } && {
33420          test -z "$ac_c_werror_flag" ||
33421          test ! -s conftest.err
33422        } && test -s conftest.$ac_objext; then
33423   ac_cv_type_ino_t=yes
33424 else
33425   echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.$ac_ext >&5
33427
33428         ac_cv_type_ino_t=no
33429 fi
33430
33431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33432 fi
33433 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33434 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33435 if test $ac_cv_type_ino_t = yes; then
33436   :
33437 else
33438
33439 cat >>confdefs.h <<_ACEOF
33440 #define ino_t unsigned long
33441 _ACEOF
33442
33443 fi
33444
33445 { echo "$as_me:$LINENO: checking for dev_t" >&5
33446 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33447 if test "${ac_cv_type_dev_t+set}" = set; then
33448   echo $ECHO_N "(cached) $ECHO_C" >&6
33449 else
33450   cat >conftest.$ac_ext <<_ACEOF
33451 /* confdefs.h.  */
33452 _ACEOF
33453 cat confdefs.h >>conftest.$ac_ext
33454 cat >>conftest.$ac_ext <<_ACEOF
33455 /* end confdefs.h.  */
33456 $ac_includes_default
33457 typedef dev_t ac__type_new_;
33458 int
33459 main ()
33460 {
33461 if ((ac__type_new_ *) 0)
33462   return 0;
33463 if (sizeof (ac__type_new_))
33464   return 0;
33465   ;
33466   return 0;
33467 }
33468 _ACEOF
33469 rm -f conftest.$ac_objext
33470 if { (ac_try="$ac_compile"
33471 case "(($ac_try" in
33472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473   *) ac_try_echo=$ac_try;;
33474 esac
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476   (eval "$ac_compile") 2>conftest.er1
33477   ac_status=$?
33478   grep -v '^ *+' conftest.er1 >conftest.err
33479   rm -f conftest.er1
33480   cat conftest.err >&5
33481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482   (exit $ac_status); } && {
33483          test -z "$ac_c_werror_flag" ||
33484          test ! -s conftest.err
33485        } && test -s conftest.$ac_objext; then
33486   ac_cv_type_dev_t=yes
33487 else
33488   echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33490
33491         ac_cv_type_dev_t=no
33492 fi
33493
33494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33495 fi
33496 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33497 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33498 if test $ac_cv_type_dev_t = yes; then
33499   :
33500 else
33501
33502 cat >>confdefs.h <<_ACEOF
33503 #define dev_t unsigned long
33504 _ACEOF
33505
33506 fi
33507
33508 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33509 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33510 if test "${ac_cv_type_daddr_t+set}" = set; then
33511   echo $ECHO_N "(cached) $ECHO_C" >&6
33512 else
33513   cat >conftest.$ac_ext <<_ACEOF
33514 /* confdefs.h.  */
33515 _ACEOF
33516 cat confdefs.h >>conftest.$ac_ext
33517 cat >>conftest.$ac_ext <<_ACEOF
33518 /* end confdefs.h.  */
33519 $ac_includes_default
33520 typedef daddr_t ac__type_new_;
33521 int
33522 main ()
33523 {
33524 if ((ac__type_new_ *) 0)
33525   return 0;
33526 if (sizeof (ac__type_new_))
33527   return 0;
33528   ;
33529   return 0;
33530 }
33531 _ACEOF
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536   *) ac_try_echo=$ac_try;;
33537 esac
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539   (eval "$ac_compile") 2>conftest.er1
33540   ac_status=$?
33541   grep -v '^ *+' conftest.er1 >conftest.err
33542   rm -f conftest.er1
33543   cat conftest.err >&5
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); } && {
33546          test -z "$ac_c_werror_flag" ||
33547          test ! -s conftest.err
33548        } && test -s conftest.$ac_objext; then
33549   ac_cv_type_daddr_t=yes
33550 else
33551   echo "$as_me: failed program was:" >&5
33552 sed 's/^/| /' conftest.$ac_ext >&5
33553
33554         ac_cv_type_daddr_t=no
33555 fi
33556
33557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33558 fi
33559 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33560 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33561 if test $ac_cv_type_daddr_t = yes; then
33562   :
33563 else
33564
33565 cat >>confdefs.h <<_ACEOF
33566 #define daddr_t long
33567 _ACEOF
33568
33569 fi
33570
33571 { echo "$as_me:$LINENO: checking for major_t" >&5
33572 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33573 if test "${ac_cv_type_major_t+set}" = set; then
33574   echo $ECHO_N "(cached) $ECHO_C" >&6
33575 else
33576   cat >conftest.$ac_ext <<_ACEOF
33577 /* confdefs.h.  */
33578 _ACEOF
33579 cat confdefs.h >>conftest.$ac_ext
33580 cat >>conftest.$ac_ext <<_ACEOF
33581 /* end confdefs.h.  */
33582 $ac_includes_default
33583 typedef major_t ac__type_new_;
33584 int
33585 main ()
33586 {
33587 if ((ac__type_new_ *) 0)
33588   return 0;
33589 if (sizeof (ac__type_new_))
33590   return 0;
33591   ;
33592   return 0;
33593 }
33594 _ACEOF
33595 rm -f conftest.$ac_objext
33596 if { (ac_try="$ac_compile"
33597 case "(($ac_try" in
33598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33599   *) ac_try_echo=$ac_try;;
33600 esac
33601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33602   (eval "$ac_compile") 2>conftest.er1
33603   ac_status=$?
33604   grep -v '^ *+' conftest.er1 >conftest.err
33605   rm -f conftest.er1
33606   cat conftest.err >&5
33607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608   (exit $ac_status); } && {
33609          test -z "$ac_c_werror_flag" ||
33610          test ! -s conftest.err
33611        } && test -s conftest.$ac_objext; then
33612   ac_cv_type_major_t=yes
33613 else
33614   echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33616
33617         ac_cv_type_major_t=no
33618 fi
33619
33620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33621 fi
33622 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33623 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33624 if test $ac_cv_type_major_t = yes; then
33625   :
33626 else
33627
33628 cat >>confdefs.h <<_ACEOF
33629 #define major_t int
33630 _ACEOF
33631
33632 fi
33633
33634 { echo "$as_me:$LINENO: checking for minor_t" >&5
33635 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33636 if test "${ac_cv_type_minor_t+set}" = set; then
33637   echo $ECHO_N "(cached) $ECHO_C" >&6
33638 else
33639   cat >conftest.$ac_ext <<_ACEOF
33640 /* confdefs.h.  */
33641 _ACEOF
33642 cat confdefs.h >>conftest.$ac_ext
33643 cat >>conftest.$ac_ext <<_ACEOF
33644 /* end confdefs.h.  */
33645 $ac_includes_default
33646 typedef minor_t ac__type_new_;
33647 int
33648 main ()
33649 {
33650 if ((ac__type_new_ *) 0)
33651   return 0;
33652 if (sizeof (ac__type_new_))
33653   return 0;
33654   ;
33655   return 0;
33656 }
33657 _ACEOF
33658 rm -f conftest.$ac_objext
33659 if { (ac_try="$ac_compile"
33660 case "(($ac_try" in
33661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662   *) ac_try_echo=$ac_try;;
33663 esac
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665   (eval "$ac_compile") 2>conftest.er1
33666   ac_status=$?
33667   grep -v '^ *+' conftest.er1 >conftest.err
33668   rm -f conftest.er1
33669   cat conftest.err >&5
33670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671   (exit $ac_status); } && {
33672          test -z "$ac_c_werror_flag" ||
33673          test ! -s conftest.err
33674        } && test -s conftest.$ac_objext; then
33675   ac_cv_type_minor_t=yes
33676 else
33677   echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33679
33680         ac_cv_type_minor_t=no
33681 fi
33682
33683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33684 fi
33685 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33686 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33687 if test $ac_cv_type_minor_t = yes; then
33688   :
33689 else
33690
33691 cat >>confdefs.h <<_ACEOF
33692 #define minor_t int
33693 _ACEOF
33694
33695 fi
33696
33697 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33698 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33699 if test "${ac_cv_type_ssize_t+set}" = set; then
33700   echo $ECHO_N "(cached) $ECHO_C" >&6
33701 else
33702   cat >conftest.$ac_ext <<_ACEOF
33703 /* confdefs.h.  */
33704 _ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h.  */
33708 $ac_includes_default
33709 typedef ssize_t ac__type_new_;
33710 int
33711 main ()
33712 {
33713 if ((ac__type_new_ *) 0)
33714   return 0;
33715 if (sizeof (ac__type_new_))
33716   return 0;
33717   ;
33718   return 0;
33719 }
33720 _ACEOF
33721 rm -f conftest.$ac_objext
33722 if { (ac_try="$ac_compile"
33723 case "(($ac_try" in
33724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725   *) ac_try_echo=$ac_try;;
33726 esac
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728   (eval "$ac_compile") 2>conftest.er1
33729   ac_status=$?
33730   grep -v '^ *+' conftest.er1 >conftest.err
33731   rm -f conftest.er1
33732   cat conftest.err >&5
33733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734   (exit $ac_status); } && {
33735          test -z "$ac_c_werror_flag" ||
33736          test ! -s conftest.err
33737        } && test -s conftest.$ac_objext; then
33738   ac_cv_type_ssize_t=yes
33739 else
33740   echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33742
33743         ac_cv_type_ssize_t=no
33744 fi
33745
33746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33747 fi
33748 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33749 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33750 if test $ac_cv_type_ssize_t = yes; then
33751   :
33752 else
33753
33754 cat >>confdefs.h <<_ACEOF
33755 #define ssize_t int
33756 _ACEOF
33757
33758 fi
33759
33760 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33761 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33762 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33763   echo $ECHO_N "(cached) $ECHO_C" >&6
33764 else
33765   cat >conftest.$ac_ext <<_ACEOF
33766 /* confdefs.h.  */
33767 _ACEOF
33768 cat confdefs.h >>conftest.$ac_ext
33769 cat >>conftest.$ac_ext <<_ACEOF
33770 /* end confdefs.h.  */
33771 $ac_includes_default
33772 int
33773 main ()
33774 {
33775 static struct stat ac_aggr;
33776 if (ac_aggr.st_blocks)
33777 return 0;
33778   ;
33779   return 0;
33780 }
33781 _ACEOF
33782 rm -f conftest.$ac_objext
33783 if { (ac_try="$ac_compile"
33784 case "(($ac_try" in
33785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33786   *) ac_try_echo=$ac_try;;
33787 esac
33788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33789   (eval "$ac_compile") 2>conftest.er1
33790   ac_status=$?
33791   grep -v '^ *+' conftest.er1 >conftest.err
33792   rm -f conftest.er1
33793   cat conftest.err >&5
33794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795   (exit $ac_status); } && {
33796          test -z "$ac_c_werror_flag" ||
33797          test ! -s conftest.err
33798        } && test -s conftest.$ac_objext; then
33799   ac_cv_member_struct_stat_st_blocks=yes
33800 else
33801   echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33803
33804         cat >conftest.$ac_ext <<_ACEOF
33805 /* confdefs.h.  */
33806 _ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h.  */
33810 $ac_includes_default
33811 int
33812 main ()
33813 {
33814 static struct stat ac_aggr;
33815 if (sizeof ac_aggr.st_blocks)
33816 return 0;
33817   ;
33818   return 0;
33819 }
33820 _ACEOF
33821 rm -f conftest.$ac_objext
33822 if { (ac_try="$ac_compile"
33823 case "(($ac_try" in
33824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825   *) ac_try_echo=$ac_try;;
33826 esac
33827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828   (eval "$ac_compile") 2>conftest.er1
33829   ac_status=$?
33830   grep -v '^ *+' conftest.er1 >conftest.err
33831   rm -f conftest.er1
33832   cat conftest.err >&5
33833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834   (exit $ac_status); } && {
33835          test -z "$ac_c_werror_flag" ||
33836          test ! -s conftest.err
33837        } && test -s conftest.$ac_objext; then
33838   ac_cv_member_struct_stat_st_blocks=yes
33839 else
33840   echo "$as_me: failed program was:" >&5
33841 sed 's/^/| /' conftest.$ac_ext >&5
33842
33843         ac_cv_member_struct_stat_st_blocks=no
33844 fi
33845
33846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33847 fi
33848
33849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33850 fi
33851 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33852 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33853 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33854
33855 cat >>confdefs.h <<_ACEOF
33856 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33857 _ACEOF
33858
33859
33860 cat >>confdefs.h <<\_ACEOF
33861 #define HAVE_ST_BLOCKS 1
33862 _ACEOF
33863
33864 else
33865   case " $LIBOBJS " in
33866   *" fileblocks.$ac_objext "* ) ;;
33867   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33868  ;;
33869 esac
33870
33871 fi
33872
33873
33874 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33875 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33876 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33877   echo $ECHO_N "(cached) $ECHO_C" >&6
33878 else
33879   cat >conftest.$ac_ext <<_ACEOF
33880 /* confdefs.h.  */
33881 _ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h.  */
33885 $ac_includes_default
33886 int
33887 main ()
33888 {
33889 static struct stat ac_aggr;
33890 if (ac_aggr.st_rdev)
33891 return 0;
33892   ;
33893   return 0;
33894 }
33895 _ACEOF
33896 rm -f conftest.$ac_objext
33897 if { (ac_try="$ac_compile"
33898 case "(($ac_try" in
33899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33900   *) ac_try_echo=$ac_try;;
33901 esac
33902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33903   (eval "$ac_compile") 2>conftest.er1
33904   ac_status=$?
33905   grep -v '^ *+' conftest.er1 >conftest.err
33906   rm -f conftest.er1
33907   cat conftest.err >&5
33908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909   (exit $ac_status); } && {
33910          test -z "$ac_c_werror_flag" ||
33911          test ! -s conftest.err
33912        } && test -s conftest.$ac_objext; then
33913   ac_cv_member_struct_stat_st_rdev=yes
33914 else
33915   echo "$as_me: failed program was:" >&5
33916 sed 's/^/| /' conftest.$ac_ext >&5
33917
33918         cat >conftest.$ac_ext <<_ACEOF
33919 /* confdefs.h.  */
33920 _ACEOF
33921 cat confdefs.h >>conftest.$ac_ext
33922 cat >>conftest.$ac_ext <<_ACEOF
33923 /* end confdefs.h.  */
33924 $ac_includes_default
33925 int
33926 main ()
33927 {
33928 static struct stat ac_aggr;
33929 if (sizeof ac_aggr.st_rdev)
33930 return 0;
33931   ;
33932   return 0;
33933 }
33934 _ACEOF
33935 rm -f conftest.$ac_objext
33936 if { (ac_try="$ac_compile"
33937 case "(($ac_try" in
33938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939   *) ac_try_echo=$ac_try;;
33940 esac
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942   (eval "$ac_compile") 2>conftest.er1
33943   ac_status=$?
33944   grep -v '^ *+' conftest.er1 >conftest.err
33945   rm -f conftest.er1
33946   cat conftest.err >&5
33947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948   (exit $ac_status); } && {
33949          test -z "$ac_c_werror_flag" ||
33950          test ! -s conftest.err
33951        } && test -s conftest.$ac_objext; then
33952   ac_cv_member_struct_stat_st_rdev=yes
33953 else
33954   echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33956
33957         ac_cv_member_struct_stat_st_rdev=no
33958 fi
33959
33960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33961 fi
33962
33963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33964 fi
33965 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33966 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33967 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33968
33969 cat >>confdefs.h <<_ACEOF
33970 #define HAVE_STRUCT_STAT_ST_RDEV 1
33971 _ACEOF
33972
33973
33974 cat >>confdefs.h <<\_ACEOF
33975 #define HAVE_ST_RDEV 1
33976 _ACEOF
33977
33978 fi
33979
33980
33981 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33982 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
33983 if test "${ac_cv_struct_tm+set}" = set; then
33984   echo $ECHO_N "(cached) $ECHO_C" >&6
33985 else
33986   cat >conftest.$ac_ext <<_ACEOF
33987 /* confdefs.h.  */
33988 _ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h.  */
33992 #include <sys/types.h>
33993 #include <time.h>
33994
33995 int
33996 main ()
33997 {
33998 struct tm tm;
33999                                      int *p = &tm.tm_sec;
34000                                      return !p;
34001   ;
34002   return 0;
34003 }
34004 _ACEOF
34005 rm -f conftest.$ac_objext
34006 if { (ac_try="$ac_compile"
34007 case "(($ac_try" in
34008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34009   *) ac_try_echo=$ac_try;;
34010 esac
34011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34012   (eval "$ac_compile") 2>conftest.er1
34013   ac_status=$?
34014   grep -v '^ *+' conftest.er1 >conftest.err
34015   rm -f conftest.er1
34016   cat conftest.err >&5
34017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018   (exit $ac_status); } && {
34019          test -z "$ac_c_werror_flag" ||
34020          test ! -s conftest.err
34021        } && test -s conftest.$ac_objext; then
34022   ac_cv_struct_tm=time.h
34023 else
34024   echo "$as_me: failed program was:" >&5
34025 sed 's/^/| /' conftest.$ac_ext >&5
34026
34027         ac_cv_struct_tm=sys/time.h
34028 fi
34029
34030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34031 fi
34032 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34033 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34034 if test $ac_cv_struct_tm = sys/time.h; then
34035
34036 cat >>confdefs.h <<\_ACEOF
34037 #define TM_IN_SYS_TIME 1
34038 _ACEOF
34039
34040 fi
34041
34042 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34043 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34044 if test "${ac_cv_c_const+set}" = set; then
34045   echo $ECHO_N "(cached) $ECHO_C" >&6
34046 else
34047   cat >conftest.$ac_ext <<_ACEOF
34048 /* confdefs.h.  */
34049 _ACEOF
34050 cat confdefs.h >>conftest.$ac_ext
34051 cat >>conftest.$ac_ext <<_ACEOF
34052 /* end confdefs.h.  */
34053
34054 int
34055 main ()
34056 {
34057 /* FIXME: Include the comments suggested by Paul. */
34058 #ifndef __cplusplus
34059   /* Ultrix mips cc rejects this.  */
34060   typedef int charset[2];
34061   const charset cs;
34062   /* SunOS 4.1.1 cc rejects this.  */
34063   char const *const *pcpcc;
34064   char **ppc;
34065   /* NEC SVR4.0.2 mips cc rejects this.  */
34066   struct point {int x, y;};
34067   static struct point const zero = {0,0};
34068   /* AIX XL C 1.02.0.0 rejects this.
34069      It does not let you subtract one const X* pointer from another in
34070      an arm of an if-expression whose if-part is not a constant
34071      expression */
34072   const char *g = "string";
34073   pcpcc = &g + (g ? g-g : 0);
34074   /* HPUX 7.0 cc rejects these. */
34075   ++pcpcc;
34076   ppc = (char**) pcpcc;
34077   pcpcc = (char const *const *) ppc;
34078   { /* SCO 3.2v4 cc rejects this.  */
34079     char *t;
34080     char const *s = 0 ? (char *) 0 : (char const *) 0;
34081
34082     *t++ = 0;
34083     if (s) return 0;
34084   }
34085   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34086     int x[] = {25, 17};
34087     const int *foo = &x[0];
34088     ++foo;
34089   }
34090   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34091     typedef const int *iptr;
34092     iptr p = 0;
34093     ++p;
34094   }
34095   { /* AIX XL C 1.02.0.0 rejects this saying
34096        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34097     struct s { int j; const int *ap[3]; };
34098     struct s *b; b->j = 5;
34099   }
34100   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34101     const int foo = 10;
34102     if (!foo) return 0;
34103   }
34104   return !cs[0] && !zero.x;
34105 #endif
34106
34107   ;
34108   return 0;
34109 }
34110 _ACEOF
34111 rm -f conftest.$ac_objext
34112 if { (ac_try="$ac_compile"
34113 case "(($ac_try" in
34114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34115   *) ac_try_echo=$ac_try;;
34116 esac
34117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34118   (eval "$ac_compile") 2>conftest.er1
34119   ac_status=$?
34120   grep -v '^ *+' conftest.er1 >conftest.err
34121   rm -f conftest.er1
34122   cat conftest.err >&5
34123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124   (exit $ac_status); } && {
34125          test -z "$ac_c_werror_flag" ||
34126          test ! -s conftest.err
34127        } && test -s conftest.$ac_objext; then
34128   ac_cv_c_const=yes
34129 else
34130   echo "$as_me: failed program was:" >&5
34131 sed 's/^/| /' conftest.$ac_ext >&5
34132
34133         ac_cv_c_const=no
34134 fi
34135
34136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34137 fi
34138 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34139 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34140 if test $ac_cv_c_const = no; then
34141
34142 cat >>confdefs.h <<\_ACEOF
34143 #define const
34144 _ACEOF
34145
34146 fi
34147
34148
34149 { echo "$as_me:$LINENO: checking for char" >&5
34150 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34151 if test "${ac_cv_type_char+set}" = set; then
34152   echo $ECHO_N "(cached) $ECHO_C" >&6
34153 else
34154   cat >conftest.$ac_ext <<_ACEOF
34155 /* confdefs.h.  */
34156 _ACEOF
34157 cat confdefs.h >>conftest.$ac_ext
34158 cat >>conftest.$ac_ext <<_ACEOF
34159 /* end confdefs.h.  */
34160 $ac_includes_default
34161 typedef char ac__type_new_;
34162 int
34163 main ()
34164 {
34165 if ((ac__type_new_ *) 0)
34166   return 0;
34167 if (sizeof (ac__type_new_))
34168   return 0;
34169   ;
34170   return 0;
34171 }
34172 _ACEOF
34173 rm -f conftest.$ac_objext
34174 if { (ac_try="$ac_compile"
34175 case "(($ac_try" in
34176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34177   *) ac_try_echo=$ac_try;;
34178 esac
34179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34180   (eval "$ac_compile") 2>conftest.er1
34181   ac_status=$?
34182   grep -v '^ *+' conftest.er1 >conftest.err
34183   rm -f conftest.er1
34184   cat conftest.err >&5
34185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186   (exit $ac_status); } && {
34187          test -z "$ac_c_werror_flag" ||
34188          test ! -s conftest.err
34189        } && test -s conftest.$ac_objext; then
34190   ac_cv_type_char=yes
34191 else
34192   echo "$as_me: failed program was:" >&5
34193 sed 's/^/| /' conftest.$ac_ext >&5
34194
34195         ac_cv_type_char=no
34196 fi
34197
34198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34199 fi
34200 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34201 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34202
34203 # The cast to long int works around a bug in the HP C Compiler
34204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34206 # This bug is HP SR number 8606223364.
34207 { echo "$as_me:$LINENO: checking size of char" >&5
34208 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34209 if test "${ac_cv_sizeof_char+set}" = set; then
34210   echo $ECHO_N "(cached) $ECHO_C" >&6
34211 else
34212   if test "$cross_compiling" = yes; then
34213   # Depending upon the size, compute the lo and hi bounds.
34214 cat >conftest.$ac_ext <<_ACEOF
34215 /* confdefs.h.  */
34216 _ACEOF
34217 cat confdefs.h >>conftest.$ac_ext
34218 cat >>conftest.$ac_ext <<_ACEOF
34219 /* end confdefs.h.  */
34220 $ac_includes_default
34221    typedef char ac__type_sizeof_;
34222 int
34223 main ()
34224 {
34225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34226 test_array [0] = 0
34227
34228   ;
34229   return 0;
34230 }
34231 _ACEOF
34232 rm -f conftest.$ac_objext
34233 if { (ac_try="$ac_compile"
34234 case "(($ac_try" in
34235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34236   *) ac_try_echo=$ac_try;;
34237 esac
34238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34239   (eval "$ac_compile") 2>conftest.er1
34240   ac_status=$?
34241   grep -v '^ *+' conftest.er1 >conftest.err
34242   rm -f conftest.er1
34243   cat conftest.err >&5
34244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245   (exit $ac_status); } && {
34246          test -z "$ac_c_werror_flag" ||
34247          test ! -s conftest.err
34248        } && test -s conftest.$ac_objext; then
34249   ac_lo=0 ac_mid=0
34250   while :; do
34251     cat >conftest.$ac_ext <<_ACEOF
34252 /* confdefs.h.  */
34253 _ACEOF
34254 cat confdefs.h >>conftest.$ac_ext
34255 cat >>conftest.$ac_ext <<_ACEOF
34256 /* end confdefs.h.  */
34257 $ac_includes_default
34258    typedef char ac__type_sizeof_;
34259 int
34260 main ()
34261 {
34262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34263 test_array [0] = 0
34264
34265   ;
34266   return 0;
34267 }
34268 _ACEOF
34269 rm -f conftest.$ac_objext
34270 if { (ac_try="$ac_compile"
34271 case "(($ac_try" in
34272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34273   *) ac_try_echo=$ac_try;;
34274 esac
34275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34276   (eval "$ac_compile") 2>conftest.er1
34277   ac_status=$?
34278   grep -v '^ *+' conftest.er1 >conftest.err
34279   rm -f conftest.er1
34280   cat conftest.err >&5
34281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282   (exit $ac_status); } && {
34283          test -z "$ac_c_werror_flag" ||
34284          test ! -s conftest.err
34285        } && test -s conftest.$ac_objext; then
34286   ac_hi=$ac_mid; break
34287 else
34288   echo "$as_me: failed program was:" >&5
34289 sed 's/^/| /' conftest.$ac_ext >&5
34290
34291         ac_lo=`expr $ac_mid + 1`
34292                         if test $ac_lo -le $ac_mid; then
34293                           ac_lo= ac_hi=
34294                           break
34295                         fi
34296                         ac_mid=`expr 2 '*' $ac_mid + 1`
34297 fi
34298
34299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34300   done
34301 else
34302   echo "$as_me: failed program was:" >&5
34303 sed 's/^/| /' conftest.$ac_ext >&5
34304
34305         cat >conftest.$ac_ext <<_ACEOF
34306 /* confdefs.h.  */
34307 _ACEOF
34308 cat confdefs.h >>conftest.$ac_ext
34309 cat >>conftest.$ac_ext <<_ACEOF
34310 /* end confdefs.h.  */
34311 $ac_includes_default
34312    typedef char ac__type_sizeof_;
34313 int
34314 main ()
34315 {
34316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34317 test_array [0] = 0
34318
34319   ;
34320   return 0;
34321 }
34322 _ACEOF
34323 rm -f conftest.$ac_objext
34324 if { (ac_try="$ac_compile"
34325 case "(($ac_try" in
34326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34327   *) ac_try_echo=$ac_try;;
34328 esac
34329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34330   (eval "$ac_compile") 2>conftest.er1
34331   ac_status=$?
34332   grep -v '^ *+' conftest.er1 >conftest.err
34333   rm -f conftest.er1
34334   cat conftest.err >&5
34335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336   (exit $ac_status); } && {
34337          test -z "$ac_c_werror_flag" ||
34338          test ! -s conftest.err
34339        } && test -s conftest.$ac_objext; then
34340   ac_hi=-1 ac_mid=-1
34341   while :; do
34342     cat >conftest.$ac_ext <<_ACEOF
34343 /* confdefs.h.  */
34344 _ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h.  */
34348 $ac_includes_default
34349    typedef char ac__type_sizeof_;
34350 int
34351 main ()
34352 {
34353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34354 test_array [0] = 0
34355
34356   ;
34357   return 0;
34358 }
34359 _ACEOF
34360 rm -f conftest.$ac_objext
34361 if { (ac_try="$ac_compile"
34362 case "(($ac_try" in
34363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364   *) ac_try_echo=$ac_try;;
34365 esac
34366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367   (eval "$ac_compile") 2>conftest.er1
34368   ac_status=$?
34369   grep -v '^ *+' conftest.er1 >conftest.err
34370   rm -f conftest.er1
34371   cat conftest.err >&5
34372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373   (exit $ac_status); } && {
34374          test -z "$ac_c_werror_flag" ||
34375          test ! -s conftest.err
34376        } && test -s conftest.$ac_objext; then
34377   ac_lo=$ac_mid; break
34378 else
34379   echo "$as_me: failed program was:" >&5
34380 sed 's/^/| /' conftest.$ac_ext >&5
34381
34382         ac_hi=`expr '(' $ac_mid ')' - 1`
34383                         if test $ac_mid -le $ac_hi; then
34384                           ac_lo= ac_hi=
34385                           break
34386                         fi
34387                         ac_mid=`expr 2 '*' $ac_mid`
34388 fi
34389
34390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34391   done
34392 else
34393   echo "$as_me: failed program was:" >&5
34394 sed 's/^/| /' conftest.$ac_ext >&5
34395
34396         ac_lo= ac_hi=
34397 fi
34398
34399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34400 fi
34401
34402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403 # Binary search between lo and hi bounds.
34404 while test "x$ac_lo" != "x$ac_hi"; do
34405   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34406   cat >conftest.$ac_ext <<_ACEOF
34407 /* confdefs.h.  */
34408 _ACEOF
34409 cat confdefs.h >>conftest.$ac_ext
34410 cat >>conftest.$ac_ext <<_ACEOF
34411 /* end confdefs.h.  */
34412 $ac_includes_default
34413    typedef char ac__type_sizeof_;
34414 int
34415 main ()
34416 {
34417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34418 test_array [0] = 0
34419
34420   ;
34421   return 0;
34422 }
34423 _ACEOF
34424 rm -f conftest.$ac_objext
34425 if { (ac_try="$ac_compile"
34426 case "(($ac_try" in
34427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34428   *) ac_try_echo=$ac_try;;
34429 esac
34430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34431   (eval "$ac_compile") 2>conftest.er1
34432   ac_status=$?
34433   grep -v '^ *+' conftest.er1 >conftest.err
34434   rm -f conftest.er1
34435   cat conftest.err >&5
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); } && {
34438          test -z "$ac_c_werror_flag" ||
34439          test ! -s conftest.err
34440        } && test -s conftest.$ac_objext; then
34441   ac_hi=$ac_mid
34442 else
34443   echo "$as_me: failed program was:" >&5
34444 sed 's/^/| /' conftest.$ac_ext >&5
34445
34446         ac_lo=`expr '(' $ac_mid ')' + 1`
34447 fi
34448
34449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34450 done
34451 case $ac_lo in
34452 ?*) ac_cv_sizeof_char=$ac_lo;;
34453 '') if test "$ac_cv_type_char" = yes; then
34454      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34455 See \`config.log' for more details." >&5
34456 echo "$as_me: error: cannot compute sizeof (char)
34457 See \`config.log' for more details." >&2;}
34458    { (exit 77); exit 77; }; }
34459    else
34460      ac_cv_sizeof_char=0
34461    fi ;;
34462 esac
34463 else
34464   cat >conftest.$ac_ext <<_ACEOF
34465 /* confdefs.h.  */
34466 _ACEOF
34467 cat confdefs.h >>conftest.$ac_ext
34468 cat >>conftest.$ac_ext <<_ACEOF
34469 /* end confdefs.h.  */
34470 $ac_includes_default
34471    typedef char ac__type_sizeof_;
34472 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34473 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34474 #include <stdio.h>
34475 #include <stdlib.h>
34476 int
34477 main ()
34478 {
34479
34480   FILE *f = fopen ("conftest.val", "w");
34481   if (! f)
34482     return 1;
34483   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34484     {
34485       long int i = longval ();
34486       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34487         return 1;
34488       fprintf (f, "%ld\n", i);
34489     }
34490   else
34491     {
34492       unsigned long int i = ulongval ();
34493       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34494         return 1;
34495       fprintf (f, "%lu\n", i);
34496     }
34497   return ferror (f) || fclose (f) != 0;
34498
34499   ;
34500   return 0;
34501 }
34502 _ACEOF
34503 rm -f conftest$ac_exeext
34504 if { (ac_try="$ac_link"
34505 case "(($ac_try" in
34506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34507   *) ac_try_echo=$ac_try;;
34508 esac
34509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34510   (eval "$ac_link") 2>&5
34511   ac_status=$?
34512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34514   { (case "(($ac_try" in
34515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34516   *) ac_try_echo=$ac_try;;
34517 esac
34518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34519   (eval "$ac_try") 2>&5
34520   ac_status=$?
34521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522   (exit $ac_status); }; }; then
34523   ac_cv_sizeof_char=`cat conftest.val`
34524 else
34525   echo "$as_me: program exited with status $ac_status" >&5
34526 echo "$as_me: failed program was:" >&5
34527 sed 's/^/| /' conftest.$ac_ext >&5
34528
34529 ( exit $ac_status )
34530 if test "$ac_cv_type_char" = yes; then
34531      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34532 See \`config.log' for more details." >&5
34533 echo "$as_me: error: cannot compute sizeof (char)
34534 See \`config.log' for more details." >&2;}
34535    { (exit 77); exit 77; }; }
34536    else
34537      ac_cv_sizeof_char=0
34538    fi
34539 fi
34540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34541 fi
34542 rm -f conftest.val
34543 fi
34544 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34545 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34546
34547
34548
34549 cat >>confdefs.h <<_ACEOF
34550 #define SIZEOF_CHAR $ac_cv_sizeof_char
34551 _ACEOF
34552
34553
34554 { echo "$as_me:$LINENO: checking for short int" >&5
34555 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34556 if test "${ac_cv_type_short_int+set}" = set; then
34557   echo $ECHO_N "(cached) $ECHO_C" >&6
34558 else
34559   cat >conftest.$ac_ext <<_ACEOF
34560 /* confdefs.h.  */
34561 _ACEOF
34562 cat confdefs.h >>conftest.$ac_ext
34563 cat >>conftest.$ac_ext <<_ACEOF
34564 /* end confdefs.h.  */
34565 $ac_includes_default
34566 typedef short int ac__type_new_;
34567 int
34568 main ()
34569 {
34570 if ((ac__type_new_ *) 0)
34571   return 0;
34572 if (sizeof (ac__type_new_))
34573   return 0;
34574   ;
34575   return 0;
34576 }
34577 _ACEOF
34578 rm -f conftest.$ac_objext
34579 if { (ac_try="$ac_compile"
34580 case "(($ac_try" in
34581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34582   *) ac_try_echo=$ac_try;;
34583 esac
34584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34585   (eval "$ac_compile") 2>conftest.er1
34586   ac_status=$?
34587   grep -v '^ *+' conftest.er1 >conftest.err
34588   rm -f conftest.er1
34589   cat conftest.err >&5
34590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591   (exit $ac_status); } && {
34592          test -z "$ac_c_werror_flag" ||
34593          test ! -s conftest.err
34594        } && test -s conftest.$ac_objext; then
34595   ac_cv_type_short_int=yes
34596 else
34597   echo "$as_me: failed program was:" >&5
34598 sed 's/^/| /' conftest.$ac_ext >&5
34599
34600         ac_cv_type_short_int=no
34601 fi
34602
34603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34604 fi
34605 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34606 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34607
34608 # The cast to long int works around a bug in the HP C Compiler
34609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34611 # This bug is HP SR number 8606223364.
34612 { echo "$as_me:$LINENO: checking size of short int" >&5
34613 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34614 if test "${ac_cv_sizeof_short_int+set}" = set; then
34615   echo $ECHO_N "(cached) $ECHO_C" >&6
34616 else
34617   if test "$cross_compiling" = yes; then
34618   # Depending upon the size, compute the lo and hi bounds.
34619 cat >conftest.$ac_ext <<_ACEOF
34620 /* confdefs.h.  */
34621 _ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h.  */
34625 $ac_includes_default
34626    typedef short int ac__type_sizeof_;
34627 int
34628 main ()
34629 {
34630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34631 test_array [0] = 0
34632
34633   ;
34634   return 0;
34635 }
34636 _ACEOF
34637 rm -f conftest.$ac_objext
34638 if { (ac_try="$ac_compile"
34639 case "(($ac_try" in
34640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641   *) ac_try_echo=$ac_try;;
34642 esac
34643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34644   (eval "$ac_compile") 2>conftest.er1
34645   ac_status=$?
34646   grep -v '^ *+' conftest.er1 >conftest.err
34647   rm -f conftest.er1
34648   cat conftest.err >&5
34649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650   (exit $ac_status); } && {
34651          test -z "$ac_c_werror_flag" ||
34652          test ! -s conftest.err
34653        } && test -s conftest.$ac_objext; then
34654   ac_lo=0 ac_mid=0
34655   while :; do
34656     cat >conftest.$ac_ext <<_ACEOF
34657 /* confdefs.h.  */
34658 _ACEOF
34659 cat confdefs.h >>conftest.$ac_ext
34660 cat >>conftest.$ac_ext <<_ACEOF
34661 /* end confdefs.h.  */
34662 $ac_includes_default
34663    typedef short int ac__type_sizeof_;
34664 int
34665 main ()
34666 {
34667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34668 test_array [0] = 0
34669
34670   ;
34671   return 0;
34672 }
34673 _ACEOF
34674 rm -f conftest.$ac_objext
34675 if { (ac_try="$ac_compile"
34676 case "(($ac_try" in
34677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34678   *) ac_try_echo=$ac_try;;
34679 esac
34680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34681   (eval "$ac_compile") 2>conftest.er1
34682   ac_status=$?
34683   grep -v '^ *+' conftest.er1 >conftest.err
34684   rm -f conftest.er1
34685   cat conftest.err >&5
34686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687   (exit $ac_status); } && {
34688          test -z "$ac_c_werror_flag" ||
34689          test ! -s conftest.err
34690        } && test -s conftest.$ac_objext; then
34691   ac_hi=$ac_mid; break
34692 else
34693   echo "$as_me: failed program was:" >&5
34694 sed 's/^/| /' conftest.$ac_ext >&5
34695
34696         ac_lo=`expr $ac_mid + 1`
34697                         if test $ac_lo -le $ac_mid; then
34698                           ac_lo= ac_hi=
34699                           break
34700                         fi
34701                         ac_mid=`expr 2 '*' $ac_mid + 1`
34702 fi
34703
34704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34705   done
34706 else
34707   echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34709
34710         cat >conftest.$ac_ext <<_ACEOF
34711 /* confdefs.h.  */
34712 _ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h.  */
34716 $ac_includes_default
34717    typedef short int ac__type_sizeof_;
34718 int
34719 main ()
34720 {
34721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34722 test_array [0] = 0
34723
34724   ;
34725   return 0;
34726 }
34727 _ACEOF
34728 rm -f conftest.$ac_objext
34729 if { (ac_try="$ac_compile"
34730 case "(($ac_try" in
34731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34732   *) ac_try_echo=$ac_try;;
34733 esac
34734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34735   (eval "$ac_compile") 2>conftest.er1
34736   ac_status=$?
34737   grep -v '^ *+' conftest.er1 >conftest.err
34738   rm -f conftest.er1
34739   cat conftest.err >&5
34740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741   (exit $ac_status); } && {
34742          test -z "$ac_c_werror_flag" ||
34743          test ! -s conftest.err
34744        } && test -s conftest.$ac_objext; then
34745   ac_hi=-1 ac_mid=-1
34746   while :; do
34747     cat >conftest.$ac_ext <<_ACEOF
34748 /* confdefs.h.  */
34749 _ACEOF
34750 cat confdefs.h >>conftest.$ac_ext
34751 cat >>conftest.$ac_ext <<_ACEOF
34752 /* end confdefs.h.  */
34753 $ac_includes_default
34754    typedef short int ac__type_sizeof_;
34755 int
34756 main ()
34757 {
34758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34759 test_array [0] = 0
34760
34761   ;
34762   return 0;
34763 }
34764 _ACEOF
34765 rm -f conftest.$ac_objext
34766 if { (ac_try="$ac_compile"
34767 case "(($ac_try" in
34768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34769   *) ac_try_echo=$ac_try;;
34770 esac
34771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34772   (eval "$ac_compile") 2>conftest.er1
34773   ac_status=$?
34774   grep -v '^ *+' conftest.er1 >conftest.err
34775   rm -f conftest.er1
34776   cat conftest.err >&5
34777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778   (exit $ac_status); } && {
34779          test -z "$ac_c_werror_flag" ||
34780          test ! -s conftest.err
34781        } && test -s conftest.$ac_objext; then
34782   ac_lo=$ac_mid; break
34783 else
34784   echo "$as_me: failed program was:" >&5
34785 sed 's/^/| /' conftest.$ac_ext >&5
34786
34787         ac_hi=`expr '(' $ac_mid ')' - 1`
34788                         if test $ac_mid -le $ac_hi; then
34789                           ac_lo= ac_hi=
34790                           break
34791                         fi
34792                         ac_mid=`expr 2 '*' $ac_mid`
34793 fi
34794
34795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34796   done
34797 else
34798   echo "$as_me: failed program was:" >&5
34799 sed 's/^/| /' conftest.$ac_ext >&5
34800
34801         ac_lo= ac_hi=
34802 fi
34803
34804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34805 fi
34806
34807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34808 # Binary search between lo and hi bounds.
34809 while test "x$ac_lo" != "x$ac_hi"; do
34810   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34811   cat >conftest.$ac_ext <<_ACEOF
34812 /* confdefs.h.  */
34813 _ACEOF
34814 cat confdefs.h >>conftest.$ac_ext
34815 cat >>conftest.$ac_ext <<_ACEOF
34816 /* end confdefs.h.  */
34817 $ac_includes_default
34818    typedef short int ac__type_sizeof_;
34819 int
34820 main ()
34821 {
34822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34823 test_array [0] = 0
34824
34825   ;
34826   return 0;
34827 }
34828 _ACEOF
34829 rm -f conftest.$ac_objext
34830 if { (ac_try="$ac_compile"
34831 case "(($ac_try" in
34832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34833   *) ac_try_echo=$ac_try;;
34834 esac
34835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34836   (eval "$ac_compile") 2>conftest.er1
34837   ac_status=$?
34838   grep -v '^ *+' conftest.er1 >conftest.err
34839   rm -f conftest.er1
34840   cat conftest.err >&5
34841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842   (exit $ac_status); } && {
34843          test -z "$ac_c_werror_flag" ||
34844          test ! -s conftest.err
34845        } && test -s conftest.$ac_objext; then
34846   ac_hi=$ac_mid
34847 else
34848   echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34850
34851         ac_lo=`expr '(' $ac_mid ')' + 1`
34852 fi
34853
34854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34855 done
34856 case $ac_lo in
34857 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34858 '') if test "$ac_cv_type_short_int" = yes; then
34859      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34860 See \`config.log' for more details." >&5
34861 echo "$as_me: error: cannot compute sizeof (short int)
34862 See \`config.log' for more details." >&2;}
34863    { (exit 77); exit 77; }; }
34864    else
34865      ac_cv_sizeof_short_int=0
34866    fi ;;
34867 esac
34868 else
34869   cat >conftest.$ac_ext <<_ACEOF
34870 /* confdefs.h.  */
34871 _ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h.  */
34875 $ac_includes_default
34876    typedef short int ac__type_sizeof_;
34877 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34878 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34879 #include <stdio.h>
34880 #include <stdlib.h>
34881 int
34882 main ()
34883 {
34884
34885   FILE *f = fopen ("conftest.val", "w");
34886   if (! f)
34887     return 1;
34888   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34889     {
34890       long int i = longval ();
34891       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34892         return 1;
34893       fprintf (f, "%ld\n", i);
34894     }
34895   else
34896     {
34897       unsigned long int i = ulongval ();
34898       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34899         return 1;
34900       fprintf (f, "%lu\n", i);
34901     }
34902   return ferror (f) || fclose (f) != 0;
34903
34904   ;
34905   return 0;
34906 }
34907 _ACEOF
34908 rm -f conftest$ac_exeext
34909 if { (ac_try="$ac_link"
34910 case "(($ac_try" in
34911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912   *) ac_try_echo=$ac_try;;
34913 esac
34914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915   (eval "$ac_link") 2>&5
34916   ac_status=$?
34917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34919   { (case "(($ac_try" in
34920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34921   *) ac_try_echo=$ac_try;;
34922 esac
34923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34924   (eval "$ac_try") 2>&5
34925   ac_status=$?
34926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927   (exit $ac_status); }; }; then
34928   ac_cv_sizeof_short_int=`cat conftest.val`
34929 else
34930   echo "$as_me: program exited with status $ac_status" >&5
34931 echo "$as_me: failed program was:" >&5
34932 sed 's/^/| /' conftest.$ac_ext >&5
34933
34934 ( exit $ac_status )
34935 if test "$ac_cv_type_short_int" = yes; then
34936      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34937 See \`config.log' for more details." >&5
34938 echo "$as_me: error: cannot compute sizeof (short int)
34939 See \`config.log' for more details." >&2;}
34940    { (exit 77); exit 77; }; }
34941    else
34942      ac_cv_sizeof_short_int=0
34943    fi
34944 fi
34945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34946 fi
34947 rm -f conftest.val
34948 fi
34949 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34950 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34951
34952
34953
34954 cat >>confdefs.h <<_ACEOF
34955 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34956 _ACEOF
34957
34958
34959 { echo "$as_me:$LINENO: checking for int" >&5
34960 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34961 if test "${ac_cv_type_int+set}" = set; then
34962   echo $ECHO_N "(cached) $ECHO_C" >&6
34963 else
34964   cat >conftest.$ac_ext <<_ACEOF
34965 /* confdefs.h.  */
34966 _ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h.  */
34970 $ac_includes_default
34971 typedef int ac__type_new_;
34972 int
34973 main ()
34974 {
34975 if ((ac__type_new_ *) 0)
34976   return 0;
34977 if (sizeof (ac__type_new_))
34978   return 0;
34979   ;
34980   return 0;
34981 }
34982 _ACEOF
34983 rm -f conftest.$ac_objext
34984 if { (ac_try="$ac_compile"
34985 case "(($ac_try" in
34986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34987   *) ac_try_echo=$ac_try;;
34988 esac
34989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34990   (eval "$ac_compile") 2>conftest.er1
34991   ac_status=$?
34992   grep -v '^ *+' conftest.er1 >conftest.err
34993   rm -f conftest.er1
34994   cat conftest.err >&5
34995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996   (exit $ac_status); } && {
34997          test -z "$ac_c_werror_flag" ||
34998          test ! -s conftest.err
34999        } && test -s conftest.$ac_objext; then
35000   ac_cv_type_int=yes
35001 else
35002   echo "$as_me: failed program was:" >&5
35003 sed 's/^/| /' conftest.$ac_ext >&5
35004
35005         ac_cv_type_int=no
35006 fi
35007
35008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35009 fi
35010 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35011 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35012
35013 # The cast to long int works around a bug in the HP C Compiler
35014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35016 # This bug is HP SR number 8606223364.
35017 { echo "$as_me:$LINENO: checking size of int" >&5
35018 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35019 if test "${ac_cv_sizeof_int+set}" = set; then
35020   echo $ECHO_N "(cached) $ECHO_C" >&6
35021 else
35022   if test "$cross_compiling" = yes; then
35023   # Depending upon the size, compute the lo and hi bounds.
35024 cat >conftest.$ac_ext <<_ACEOF
35025 /* confdefs.h.  */
35026 _ACEOF
35027 cat confdefs.h >>conftest.$ac_ext
35028 cat >>conftest.$ac_ext <<_ACEOF
35029 /* end confdefs.h.  */
35030 $ac_includes_default
35031    typedef int ac__type_sizeof_;
35032 int
35033 main ()
35034 {
35035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35036 test_array [0] = 0
35037
35038   ;
35039   return 0;
35040 }
35041 _ACEOF
35042 rm -f conftest.$ac_objext
35043 if { (ac_try="$ac_compile"
35044 case "(($ac_try" in
35045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046   *) ac_try_echo=$ac_try;;
35047 esac
35048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049   (eval "$ac_compile") 2>conftest.er1
35050   ac_status=$?
35051   grep -v '^ *+' conftest.er1 >conftest.err
35052   rm -f conftest.er1
35053   cat conftest.err >&5
35054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35055   (exit $ac_status); } && {
35056          test -z "$ac_c_werror_flag" ||
35057          test ! -s conftest.err
35058        } && test -s conftest.$ac_objext; then
35059   ac_lo=0 ac_mid=0
35060   while :; do
35061     cat >conftest.$ac_ext <<_ACEOF
35062 /* confdefs.h.  */
35063 _ACEOF
35064 cat confdefs.h >>conftest.$ac_ext
35065 cat >>conftest.$ac_ext <<_ACEOF
35066 /* end confdefs.h.  */
35067 $ac_includes_default
35068    typedef int ac__type_sizeof_;
35069 int
35070 main ()
35071 {
35072 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35073 test_array [0] = 0
35074
35075   ;
35076   return 0;
35077 }
35078 _ACEOF
35079 rm -f conftest.$ac_objext
35080 if { (ac_try="$ac_compile"
35081 case "(($ac_try" in
35082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35083   *) ac_try_echo=$ac_try;;
35084 esac
35085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35086   (eval "$ac_compile") 2>conftest.er1
35087   ac_status=$?
35088   grep -v '^ *+' conftest.er1 >conftest.err
35089   rm -f conftest.er1
35090   cat conftest.err >&5
35091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35092   (exit $ac_status); } && {
35093          test -z "$ac_c_werror_flag" ||
35094          test ! -s conftest.err
35095        } && test -s conftest.$ac_objext; then
35096   ac_hi=$ac_mid; break
35097 else
35098   echo "$as_me: failed program was:" >&5
35099 sed 's/^/| /' conftest.$ac_ext >&5
35100
35101         ac_lo=`expr $ac_mid + 1`
35102                         if test $ac_lo -le $ac_mid; then
35103                           ac_lo= ac_hi=
35104                           break
35105                         fi
35106                         ac_mid=`expr 2 '*' $ac_mid + 1`
35107 fi
35108
35109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35110   done
35111 else
35112   echo "$as_me: failed program was:" >&5
35113 sed 's/^/| /' conftest.$ac_ext >&5
35114
35115         cat >conftest.$ac_ext <<_ACEOF
35116 /* confdefs.h.  */
35117 _ACEOF
35118 cat confdefs.h >>conftest.$ac_ext
35119 cat >>conftest.$ac_ext <<_ACEOF
35120 /* end confdefs.h.  */
35121 $ac_includes_default
35122    typedef int ac__type_sizeof_;
35123 int
35124 main ()
35125 {
35126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35127 test_array [0] = 0
35128
35129   ;
35130   return 0;
35131 }
35132 _ACEOF
35133 rm -f conftest.$ac_objext
35134 if { (ac_try="$ac_compile"
35135 case "(($ac_try" in
35136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35137   *) ac_try_echo=$ac_try;;
35138 esac
35139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35140   (eval "$ac_compile") 2>conftest.er1
35141   ac_status=$?
35142   grep -v '^ *+' conftest.er1 >conftest.err
35143   rm -f conftest.er1
35144   cat conftest.err >&5
35145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146   (exit $ac_status); } && {
35147          test -z "$ac_c_werror_flag" ||
35148          test ! -s conftest.err
35149        } && test -s conftest.$ac_objext; then
35150   ac_hi=-1 ac_mid=-1
35151   while :; do
35152     cat >conftest.$ac_ext <<_ACEOF
35153 /* confdefs.h.  */
35154 _ACEOF
35155 cat confdefs.h >>conftest.$ac_ext
35156 cat >>conftest.$ac_ext <<_ACEOF
35157 /* end confdefs.h.  */
35158 $ac_includes_default
35159    typedef int ac__type_sizeof_;
35160 int
35161 main ()
35162 {
35163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35164 test_array [0] = 0
35165
35166   ;
35167   return 0;
35168 }
35169 _ACEOF
35170 rm -f conftest.$ac_objext
35171 if { (ac_try="$ac_compile"
35172 case "(($ac_try" in
35173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35174   *) ac_try_echo=$ac_try;;
35175 esac
35176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35177   (eval "$ac_compile") 2>conftest.er1
35178   ac_status=$?
35179   grep -v '^ *+' conftest.er1 >conftest.err
35180   rm -f conftest.er1
35181   cat conftest.err >&5
35182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183   (exit $ac_status); } && {
35184          test -z "$ac_c_werror_flag" ||
35185          test ! -s conftest.err
35186        } && test -s conftest.$ac_objext; then
35187   ac_lo=$ac_mid; break
35188 else
35189   echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35191
35192         ac_hi=`expr '(' $ac_mid ')' - 1`
35193                         if test $ac_mid -le $ac_hi; then
35194                           ac_lo= ac_hi=
35195                           break
35196                         fi
35197                         ac_mid=`expr 2 '*' $ac_mid`
35198 fi
35199
35200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35201   done
35202 else
35203   echo "$as_me: failed program was:" >&5
35204 sed 's/^/| /' conftest.$ac_ext >&5
35205
35206         ac_lo= ac_hi=
35207 fi
35208
35209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35210 fi
35211
35212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35213 # Binary search between lo and hi bounds.
35214 while test "x$ac_lo" != "x$ac_hi"; do
35215   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35216   cat >conftest.$ac_ext <<_ACEOF
35217 /* confdefs.h.  */
35218 _ACEOF
35219 cat confdefs.h >>conftest.$ac_ext
35220 cat >>conftest.$ac_ext <<_ACEOF
35221 /* end confdefs.h.  */
35222 $ac_includes_default
35223    typedef int ac__type_sizeof_;
35224 int
35225 main ()
35226 {
35227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35228 test_array [0] = 0
35229
35230   ;
35231   return 0;
35232 }
35233 _ACEOF
35234 rm -f conftest.$ac_objext
35235 if { (ac_try="$ac_compile"
35236 case "(($ac_try" in
35237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35238   *) ac_try_echo=$ac_try;;
35239 esac
35240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35241   (eval "$ac_compile") 2>conftest.er1
35242   ac_status=$?
35243   grep -v '^ *+' conftest.er1 >conftest.err
35244   rm -f conftest.er1
35245   cat conftest.err >&5
35246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247   (exit $ac_status); } && {
35248          test -z "$ac_c_werror_flag" ||
35249          test ! -s conftest.err
35250        } && test -s conftest.$ac_objext; then
35251   ac_hi=$ac_mid
35252 else
35253   echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35255
35256         ac_lo=`expr '(' $ac_mid ')' + 1`
35257 fi
35258
35259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35260 done
35261 case $ac_lo in
35262 ?*) ac_cv_sizeof_int=$ac_lo;;
35263 '') if test "$ac_cv_type_int" = yes; then
35264      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35265 See \`config.log' for more details." >&5
35266 echo "$as_me: error: cannot compute sizeof (int)
35267 See \`config.log' for more details." >&2;}
35268    { (exit 77); exit 77; }; }
35269    else
35270      ac_cv_sizeof_int=0
35271    fi ;;
35272 esac
35273 else
35274   cat >conftest.$ac_ext <<_ACEOF
35275 /* confdefs.h.  */
35276 _ACEOF
35277 cat confdefs.h >>conftest.$ac_ext
35278 cat >>conftest.$ac_ext <<_ACEOF
35279 /* end confdefs.h.  */
35280 $ac_includes_default
35281    typedef int ac__type_sizeof_;
35282 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35283 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35284 #include <stdio.h>
35285 #include <stdlib.h>
35286 int
35287 main ()
35288 {
35289
35290   FILE *f = fopen ("conftest.val", "w");
35291   if (! f)
35292     return 1;
35293   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35294     {
35295       long int i = longval ();
35296       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35297         return 1;
35298       fprintf (f, "%ld\n", i);
35299     }
35300   else
35301     {
35302       unsigned long int i = ulongval ();
35303       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35304         return 1;
35305       fprintf (f, "%lu\n", i);
35306     }
35307   return ferror (f) || fclose (f) != 0;
35308
35309   ;
35310   return 0;
35311 }
35312 _ACEOF
35313 rm -f conftest$ac_exeext
35314 if { (ac_try="$ac_link"
35315 case "(($ac_try" in
35316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35317   *) ac_try_echo=$ac_try;;
35318 esac
35319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35320   (eval "$ac_link") 2>&5
35321   ac_status=$?
35322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35324   { (case "(($ac_try" in
35325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35326   *) ac_try_echo=$ac_try;;
35327 esac
35328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35329   (eval "$ac_try") 2>&5
35330   ac_status=$?
35331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332   (exit $ac_status); }; }; then
35333   ac_cv_sizeof_int=`cat conftest.val`
35334 else
35335   echo "$as_me: program exited with status $ac_status" >&5
35336 echo "$as_me: failed program was:" >&5
35337 sed 's/^/| /' conftest.$ac_ext >&5
35338
35339 ( exit $ac_status )
35340 if test "$ac_cv_type_int" = yes; then
35341      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35342 See \`config.log' for more details." >&5
35343 echo "$as_me: error: cannot compute sizeof (int)
35344 See \`config.log' for more details." >&2;}
35345    { (exit 77); exit 77; }; }
35346    else
35347      ac_cv_sizeof_int=0
35348    fi
35349 fi
35350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35351 fi
35352 rm -f conftest.val
35353 fi
35354 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35355 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35356
35357
35358
35359 cat >>confdefs.h <<_ACEOF
35360 #define SIZEOF_INT $ac_cv_sizeof_int
35361 _ACEOF
35362
35363
35364 { echo "$as_me:$LINENO: checking for long int" >&5
35365 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35366 if test "${ac_cv_type_long_int+set}" = set; then
35367   echo $ECHO_N "(cached) $ECHO_C" >&6
35368 else
35369   cat >conftest.$ac_ext <<_ACEOF
35370 /* confdefs.h.  */
35371 _ACEOF
35372 cat confdefs.h >>conftest.$ac_ext
35373 cat >>conftest.$ac_ext <<_ACEOF
35374 /* end confdefs.h.  */
35375 $ac_includes_default
35376 typedef long int ac__type_new_;
35377 int
35378 main ()
35379 {
35380 if ((ac__type_new_ *) 0)
35381   return 0;
35382 if (sizeof (ac__type_new_))
35383   return 0;
35384   ;
35385   return 0;
35386 }
35387 _ACEOF
35388 rm -f conftest.$ac_objext
35389 if { (ac_try="$ac_compile"
35390 case "(($ac_try" in
35391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35392   *) ac_try_echo=$ac_try;;
35393 esac
35394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35395   (eval "$ac_compile") 2>conftest.er1
35396   ac_status=$?
35397   grep -v '^ *+' conftest.er1 >conftest.err
35398   rm -f conftest.er1
35399   cat conftest.err >&5
35400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401   (exit $ac_status); } && {
35402          test -z "$ac_c_werror_flag" ||
35403          test ! -s conftest.err
35404        } && test -s conftest.$ac_objext; then
35405   ac_cv_type_long_int=yes
35406 else
35407   echo "$as_me: failed program was:" >&5
35408 sed 's/^/| /' conftest.$ac_ext >&5
35409
35410         ac_cv_type_long_int=no
35411 fi
35412
35413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35414 fi
35415 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35416 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35417
35418 # The cast to long int works around a bug in the HP C Compiler
35419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35421 # This bug is HP SR number 8606223364.
35422 { echo "$as_me:$LINENO: checking size of long int" >&5
35423 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35424 if test "${ac_cv_sizeof_long_int+set}" = set; then
35425   echo $ECHO_N "(cached) $ECHO_C" >&6
35426 else
35427   if test "$cross_compiling" = yes; then
35428   # Depending upon the size, compute the lo and hi bounds.
35429 cat >conftest.$ac_ext <<_ACEOF
35430 /* confdefs.h.  */
35431 _ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h.  */
35435 $ac_includes_default
35436    typedef long int ac__type_sizeof_;
35437 int
35438 main ()
35439 {
35440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35441 test_array [0] = 0
35442
35443   ;
35444   return 0;
35445 }
35446 _ACEOF
35447 rm -f conftest.$ac_objext
35448 if { (ac_try="$ac_compile"
35449 case "(($ac_try" in
35450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35451   *) ac_try_echo=$ac_try;;
35452 esac
35453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35454   (eval "$ac_compile") 2>conftest.er1
35455   ac_status=$?
35456   grep -v '^ *+' conftest.er1 >conftest.err
35457   rm -f conftest.er1
35458   cat conftest.err >&5
35459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460   (exit $ac_status); } && {
35461          test -z "$ac_c_werror_flag" ||
35462          test ! -s conftest.err
35463        } && test -s conftest.$ac_objext; then
35464   ac_lo=0 ac_mid=0
35465   while :; do
35466     cat >conftest.$ac_ext <<_ACEOF
35467 /* confdefs.h.  */
35468 _ACEOF
35469 cat confdefs.h >>conftest.$ac_ext
35470 cat >>conftest.$ac_ext <<_ACEOF
35471 /* end confdefs.h.  */
35472 $ac_includes_default
35473    typedef long int ac__type_sizeof_;
35474 int
35475 main ()
35476 {
35477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35478 test_array [0] = 0
35479
35480   ;
35481   return 0;
35482 }
35483 _ACEOF
35484 rm -f conftest.$ac_objext
35485 if { (ac_try="$ac_compile"
35486 case "(($ac_try" in
35487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35488   *) ac_try_echo=$ac_try;;
35489 esac
35490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35491   (eval "$ac_compile") 2>conftest.er1
35492   ac_status=$?
35493   grep -v '^ *+' conftest.er1 >conftest.err
35494   rm -f conftest.er1
35495   cat conftest.err >&5
35496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497   (exit $ac_status); } && {
35498          test -z "$ac_c_werror_flag" ||
35499          test ! -s conftest.err
35500        } && test -s conftest.$ac_objext; then
35501   ac_hi=$ac_mid; break
35502 else
35503   echo "$as_me: failed program was:" >&5
35504 sed 's/^/| /' conftest.$ac_ext >&5
35505
35506         ac_lo=`expr $ac_mid + 1`
35507                         if test $ac_lo -le $ac_mid; then
35508                           ac_lo= ac_hi=
35509                           break
35510                         fi
35511                         ac_mid=`expr 2 '*' $ac_mid + 1`
35512 fi
35513
35514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35515   done
35516 else
35517   echo "$as_me: failed program was:" >&5
35518 sed 's/^/| /' conftest.$ac_ext >&5
35519
35520         cat >conftest.$ac_ext <<_ACEOF
35521 /* confdefs.h.  */
35522 _ACEOF
35523 cat confdefs.h >>conftest.$ac_ext
35524 cat >>conftest.$ac_ext <<_ACEOF
35525 /* end confdefs.h.  */
35526 $ac_includes_default
35527    typedef long int ac__type_sizeof_;
35528 int
35529 main ()
35530 {
35531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35532 test_array [0] = 0
35533
35534   ;
35535   return 0;
35536 }
35537 _ACEOF
35538 rm -f conftest.$ac_objext
35539 if { (ac_try="$ac_compile"
35540 case "(($ac_try" in
35541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35542   *) ac_try_echo=$ac_try;;
35543 esac
35544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35545   (eval "$ac_compile") 2>conftest.er1
35546   ac_status=$?
35547   grep -v '^ *+' conftest.er1 >conftest.err
35548   rm -f conftest.er1
35549   cat conftest.err >&5
35550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551   (exit $ac_status); } && {
35552          test -z "$ac_c_werror_flag" ||
35553          test ! -s conftest.err
35554        } && test -s conftest.$ac_objext; then
35555   ac_hi=-1 ac_mid=-1
35556   while :; do
35557     cat >conftest.$ac_ext <<_ACEOF
35558 /* confdefs.h.  */
35559 _ACEOF
35560 cat confdefs.h >>conftest.$ac_ext
35561 cat >>conftest.$ac_ext <<_ACEOF
35562 /* end confdefs.h.  */
35563 $ac_includes_default
35564    typedef long int ac__type_sizeof_;
35565 int
35566 main ()
35567 {
35568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35569 test_array [0] = 0
35570
35571   ;
35572   return 0;
35573 }
35574 _ACEOF
35575 rm -f conftest.$ac_objext
35576 if { (ac_try="$ac_compile"
35577 case "(($ac_try" in
35578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35579   *) ac_try_echo=$ac_try;;
35580 esac
35581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35582   (eval "$ac_compile") 2>conftest.er1
35583   ac_status=$?
35584   grep -v '^ *+' conftest.er1 >conftest.err
35585   rm -f conftest.er1
35586   cat conftest.err >&5
35587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588   (exit $ac_status); } && {
35589          test -z "$ac_c_werror_flag" ||
35590          test ! -s conftest.err
35591        } && test -s conftest.$ac_objext; then
35592   ac_lo=$ac_mid; break
35593 else
35594   echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35596
35597         ac_hi=`expr '(' $ac_mid ')' - 1`
35598                         if test $ac_mid -le $ac_hi; then
35599                           ac_lo= ac_hi=
35600                           break
35601                         fi
35602                         ac_mid=`expr 2 '*' $ac_mid`
35603 fi
35604
35605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35606   done
35607 else
35608   echo "$as_me: failed program was:" >&5
35609 sed 's/^/| /' conftest.$ac_ext >&5
35610
35611         ac_lo= ac_hi=
35612 fi
35613
35614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35615 fi
35616
35617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35618 # Binary search between lo and hi bounds.
35619 while test "x$ac_lo" != "x$ac_hi"; do
35620   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35621   cat >conftest.$ac_ext <<_ACEOF
35622 /* confdefs.h.  */
35623 _ACEOF
35624 cat confdefs.h >>conftest.$ac_ext
35625 cat >>conftest.$ac_ext <<_ACEOF
35626 /* end confdefs.h.  */
35627 $ac_includes_default
35628    typedef long int ac__type_sizeof_;
35629 int
35630 main ()
35631 {
35632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35633 test_array [0] = 0
35634
35635   ;
35636   return 0;
35637 }
35638 _ACEOF
35639 rm -f conftest.$ac_objext
35640 if { (ac_try="$ac_compile"
35641 case "(($ac_try" in
35642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35643   *) ac_try_echo=$ac_try;;
35644 esac
35645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35646   (eval "$ac_compile") 2>conftest.er1
35647   ac_status=$?
35648   grep -v '^ *+' conftest.er1 >conftest.err
35649   rm -f conftest.er1
35650   cat conftest.err >&5
35651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35652   (exit $ac_status); } && {
35653          test -z "$ac_c_werror_flag" ||
35654          test ! -s conftest.err
35655        } && test -s conftest.$ac_objext; then
35656   ac_hi=$ac_mid
35657 else
35658   echo "$as_me: failed program was:" >&5
35659 sed 's/^/| /' conftest.$ac_ext >&5
35660
35661         ac_lo=`expr '(' $ac_mid ')' + 1`
35662 fi
35663
35664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35665 done
35666 case $ac_lo in
35667 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35668 '') if test "$ac_cv_type_long_int" = yes; then
35669      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35670 See \`config.log' for more details." >&5
35671 echo "$as_me: error: cannot compute sizeof (long int)
35672 See \`config.log' for more details." >&2;}
35673    { (exit 77); exit 77; }; }
35674    else
35675      ac_cv_sizeof_long_int=0
35676    fi ;;
35677 esac
35678 else
35679   cat >conftest.$ac_ext <<_ACEOF
35680 /* confdefs.h.  */
35681 _ACEOF
35682 cat confdefs.h >>conftest.$ac_ext
35683 cat >>conftest.$ac_ext <<_ACEOF
35684 /* end confdefs.h.  */
35685 $ac_includes_default
35686    typedef long int ac__type_sizeof_;
35687 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35688 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35689 #include <stdio.h>
35690 #include <stdlib.h>
35691 int
35692 main ()
35693 {
35694
35695   FILE *f = fopen ("conftest.val", "w");
35696   if (! f)
35697     return 1;
35698   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35699     {
35700       long int i = longval ();
35701       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35702         return 1;
35703       fprintf (f, "%ld\n", i);
35704     }
35705   else
35706     {
35707       unsigned long int i = ulongval ();
35708       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35709         return 1;
35710       fprintf (f, "%lu\n", i);
35711     }
35712   return ferror (f) || fclose (f) != 0;
35713
35714   ;
35715   return 0;
35716 }
35717 _ACEOF
35718 rm -f conftest$ac_exeext
35719 if { (ac_try="$ac_link"
35720 case "(($ac_try" in
35721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35722   *) ac_try_echo=$ac_try;;
35723 esac
35724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35725   (eval "$ac_link") 2>&5
35726   ac_status=$?
35727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35729   { (case "(($ac_try" in
35730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35731   *) ac_try_echo=$ac_try;;
35732 esac
35733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35734   (eval "$ac_try") 2>&5
35735   ac_status=$?
35736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737   (exit $ac_status); }; }; then
35738   ac_cv_sizeof_long_int=`cat conftest.val`
35739 else
35740   echo "$as_me: program exited with status $ac_status" >&5
35741 echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.$ac_ext >&5
35743
35744 ( exit $ac_status )
35745 if test "$ac_cv_type_long_int" = yes; then
35746      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35747 See \`config.log' for more details." >&5
35748 echo "$as_me: error: cannot compute sizeof (long int)
35749 See \`config.log' for more details." >&2;}
35750    { (exit 77); exit 77; }; }
35751    else
35752      ac_cv_sizeof_long_int=0
35753    fi
35754 fi
35755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35756 fi
35757 rm -f conftest.val
35758 fi
35759 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35760 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35761
35762
35763
35764 cat >>confdefs.h <<_ACEOF
35765 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35766 _ACEOF
35767
35768
35769 { echo "$as_me:$LINENO: checking for long long int" >&5
35770 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35771 if test "${ac_cv_type_long_long_int+set}" = set; then
35772   echo $ECHO_N "(cached) $ECHO_C" >&6
35773 else
35774   cat >conftest.$ac_ext <<_ACEOF
35775 /* confdefs.h.  */
35776 _ACEOF
35777 cat confdefs.h >>conftest.$ac_ext
35778 cat >>conftest.$ac_ext <<_ACEOF
35779 /* end confdefs.h.  */
35780 $ac_includes_default
35781 typedef long long int ac__type_new_;
35782 int
35783 main ()
35784 {
35785 if ((ac__type_new_ *) 0)
35786   return 0;
35787 if (sizeof (ac__type_new_))
35788   return 0;
35789   ;
35790   return 0;
35791 }
35792 _ACEOF
35793 rm -f conftest.$ac_objext
35794 if { (ac_try="$ac_compile"
35795 case "(($ac_try" in
35796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35797   *) ac_try_echo=$ac_try;;
35798 esac
35799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35800   (eval "$ac_compile") 2>conftest.er1
35801   ac_status=$?
35802   grep -v '^ *+' conftest.er1 >conftest.err
35803   rm -f conftest.er1
35804   cat conftest.err >&5
35805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806   (exit $ac_status); } && {
35807          test -z "$ac_c_werror_flag" ||
35808          test ! -s conftest.err
35809        } && test -s conftest.$ac_objext; then
35810   ac_cv_type_long_long_int=yes
35811 else
35812   echo "$as_me: failed program was:" >&5
35813 sed 's/^/| /' conftest.$ac_ext >&5
35814
35815         ac_cv_type_long_long_int=no
35816 fi
35817
35818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35819 fi
35820 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35821 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35822
35823 # The cast to long int works around a bug in the HP C Compiler
35824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35826 # This bug is HP SR number 8606223364.
35827 { echo "$as_me:$LINENO: checking size of long long int" >&5
35828 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35829 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35830   echo $ECHO_N "(cached) $ECHO_C" >&6
35831 else
35832   if test "$cross_compiling" = yes; then
35833   # Depending upon the size, compute the lo and hi bounds.
35834 cat >conftest.$ac_ext <<_ACEOF
35835 /* confdefs.h.  */
35836 _ACEOF
35837 cat confdefs.h >>conftest.$ac_ext
35838 cat >>conftest.$ac_ext <<_ACEOF
35839 /* end confdefs.h.  */
35840 $ac_includes_default
35841    typedef long long int ac__type_sizeof_;
35842 int
35843 main ()
35844 {
35845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35846 test_array [0] = 0
35847
35848   ;
35849   return 0;
35850 }
35851 _ACEOF
35852 rm -f conftest.$ac_objext
35853 if { (ac_try="$ac_compile"
35854 case "(($ac_try" in
35855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35856   *) ac_try_echo=$ac_try;;
35857 esac
35858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35859   (eval "$ac_compile") 2>conftest.er1
35860   ac_status=$?
35861   grep -v '^ *+' conftest.er1 >conftest.err
35862   rm -f conftest.er1
35863   cat conftest.err >&5
35864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865   (exit $ac_status); } && {
35866          test -z "$ac_c_werror_flag" ||
35867          test ! -s conftest.err
35868        } && test -s conftest.$ac_objext; then
35869   ac_lo=0 ac_mid=0
35870   while :; do
35871     cat >conftest.$ac_ext <<_ACEOF
35872 /* confdefs.h.  */
35873 _ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h.  */
35877 $ac_includes_default
35878    typedef long long int ac__type_sizeof_;
35879 int
35880 main ()
35881 {
35882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35883 test_array [0] = 0
35884
35885   ;
35886   return 0;
35887 }
35888 _ACEOF
35889 rm -f conftest.$ac_objext
35890 if { (ac_try="$ac_compile"
35891 case "(($ac_try" in
35892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35893   *) ac_try_echo=$ac_try;;
35894 esac
35895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35896   (eval "$ac_compile") 2>conftest.er1
35897   ac_status=$?
35898   grep -v '^ *+' conftest.er1 >conftest.err
35899   rm -f conftest.er1
35900   cat conftest.err >&5
35901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902   (exit $ac_status); } && {
35903          test -z "$ac_c_werror_flag" ||
35904          test ! -s conftest.err
35905        } && test -s conftest.$ac_objext; then
35906   ac_hi=$ac_mid; break
35907 else
35908   echo "$as_me: failed program was:" >&5
35909 sed 's/^/| /' conftest.$ac_ext >&5
35910
35911         ac_lo=`expr $ac_mid + 1`
35912                         if test $ac_lo -le $ac_mid; then
35913                           ac_lo= ac_hi=
35914                           break
35915                         fi
35916                         ac_mid=`expr 2 '*' $ac_mid + 1`
35917 fi
35918
35919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35920   done
35921 else
35922   echo "$as_me: failed program was:" >&5
35923 sed 's/^/| /' conftest.$ac_ext >&5
35924
35925         cat >conftest.$ac_ext <<_ACEOF
35926 /* confdefs.h.  */
35927 _ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h.  */
35931 $ac_includes_default
35932    typedef long long int ac__type_sizeof_;
35933 int
35934 main ()
35935 {
35936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35937 test_array [0] = 0
35938
35939   ;
35940   return 0;
35941 }
35942 _ACEOF
35943 rm -f conftest.$ac_objext
35944 if { (ac_try="$ac_compile"
35945 case "(($ac_try" in
35946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35947   *) ac_try_echo=$ac_try;;
35948 esac
35949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35950   (eval "$ac_compile") 2>conftest.er1
35951   ac_status=$?
35952   grep -v '^ *+' conftest.er1 >conftest.err
35953   rm -f conftest.er1
35954   cat conftest.err >&5
35955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956   (exit $ac_status); } && {
35957          test -z "$ac_c_werror_flag" ||
35958          test ! -s conftest.err
35959        } && test -s conftest.$ac_objext; then
35960   ac_hi=-1 ac_mid=-1
35961   while :; do
35962     cat >conftest.$ac_ext <<_ACEOF
35963 /* confdefs.h.  */
35964 _ACEOF
35965 cat confdefs.h >>conftest.$ac_ext
35966 cat >>conftest.$ac_ext <<_ACEOF
35967 /* end confdefs.h.  */
35968 $ac_includes_default
35969    typedef long long int ac__type_sizeof_;
35970 int
35971 main ()
35972 {
35973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35974 test_array [0] = 0
35975
35976   ;
35977   return 0;
35978 }
35979 _ACEOF
35980 rm -f conftest.$ac_objext
35981 if { (ac_try="$ac_compile"
35982 case "(($ac_try" in
35983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35984   *) ac_try_echo=$ac_try;;
35985 esac
35986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35987   (eval "$ac_compile") 2>conftest.er1
35988   ac_status=$?
35989   grep -v '^ *+' conftest.er1 >conftest.err
35990   rm -f conftest.er1
35991   cat conftest.err >&5
35992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993   (exit $ac_status); } && {
35994          test -z "$ac_c_werror_flag" ||
35995          test ! -s conftest.err
35996        } && test -s conftest.$ac_objext; then
35997   ac_lo=$ac_mid; break
35998 else
35999   echo "$as_me: failed program was:" >&5
36000 sed 's/^/| /' conftest.$ac_ext >&5
36001
36002         ac_hi=`expr '(' $ac_mid ')' - 1`
36003                         if test $ac_mid -le $ac_hi; then
36004                           ac_lo= ac_hi=
36005                           break
36006                         fi
36007                         ac_mid=`expr 2 '*' $ac_mid`
36008 fi
36009
36010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36011   done
36012 else
36013   echo "$as_me: failed program was:" >&5
36014 sed 's/^/| /' conftest.$ac_ext >&5
36015
36016         ac_lo= ac_hi=
36017 fi
36018
36019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36020 fi
36021
36022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36023 # Binary search between lo and hi bounds.
36024 while test "x$ac_lo" != "x$ac_hi"; do
36025   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36026   cat >conftest.$ac_ext <<_ACEOF
36027 /* confdefs.h.  */
36028 _ACEOF
36029 cat confdefs.h >>conftest.$ac_ext
36030 cat >>conftest.$ac_ext <<_ACEOF
36031 /* end confdefs.h.  */
36032 $ac_includes_default
36033    typedef long long int ac__type_sizeof_;
36034 int
36035 main ()
36036 {
36037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36038 test_array [0] = 0
36039
36040   ;
36041   return 0;
36042 }
36043 _ACEOF
36044 rm -f conftest.$ac_objext
36045 if { (ac_try="$ac_compile"
36046 case "(($ac_try" in
36047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36048   *) ac_try_echo=$ac_try;;
36049 esac
36050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36051   (eval "$ac_compile") 2>conftest.er1
36052   ac_status=$?
36053   grep -v '^ *+' conftest.er1 >conftest.err
36054   rm -f conftest.er1
36055   cat conftest.err >&5
36056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057   (exit $ac_status); } && {
36058          test -z "$ac_c_werror_flag" ||
36059          test ! -s conftest.err
36060        } && test -s conftest.$ac_objext; then
36061   ac_hi=$ac_mid
36062 else
36063   echo "$as_me: failed program was:" >&5
36064 sed 's/^/| /' conftest.$ac_ext >&5
36065
36066         ac_lo=`expr '(' $ac_mid ')' + 1`
36067 fi
36068
36069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36070 done
36071 case $ac_lo in
36072 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36073 '') if test "$ac_cv_type_long_long_int" = yes; then
36074      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36075 See \`config.log' for more details." >&5
36076 echo "$as_me: error: cannot compute sizeof (long long int)
36077 See \`config.log' for more details." >&2;}
36078    { (exit 77); exit 77; }; }
36079    else
36080      ac_cv_sizeof_long_long_int=0
36081    fi ;;
36082 esac
36083 else
36084   cat >conftest.$ac_ext <<_ACEOF
36085 /* confdefs.h.  */
36086 _ACEOF
36087 cat confdefs.h >>conftest.$ac_ext
36088 cat >>conftest.$ac_ext <<_ACEOF
36089 /* end confdefs.h.  */
36090 $ac_includes_default
36091    typedef long long int ac__type_sizeof_;
36092 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36093 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36094 #include <stdio.h>
36095 #include <stdlib.h>
36096 int
36097 main ()
36098 {
36099
36100   FILE *f = fopen ("conftest.val", "w");
36101   if (! f)
36102     return 1;
36103   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36104     {
36105       long int i = longval ();
36106       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36107         return 1;
36108       fprintf (f, "%ld\n", i);
36109     }
36110   else
36111     {
36112       unsigned long int i = ulongval ();
36113       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36114         return 1;
36115       fprintf (f, "%lu\n", i);
36116     }
36117   return ferror (f) || fclose (f) != 0;
36118
36119   ;
36120   return 0;
36121 }
36122 _ACEOF
36123 rm -f conftest$ac_exeext
36124 if { (ac_try="$ac_link"
36125 case "(($ac_try" in
36126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36127   *) ac_try_echo=$ac_try;;
36128 esac
36129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36130   (eval "$ac_link") 2>&5
36131   ac_status=$?
36132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36134   { (case "(($ac_try" in
36135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36136   *) ac_try_echo=$ac_try;;
36137 esac
36138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36139   (eval "$ac_try") 2>&5
36140   ac_status=$?
36141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142   (exit $ac_status); }; }; then
36143   ac_cv_sizeof_long_long_int=`cat conftest.val`
36144 else
36145   echo "$as_me: program exited with status $ac_status" >&5
36146 echo "$as_me: failed program was:" >&5
36147 sed 's/^/| /' conftest.$ac_ext >&5
36148
36149 ( exit $ac_status )
36150 if test "$ac_cv_type_long_long_int" = yes; then
36151      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36152 See \`config.log' for more details." >&5
36153 echo "$as_me: error: cannot compute sizeof (long long int)
36154 See \`config.log' for more details." >&2;}
36155    { (exit 77); exit 77; }; }
36156    else
36157      ac_cv_sizeof_long_long_int=0
36158    fi
36159 fi
36160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36161 fi
36162 rm -f conftest.val
36163 fi
36164 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36165 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36166
36167
36168
36169 cat >>confdefs.h <<_ACEOF
36170 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36171 _ACEOF
36172
36173
36174 { echo "$as_me:$LINENO: checking for int *" >&5
36175 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36176 if test "${ac_cv_type_int_p+set}" = set; then
36177   echo $ECHO_N "(cached) $ECHO_C" >&6
36178 else
36179   cat >conftest.$ac_ext <<_ACEOF
36180 /* confdefs.h.  */
36181 _ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h.  */
36185 $ac_includes_default
36186 typedef int * ac__type_new_;
36187 int
36188 main ()
36189 {
36190 if ((ac__type_new_ *) 0)
36191   return 0;
36192 if (sizeof (ac__type_new_))
36193   return 0;
36194   ;
36195   return 0;
36196 }
36197 _ACEOF
36198 rm -f conftest.$ac_objext
36199 if { (ac_try="$ac_compile"
36200 case "(($ac_try" in
36201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36202   *) ac_try_echo=$ac_try;;
36203 esac
36204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36205   (eval "$ac_compile") 2>conftest.er1
36206   ac_status=$?
36207   grep -v '^ *+' conftest.er1 >conftest.err
36208   rm -f conftest.er1
36209   cat conftest.err >&5
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); } && {
36212          test -z "$ac_c_werror_flag" ||
36213          test ! -s conftest.err
36214        } && test -s conftest.$ac_objext; then
36215   ac_cv_type_int_p=yes
36216 else
36217   echo "$as_me: failed program was:" >&5
36218 sed 's/^/| /' conftest.$ac_ext >&5
36219
36220         ac_cv_type_int_p=no
36221 fi
36222
36223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36224 fi
36225 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36226 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36227
36228 # The cast to long int works around a bug in the HP C Compiler
36229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36231 # This bug is HP SR number 8606223364.
36232 { echo "$as_me:$LINENO: checking size of int *" >&5
36233 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36234 if test "${ac_cv_sizeof_int_p+set}" = set; then
36235   echo $ECHO_N "(cached) $ECHO_C" >&6
36236 else
36237   if test "$cross_compiling" = yes; then
36238   # Depending upon the size, compute the lo and hi bounds.
36239 cat >conftest.$ac_ext <<_ACEOF
36240 /* confdefs.h.  */
36241 _ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h.  */
36245 $ac_includes_default
36246    typedef int * ac__type_sizeof_;
36247 int
36248 main ()
36249 {
36250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36251 test_array [0] = 0
36252
36253   ;
36254   return 0;
36255 }
36256 _ACEOF
36257 rm -f conftest.$ac_objext
36258 if { (ac_try="$ac_compile"
36259 case "(($ac_try" in
36260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36261   *) ac_try_echo=$ac_try;;
36262 esac
36263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36264   (eval "$ac_compile") 2>conftest.er1
36265   ac_status=$?
36266   grep -v '^ *+' conftest.er1 >conftest.err
36267   rm -f conftest.er1
36268   cat conftest.err >&5
36269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270   (exit $ac_status); } && {
36271          test -z "$ac_c_werror_flag" ||
36272          test ! -s conftest.err
36273        } && test -s conftest.$ac_objext; then
36274   ac_lo=0 ac_mid=0
36275   while :; do
36276     cat >conftest.$ac_ext <<_ACEOF
36277 /* confdefs.h.  */
36278 _ACEOF
36279 cat confdefs.h >>conftest.$ac_ext
36280 cat >>conftest.$ac_ext <<_ACEOF
36281 /* end confdefs.h.  */
36282 $ac_includes_default
36283    typedef int * ac__type_sizeof_;
36284 int
36285 main ()
36286 {
36287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36288 test_array [0] = 0
36289
36290   ;
36291   return 0;
36292 }
36293 _ACEOF
36294 rm -f conftest.$ac_objext
36295 if { (ac_try="$ac_compile"
36296 case "(($ac_try" in
36297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36298   *) ac_try_echo=$ac_try;;
36299 esac
36300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36301   (eval "$ac_compile") 2>conftest.er1
36302   ac_status=$?
36303   grep -v '^ *+' conftest.er1 >conftest.err
36304   rm -f conftest.er1
36305   cat conftest.err >&5
36306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307   (exit $ac_status); } && {
36308          test -z "$ac_c_werror_flag" ||
36309          test ! -s conftest.err
36310        } && test -s conftest.$ac_objext; then
36311   ac_hi=$ac_mid; break
36312 else
36313   echo "$as_me: failed program was:" >&5
36314 sed 's/^/| /' conftest.$ac_ext >&5
36315
36316         ac_lo=`expr $ac_mid + 1`
36317                         if test $ac_lo -le $ac_mid; then
36318                           ac_lo= ac_hi=
36319                           break
36320                         fi
36321                         ac_mid=`expr 2 '*' $ac_mid + 1`
36322 fi
36323
36324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36325   done
36326 else
36327   echo "$as_me: failed program was:" >&5
36328 sed 's/^/| /' conftest.$ac_ext >&5
36329
36330         cat >conftest.$ac_ext <<_ACEOF
36331 /* confdefs.h.  */
36332 _ACEOF
36333 cat confdefs.h >>conftest.$ac_ext
36334 cat >>conftest.$ac_ext <<_ACEOF
36335 /* end confdefs.h.  */
36336 $ac_includes_default
36337    typedef int * ac__type_sizeof_;
36338 int
36339 main ()
36340 {
36341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36342 test_array [0] = 0
36343
36344   ;
36345   return 0;
36346 }
36347 _ACEOF
36348 rm -f conftest.$ac_objext
36349 if { (ac_try="$ac_compile"
36350 case "(($ac_try" in
36351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36352   *) ac_try_echo=$ac_try;;
36353 esac
36354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36355   (eval "$ac_compile") 2>conftest.er1
36356   ac_status=$?
36357   grep -v '^ *+' conftest.er1 >conftest.err
36358   rm -f conftest.er1
36359   cat conftest.err >&5
36360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361   (exit $ac_status); } && {
36362          test -z "$ac_c_werror_flag" ||
36363          test ! -s conftest.err
36364        } && test -s conftest.$ac_objext; then
36365   ac_hi=-1 ac_mid=-1
36366   while :; do
36367     cat >conftest.$ac_ext <<_ACEOF
36368 /* confdefs.h.  */
36369 _ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h.  */
36373 $ac_includes_default
36374    typedef int * ac__type_sizeof_;
36375 int
36376 main ()
36377 {
36378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36379 test_array [0] = 0
36380
36381   ;
36382   return 0;
36383 }
36384 _ACEOF
36385 rm -f conftest.$ac_objext
36386 if { (ac_try="$ac_compile"
36387 case "(($ac_try" in
36388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36389   *) ac_try_echo=$ac_try;;
36390 esac
36391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36392   (eval "$ac_compile") 2>conftest.er1
36393   ac_status=$?
36394   grep -v '^ *+' conftest.er1 >conftest.err
36395   rm -f conftest.er1
36396   cat conftest.err >&5
36397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398   (exit $ac_status); } && {
36399          test -z "$ac_c_werror_flag" ||
36400          test ! -s conftest.err
36401        } && test -s conftest.$ac_objext; then
36402   ac_lo=$ac_mid; break
36403 else
36404   echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.$ac_ext >&5
36406
36407         ac_hi=`expr '(' $ac_mid ')' - 1`
36408                         if test $ac_mid -le $ac_hi; then
36409                           ac_lo= ac_hi=
36410                           break
36411                         fi
36412                         ac_mid=`expr 2 '*' $ac_mid`
36413 fi
36414
36415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36416   done
36417 else
36418   echo "$as_me: failed program was:" >&5
36419 sed 's/^/| /' conftest.$ac_ext >&5
36420
36421         ac_lo= ac_hi=
36422 fi
36423
36424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36425 fi
36426
36427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36428 # Binary search between lo and hi bounds.
36429 while test "x$ac_lo" != "x$ac_hi"; do
36430   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36431   cat >conftest.$ac_ext <<_ACEOF
36432 /* confdefs.h.  */
36433 _ACEOF
36434 cat confdefs.h >>conftest.$ac_ext
36435 cat >>conftest.$ac_ext <<_ACEOF
36436 /* end confdefs.h.  */
36437 $ac_includes_default
36438    typedef int * ac__type_sizeof_;
36439 int
36440 main ()
36441 {
36442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36443 test_array [0] = 0
36444
36445   ;
36446   return 0;
36447 }
36448 _ACEOF
36449 rm -f conftest.$ac_objext
36450 if { (ac_try="$ac_compile"
36451 case "(($ac_try" in
36452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36453   *) ac_try_echo=$ac_try;;
36454 esac
36455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36456   (eval "$ac_compile") 2>conftest.er1
36457   ac_status=$?
36458   grep -v '^ *+' conftest.er1 >conftest.err
36459   rm -f conftest.er1
36460   cat conftest.err >&5
36461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462   (exit $ac_status); } && {
36463          test -z "$ac_c_werror_flag" ||
36464          test ! -s conftest.err
36465        } && test -s conftest.$ac_objext; then
36466   ac_hi=$ac_mid
36467 else
36468   echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36470
36471         ac_lo=`expr '(' $ac_mid ')' + 1`
36472 fi
36473
36474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36475 done
36476 case $ac_lo in
36477 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36478 '') if test "$ac_cv_type_int_p" = yes; then
36479      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36480 See \`config.log' for more details." >&5
36481 echo "$as_me: error: cannot compute sizeof (int *)
36482 See \`config.log' for more details." >&2;}
36483    { (exit 77); exit 77; }; }
36484    else
36485      ac_cv_sizeof_int_p=0
36486    fi ;;
36487 esac
36488 else
36489   cat >conftest.$ac_ext <<_ACEOF
36490 /* confdefs.h.  */
36491 _ACEOF
36492 cat confdefs.h >>conftest.$ac_ext
36493 cat >>conftest.$ac_ext <<_ACEOF
36494 /* end confdefs.h.  */
36495 $ac_includes_default
36496    typedef int * ac__type_sizeof_;
36497 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36498 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36499 #include <stdio.h>
36500 #include <stdlib.h>
36501 int
36502 main ()
36503 {
36504
36505   FILE *f = fopen ("conftest.val", "w");
36506   if (! f)
36507     return 1;
36508   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36509     {
36510       long int i = longval ();
36511       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36512         return 1;
36513       fprintf (f, "%ld\n", i);
36514     }
36515   else
36516     {
36517       unsigned long int i = ulongval ();
36518       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36519         return 1;
36520       fprintf (f, "%lu\n", i);
36521     }
36522   return ferror (f) || fclose (f) != 0;
36523
36524   ;
36525   return 0;
36526 }
36527 _ACEOF
36528 rm -f conftest$ac_exeext
36529 if { (ac_try="$ac_link"
36530 case "(($ac_try" in
36531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36532   *) ac_try_echo=$ac_try;;
36533 esac
36534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36535   (eval "$ac_link") 2>&5
36536   ac_status=$?
36537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36539   { (case "(($ac_try" in
36540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36541   *) ac_try_echo=$ac_try;;
36542 esac
36543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36544   (eval "$ac_try") 2>&5
36545   ac_status=$?
36546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547   (exit $ac_status); }; }; then
36548   ac_cv_sizeof_int_p=`cat conftest.val`
36549 else
36550   echo "$as_me: program exited with status $ac_status" >&5
36551 echo "$as_me: failed program was:" >&5
36552 sed 's/^/| /' conftest.$ac_ext >&5
36553
36554 ( exit $ac_status )
36555 if test "$ac_cv_type_int_p" = yes; then
36556      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36557 See \`config.log' for more details." >&5
36558 echo "$as_me: error: cannot compute sizeof (int *)
36559 See \`config.log' for more details." >&2;}
36560    { (exit 77); exit 77; }; }
36561    else
36562      ac_cv_sizeof_int_p=0
36563    fi
36564 fi
36565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36566 fi
36567 rm -f conftest.val
36568 fi
36569 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36570 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36571
36572
36573
36574 cat >>confdefs.h <<_ACEOF
36575 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36576 _ACEOF
36577
36578
36579
36580 { echo "$as_me:$LINENO: checking for u_int type" >&5
36581 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36582 if test "${ac_cv_have_u_int+set}" = set; then
36583   echo $ECHO_N "(cached) $ECHO_C" >&6
36584 else
36585
36586        cat >conftest.$ac_ext <<_ACEOF
36587 /* confdefs.h.  */
36588 _ACEOF
36589 cat confdefs.h >>conftest.$ac_ext
36590 cat >>conftest.$ac_ext <<_ACEOF
36591 /* end confdefs.h.  */
36592
36593               #include <sys/types.h>
36594
36595 int
36596 main ()
36597 {
36598
36599               u_int a; a = 1;
36600
36601   ;
36602   return 0;
36603 }
36604 _ACEOF
36605 rm -f conftest.$ac_objext
36606 if { (ac_try="$ac_compile"
36607 case "(($ac_try" in
36608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36609   *) ac_try_echo=$ac_try;;
36610 esac
36611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36612   (eval "$ac_compile") 2>conftest.er1
36613   ac_status=$?
36614   grep -v '^ *+' conftest.er1 >conftest.err
36615   rm -f conftest.er1
36616   cat conftest.err >&5
36617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618   (exit $ac_status); } && {
36619          test -z "$ac_c_werror_flag" ||
36620          test ! -s conftest.err
36621        } && test -s conftest.$ac_objext; then
36622
36623               ac_cv_have_u_int="yes"
36624
36625 else
36626   echo "$as_me: failed program was:" >&5
36627 sed 's/^/| /' conftest.$ac_ext >&5
36628
36629
36630               ac_cv_have_u_int="no"
36631
36632
36633 fi
36634
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36636
36637
36638 fi
36639 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36640 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36641 if test "x$ac_cv_have_u_int" = "xyes" ; then
36642    cat >>confdefs.h <<\_ACEOF
36643 #define HAVE_U_INT 1
36644 _ACEOF
36645
36646    have_u_int=1
36647 fi
36648
36649 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36650 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36651 if test "${ac_cv_have_intmax_t+set}" = set; then
36652   echo $ECHO_N "(cached) $ECHO_C" >&6
36653 else
36654
36655        cat >conftest.$ac_ext <<_ACEOF
36656 /* confdefs.h.  */
36657 _ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h.  */
36661
36662               #include <sys/types.h>
36663
36664 int
36665 main ()
36666 {
36667
36668               intmax_t a; a = 1;
36669
36670   ;
36671   return 0;
36672 }
36673 _ACEOF
36674 rm -f conftest.$ac_objext
36675 if { (ac_try="$ac_compile"
36676 case "(($ac_try" in
36677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36678   *) ac_try_echo=$ac_try;;
36679 esac
36680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36681   (eval "$ac_compile") 2>conftest.er1
36682   ac_status=$?
36683   grep -v '^ *+' conftest.er1 >conftest.err
36684   rm -f conftest.er1
36685   cat conftest.err >&5
36686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687   (exit $ac_status); } && {
36688          test -z "$ac_c_werror_flag" ||
36689          test ! -s conftest.err
36690        } && test -s conftest.$ac_objext; then
36691
36692               ac_cv_have_intmax_t="yes"
36693
36694 else
36695   echo "$as_me: failed program was:" >&5
36696 sed 's/^/| /' conftest.$ac_ext >&5
36697
36698
36699               cat >conftest.$ac_ext <<_ACEOF
36700 /* confdefs.h.  */
36701 _ACEOF
36702 cat confdefs.h >>conftest.$ac_ext
36703 cat >>conftest.$ac_ext <<_ACEOF
36704 /* end confdefs.h.  */
36705
36706                      #include <stdint.h>
36707
36708 int
36709 main ()
36710 {
36711
36712                      intmax_t a; a = 1;
36713
36714   ;
36715   return 0;
36716 }
36717 _ACEOF
36718 rm -f conftest.$ac_objext
36719 if { (ac_try="$ac_compile"
36720 case "(($ac_try" in
36721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36722   *) ac_try_echo=$ac_try;;
36723 esac
36724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36725   (eval "$ac_compile") 2>conftest.er1
36726   ac_status=$?
36727   grep -v '^ *+' conftest.er1 >conftest.err
36728   rm -f conftest.er1
36729   cat conftest.err >&5
36730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731   (exit $ac_status); } && {
36732          test -z "$ac_c_werror_flag" ||
36733          test ! -s conftest.err
36734        } && test -s conftest.$ac_objext; then
36735
36736                      ac_cv_have_intmax_t="yes"
36737
36738 else
36739   echo "$as_me: failed program was:" >&5
36740 sed 's/^/| /' conftest.$ac_ext >&5
36741
36742
36743                      ac_cv_have_intmax_t="no"
36744
36745
36746 fi
36747
36748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36749
36750
36751 fi
36752
36753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36754
36755
36756 fi
36757 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36758 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36759 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36760    cat >>confdefs.h <<\_ACEOF
36761 #define HAVE_INTMAX_T 1
36762 _ACEOF
36763
36764    have_intmax_t=1
36765 fi
36766
36767 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36768 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36769 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36770   echo $ECHO_N "(cached) $ECHO_C" >&6
36771 else
36772
36773        cat >conftest.$ac_ext <<_ACEOF
36774 /* confdefs.h.  */
36775 _ACEOF
36776 cat confdefs.h >>conftest.$ac_ext
36777 cat >>conftest.$ac_ext <<_ACEOF
36778 /* end confdefs.h.  */
36779
36780               #include <sys/types.h>
36781
36782 int
36783 main ()
36784 {
36785
36786               u_intmax_t a; a = 1;
36787
36788   ;
36789   return 0;
36790 }
36791 _ACEOF
36792 rm -f conftest.$ac_objext
36793 if { (ac_try="$ac_compile"
36794 case "(($ac_try" in
36795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36796   *) ac_try_echo=$ac_try;;
36797 esac
36798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36799   (eval "$ac_compile") 2>conftest.er1
36800   ac_status=$?
36801   grep -v '^ *+' conftest.er1 >conftest.err
36802   rm -f conftest.er1
36803   cat conftest.err >&5
36804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805   (exit $ac_status); } && {
36806          test -z "$ac_c_werror_flag" ||
36807          test ! -s conftest.err
36808        } && test -s conftest.$ac_objext; then
36809
36810               ac_cv_have_u_intmax_t="yes"
36811
36812 else
36813   echo "$as_me: failed program was:" >&5
36814 sed 's/^/| /' conftest.$ac_ext >&5
36815
36816
36817               cat >conftest.$ac_ext <<_ACEOF
36818 /* confdefs.h.  */
36819 _ACEOF
36820 cat confdefs.h >>conftest.$ac_ext
36821 cat >>conftest.$ac_ext <<_ACEOF
36822 /* end confdefs.h.  */
36823
36824                      #include <stdint.h>
36825
36826 int
36827 main ()
36828 {
36829
36830                     u_intmax_t a; a = 1;
36831
36832   ;
36833   return 0;
36834 }
36835 _ACEOF
36836 rm -f conftest.$ac_objext
36837 if { (ac_try="$ac_compile"
36838 case "(($ac_try" in
36839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36840   *) ac_try_echo=$ac_try;;
36841 esac
36842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36843   (eval "$ac_compile") 2>conftest.er1
36844   ac_status=$?
36845   grep -v '^ *+' conftest.er1 >conftest.err
36846   rm -f conftest.er1
36847   cat conftest.err >&5
36848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36849   (exit $ac_status); } && {
36850          test -z "$ac_c_werror_flag" ||
36851          test ! -s conftest.err
36852        } && test -s conftest.$ac_objext; then
36853
36854                     ac_cv_have_u_intmax_t="yes"
36855
36856 else
36857   echo "$as_me: failed program was:" >&5
36858 sed 's/^/| /' conftest.$ac_ext >&5
36859
36860
36861                     ac_cv_have_u_intmax_t="no"
36862
36863
36864 fi
36865
36866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36867
36868
36869 fi
36870
36871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36872
36873
36874 fi
36875 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36876 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36877 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36878    cat >>confdefs.h <<\_ACEOF
36879 #define HAVE_U_INTMAX_T 1
36880 _ACEOF
36881
36882    have_u_intmax_t=1
36883 fi
36884
36885 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36886 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36887 if test "${ac_cv_have_intxx_t+set}" = set; then
36888   echo $ECHO_N "(cached) $ECHO_C" >&6
36889 else
36890
36891        cat >conftest.$ac_ext <<_ACEOF
36892 /* confdefs.h.  */
36893 _ACEOF
36894 cat confdefs.h >>conftest.$ac_ext
36895 cat >>conftest.$ac_ext <<_ACEOF
36896 /* end confdefs.h.  */
36897
36898               #include <sys/types.h>
36899
36900 int
36901 main ()
36902 {
36903
36904               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36905
36906   ;
36907   return 0;
36908 }
36909 _ACEOF
36910 rm -f conftest.$ac_objext
36911 if { (ac_try="$ac_compile"
36912 case "(($ac_try" in
36913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36914   *) ac_try_echo=$ac_try;;
36915 esac
36916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36917   (eval "$ac_compile") 2>conftest.er1
36918   ac_status=$?
36919   grep -v '^ *+' conftest.er1 >conftest.err
36920   rm -f conftest.er1
36921   cat conftest.err >&5
36922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923   (exit $ac_status); } && {
36924          test -z "$ac_c_werror_flag" ||
36925          test ! -s conftest.err
36926        } && test -s conftest.$ac_objext; then
36927
36928               ac_cv_have_intxx_t="yes"
36929
36930 else
36931   echo "$as_me: failed program was:" >&5
36932 sed 's/^/| /' conftest.$ac_ext >&5
36933
36934
36935               ac_cv_have_intxx_t="no"
36936
36937
36938 fi
36939
36940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36941
36942
36943 fi
36944 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36945 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36946 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36947    cat >>confdefs.h <<\_ACEOF
36948 #define HAVE_INTXX_T 1
36949 _ACEOF
36950
36951    have_intxx_t=1
36952 fi
36953
36954 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36955 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36956 if test "${ac_cv_have_int64_t+set}" = set; then
36957   echo $ECHO_N "(cached) $ECHO_C" >&6
36958 else
36959
36960        cat >conftest.$ac_ext <<_ACEOF
36961 /* confdefs.h.  */
36962 _ACEOF
36963 cat confdefs.h >>conftest.$ac_ext
36964 cat >>conftest.$ac_ext <<_ACEOF
36965 /* end confdefs.h.  */
36966
36967               #include <sys/types.h>
36968
36969 int
36970 main ()
36971 {
36972
36973               int64_t a; a = 1;
36974
36975   ;
36976   return 0;
36977 }
36978 _ACEOF
36979 rm -f conftest.$ac_objext
36980 if { (ac_try="$ac_compile"
36981 case "(($ac_try" in
36982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36983   *) ac_try_echo=$ac_try;;
36984 esac
36985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36986   (eval "$ac_compile") 2>conftest.er1
36987   ac_status=$?
36988   grep -v '^ *+' conftest.er1 >conftest.err
36989   rm -f conftest.er1
36990   cat conftest.err >&5
36991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992   (exit $ac_status); } && {
36993          test -z "$ac_c_werror_flag" ||
36994          test ! -s conftest.err
36995        } && test -s conftest.$ac_objext; then
36996
36997               ac_cv_have_int64_t="yes"
36998
36999 else
37000   echo "$as_me: failed program was:" >&5
37001 sed 's/^/| /' conftest.$ac_ext >&5
37002
37003
37004               ac_cv_have_int64_t="no"
37005
37006
37007 fi
37008
37009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37010
37011
37012 fi
37013 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37014 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37015 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37016    cat >>confdefs.h <<\_ACEOF
37017 #define HAVE_INT64_T 1
37018 _ACEOF
37019
37020    have_int64_t=1
37021 fi
37022
37023 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37024 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37025 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37026   echo $ECHO_N "(cached) $ECHO_C" >&6
37027 else
37028
37029        cat >conftest.$ac_ext <<_ACEOF
37030 /* confdefs.h.  */
37031 _ACEOF
37032 cat confdefs.h >>conftest.$ac_ext
37033 cat >>conftest.$ac_ext <<_ACEOF
37034 /* end confdefs.h.  */
37035
37036               #include <sys/types.h>
37037
37038 int
37039 main ()
37040 {
37041
37042               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37043
37044   ;
37045   return 0;
37046 }
37047 _ACEOF
37048 rm -f conftest.$ac_objext
37049 if { (ac_try="$ac_compile"
37050 case "(($ac_try" in
37051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37052   *) ac_try_echo=$ac_try;;
37053 esac
37054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37055   (eval "$ac_compile") 2>conftest.er1
37056   ac_status=$?
37057   grep -v '^ *+' conftest.er1 >conftest.err
37058   rm -f conftest.er1
37059   cat conftest.err >&5
37060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061   (exit $ac_status); } && {
37062          test -z "$ac_c_werror_flag" ||
37063          test ! -s conftest.err
37064        } && test -s conftest.$ac_objext; then
37065
37066              ac_cv_have_u_intxx_t="yes"
37067
37068 else
37069   echo "$as_me: failed program was:" >&5
37070 sed 's/^/| /' conftest.$ac_ext >&5
37071
37072
37073              ac_cv_have_u_intxx_t="no"
37074
37075
37076 fi
37077
37078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37079
37080
37081 fi
37082 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37083 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37084 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37085    cat >>confdefs.h <<\_ACEOF
37086 #define HAVE_U_INTXX_T 1
37087 _ACEOF
37088
37089    have_u_intxx_t=1
37090 fi
37091
37092 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37093 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37094 if test "${ac_cv_have_u_int64_t+set}" = set; then
37095   echo $ECHO_N "(cached) $ECHO_C" >&6
37096 else
37097
37098        cat >conftest.$ac_ext <<_ACEOF
37099 /* confdefs.h.  */
37100 _ACEOF
37101 cat confdefs.h >>conftest.$ac_ext
37102 cat >>conftest.$ac_ext <<_ACEOF
37103 /* end confdefs.h.  */
37104
37105               #include <sys/types.h>
37106
37107 int
37108 main ()
37109 {
37110
37111               u_int64_t a; a = 1;
37112
37113   ;
37114   return 0;
37115 }
37116 _ACEOF
37117 rm -f conftest.$ac_objext
37118 if { (ac_try="$ac_compile"
37119 case "(($ac_try" in
37120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121   *) ac_try_echo=$ac_try;;
37122 esac
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124   (eval "$ac_compile") 2>conftest.er1
37125   ac_status=$?
37126   grep -v '^ *+' conftest.er1 >conftest.err
37127   rm -f conftest.er1
37128   cat conftest.err >&5
37129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130   (exit $ac_status); } && {
37131          test -z "$ac_c_werror_flag" ||
37132          test ! -s conftest.err
37133        } && test -s conftest.$ac_objext; then
37134
37135              ac_cv_have_u_int64_t="yes"
37136
37137 else
37138   echo "$as_me: failed program was:" >&5
37139 sed 's/^/| /' conftest.$ac_ext >&5
37140
37141
37142              ac_cv_have_u_int64_t="no"
37143
37144
37145 fi
37146
37147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37148
37149
37150 fi
37151 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37152 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37153 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37154    cat >>confdefs.h <<\_ACEOF
37155 #define HAVE_U_INT64_T 1
37156 _ACEOF
37157
37158    have_u_int64_t=1
37159 fi
37160
37161 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37162     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37163 then
37164    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37165 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37166    cat >conftest.$ac_ext <<_ACEOF
37167 /* confdefs.h.  */
37168 _ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h.  */
37172
37173           #include <sys/bitypes.h>
37174
37175 int
37176 main ()
37177 {
37178
37179           int8_t a; int16_t b; int32_t c;
37180           u_int8_t e; u_int16_t f; u_int32_t g;
37181           a = b = c = e = f = g = 1;
37182
37183   ;
37184   return 0;
37185 }
37186 _ACEOF
37187 rm -f conftest.$ac_objext
37188 if { (ac_try="$ac_compile"
37189 case "(($ac_try" in
37190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37191   *) ac_try_echo=$ac_try;;
37192 esac
37193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37194   (eval "$ac_compile") 2>conftest.er1
37195   ac_status=$?
37196   grep -v '^ *+' conftest.er1 >conftest.err
37197   rm -f conftest.er1
37198   cat conftest.err >&5
37199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200   (exit $ac_status); } && {
37201          test -z "$ac_c_werror_flag" ||
37202          test ! -s conftest.err
37203        } && test -s conftest.$ac_objext; then
37204
37205           cat >>confdefs.h <<\_ACEOF
37206 #define HAVE_U_INTXX_T 1
37207 _ACEOF
37208
37209           cat >>confdefs.h <<\_ACEOF
37210 #define HAVE_INTXX_T 1
37211 _ACEOF
37212
37213           cat >>confdefs.h <<\_ACEOF
37214 #define HAVE_SYS_BITYPES_H 1
37215 _ACEOF
37216
37217           { echo "$as_me:$LINENO: result: yes" >&5
37218 echo "${ECHO_T}yes" >&6; }
37219
37220 else
37221   echo "$as_me: failed program was:" >&5
37222 sed 's/^/| /' conftest.$ac_ext >&5
37223
37224
37225           { echo "$as_me:$LINENO: result: no" >&5
37226 echo "${ECHO_T}no" >&6; }
37227
37228
37229 fi
37230
37231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37232 fi
37233
37234 if test -z "$have_u_intxx_t" ; then
37235    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37236 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37237 if test "${ac_cv_have_uintxx_t+set}" = set; then
37238   echo $ECHO_N "(cached) $ECHO_C" >&6
37239 else
37240
37241           cat >conftest.$ac_ext <<_ACEOF
37242 /* confdefs.h.  */
37243 _ACEOF
37244 cat confdefs.h >>conftest.$ac_ext
37245 cat >>conftest.$ac_ext <<_ACEOF
37246 /* end confdefs.h.  */
37247
37248                  #include <sys/types.h>
37249
37250 int
37251 main ()
37252 {
37253
37254                  uint8_t a; uint16_t b;
37255                  uint32_t c; a = b = c = 1;
37256
37257   ;
37258   return 0;
37259 }
37260 _ACEOF
37261 rm -f conftest.$ac_objext
37262 if { (ac_try="$ac_compile"
37263 case "(($ac_try" in
37264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37265   *) ac_try_echo=$ac_try;;
37266 esac
37267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37268   (eval "$ac_compile") 2>conftest.er1
37269   ac_status=$?
37270   grep -v '^ *+' conftest.er1 >conftest.err
37271   rm -f conftest.er1
37272   cat conftest.err >&5
37273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274   (exit $ac_status); } && {
37275          test -z "$ac_c_werror_flag" ||
37276          test ! -s conftest.err
37277        } && test -s conftest.$ac_objext; then
37278
37279                 ac_cv_have_uintxx_t="yes"
37280
37281 else
37282   echo "$as_me: failed program was:" >&5
37283 sed 's/^/| /' conftest.$ac_ext >&5
37284
37285
37286                 ac_cv_have_uintxx_t="no"
37287
37288
37289 fi
37290
37291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37292
37293
37294 fi
37295 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37296 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37297    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37298       cat >>confdefs.h <<\_ACEOF
37299 #define HAVE_UINTXX_T 1
37300 _ACEOF
37301
37302    fi
37303 fi
37304
37305 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37306     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37307 then
37308    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37309 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37310    cat >conftest.$ac_ext <<_ACEOF
37311 /* confdefs.h.  */
37312 _ACEOF
37313 cat confdefs.h >>conftest.$ac_ext
37314 cat >>conftest.$ac_ext <<_ACEOF
37315 /* end confdefs.h.  */
37316
37317           #include <sys/bitypes.h>
37318
37319 int
37320 main ()
37321 {
37322
37323           int64_t a; u_int64_t b;
37324           a = b = 1;
37325
37326   ;
37327   return 0;
37328 }
37329 _ACEOF
37330 rm -f conftest.$ac_objext
37331 if { (ac_try="$ac_compile"
37332 case "(($ac_try" in
37333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37334   *) ac_try_echo=$ac_try;;
37335 esac
37336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37337   (eval "$ac_compile") 2>conftest.er1
37338   ac_status=$?
37339   grep -v '^ *+' conftest.er1 >conftest.err
37340   rm -f conftest.er1
37341   cat conftest.err >&5
37342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343   (exit $ac_status); } && {
37344          test -z "$ac_c_werror_flag" ||
37345          test ! -s conftest.err
37346        } && test -s conftest.$ac_objext; then
37347
37348           cat >>confdefs.h <<\_ACEOF
37349 #define HAVE_U_INT64_T 1
37350 _ACEOF
37351
37352           cat >>confdefs.h <<\_ACEOF
37353 #define HAVE_INT64_T 1
37354 _ACEOF
37355
37356           { echo "$as_me:$LINENO: result: yes" >&5
37357 echo "${ECHO_T}yes" >&6; }
37358
37359 else
37360   echo "$as_me: failed program was:" >&5
37361 sed 's/^/| /' conftest.$ac_ext >&5
37362
37363
37364           { echo "$as_me:$LINENO: result: no" >&5
37365 echo "${ECHO_T}no" >&6; }
37366
37367
37368 fi
37369
37370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37371 fi
37372
37373 if (test -z "$have_uintxx_t" && \
37374     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37375 then
37376    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37377 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37378    cat >conftest.$ac_ext <<_ACEOF
37379 /* confdefs.h.  */
37380 _ACEOF
37381 cat confdefs.h >>conftest.$ac_ext
37382 cat >>conftest.$ac_ext <<_ACEOF
37383 /* end confdefs.h.  */
37384
37385           #include <sys/bitypes.h>
37386
37387 int
37388 main ()
37389 {
37390
37391           uint8_t a; uint16_t b;
37392           uint32_t c; a = b = c = 1;
37393
37394   ;
37395   return 0;
37396 }
37397 _ACEOF
37398 rm -f conftest.$ac_objext
37399 if { (ac_try="$ac_compile"
37400 case "(($ac_try" in
37401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37402   *) ac_try_echo=$ac_try;;
37403 esac
37404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37405   (eval "$ac_compile") 2>conftest.er1
37406   ac_status=$?
37407   grep -v '^ *+' conftest.er1 >conftest.err
37408   rm -f conftest.er1
37409   cat conftest.err >&5
37410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411   (exit $ac_status); } && {
37412          test -z "$ac_c_werror_flag" ||
37413          test ! -s conftest.err
37414        } && test -s conftest.$ac_objext; then
37415
37416           cat >>confdefs.h <<\_ACEOF
37417 #define HAVE_UINTXX_T 1
37418 _ACEOF
37419
37420           { echo "$as_me:$LINENO: result: yes" >&5
37421 echo "${ECHO_T}yes" >&6; }
37422
37423 else
37424   echo "$as_me: failed program was:" >&5
37425 sed 's/^/| /' conftest.$ac_ext >&5
37426
37427
37428           { echo "$as_me:$LINENO: result: no" >&5
37429 echo "${ECHO_T}no" >&6; }
37430
37431
37432 fi
37433
37434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37435 fi
37436
37437
37438
37439
37440
37441
37442
37443
37444
37445
37446
37447
37448
37449
37450 for ac_func in \
37451    fork \
37452    getcwd \
37453    gethostname \
37454    getpid \
37455    gettimeofday \
37456    setpgid \
37457    setpgrp \
37458    setsid \
37459    signal \
37460    strerror \
37461    strncmp \
37462    strncpy \
37463    vfprintf \
37464
37465 do
37466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37470   echo $ECHO_N "(cached) $ECHO_C" >&6
37471 else
37472   cat >conftest.$ac_ext <<_ACEOF
37473 /* confdefs.h.  */
37474 _ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h.  */
37478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37480 #define $ac_func innocuous_$ac_func
37481
37482 /* System header to define __stub macros and hopefully few prototypes,
37483     which can conflict with char $ac_func (); below.
37484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37485     <limits.h> exists even on freestanding compilers.  */
37486
37487 #ifdef __STDC__
37488 # include <limits.h>
37489 #else
37490 # include <assert.h>
37491 #endif
37492
37493 #undef $ac_func
37494
37495 /* Override any GCC internal prototype to avoid an error.
37496    Use char because int might match the return type of a GCC
37497    builtin and then its argument prototype would still apply.  */
37498 #ifdef __cplusplus
37499 extern "C"
37500 #endif
37501 char $ac_func ();
37502 /* The GNU C library defines this for functions which it implements
37503     to always fail with ENOSYS.  Some functions are actually named
37504     something starting with __ and the normal name is an alias.  */
37505 #if defined __stub_$ac_func || defined __stub___$ac_func
37506 choke me
37507 #endif
37508
37509 int
37510 main ()
37511 {
37512 return $ac_func ();
37513   ;
37514   return 0;
37515 }
37516 _ACEOF
37517 rm -f conftest.$ac_objext conftest$ac_exeext
37518 if { (ac_try="$ac_link"
37519 case "(($ac_try" in
37520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37521   *) ac_try_echo=$ac_try;;
37522 esac
37523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37524   (eval "$ac_link") 2>conftest.er1
37525   ac_status=$?
37526   grep -v '^ *+' conftest.er1 >conftest.err
37527   rm -f conftest.er1
37528   cat conftest.err >&5
37529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37530   (exit $ac_status); } && {
37531          test -z "$ac_c_werror_flag" ||
37532          test ! -s conftest.err
37533        } && test -s conftest$ac_exeext &&
37534        $as_test_x conftest$ac_exeext; then
37535   eval "$as_ac_var=yes"
37536 else
37537   echo "$as_me: failed program was:" >&5
37538 sed 's/^/| /' conftest.$ac_ext >&5
37539
37540         eval "$as_ac_var=no"
37541 fi
37542
37543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37544       conftest$ac_exeext conftest.$ac_ext
37545 fi
37546 ac_res=`eval echo '${'$as_ac_var'}'`
37547                { echo "$as_me:$LINENO: result: $ac_res" >&5
37548 echo "${ECHO_T}$ac_res" >&6; }
37549 if test `eval echo '${'$as_ac_var'}'` = yes; then
37550   cat >>confdefs.h <<_ACEOF
37551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37552 _ACEOF
37553
37554 else
37555   echo 'configure: cannot find needed function.'; exit 1
37556
37557 fi
37558 done
37559
37560
37561
37562 for ac_func in fchdir
37563 do
37564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37568   echo $ECHO_N "(cached) $ECHO_C" >&6
37569 else
37570   cat >conftest.$ac_ext <<_ACEOF
37571 /* confdefs.h.  */
37572 _ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h.  */
37576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37578 #define $ac_func innocuous_$ac_func
37579
37580 /* System header to define __stub macros and hopefully few prototypes,
37581     which can conflict with char $ac_func (); below.
37582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37583     <limits.h> exists even on freestanding compilers.  */
37584
37585 #ifdef __STDC__
37586 # include <limits.h>
37587 #else
37588 # include <assert.h>
37589 #endif
37590
37591 #undef $ac_func
37592
37593 /* Override any GCC internal prototype to avoid an error.
37594    Use char because int might match the return type of a GCC
37595    builtin and then its argument prototype would still apply.  */
37596 #ifdef __cplusplus
37597 extern "C"
37598 #endif
37599 char $ac_func ();
37600 /* The GNU C library defines this for functions which it implements
37601     to always fail with ENOSYS.  Some functions are actually named
37602     something starting with __ and the normal name is an alias.  */
37603 #if defined __stub_$ac_func || defined __stub___$ac_func
37604 choke me
37605 #endif
37606
37607 int
37608 main ()
37609 {
37610 return $ac_func ();
37611   ;
37612   return 0;
37613 }
37614 _ACEOF
37615 rm -f conftest.$ac_objext conftest$ac_exeext
37616 if { (ac_try="$ac_link"
37617 case "(($ac_try" in
37618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37619   *) ac_try_echo=$ac_try;;
37620 esac
37621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37622   (eval "$ac_link") 2>conftest.er1
37623   ac_status=$?
37624   grep -v '^ *+' conftest.er1 >conftest.err
37625   rm -f conftest.er1
37626   cat conftest.err >&5
37627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628   (exit $ac_status); } && {
37629          test -z "$ac_c_werror_flag" ||
37630          test ! -s conftest.err
37631        } && test -s conftest$ac_exeext &&
37632        $as_test_x conftest$ac_exeext; then
37633   eval "$as_ac_var=yes"
37634 else
37635   echo "$as_me: failed program was:" >&5
37636 sed 's/^/| /' conftest.$ac_ext >&5
37637
37638         eval "$as_ac_var=no"
37639 fi
37640
37641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37642       conftest$ac_exeext conftest.$ac_ext
37643 fi
37644 ac_res=`eval echo '${'$as_ac_var'}'`
37645                { echo "$as_me:$LINENO: result: $ac_res" >&5
37646 echo "${ECHO_T}$ac_res" >&6; }
37647 if test `eval echo '${'$as_ac_var'}'` = yes; then
37648   cat >>confdefs.h <<_ACEOF
37649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37650 _ACEOF
37651  cat >>confdefs.h <<\_ACEOF
37652 #define HAVE_FCHDIR 1
37653 _ACEOF
37654
37655 fi
37656 done
37657
37658
37659 for ac_func in strtoll
37660 do
37661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37665   echo $ECHO_N "(cached) $ECHO_C" >&6
37666 else
37667   cat >conftest.$ac_ext <<_ACEOF
37668 /* confdefs.h.  */
37669 _ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h.  */
37673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37675 #define $ac_func innocuous_$ac_func
37676
37677 /* System header to define __stub macros and hopefully few prototypes,
37678     which can conflict with char $ac_func (); below.
37679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37680     <limits.h> exists even on freestanding compilers.  */
37681
37682 #ifdef __STDC__
37683 # include <limits.h>
37684 #else
37685 # include <assert.h>
37686 #endif
37687
37688 #undef $ac_func
37689
37690 /* Override any GCC internal prototype to avoid an error.
37691    Use char because int might match the return type of a GCC
37692    builtin and then its argument prototype would still apply.  */
37693 #ifdef __cplusplus
37694 extern "C"
37695 #endif
37696 char $ac_func ();
37697 /* The GNU C library defines this for functions which it implements
37698     to always fail with ENOSYS.  Some functions are actually named
37699     something starting with __ and the normal name is an alias.  */
37700 #if defined __stub_$ac_func || defined __stub___$ac_func
37701 choke me
37702 #endif
37703
37704 int
37705 main ()
37706 {
37707 return $ac_func ();
37708   ;
37709   return 0;
37710 }
37711 _ACEOF
37712 rm -f conftest.$ac_objext conftest$ac_exeext
37713 if { (ac_try="$ac_link"
37714 case "(($ac_try" in
37715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37716   *) ac_try_echo=$ac_try;;
37717 esac
37718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37719   (eval "$ac_link") 2>conftest.er1
37720   ac_status=$?
37721   grep -v '^ *+' conftest.er1 >conftest.err
37722   rm -f conftest.er1
37723   cat conftest.err >&5
37724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37725   (exit $ac_status); } && {
37726          test -z "$ac_c_werror_flag" ||
37727          test ! -s conftest.err
37728        } && test -s conftest$ac_exeext &&
37729        $as_test_x conftest$ac_exeext; then
37730   eval "$as_ac_var=yes"
37731 else
37732   echo "$as_me: failed program was:" >&5
37733 sed 's/^/| /' conftest.$ac_ext >&5
37734
37735         eval "$as_ac_var=no"
37736 fi
37737
37738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37739       conftest$ac_exeext conftest.$ac_ext
37740 fi
37741 ac_res=`eval echo '${'$as_ac_var'}'`
37742                { echo "$as_me:$LINENO: result: $ac_res" >&5
37743 echo "${ECHO_T}$ac_res" >&6; }
37744 if test `eval echo '${'$as_ac_var'}'` = yes; then
37745   cat >>confdefs.h <<_ACEOF
37746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37747 _ACEOF
37748  cat >>confdefs.h <<\_ACEOF
37749 #define HAVE_STRTOLL 1
37750 _ACEOF
37751
37752 fi
37753 done
37754
37755
37756 for ac_func in posix_fadvise
37757 do
37758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37762   echo $ECHO_N "(cached) $ECHO_C" >&6
37763 else
37764   cat >conftest.$ac_ext <<_ACEOF
37765 /* confdefs.h.  */
37766 _ACEOF
37767 cat confdefs.h >>conftest.$ac_ext
37768 cat >>conftest.$ac_ext <<_ACEOF
37769 /* end confdefs.h.  */
37770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37772 #define $ac_func innocuous_$ac_func
37773
37774 /* System header to define __stub macros and hopefully few prototypes,
37775     which can conflict with char $ac_func (); below.
37776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37777     <limits.h> exists even on freestanding compilers.  */
37778
37779 #ifdef __STDC__
37780 # include <limits.h>
37781 #else
37782 # include <assert.h>
37783 #endif
37784
37785 #undef $ac_func
37786
37787 /* Override any GCC internal prototype to avoid an error.
37788    Use char because int might match the return type of a GCC
37789    builtin and then its argument prototype would still apply.  */
37790 #ifdef __cplusplus
37791 extern "C"
37792 #endif
37793 char $ac_func ();
37794 /* The GNU C library defines this for functions which it implements
37795     to always fail with ENOSYS.  Some functions are actually named
37796     something starting with __ and the normal name is an alias.  */
37797 #if defined __stub_$ac_func || defined __stub___$ac_func
37798 choke me
37799 #endif
37800
37801 int
37802 main ()
37803 {
37804 return $ac_func ();
37805   ;
37806   return 0;
37807 }
37808 _ACEOF
37809 rm -f conftest.$ac_objext conftest$ac_exeext
37810 if { (ac_try="$ac_link"
37811 case "(($ac_try" in
37812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37813   *) ac_try_echo=$ac_try;;
37814 esac
37815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37816   (eval "$ac_link") 2>conftest.er1
37817   ac_status=$?
37818   grep -v '^ *+' conftest.er1 >conftest.err
37819   rm -f conftest.er1
37820   cat conftest.err >&5
37821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822   (exit $ac_status); } && {
37823          test -z "$ac_c_werror_flag" ||
37824          test ! -s conftest.err
37825        } && test -s conftest$ac_exeext &&
37826        $as_test_x conftest$ac_exeext; then
37827   eval "$as_ac_var=yes"
37828 else
37829   echo "$as_me: failed program was:" >&5
37830 sed 's/^/| /' conftest.$ac_ext >&5
37831
37832         eval "$as_ac_var=no"
37833 fi
37834
37835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37836       conftest$ac_exeext conftest.$ac_ext
37837 fi
37838 ac_res=`eval echo '${'$as_ac_var'}'`
37839                { echo "$as_me:$LINENO: result: $ac_res" >&5
37840 echo "${ECHO_T}$ac_res" >&6; }
37841 if test `eval echo '${'$as_ac_var'}'` = yes; then
37842   cat >>confdefs.h <<_ACEOF
37843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37844 _ACEOF
37845
37846 fi
37847 done
37848
37849
37850 for ac_func in fdatasync
37851 do
37852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37856   echo $ECHO_N "(cached) $ECHO_C" >&6
37857 else
37858   cat >conftest.$ac_ext <<_ACEOF
37859 /* confdefs.h.  */
37860 _ACEOF
37861 cat confdefs.h >>conftest.$ac_ext
37862 cat >>conftest.$ac_ext <<_ACEOF
37863 /* end confdefs.h.  */
37864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37866 #define $ac_func innocuous_$ac_func
37867
37868 /* System header to define __stub macros and hopefully few prototypes,
37869     which can conflict with char $ac_func (); below.
37870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37871     <limits.h> exists even on freestanding compilers.  */
37872
37873 #ifdef __STDC__
37874 # include <limits.h>
37875 #else
37876 # include <assert.h>
37877 #endif
37878
37879 #undef $ac_func
37880
37881 /* Override any GCC internal prototype to avoid an error.
37882    Use char because int might match the return type of a GCC
37883    builtin and then its argument prototype would still apply.  */
37884 #ifdef __cplusplus
37885 extern "C"
37886 #endif
37887 char $ac_func ();
37888 /* The GNU C library defines this for functions which it implements
37889     to always fail with ENOSYS.  Some functions are actually named
37890     something starting with __ and the normal name is an alias.  */
37891 #if defined __stub_$ac_func || defined __stub___$ac_func
37892 choke me
37893 #endif
37894
37895 int
37896 main ()
37897 {
37898 return $ac_func ();
37899   ;
37900   return 0;
37901 }
37902 _ACEOF
37903 rm -f conftest.$ac_objext conftest$ac_exeext
37904 if { (ac_try="$ac_link"
37905 case "(($ac_try" in
37906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37907   *) ac_try_echo=$ac_try;;
37908 esac
37909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37910   (eval "$ac_link") 2>conftest.er1
37911   ac_status=$?
37912   grep -v '^ *+' conftest.er1 >conftest.err
37913   rm -f conftest.er1
37914   cat conftest.err >&5
37915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916   (exit $ac_status); } && {
37917          test -z "$ac_c_werror_flag" ||
37918          test ! -s conftest.err
37919        } && test -s conftest$ac_exeext &&
37920        $as_test_x conftest$ac_exeext; then
37921   eval "$as_ac_var=yes"
37922 else
37923   echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37925
37926         eval "$as_ac_var=no"
37927 fi
37928
37929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37930       conftest$ac_exeext conftest.$ac_ext
37931 fi
37932 ac_res=`eval echo '${'$as_ac_var'}'`
37933                { echo "$as_me:$LINENO: result: $ac_res" >&5
37934 echo "${ECHO_T}$ac_res" >&6; }
37935 if test `eval echo '${'$as_ac_var'}'` = yes; then
37936   cat >>confdefs.h <<_ACEOF
37937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37938 _ACEOF
37939
37940 fi
37941 done
37942
37943
37944
37945 for ac_func in chflags
37946 do
37947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37951   echo $ECHO_N "(cached) $ECHO_C" >&6
37952 else
37953   cat >conftest.$ac_ext <<_ACEOF
37954 /* confdefs.h.  */
37955 _ACEOF
37956 cat confdefs.h >>conftest.$ac_ext
37957 cat >>conftest.$ac_ext <<_ACEOF
37958 /* end confdefs.h.  */
37959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37961 #define $ac_func innocuous_$ac_func
37962
37963 /* System header to define __stub macros and hopefully few prototypes,
37964     which can conflict with char $ac_func (); below.
37965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37966     <limits.h> exists even on freestanding compilers.  */
37967
37968 #ifdef __STDC__
37969 # include <limits.h>
37970 #else
37971 # include <assert.h>
37972 #endif
37973
37974 #undef $ac_func
37975
37976 /* Override any GCC internal prototype to avoid an error.
37977    Use char because int might match the return type of a GCC
37978    builtin and then its argument prototype would still apply.  */
37979 #ifdef __cplusplus
37980 extern "C"
37981 #endif
37982 char $ac_func ();
37983 /* The GNU C library defines this for functions which it implements
37984     to always fail with ENOSYS.  Some functions are actually named
37985     something starting with __ and the normal name is an alias.  */
37986 #if defined __stub_$ac_func || defined __stub___$ac_func
37987 choke me
37988 #endif
37989
37990 int
37991 main ()
37992 {
37993 return $ac_func ();
37994   ;
37995   return 0;
37996 }
37997 _ACEOF
37998 rm -f conftest.$ac_objext conftest$ac_exeext
37999 if { (ac_try="$ac_link"
38000 case "(($ac_try" in
38001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38002   *) ac_try_echo=$ac_try;;
38003 esac
38004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38005   (eval "$ac_link") 2>conftest.er1
38006   ac_status=$?
38007   grep -v '^ *+' conftest.er1 >conftest.err
38008   rm -f conftest.er1
38009   cat conftest.err >&5
38010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011   (exit $ac_status); } && {
38012          test -z "$ac_c_werror_flag" ||
38013          test ! -s conftest.err
38014        } && test -s conftest$ac_exeext &&
38015        $as_test_x conftest$ac_exeext; then
38016   eval "$as_ac_var=yes"
38017 else
38018   echo "$as_me: failed program was:" >&5
38019 sed 's/^/| /' conftest.$ac_ext >&5
38020
38021         eval "$as_ac_var=no"
38022 fi
38023
38024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38025       conftest$ac_exeext conftest.$ac_ext
38026 fi
38027 ac_res=`eval echo '${'$as_ac_var'}'`
38028                { echo "$as_me:$LINENO: result: $ac_res" >&5
38029 echo "${ECHO_T}$ac_res" >&6; }
38030 if test `eval echo '${'$as_ac_var'}'` = yes; then
38031   cat >>confdefs.h <<_ACEOF
38032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38033 _ACEOF
38034
38035 fi
38036 done
38037
38038
38039
38040
38041
38042
38043 for ac_func in snprintf vsnprintf gethostid fseeko
38044 do
38045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38049   echo $ECHO_N "(cached) $ECHO_C" >&6
38050 else
38051   cat >conftest.$ac_ext <<_ACEOF
38052 /* confdefs.h.  */
38053 _ACEOF
38054 cat confdefs.h >>conftest.$ac_ext
38055 cat >>conftest.$ac_ext <<_ACEOF
38056 /* end confdefs.h.  */
38057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38059 #define $ac_func innocuous_$ac_func
38060
38061 /* System header to define __stub macros and hopefully few prototypes,
38062     which can conflict with char $ac_func (); below.
38063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38064     <limits.h> exists even on freestanding compilers.  */
38065
38066 #ifdef __STDC__
38067 # include <limits.h>
38068 #else
38069 # include <assert.h>
38070 #endif
38071
38072 #undef $ac_func
38073
38074 /* Override any GCC internal prototype to avoid an error.
38075    Use char because int might match the return type of a GCC
38076    builtin and then its argument prototype would still apply.  */
38077 #ifdef __cplusplus
38078 extern "C"
38079 #endif
38080 char $ac_func ();
38081 /* The GNU C library defines this for functions which it implements
38082     to always fail with ENOSYS.  Some functions are actually named
38083     something starting with __ and the normal name is an alias.  */
38084 #if defined __stub_$ac_func || defined __stub___$ac_func
38085 choke me
38086 #endif
38087
38088 int
38089 main ()
38090 {
38091 return $ac_func ();
38092   ;
38093   return 0;
38094 }
38095 _ACEOF
38096 rm -f conftest.$ac_objext conftest$ac_exeext
38097 if { (ac_try="$ac_link"
38098 case "(($ac_try" in
38099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38100   *) ac_try_echo=$ac_try;;
38101 esac
38102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38103   (eval "$ac_link") 2>conftest.er1
38104   ac_status=$?
38105   grep -v '^ *+' conftest.er1 >conftest.err
38106   rm -f conftest.er1
38107   cat conftest.err >&5
38108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109   (exit $ac_status); } && {
38110          test -z "$ac_c_werror_flag" ||
38111          test ! -s conftest.err
38112        } && test -s conftest$ac_exeext &&
38113        $as_test_x conftest$ac_exeext; then
38114   eval "$as_ac_var=yes"
38115 else
38116   echo "$as_me: failed program was:" >&5
38117 sed 's/^/| /' conftest.$ac_ext >&5
38118
38119         eval "$as_ac_var=no"
38120 fi
38121
38122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38123       conftest$ac_exeext conftest.$ac_ext
38124 fi
38125 ac_res=`eval echo '${'$as_ac_var'}'`
38126                { echo "$as_me:$LINENO: result: $ac_res" >&5
38127 echo "${ECHO_T}$ac_res" >&6; }
38128 if test `eval echo '${'$as_ac_var'}'` = yes; then
38129   cat >>confdefs.h <<_ACEOF
38130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38131 _ACEOF
38132
38133 fi
38134 done
38135
38136
38137 { echo "$as_me:$LINENO: checking for va_copy" >&5
38138 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38139 if test "${ba_cv_va_copy+set}" = set; then
38140   echo $ECHO_N "(cached) $ECHO_C" >&6
38141 else
38142
38143        cat >conftest.$ac_ext <<_ACEOF
38144 /* confdefs.h.  */
38145 _ACEOF
38146 cat confdefs.h >>conftest.$ac_ext
38147 cat >>conftest.$ac_ext <<_ACEOF
38148 /* end confdefs.h.  */
38149
38150               #include <stdarg.h>
38151               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38152               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38153
38154 int
38155 main ()
38156 {
38157
38158               call_use_va_copy(1,2,3)
38159
38160   ;
38161   return 0;
38162 }
38163 _ACEOF
38164 rm -f conftest.$ac_objext conftest$ac_exeext
38165 if { (ac_try="$ac_link"
38166 case "(($ac_try" in
38167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38168   *) ac_try_echo=$ac_try;;
38169 esac
38170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38171   (eval "$ac_link") 2>conftest.er1
38172   ac_status=$?
38173   grep -v '^ *+' conftest.er1 >conftest.err
38174   rm -f conftest.er1
38175   cat conftest.err >&5
38176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177   (exit $ac_status); } && {
38178          test -z "$ac_c_werror_flag" ||
38179          test ! -s conftest.err
38180        } && test -s conftest$ac_exeext &&
38181        $as_test_x conftest$ac_exeext; then
38182
38183               ba_cv_va_copy=yes,
38184
38185 else
38186   echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38188
38189
38190               ba_cv_va_copy=no
38191
38192
38193 fi
38194
38195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38196       conftest$ac_exeext conftest.$ac_ext
38197
38198
38199 fi
38200 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38201 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38202 test $ba_cv_va_copy = yes &&
38203 cat >>confdefs.h <<\_ACEOF
38204 #define HAVE_VA_COPY 1
38205 _ACEOF
38206
38207
38208
38209
38210
38211
38212 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38213 do
38214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38218   echo $ECHO_N "(cached) $ECHO_C" >&6
38219 else
38220   cat >conftest.$ac_ext <<_ACEOF
38221 /* confdefs.h.  */
38222 _ACEOF
38223 cat confdefs.h >>conftest.$ac_ext
38224 cat >>conftest.$ac_ext <<_ACEOF
38225 /* end confdefs.h.  */
38226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38228 #define $ac_func innocuous_$ac_func
38229
38230 /* System header to define __stub macros and hopefully few prototypes,
38231     which can conflict with char $ac_func (); below.
38232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38233     <limits.h> exists even on freestanding compilers.  */
38234
38235 #ifdef __STDC__
38236 # include <limits.h>
38237 #else
38238 # include <assert.h>
38239 #endif
38240
38241 #undef $ac_func
38242
38243 /* Override any GCC internal prototype to avoid an error.
38244    Use char because int might match the return type of a GCC
38245    builtin and then its argument prototype would still apply.  */
38246 #ifdef __cplusplus
38247 extern "C"
38248 #endif
38249 char $ac_func ();
38250 /* The GNU C library defines this for functions which it implements
38251     to always fail with ENOSYS.  Some functions are actually named
38252     something starting with __ and the normal name is an alias.  */
38253 #if defined __stub_$ac_func || defined __stub___$ac_func
38254 choke me
38255 #endif
38256
38257 int
38258 main ()
38259 {
38260 return $ac_func ();
38261   ;
38262   return 0;
38263 }
38264 _ACEOF
38265 rm -f conftest.$ac_objext conftest$ac_exeext
38266 if { (ac_try="$ac_link"
38267 case "(($ac_try" in
38268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38269   *) ac_try_echo=$ac_try;;
38270 esac
38271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38272   (eval "$ac_link") 2>conftest.er1
38273   ac_status=$?
38274   grep -v '^ *+' conftest.er1 >conftest.err
38275   rm -f conftest.er1
38276   cat conftest.err >&5
38277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278   (exit $ac_status); } && {
38279          test -z "$ac_c_werror_flag" ||
38280          test ! -s conftest.err
38281        } && test -s conftest$ac_exeext &&
38282        $as_test_x conftest$ac_exeext; then
38283   eval "$as_ac_var=yes"
38284 else
38285   echo "$as_me: failed program was:" >&5
38286 sed 's/^/| /' conftest.$ac_ext >&5
38287
38288         eval "$as_ac_var=no"
38289 fi
38290
38291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38292       conftest$ac_exeext conftest.$ac_ext
38293 fi
38294 ac_res=`eval echo '${'$as_ac_var'}'`
38295                { echo "$as_me:$LINENO: result: $ac_res" >&5
38296 echo "${ECHO_T}$ac_res" >&6; }
38297 if test `eval echo '${'$as_ac_var'}'` = yes; then
38298   cat >>confdefs.h <<_ACEOF
38299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38300 _ACEOF
38301
38302 fi
38303 done
38304
38305
38306 # If resolver functions are not in libc check for -lnsl or -lresolv.
38307 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38308 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38309 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38310   echo $ECHO_N "(cached) $ECHO_C" >&6
38311 else
38312   cat >conftest.$ac_ext <<_ACEOF
38313 /* confdefs.h.  */
38314 _ACEOF
38315 cat confdefs.h >>conftest.$ac_ext
38316 cat >>conftest.$ac_ext <<_ACEOF
38317 /* end confdefs.h.  */
38318 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38320 #define gethostbyname_r innocuous_gethostbyname_r
38321
38322 /* System header to define __stub macros and hopefully few prototypes,
38323     which can conflict with char gethostbyname_r (); below.
38324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38325     <limits.h> exists even on freestanding compilers.  */
38326
38327 #ifdef __STDC__
38328 # include <limits.h>
38329 #else
38330 # include <assert.h>
38331 #endif
38332
38333 #undef gethostbyname_r
38334
38335 /* Override any GCC internal prototype to avoid an error.
38336    Use char because int might match the return type of a GCC
38337    builtin and then its argument prototype would still apply.  */
38338 #ifdef __cplusplus
38339 extern "C"
38340 #endif
38341 char gethostbyname_r ();
38342 /* The GNU C library defines this for functions which it implements
38343     to always fail with ENOSYS.  Some functions are actually named
38344     something starting with __ and the normal name is an alias.  */
38345 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38346 choke me
38347 #endif
38348
38349 int
38350 main ()
38351 {
38352 return gethostbyname_r ();
38353   ;
38354   return 0;
38355 }
38356 _ACEOF
38357 rm -f conftest.$ac_objext conftest$ac_exeext
38358 if { (ac_try="$ac_link"
38359 case "(($ac_try" in
38360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38361   *) ac_try_echo=$ac_try;;
38362 esac
38363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38364   (eval "$ac_link") 2>conftest.er1
38365   ac_status=$?
38366   grep -v '^ *+' conftest.er1 >conftest.err
38367   rm -f conftest.er1
38368   cat conftest.err >&5
38369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370   (exit $ac_status); } && {
38371          test -z "$ac_c_werror_flag" ||
38372          test ! -s conftest.err
38373        } && test -s conftest$ac_exeext &&
38374        $as_test_x conftest$ac_exeext; then
38375   ac_cv_func_gethostbyname_r=yes
38376 else
38377   echo "$as_me: failed program was:" >&5
38378 sed 's/^/| /' conftest.$ac_ext >&5
38379
38380         ac_cv_func_gethostbyname_r=no
38381 fi
38382
38383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38384       conftest$ac_exeext conftest.$ac_ext
38385 fi
38386 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38387 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38388 if test $ac_cv_func_gethostbyname_r = yes; then
38389   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38390 echo "${ECHO_T}using libc's resolver" >&6; }
38391 else
38392
38393 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38394 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38395 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38396   echo $ECHO_N "(cached) $ECHO_C" >&6
38397 else
38398   ac_check_lib_save_LIBS=$LIBS
38399 LIBS="-lnsl  $LIBS"
38400 cat >conftest.$ac_ext <<_ACEOF
38401 /* confdefs.h.  */
38402 _ACEOF
38403 cat confdefs.h >>conftest.$ac_ext
38404 cat >>conftest.$ac_ext <<_ACEOF
38405 /* end confdefs.h.  */
38406
38407 /* Override any GCC internal prototype to avoid an error.
38408    Use char because int might match the return type of a GCC
38409    builtin and then its argument prototype would still apply.  */
38410 #ifdef __cplusplus
38411 extern "C"
38412 #endif
38413 char gethostbyname_r ();
38414 int
38415 main ()
38416 {
38417 return gethostbyname_r ();
38418   ;
38419   return 0;
38420 }
38421 _ACEOF
38422 rm -f conftest.$ac_objext conftest$ac_exeext
38423 if { (ac_try="$ac_link"
38424 case "(($ac_try" in
38425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38426   *) ac_try_echo=$ac_try;;
38427 esac
38428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38429   (eval "$ac_link") 2>conftest.er1
38430   ac_status=$?
38431   grep -v '^ *+' conftest.er1 >conftest.err
38432   rm -f conftest.er1
38433   cat conftest.err >&5
38434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435   (exit $ac_status); } && {
38436          test -z "$ac_c_werror_flag" ||
38437          test ! -s conftest.err
38438        } && test -s conftest$ac_exeext &&
38439        $as_test_x conftest$ac_exeext; then
38440   ac_cv_lib_nsl_gethostbyname_r=yes
38441 else
38442   echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38444
38445         ac_cv_lib_nsl_gethostbyname_r=no
38446 fi
38447
38448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38449       conftest$ac_exeext conftest.$ac_ext
38450 LIBS=$ac_check_lib_save_LIBS
38451 fi
38452 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38453 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38454 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38455   cat >>confdefs.h <<_ACEOF
38456 #define HAVE_LIBNSL 1
38457 _ACEOF
38458
38459   LIBS="-lnsl $LIBS"
38460
38461 fi
38462
38463
38464 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38465 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38466 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38467   echo $ECHO_N "(cached) $ECHO_C" >&6
38468 else
38469   ac_check_lib_save_LIBS=$LIBS
38470 LIBS="-lresolv  $LIBS"
38471 cat >conftest.$ac_ext <<_ACEOF
38472 /* confdefs.h.  */
38473 _ACEOF
38474 cat confdefs.h >>conftest.$ac_ext
38475 cat >>conftest.$ac_ext <<_ACEOF
38476 /* end confdefs.h.  */
38477
38478 /* Override any GCC internal prototype to avoid an error.
38479    Use char because int might match the return type of a GCC
38480    builtin and then its argument prototype would still apply.  */
38481 #ifdef __cplusplus
38482 extern "C"
38483 #endif
38484 char gethostbyname_r ();
38485 int
38486 main ()
38487 {
38488 return gethostbyname_r ();
38489   ;
38490   return 0;
38491 }
38492 _ACEOF
38493 rm -f conftest.$ac_objext conftest$ac_exeext
38494 if { (ac_try="$ac_link"
38495 case "(($ac_try" in
38496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38497   *) ac_try_echo=$ac_try;;
38498 esac
38499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38500   (eval "$ac_link") 2>conftest.er1
38501   ac_status=$?
38502   grep -v '^ *+' conftest.er1 >conftest.err
38503   rm -f conftest.er1
38504   cat conftest.err >&5
38505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506   (exit $ac_status); } && {
38507          test -z "$ac_c_werror_flag" ||
38508          test ! -s conftest.err
38509        } && test -s conftest$ac_exeext &&
38510        $as_test_x conftest$ac_exeext; then
38511   ac_cv_lib_resolv_gethostbyname_r=yes
38512 else
38513   echo "$as_me: failed program was:" >&5
38514 sed 's/^/| /' conftest.$ac_ext >&5
38515
38516         ac_cv_lib_resolv_gethostbyname_r=no
38517 fi
38518
38519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38520       conftest$ac_exeext conftest.$ac_ext
38521 LIBS=$ac_check_lib_save_LIBS
38522 fi
38523 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38524 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38525 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38526   cat >>confdefs.h <<_ACEOF
38527 #define HAVE_LIBRESOLV 1
38528 _ACEOF
38529
38530   LIBS="-lresolv $LIBS"
38531
38532 fi
38533
38534 fi
38535
38536
38537
38538 for ac_func in inet_pton
38539 do
38540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38544   echo $ECHO_N "(cached) $ECHO_C" >&6
38545 else
38546   cat >conftest.$ac_ext <<_ACEOF
38547 /* confdefs.h.  */
38548 _ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h.  */
38552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38554 #define $ac_func innocuous_$ac_func
38555
38556 /* System header to define __stub macros and hopefully few prototypes,
38557     which can conflict with char $ac_func (); below.
38558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38559     <limits.h> exists even on freestanding compilers.  */
38560
38561 #ifdef __STDC__
38562 # include <limits.h>
38563 #else
38564 # include <assert.h>
38565 #endif
38566
38567 #undef $ac_func
38568
38569 /* Override any GCC internal prototype to avoid an error.
38570    Use char because int might match the return type of a GCC
38571    builtin and then its argument prototype would still apply.  */
38572 #ifdef __cplusplus
38573 extern "C"
38574 #endif
38575 char $ac_func ();
38576 /* The GNU C library defines this for functions which it implements
38577     to always fail with ENOSYS.  Some functions are actually named
38578     something starting with __ and the normal name is an alias.  */
38579 #if defined __stub_$ac_func || defined __stub___$ac_func
38580 choke me
38581 #endif
38582
38583 int
38584 main ()
38585 {
38586 return $ac_func ();
38587   ;
38588   return 0;
38589 }
38590 _ACEOF
38591 rm -f conftest.$ac_objext conftest$ac_exeext
38592 if { (ac_try="$ac_link"
38593 case "(($ac_try" in
38594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38595   *) ac_try_echo=$ac_try;;
38596 esac
38597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38598   (eval "$ac_link") 2>conftest.er1
38599   ac_status=$?
38600   grep -v '^ *+' conftest.er1 >conftest.err
38601   rm -f conftest.er1
38602   cat conftest.err >&5
38603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604   (exit $ac_status); } && {
38605          test -z "$ac_c_werror_flag" ||
38606          test ! -s conftest.err
38607        } && test -s conftest$ac_exeext &&
38608        $as_test_x conftest$ac_exeext; then
38609   eval "$as_ac_var=yes"
38610 else
38611   echo "$as_me: failed program was:" >&5
38612 sed 's/^/| /' conftest.$ac_ext >&5
38613
38614         eval "$as_ac_var=no"
38615 fi
38616
38617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38618       conftest$ac_exeext conftest.$ac_ext
38619 fi
38620 ac_res=`eval echo '${'$as_ac_var'}'`
38621                { echo "$as_me:$LINENO: result: $ac_res" >&5
38622 echo "${ECHO_T}$ac_res" >&6; }
38623 if test `eval echo '${'$as_ac_var'}'` = yes; then
38624   cat >>confdefs.h <<_ACEOF
38625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38626 _ACEOF
38627  cat >>confdefs.h <<\_ACEOF
38628 #define HAVE_INET_PTON 1
38629 _ACEOF
38630
38631 fi
38632 done
38633
38634
38635 for ac_func in inet_ntop
38636 do
38637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38641   echo $ECHO_N "(cached) $ECHO_C" >&6
38642 else
38643   cat >conftest.$ac_ext <<_ACEOF
38644 /* confdefs.h.  */
38645 _ACEOF
38646 cat confdefs.h >>conftest.$ac_ext
38647 cat >>conftest.$ac_ext <<_ACEOF
38648 /* end confdefs.h.  */
38649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38651 #define $ac_func innocuous_$ac_func
38652
38653 /* System header to define __stub macros and hopefully few prototypes,
38654     which can conflict with char $ac_func (); below.
38655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38656     <limits.h> exists even on freestanding compilers.  */
38657
38658 #ifdef __STDC__
38659 # include <limits.h>
38660 #else
38661 # include <assert.h>
38662 #endif
38663
38664 #undef $ac_func
38665
38666 /* Override any GCC internal prototype to avoid an error.
38667    Use char because int might match the return type of a GCC
38668    builtin and then its argument prototype would still apply.  */
38669 #ifdef __cplusplus
38670 extern "C"
38671 #endif
38672 char $ac_func ();
38673 /* The GNU C library defines this for functions which it implements
38674     to always fail with ENOSYS.  Some functions are actually named
38675     something starting with __ and the normal name is an alias.  */
38676 #if defined __stub_$ac_func || defined __stub___$ac_func
38677 choke me
38678 #endif
38679
38680 int
38681 main ()
38682 {
38683 return $ac_func ();
38684   ;
38685   return 0;
38686 }
38687 _ACEOF
38688 rm -f conftest.$ac_objext conftest$ac_exeext
38689 if { (ac_try="$ac_link"
38690 case "(($ac_try" in
38691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38692   *) ac_try_echo=$ac_try;;
38693 esac
38694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38695   (eval "$ac_link") 2>conftest.er1
38696   ac_status=$?
38697   grep -v '^ *+' conftest.er1 >conftest.err
38698   rm -f conftest.er1
38699   cat conftest.err >&5
38700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701   (exit $ac_status); } && {
38702          test -z "$ac_c_werror_flag" ||
38703          test ! -s conftest.err
38704        } && test -s conftest$ac_exeext &&
38705        $as_test_x conftest$ac_exeext; then
38706   eval "$as_ac_var=yes"
38707 else
38708   echo "$as_me: failed program was:" >&5
38709 sed 's/^/| /' conftest.$ac_ext >&5
38710
38711         eval "$as_ac_var=no"
38712 fi
38713
38714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38715       conftest$ac_exeext conftest.$ac_ext
38716 fi
38717 ac_res=`eval echo '${'$as_ac_var'}'`
38718                { echo "$as_me:$LINENO: result: $ac_res" >&5
38719 echo "${ECHO_T}$ac_res" >&6; }
38720 if test `eval echo '${'$as_ac_var'}'` = yes; then
38721   cat >>confdefs.h <<_ACEOF
38722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38723 _ACEOF
38724  cat >>confdefs.h <<\_ACEOF
38725 #define HAVE_INET_NTOP 1
38726 _ACEOF
38727
38728 fi
38729 done
38730
38731
38732 for ac_func in gethostbyname2
38733 do
38734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38738   echo $ECHO_N "(cached) $ECHO_C" >&6
38739 else
38740   cat >conftest.$ac_ext <<_ACEOF
38741 /* confdefs.h.  */
38742 _ACEOF
38743 cat confdefs.h >>conftest.$ac_ext
38744 cat >>conftest.$ac_ext <<_ACEOF
38745 /* end confdefs.h.  */
38746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38748 #define $ac_func innocuous_$ac_func
38749
38750 /* System header to define __stub macros and hopefully few prototypes,
38751     which can conflict with char $ac_func (); below.
38752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38753     <limits.h> exists even on freestanding compilers.  */
38754
38755 #ifdef __STDC__
38756 # include <limits.h>
38757 #else
38758 # include <assert.h>
38759 #endif
38760
38761 #undef $ac_func
38762
38763 /* Override any GCC internal prototype to avoid an error.
38764    Use char because int might match the return type of a GCC
38765    builtin and then its argument prototype would still apply.  */
38766 #ifdef __cplusplus
38767 extern "C"
38768 #endif
38769 char $ac_func ();
38770 /* The GNU C library defines this for functions which it implements
38771     to always fail with ENOSYS.  Some functions are actually named
38772     something starting with __ and the normal name is an alias.  */
38773 #if defined __stub_$ac_func || defined __stub___$ac_func
38774 choke me
38775 #endif
38776
38777 int
38778 main ()
38779 {
38780 return $ac_func ();
38781   ;
38782   return 0;
38783 }
38784 _ACEOF
38785 rm -f conftest.$ac_objext conftest$ac_exeext
38786 if { (ac_try="$ac_link"
38787 case "(($ac_try" in
38788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38789   *) ac_try_echo=$ac_try;;
38790 esac
38791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38792   (eval "$ac_link") 2>conftest.er1
38793   ac_status=$?
38794   grep -v '^ *+' conftest.er1 >conftest.err
38795   rm -f conftest.er1
38796   cat conftest.err >&5
38797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798   (exit $ac_status); } && {
38799          test -z "$ac_c_werror_flag" ||
38800          test ! -s conftest.err
38801        } && test -s conftest$ac_exeext &&
38802        $as_test_x conftest$ac_exeext; then
38803   eval "$as_ac_var=yes"
38804 else
38805   echo "$as_me: failed program was:" >&5
38806 sed 's/^/| /' conftest.$ac_ext >&5
38807
38808         eval "$as_ac_var=no"
38809 fi
38810
38811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38812       conftest$ac_exeext conftest.$ac_ext
38813 fi
38814 ac_res=`eval echo '${'$as_ac_var'}'`
38815                { echo "$as_me:$LINENO: result: $ac_res" >&5
38816 echo "${ECHO_T}$ac_res" >&6; }
38817 if test `eval echo '${'$as_ac_var'}'` = yes; then
38818   cat >>confdefs.h <<_ACEOF
38819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38820 _ACEOF
38821  cat >>confdefs.h <<\_ACEOF
38822 #define HAVE_GETHOSTBYNAME2 1
38823 _ACEOF
38824
38825 fi
38826 done
38827
38828
38829 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38830 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38831 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38832   echo $ECHO_N "(cached) $ECHO_C" >&6
38833 else
38834
38835        cat >conftest.$ac_ext <<_ACEOF
38836 /* confdefs.h.  */
38837 _ACEOF
38838 cat confdefs.h >>conftest.$ac_ext
38839 cat >>conftest.$ac_ext <<_ACEOF
38840 /* end confdefs.h.  */
38841
38842               #include <sys/socket.h>
38843
38844 int
38845 main ()
38846 {
38847
38848               struct sockaddr s; s.sa_len;
38849
38850   ;
38851   return 0;
38852 }
38853 _ACEOF
38854 rm -f conftest.$ac_objext
38855 if { (ac_try="$ac_compile"
38856 case "(($ac_try" in
38857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38858   *) ac_try_echo=$ac_try;;
38859 esac
38860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38861   (eval "$ac_compile") 2>conftest.er1
38862   ac_status=$?
38863   grep -v '^ *+' conftest.er1 >conftest.err
38864   rm -f conftest.er1
38865   cat conftest.err >&5
38866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38867   (exit $ac_status); } && {
38868          test -z "$ac_c_werror_flag" ||
38869          test ! -s conftest.err
38870        } && test -s conftest.$ac_objext; then
38871
38872              ac_cv_struct_sockaddr_sa_len=yes
38873
38874 else
38875   echo "$as_me: failed program was:" >&5
38876 sed 's/^/| /' conftest.$ac_ext >&5
38877
38878         ac_cv_struct_sockaddr_sa_len=no
38879
38880
38881 fi
38882
38883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38884
38885
38886 fi
38887 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38888 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38889
38890 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38891
38892 cat >>confdefs.h <<\_ACEOF
38893 #define HAVE_SA_LEN 1
38894 _ACEOF
38895
38896 fi
38897
38898
38899 for ac_func in strftime
38900 do
38901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38905   echo $ECHO_N "(cached) $ECHO_C" >&6
38906 else
38907   cat >conftest.$ac_ext <<_ACEOF
38908 /* confdefs.h.  */
38909 _ACEOF
38910 cat confdefs.h >>conftest.$ac_ext
38911 cat >>conftest.$ac_ext <<_ACEOF
38912 /* end confdefs.h.  */
38913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38915 #define $ac_func innocuous_$ac_func
38916
38917 /* System header to define __stub macros and hopefully few prototypes,
38918     which can conflict with char $ac_func (); below.
38919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38920     <limits.h> exists even on freestanding compilers.  */
38921
38922 #ifdef __STDC__
38923 # include <limits.h>
38924 #else
38925 # include <assert.h>
38926 #endif
38927
38928 #undef $ac_func
38929
38930 /* Override any GCC internal prototype to avoid an error.
38931    Use char because int might match the return type of a GCC
38932    builtin and then its argument prototype would still apply.  */
38933 #ifdef __cplusplus
38934 extern "C"
38935 #endif
38936 char $ac_func ();
38937 /* The GNU C library defines this for functions which it implements
38938     to always fail with ENOSYS.  Some functions are actually named
38939     something starting with __ and the normal name is an alias.  */
38940 #if defined __stub_$ac_func || defined __stub___$ac_func
38941 choke me
38942 #endif
38943
38944 int
38945 main ()
38946 {
38947 return $ac_func ();
38948   ;
38949   return 0;
38950 }
38951 _ACEOF
38952 rm -f conftest.$ac_objext conftest$ac_exeext
38953 if { (ac_try="$ac_link"
38954 case "(($ac_try" in
38955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38956   *) ac_try_echo=$ac_try;;
38957 esac
38958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38959   (eval "$ac_link") 2>conftest.er1
38960   ac_status=$?
38961   grep -v '^ *+' conftest.er1 >conftest.err
38962   rm -f conftest.er1
38963   cat conftest.err >&5
38964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965   (exit $ac_status); } && {
38966          test -z "$ac_c_werror_flag" ||
38967          test ! -s conftest.err
38968        } && test -s conftest$ac_exeext &&
38969        $as_test_x conftest$ac_exeext; then
38970   eval "$as_ac_var=yes"
38971 else
38972   echo "$as_me: failed program was:" >&5
38973 sed 's/^/| /' conftest.$ac_ext >&5
38974
38975         eval "$as_ac_var=no"
38976 fi
38977
38978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38979       conftest$ac_exeext conftest.$ac_ext
38980 fi
38981 ac_res=`eval echo '${'$as_ac_var'}'`
38982                { echo "$as_me:$LINENO: result: $ac_res" >&5
38983 echo "${ECHO_T}$ac_res" >&6; }
38984 if test `eval echo '${'$as_ac_var'}'` = yes; then
38985   cat >>confdefs.h <<_ACEOF
38986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38987 _ACEOF
38988
38989 else
38990   # strftime is in -lintl on SCO UNIX.
38991 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38992 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
38993 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38994   echo $ECHO_N "(cached) $ECHO_C" >&6
38995 else
38996   ac_check_lib_save_LIBS=$LIBS
38997 LIBS="-lintl  $LIBS"
38998 cat >conftest.$ac_ext <<_ACEOF
38999 /* confdefs.h.  */
39000 _ACEOF
39001 cat confdefs.h >>conftest.$ac_ext
39002 cat >>conftest.$ac_ext <<_ACEOF
39003 /* end confdefs.h.  */
39004
39005 /* Override any GCC internal prototype to avoid an error.
39006    Use char because int might match the return type of a GCC
39007    builtin and then its argument prototype would still apply.  */
39008 #ifdef __cplusplus
39009 extern "C"
39010 #endif
39011 char strftime ();
39012 int
39013 main ()
39014 {
39015 return strftime ();
39016   ;
39017   return 0;
39018 }
39019 _ACEOF
39020 rm -f conftest.$ac_objext conftest$ac_exeext
39021 if { (ac_try="$ac_link"
39022 case "(($ac_try" in
39023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39024   *) ac_try_echo=$ac_try;;
39025 esac
39026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39027   (eval "$ac_link") 2>conftest.er1
39028   ac_status=$?
39029   grep -v '^ *+' conftest.er1 >conftest.err
39030   rm -f conftest.er1
39031   cat conftest.err >&5
39032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033   (exit $ac_status); } && {
39034          test -z "$ac_c_werror_flag" ||
39035          test ! -s conftest.err
39036        } && test -s conftest$ac_exeext &&
39037        $as_test_x conftest$ac_exeext; then
39038   ac_cv_lib_intl_strftime=yes
39039 else
39040   echo "$as_me: failed program was:" >&5
39041 sed 's/^/| /' conftest.$ac_ext >&5
39042
39043         ac_cv_lib_intl_strftime=no
39044 fi
39045
39046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39047       conftest$ac_exeext conftest.$ac_ext
39048 LIBS=$ac_check_lib_save_LIBS
39049 fi
39050 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39051 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39052 if test $ac_cv_lib_intl_strftime = yes; then
39053   cat >>confdefs.h <<\_ACEOF
39054 #define HAVE_STRFTIME 1
39055 _ACEOF
39056
39057 LIBS="-lintl $LIBS"
39058 fi
39059
39060 fi
39061 done
39062
39063
39064 for ac_func in vprintf
39065 do
39066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39070   echo $ECHO_N "(cached) $ECHO_C" >&6
39071 else
39072   cat >conftest.$ac_ext <<_ACEOF
39073 /* confdefs.h.  */
39074 _ACEOF
39075 cat confdefs.h >>conftest.$ac_ext
39076 cat >>conftest.$ac_ext <<_ACEOF
39077 /* end confdefs.h.  */
39078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39080 #define $ac_func innocuous_$ac_func
39081
39082 /* System header to define __stub macros and hopefully few prototypes,
39083     which can conflict with char $ac_func (); below.
39084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39085     <limits.h> exists even on freestanding compilers.  */
39086
39087 #ifdef __STDC__
39088 # include <limits.h>
39089 #else
39090 # include <assert.h>
39091 #endif
39092
39093 #undef $ac_func
39094
39095 /* Override any GCC internal prototype to avoid an error.
39096    Use char because int might match the return type of a GCC
39097    builtin and then its argument prototype would still apply.  */
39098 #ifdef __cplusplus
39099 extern "C"
39100 #endif
39101 char $ac_func ();
39102 /* The GNU C library defines this for functions which it implements
39103     to always fail with ENOSYS.  Some functions are actually named
39104     something starting with __ and the normal name is an alias.  */
39105 #if defined __stub_$ac_func || defined __stub___$ac_func
39106 choke me
39107 #endif
39108
39109 int
39110 main ()
39111 {
39112 return $ac_func ();
39113   ;
39114   return 0;
39115 }
39116 _ACEOF
39117 rm -f conftest.$ac_objext conftest$ac_exeext
39118 if { (ac_try="$ac_link"
39119 case "(($ac_try" in
39120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39121   *) ac_try_echo=$ac_try;;
39122 esac
39123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39124   (eval "$ac_link") 2>conftest.er1
39125   ac_status=$?
39126   grep -v '^ *+' conftest.er1 >conftest.err
39127   rm -f conftest.er1
39128   cat conftest.err >&5
39129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130   (exit $ac_status); } && {
39131          test -z "$ac_c_werror_flag" ||
39132          test ! -s conftest.err
39133        } && test -s conftest$ac_exeext &&
39134        $as_test_x conftest$ac_exeext; then
39135   eval "$as_ac_var=yes"
39136 else
39137   echo "$as_me: failed program was:" >&5
39138 sed 's/^/| /' conftest.$ac_ext >&5
39139
39140         eval "$as_ac_var=no"
39141 fi
39142
39143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39144       conftest$ac_exeext conftest.$ac_ext
39145 fi
39146 ac_res=`eval echo '${'$as_ac_var'}'`
39147                { echo "$as_me:$LINENO: result: $ac_res" >&5
39148 echo "${ECHO_T}$ac_res" >&6; }
39149 if test `eval echo '${'$as_ac_var'}'` = yes; then
39150   cat >>confdefs.h <<_ACEOF
39151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39152 _ACEOF
39153
39154 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39155 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39156 if test "${ac_cv_func__doprnt+set}" = set; then
39157   echo $ECHO_N "(cached) $ECHO_C" >&6
39158 else
39159   cat >conftest.$ac_ext <<_ACEOF
39160 /* confdefs.h.  */
39161 _ACEOF
39162 cat confdefs.h >>conftest.$ac_ext
39163 cat >>conftest.$ac_ext <<_ACEOF
39164 /* end confdefs.h.  */
39165 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39167 #define _doprnt innocuous__doprnt
39168
39169 /* System header to define __stub macros and hopefully few prototypes,
39170     which can conflict with char _doprnt (); below.
39171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39172     <limits.h> exists even on freestanding compilers.  */
39173
39174 #ifdef __STDC__
39175 # include <limits.h>
39176 #else
39177 # include <assert.h>
39178 #endif
39179
39180 #undef _doprnt
39181
39182 /* Override any GCC internal prototype to avoid an error.
39183    Use char because int might match the return type of a GCC
39184    builtin and then its argument prototype would still apply.  */
39185 #ifdef __cplusplus
39186 extern "C"
39187 #endif
39188 char _doprnt ();
39189 /* The GNU C library defines this for functions which it implements
39190     to always fail with ENOSYS.  Some functions are actually named
39191     something starting with __ and the normal name is an alias.  */
39192 #if defined __stub__doprnt || defined __stub____doprnt
39193 choke me
39194 #endif
39195
39196 int
39197 main ()
39198 {
39199 return _doprnt ();
39200   ;
39201   return 0;
39202 }
39203 _ACEOF
39204 rm -f conftest.$ac_objext conftest$ac_exeext
39205 if { (ac_try="$ac_link"
39206 case "(($ac_try" in
39207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39208   *) ac_try_echo=$ac_try;;
39209 esac
39210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39211   (eval "$ac_link") 2>conftest.er1
39212   ac_status=$?
39213   grep -v '^ *+' conftest.er1 >conftest.err
39214   rm -f conftest.er1
39215   cat conftest.err >&5
39216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217   (exit $ac_status); } && {
39218          test -z "$ac_c_werror_flag" ||
39219          test ! -s conftest.err
39220        } && test -s conftest$ac_exeext &&
39221        $as_test_x conftest$ac_exeext; then
39222   ac_cv_func__doprnt=yes
39223 else
39224   echo "$as_me: failed program was:" >&5
39225 sed 's/^/| /' conftest.$ac_ext >&5
39226
39227         ac_cv_func__doprnt=no
39228 fi
39229
39230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39231       conftest$ac_exeext conftest.$ac_ext
39232 fi
39233 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39234 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39235 if test $ac_cv_func__doprnt = yes; then
39236
39237 cat >>confdefs.h <<\_ACEOF
39238 #define HAVE_DOPRNT 1
39239 _ACEOF
39240
39241 fi
39242
39243 fi
39244 done
39245
39246
39247 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39248 # for constant arguments.  Useless!
39249 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39250 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39251 if test "${ac_cv_working_alloca_h+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 #include <alloca.h>
39261 int
39262 main ()
39263 {
39264 char *p = (char *) alloca (2 * sizeof (int));
39265                           if (p) return 0;
39266   ;
39267   return 0;
39268 }
39269 _ACEOF
39270 rm -f conftest.$ac_objext conftest$ac_exeext
39271 if { (ac_try="$ac_link"
39272 case "(($ac_try" in
39273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39274   *) ac_try_echo=$ac_try;;
39275 esac
39276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39277   (eval "$ac_link") 2>conftest.er1
39278   ac_status=$?
39279   grep -v '^ *+' conftest.er1 >conftest.err
39280   rm -f conftest.er1
39281   cat conftest.err >&5
39282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39283   (exit $ac_status); } && {
39284          test -z "$ac_c_werror_flag" ||
39285          test ! -s conftest.err
39286        } && test -s conftest$ac_exeext &&
39287        $as_test_x conftest$ac_exeext; then
39288   ac_cv_working_alloca_h=yes
39289 else
39290   echo "$as_me: failed program was:" >&5
39291 sed 's/^/| /' conftest.$ac_ext >&5
39292
39293         ac_cv_working_alloca_h=no
39294 fi
39295
39296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39297       conftest$ac_exeext conftest.$ac_ext
39298 fi
39299 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39300 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39301 if test $ac_cv_working_alloca_h = yes; then
39302
39303 cat >>confdefs.h <<\_ACEOF
39304 #define HAVE_ALLOCA_H 1
39305 _ACEOF
39306
39307 fi
39308
39309 { echo "$as_me:$LINENO: checking for alloca" >&5
39310 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39311 if test "${ac_cv_func_alloca_works+set}" = set; then
39312   echo $ECHO_N "(cached) $ECHO_C" >&6
39313 else
39314   cat >conftest.$ac_ext <<_ACEOF
39315 /* confdefs.h.  */
39316 _ACEOF
39317 cat confdefs.h >>conftest.$ac_ext
39318 cat >>conftest.$ac_ext <<_ACEOF
39319 /* end confdefs.h.  */
39320 #ifdef __GNUC__
39321 # define alloca __builtin_alloca
39322 #else
39323 # ifdef _MSC_VER
39324 #  include <malloc.h>
39325 #  define alloca _alloca
39326 # else
39327 #  ifdef HAVE_ALLOCA_H
39328 #   include <alloca.h>
39329 #  else
39330 #   ifdef _AIX
39331  #pragma alloca
39332 #   else
39333 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39334 char *alloca ();
39335 #    endif
39336 #   endif
39337 #  endif
39338 # endif
39339 #endif
39340
39341 int
39342 main ()
39343 {
39344 char *p = (char *) alloca (1);
39345                                     if (p) return 0;
39346   ;
39347   return 0;
39348 }
39349 _ACEOF
39350 rm -f conftest.$ac_objext conftest$ac_exeext
39351 if { (ac_try="$ac_link"
39352 case "(($ac_try" in
39353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39354   *) ac_try_echo=$ac_try;;
39355 esac
39356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39357   (eval "$ac_link") 2>conftest.er1
39358   ac_status=$?
39359   grep -v '^ *+' conftest.er1 >conftest.err
39360   rm -f conftest.er1
39361   cat conftest.err >&5
39362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39363   (exit $ac_status); } && {
39364          test -z "$ac_c_werror_flag" ||
39365          test ! -s conftest.err
39366        } && test -s conftest$ac_exeext &&
39367        $as_test_x conftest$ac_exeext; then
39368   ac_cv_func_alloca_works=yes
39369 else
39370   echo "$as_me: failed program was:" >&5
39371 sed 's/^/| /' conftest.$ac_ext >&5
39372
39373         ac_cv_func_alloca_works=no
39374 fi
39375
39376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39377       conftest$ac_exeext conftest.$ac_ext
39378 fi
39379 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39380 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39381
39382 if test $ac_cv_func_alloca_works = yes; then
39383
39384 cat >>confdefs.h <<\_ACEOF
39385 #define HAVE_ALLOCA 1
39386 _ACEOF
39387
39388 else
39389   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39390 # that cause trouble.  Some versions do not even contain alloca or
39391 # contain a buggy version.  If you still want to use their alloca,
39392 # use ar to extract alloca.o from them instead of compiling alloca.c.
39393
39394 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39395
39396 cat >>confdefs.h <<\_ACEOF
39397 #define C_ALLOCA 1
39398 _ACEOF
39399
39400
39401 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39402 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39403 if test "${ac_cv_os_cray+set}" = set; then
39404   echo $ECHO_N "(cached) $ECHO_C" >&6
39405 else
39406   cat >conftest.$ac_ext <<_ACEOF
39407 /* confdefs.h.  */
39408 _ACEOF
39409 cat confdefs.h >>conftest.$ac_ext
39410 cat >>conftest.$ac_ext <<_ACEOF
39411 /* end confdefs.h.  */
39412 #if defined CRAY && ! defined CRAY2
39413 webecray
39414 #else
39415 wenotbecray
39416 #endif
39417
39418 _ACEOF
39419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39420   $EGREP "webecray" >/dev/null 2>&1; then
39421   ac_cv_os_cray=yes
39422 else
39423   ac_cv_os_cray=no
39424 fi
39425 rm -f conftest*
39426
39427 fi
39428 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39429 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39430 if test $ac_cv_os_cray = yes; then
39431   for ac_func in _getb67 GETB67 getb67; do
39432     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39436   echo $ECHO_N "(cached) $ECHO_C" >&6
39437 else
39438   cat >conftest.$ac_ext <<_ACEOF
39439 /* confdefs.h.  */
39440 _ACEOF
39441 cat confdefs.h >>conftest.$ac_ext
39442 cat >>conftest.$ac_ext <<_ACEOF
39443 /* end confdefs.h.  */
39444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39446 #define $ac_func innocuous_$ac_func
39447
39448 /* System header to define __stub macros and hopefully few prototypes,
39449     which can conflict with char $ac_func (); below.
39450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39451     <limits.h> exists even on freestanding compilers.  */
39452
39453 #ifdef __STDC__
39454 # include <limits.h>
39455 #else
39456 # include <assert.h>
39457 #endif
39458
39459 #undef $ac_func
39460
39461 /* Override any GCC internal prototype to avoid an error.
39462    Use char because int might match the return type of a GCC
39463    builtin and then its argument prototype would still apply.  */
39464 #ifdef __cplusplus
39465 extern "C"
39466 #endif
39467 char $ac_func ();
39468 /* The GNU C library defines this for functions which it implements
39469     to always fail with ENOSYS.  Some functions are actually named
39470     something starting with __ and the normal name is an alias.  */
39471 #if defined __stub_$ac_func || defined __stub___$ac_func
39472 choke me
39473 #endif
39474
39475 int
39476 main ()
39477 {
39478 return $ac_func ();
39479   ;
39480   return 0;
39481 }
39482 _ACEOF
39483 rm -f conftest.$ac_objext conftest$ac_exeext
39484 if { (ac_try="$ac_link"
39485 case "(($ac_try" in
39486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39487   *) ac_try_echo=$ac_try;;
39488 esac
39489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39490   (eval "$ac_link") 2>conftest.er1
39491   ac_status=$?
39492   grep -v '^ *+' conftest.er1 >conftest.err
39493   rm -f conftest.er1
39494   cat conftest.err >&5
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); } && {
39497          test -z "$ac_c_werror_flag" ||
39498          test ! -s conftest.err
39499        } && test -s conftest$ac_exeext &&
39500        $as_test_x conftest$ac_exeext; then
39501   eval "$as_ac_var=yes"
39502 else
39503   echo "$as_me: failed program was:" >&5
39504 sed 's/^/| /' conftest.$ac_ext >&5
39505
39506         eval "$as_ac_var=no"
39507 fi
39508
39509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39510       conftest$ac_exeext conftest.$ac_ext
39511 fi
39512 ac_res=`eval echo '${'$as_ac_var'}'`
39513                { echo "$as_me:$LINENO: result: $ac_res" >&5
39514 echo "${ECHO_T}$ac_res" >&6; }
39515 if test `eval echo '${'$as_ac_var'}'` = yes; then
39516
39517 cat >>confdefs.h <<_ACEOF
39518 #define CRAY_STACKSEG_END $ac_func
39519 _ACEOF
39520
39521     break
39522 fi
39523
39524   done
39525 fi
39526
39527 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39528 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39529 if test "${ac_cv_c_stack_direction+set}" = set; then
39530   echo $ECHO_N "(cached) $ECHO_C" >&6
39531 else
39532   if test "$cross_compiling" = yes; then
39533   ac_cv_c_stack_direction=0
39534 else
39535   cat >conftest.$ac_ext <<_ACEOF
39536 /* confdefs.h.  */
39537 _ACEOF
39538 cat confdefs.h >>conftest.$ac_ext
39539 cat >>conftest.$ac_ext <<_ACEOF
39540 /* end confdefs.h.  */
39541 $ac_includes_default
39542 int
39543 find_stack_direction ()
39544 {
39545   static char *addr = 0;
39546   auto char dummy;
39547   if (addr == 0)
39548     {
39549       addr = &dummy;
39550       return find_stack_direction ();
39551     }
39552   else
39553     return (&dummy > addr) ? 1 : -1;
39554 }
39555
39556 int
39557 main ()
39558 {
39559   return find_stack_direction () < 0;
39560 }
39561 _ACEOF
39562 rm -f conftest$ac_exeext
39563 if { (ac_try="$ac_link"
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_link") 2>&5
39570   ac_status=$?
39571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39573   { (case "(($ac_try" in
39574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39575   *) ac_try_echo=$ac_try;;
39576 esac
39577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39578   (eval "$ac_try") 2>&5
39579   ac_status=$?
39580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39581   (exit $ac_status); }; }; then
39582   ac_cv_c_stack_direction=1
39583 else
39584   echo "$as_me: program exited with status $ac_status" >&5
39585 echo "$as_me: failed program was:" >&5
39586 sed 's/^/| /' conftest.$ac_ext >&5
39587
39588 ( exit $ac_status )
39589 ac_cv_c_stack_direction=-1
39590 fi
39591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39592 fi
39593
39594
39595 fi
39596 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39597 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39598
39599 cat >>confdefs.h <<_ACEOF
39600 #define STACK_DIRECTION $ac_cv_c_stack_direction
39601 _ACEOF
39602
39603
39604 fi
39605
39606 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39607 # -lseq on Dynix/PTX, -lgen on Unixware.
39608 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39609 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39610 if test "${ac_cv_search_getmntent+set}" = set; then
39611   echo $ECHO_N "(cached) $ECHO_C" >&6
39612 else
39613   ac_func_search_save_LIBS=$LIBS
39614 cat >conftest.$ac_ext <<_ACEOF
39615 /* confdefs.h.  */
39616 _ACEOF
39617 cat confdefs.h >>conftest.$ac_ext
39618 cat >>conftest.$ac_ext <<_ACEOF
39619 /* end confdefs.h.  */
39620
39621 /* Override any GCC internal prototype to avoid an error.
39622    Use char because int might match the return type of a GCC
39623    builtin and then its argument prototype would still apply.  */
39624 #ifdef __cplusplus
39625 extern "C"
39626 #endif
39627 char getmntent ();
39628 int
39629 main ()
39630 {
39631 return getmntent ();
39632   ;
39633   return 0;
39634 }
39635 _ACEOF
39636 for ac_lib in '' sun seq gen; do
39637   if test -z "$ac_lib"; then
39638     ac_res="none required"
39639   else
39640     ac_res=-l$ac_lib
39641     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39642   fi
39643   rm -f conftest.$ac_objext conftest$ac_exeext
39644 if { (ac_try="$ac_link"
39645 case "(($ac_try" in
39646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39647   *) ac_try_echo=$ac_try;;
39648 esac
39649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39650   (eval "$ac_link") 2>conftest.er1
39651   ac_status=$?
39652   grep -v '^ *+' conftest.er1 >conftest.err
39653   rm -f conftest.er1
39654   cat conftest.err >&5
39655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656   (exit $ac_status); } && {
39657          test -z "$ac_c_werror_flag" ||
39658          test ! -s conftest.err
39659        } && test -s conftest$ac_exeext &&
39660        $as_test_x conftest$ac_exeext; then
39661   ac_cv_search_getmntent=$ac_res
39662 else
39663   echo "$as_me: failed program was:" >&5
39664 sed 's/^/| /' conftest.$ac_ext >&5
39665
39666
39667 fi
39668
39669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39670       conftest$ac_exeext
39671   if test "${ac_cv_search_getmntent+set}" = set; then
39672   break
39673 fi
39674 done
39675 if test "${ac_cv_search_getmntent+set}" = set; then
39676   :
39677 else
39678   ac_cv_search_getmntent=no
39679 fi
39680 rm conftest.$ac_ext
39681 LIBS=$ac_func_search_save_LIBS
39682 fi
39683 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39684 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39685 ac_res=$ac_cv_search_getmntent
39686 if test "$ac_res" != no; then
39687   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39688   ac_cv_func_getmntent=yes
39689
39690 cat >>confdefs.h <<\_ACEOF
39691 #define HAVE_GETMNTENT 1
39692 _ACEOF
39693
39694 else
39695   ac_cv_func_getmntent=no
39696 fi
39697
39698
39699 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39700 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39701 if test "${ac_cv_func_closedir_void+set}" = set; then
39702   echo $ECHO_N "(cached) $ECHO_C" >&6
39703 else
39704   if test "$cross_compiling" = yes; then
39705   ac_cv_func_closedir_void=yes
39706 else
39707   cat >conftest.$ac_ext <<_ACEOF
39708 /* confdefs.h.  */
39709 _ACEOF
39710 cat confdefs.h >>conftest.$ac_ext
39711 cat >>conftest.$ac_ext <<_ACEOF
39712 /* end confdefs.h.  */
39713 $ac_includes_default
39714 #include <$ac_header_dirent>
39715 #ifndef __cplusplus
39716 int closedir ();
39717 #endif
39718
39719 int
39720 main ()
39721 {
39722 return closedir (opendir (".")) != 0;
39723   ;
39724   return 0;
39725 }
39726 _ACEOF
39727 rm -f conftest$ac_exeext
39728 if { (ac_try="$ac_link"
39729 case "(($ac_try" in
39730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39731   *) ac_try_echo=$ac_try;;
39732 esac
39733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39734   (eval "$ac_link") 2>&5
39735   ac_status=$?
39736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39738   { (case "(($ac_try" in
39739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39740   *) ac_try_echo=$ac_try;;
39741 esac
39742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39743   (eval "$ac_try") 2>&5
39744   ac_status=$?
39745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746   (exit $ac_status); }; }; then
39747   ac_cv_func_closedir_void=no
39748 else
39749   echo "$as_me: program exited with status $ac_status" >&5
39750 echo "$as_me: failed program was:" >&5
39751 sed 's/^/| /' conftest.$ac_ext >&5
39752
39753 ( exit $ac_status )
39754 ac_cv_func_closedir_void=yes
39755 fi
39756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39757 fi
39758
39759
39760 fi
39761 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39762 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39763 if test $ac_cv_func_closedir_void = yes; then
39764
39765 cat >>confdefs.h <<\_ACEOF
39766 #define CLOSEDIR_VOID 1
39767 _ACEOF
39768
39769 fi
39770
39771 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39772 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39773 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39774   echo $ECHO_N "(cached) $ECHO_C" >&6
39775 else
39776   if test "$cross_compiling" = yes; then
39777   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39778 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39779    { (exit 1); exit 1; }; }
39780 else
39781   cat >conftest.$ac_ext <<_ACEOF
39782 /* confdefs.h.  */
39783 _ACEOF
39784 cat confdefs.h >>conftest.$ac_ext
39785 cat >>conftest.$ac_ext <<_ACEOF
39786 /* end confdefs.h.  */
39787 $ac_includes_default
39788 int
39789 main ()
39790 {
39791 /* If this system has a BSD-style setpgrp which takes arguments,
39792   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39793   exit successfully. */
39794   return setpgrp (1,1) != -1;
39795   ;
39796   return 0;
39797 }
39798 _ACEOF
39799 rm -f conftest$ac_exeext
39800 if { (ac_try="$ac_link"
39801 case "(($ac_try" in
39802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39803   *) ac_try_echo=$ac_try;;
39804 esac
39805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39806   (eval "$ac_link") 2>&5
39807   ac_status=$?
39808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39810   { (case "(($ac_try" in
39811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39812   *) ac_try_echo=$ac_try;;
39813 esac
39814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39815   (eval "$ac_try") 2>&5
39816   ac_status=$?
39817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818   (exit $ac_status); }; }; then
39819   ac_cv_func_setpgrp_void=no
39820 else
39821   echo "$as_me: program exited with status $ac_status" >&5
39822 echo "$as_me: failed program was:" >&5
39823 sed 's/^/| /' conftest.$ac_ext >&5
39824
39825 ( exit $ac_status )
39826 ac_cv_func_setpgrp_void=yes
39827 fi
39828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39829 fi
39830
39831
39832 fi
39833 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39834 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39835 if test $ac_cv_func_setpgrp_void = yes; then
39836
39837 cat >>confdefs.h <<\_ACEOF
39838 #define SETPGRP_VOID 1
39839 _ACEOF
39840
39841 fi
39842             # AC_FUNC_FNMATCH    dnl use local version
39843
39844 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39845 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39846 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39847   echo $ECHO_N "(cached) $ECHO_C" >&6
39848 else
39849   ac_check_lib_save_LIBS=$LIBS
39850 LIBS="-lintl  $LIBS"
39851 cat >conftest.$ac_ext <<_ACEOF
39852 /* confdefs.h.  */
39853 _ACEOF
39854 cat confdefs.h >>conftest.$ac_ext
39855 cat >>conftest.$ac_ext <<_ACEOF
39856 /* end confdefs.h.  */
39857
39858 /* Override any GCC internal prototype to avoid an error.
39859    Use char because int might match the return type of a GCC
39860    builtin and then its argument prototype would still apply.  */
39861 #ifdef __cplusplus
39862 extern "C"
39863 #endif
39864 char gettext ();
39865 int
39866 main ()
39867 {
39868 return gettext ();
39869   ;
39870   return 0;
39871 }
39872 _ACEOF
39873 rm -f conftest.$ac_objext conftest$ac_exeext
39874 if { (ac_try="$ac_link"
39875 case "(($ac_try" in
39876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39877   *) ac_try_echo=$ac_try;;
39878 esac
39879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39880   (eval "$ac_link") 2>conftest.er1
39881   ac_status=$?
39882   grep -v '^ *+' conftest.er1 >conftest.err
39883   rm -f conftest.er1
39884   cat conftest.err >&5
39885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886   (exit $ac_status); } && {
39887          test -z "$ac_c_werror_flag" ||
39888          test ! -s conftest.err
39889        } && test -s conftest$ac_exeext &&
39890        $as_test_x conftest$ac_exeext; then
39891   ac_cv_lib_intl_gettext=yes
39892 else
39893   echo "$as_me: failed program was:" >&5
39894 sed 's/^/| /' conftest.$ac_ext >&5
39895
39896         ac_cv_lib_intl_gettext=no
39897 fi
39898
39899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39900       conftest$ac_exeext conftest.$ac_ext
39901 LIBS=$ac_check_lib_save_LIBS
39902 fi
39903 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39904 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39905 if test $ac_cv_lib_intl_gettext = yes; then
39906   LIBS="$LIBS -lintl"
39907 fi
39908
39909
39910
39911 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39912 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39913 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39914   echo $ECHO_N "(cached) $ECHO_C" >&6
39915 else
39916   ac_check_lib_save_LIBS=$LIBS
39917 LIBS="-lsun  $LIBS"
39918 cat >conftest.$ac_ext <<_ACEOF
39919 /* confdefs.h.  */
39920 _ACEOF
39921 cat confdefs.h >>conftest.$ac_ext
39922 cat >>conftest.$ac_ext <<_ACEOF
39923 /* end confdefs.h.  */
39924
39925 /* Override any GCC internal prototype to avoid an error.
39926    Use char because int might match the return type of a GCC
39927    builtin and then its argument prototype would still apply.  */
39928 #ifdef __cplusplus
39929 extern "C"
39930 #endif
39931 char getpwnam ();
39932 int
39933 main ()
39934 {
39935 return getpwnam ();
39936   ;
39937   return 0;
39938 }
39939 _ACEOF
39940 rm -f conftest.$ac_objext conftest$ac_exeext
39941 if { (ac_try="$ac_link"
39942 case "(($ac_try" in
39943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39944   *) ac_try_echo=$ac_try;;
39945 esac
39946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39947   (eval "$ac_link") 2>conftest.er1
39948   ac_status=$?
39949   grep -v '^ *+' conftest.er1 >conftest.err
39950   rm -f conftest.er1
39951   cat conftest.err >&5
39952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953   (exit $ac_status); } && {
39954          test -z "$ac_c_werror_flag" ||
39955          test ! -s conftest.err
39956        } && test -s conftest$ac_exeext &&
39957        $as_test_x conftest$ac_exeext; then
39958   ac_cv_lib_sun_getpwnam=yes
39959 else
39960   echo "$as_me: failed program was:" >&5
39961 sed 's/^/| /' conftest.$ac_ext >&5
39962
39963         ac_cv_lib_sun_getpwnam=no
39964 fi
39965
39966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39967       conftest$ac_exeext conftest.$ac_ext
39968 LIBS=$ac_check_lib_save_LIBS
39969 fi
39970 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39971 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39972 if test $ac_cv_lib_sun_getpwnam = yes; then
39973   cat >>confdefs.h <<_ACEOF
39974 #define HAVE_LIBSUN 1
39975 _ACEOF
39976
39977   LIBS="-lsun $LIBS"
39978
39979 fi
39980
39981
39982
39983 for ac_header in zlib.h
39984 do
39985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39987   { echo "$as_me:$LINENO: checking for $ac_header" >&5
39988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39990   echo $ECHO_N "(cached) $ECHO_C" >&6
39991 fi
39992 ac_res=`eval echo '${'$as_ac_Header'}'`
39993                { echo "$as_me:$LINENO: result: $ac_res" >&5
39994 echo "${ECHO_T}$ac_res" >&6; }
39995 else
39996   # Is the header compilable?
39997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39999 cat >conftest.$ac_ext <<_ACEOF
40000 /* confdefs.h.  */
40001 _ACEOF
40002 cat confdefs.h >>conftest.$ac_ext
40003 cat >>conftest.$ac_ext <<_ACEOF
40004 /* end confdefs.h.  */
40005 $ac_includes_default
40006 #include <$ac_header>
40007 _ACEOF
40008 rm -f conftest.$ac_objext
40009 if { (ac_try="$ac_compile"
40010 case "(($ac_try" in
40011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40012   *) ac_try_echo=$ac_try;;
40013 esac
40014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40015   (eval "$ac_compile") 2>conftest.er1
40016   ac_status=$?
40017   grep -v '^ *+' conftest.er1 >conftest.err
40018   rm -f conftest.er1
40019   cat conftest.err >&5
40020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021   (exit $ac_status); } && {
40022          test -z "$ac_c_werror_flag" ||
40023          test ! -s conftest.err
40024        } && test -s conftest.$ac_objext; then
40025   ac_header_compiler=yes
40026 else
40027   echo "$as_me: failed program was:" >&5
40028 sed 's/^/| /' conftest.$ac_ext >&5
40029
40030         ac_header_compiler=no
40031 fi
40032
40033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40035 echo "${ECHO_T}$ac_header_compiler" >&6; }
40036
40037 # Is the header present?
40038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40040 cat >conftest.$ac_ext <<_ACEOF
40041 /* confdefs.h.  */
40042 _ACEOF
40043 cat confdefs.h >>conftest.$ac_ext
40044 cat >>conftest.$ac_ext <<_ACEOF
40045 /* end confdefs.h.  */
40046 #include <$ac_header>
40047 _ACEOF
40048 if { (ac_try="$ac_cpp conftest.$ac_ext"
40049 case "(($ac_try" in
40050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40051   *) ac_try_echo=$ac_try;;
40052 esac
40053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40055   ac_status=$?
40056   grep -v '^ *+' conftest.er1 >conftest.err
40057   rm -f conftest.er1
40058   cat conftest.err >&5
40059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060   (exit $ac_status); } >/dev/null && {
40061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40062          test ! -s conftest.err
40063        }; then
40064   ac_header_preproc=yes
40065 else
40066   echo "$as_me: failed program was:" >&5
40067 sed 's/^/| /' conftest.$ac_ext >&5
40068
40069   ac_header_preproc=no
40070 fi
40071
40072 rm -f conftest.err conftest.$ac_ext
40073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40074 echo "${ECHO_T}$ac_header_preproc" >&6; }
40075
40076 # So?  What about this header?
40077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40078   yes:no: )
40079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40083     ac_header_preproc=yes
40084     ;;
40085   no:yes:* )
40086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40098
40099     ;;
40100 esac
40101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40104   echo $ECHO_N "(cached) $ECHO_C" >&6
40105 else
40106   eval "$as_ac_Header=\$ac_header_preproc"
40107 fi
40108 ac_res=`eval echo '${'$as_ac_Header'}'`
40109                { echo "$as_me:$LINENO: result: $ac_res" >&5
40110 echo "${ECHO_T}$ac_res" >&6; }
40111
40112 fi
40113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40114   cat >>confdefs.h <<_ACEOF
40115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40116 _ACEOF
40117
40118 fi
40119
40120 done
40121
40122 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40123 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40124 if test "${ac_cv_lib_z_deflate+set}" = set; then
40125   echo $ECHO_N "(cached) $ECHO_C" >&6
40126 else
40127   ac_check_lib_save_LIBS=$LIBS
40128 LIBS="-lz  $LIBS"
40129 cat >conftest.$ac_ext <<_ACEOF
40130 /* confdefs.h.  */
40131 _ACEOF
40132 cat confdefs.h >>conftest.$ac_ext
40133 cat >>conftest.$ac_ext <<_ACEOF
40134 /* end confdefs.h.  */
40135
40136 /* Override any GCC internal prototype to avoid an error.
40137    Use char because int might match the return type of a GCC
40138    builtin and then its argument prototype would still apply.  */
40139 #ifdef __cplusplus
40140 extern "C"
40141 #endif
40142 char deflate ();
40143 int
40144 main ()
40145 {
40146 return deflate ();
40147   ;
40148   return 0;
40149 }
40150 _ACEOF
40151 rm -f conftest.$ac_objext conftest$ac_exeext
40152 if { (ac_try="$ac_link"
40153 case "(($ac_try" in
40154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40155   *) ac_try_echo=$ac_try;;
40156 esac
40157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40158   (eval "$ac_link") 2>conftest.er1
40159   ac_status=$?
40160   grep -v '^ *+' conftest.er1 >conftest.err
40161   rm -f conftest.er1
40162   cat conftest.err >&5
40163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164   (exit $ac_status); } && {
40165          test -z "$ac_c_werror_flag" ||
40166          test ! -s conftest.err
40167        } && test -s conftest$ac_exeext &&
40168        $as_test_x conftest$ac_exeext; then
40169   ac_cv_lib_z_deflate=yes
40170 else
40171   echo "$as_me: failed program was:" >&5
40172 sed 's/^/| /' conftest.$ac_ext >&5
40173
40174         ac_cv_lib_z_deflate=no
40175 fi
40176
40177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40178       conftest$ac_exeext conftest.$ac_ext
40179 LIBS=$ac_check_lib_save_LIBS
40180 fi
40181 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40182 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40183 if test $ac_cv_lib_z_deflate = yes; then
40184   FDLIBS="-lz"
40185 fi
40186
40187 have_zlib=no
40188 if test x$FDLIBS = x-lz; then
40189    cat >>confdefs.h <<\_ACEOF
40190 #define HAVE_LIBZ 1
40191 _ACEOF
40192
40193    have_zlib=yes
40194 fi
40195
40196 have_acl=no
40197 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40198   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40199 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40200 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40201   echo $ECHO_N "(cached) $ECHO_C" >&6
40202 fi
40203 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40204 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40205 else
40206   # Is the header compilable?
40207 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40208 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40209 cat >conftest.$ac_ext <<_ACEOF
40210 /* confdefs.h.  */
40211 _ACEOF
40212 cat confdefs.h >>conftest.$ac_ext
40213 cat >>conftest.$ac_ext <<_ACEOF
40214 /* end confdefs.h.  */
40215 $ac_includes_default
40216 #include <sys/acl.h>
40217 _ACEOF
40218 rm -f conftest.$ac_objext
40219 if { (ac_try="$ac_compile"
40220 case "(($ac_try" in
40221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40222   *) ac_try_echo=$ac_try;;
40223 esac
40224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40225   (eval "$ac_compile") 2>conftest.er1
40226   ac_status=$?
40227   grep -v '^ *+' conftest.er1 >conftest.err
40228   rm -f conftest.er1
40229   cat conftest.err >&5
40230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231   (exit $ac_status); } && {
40232          test -z "$ac_c_werror_flag" ||
40233          test ! -s conftest.err
40234        } && test -s conftest.$ac_objext; then
40235   ac_header_compiler=yes
40236 else
40237   echo "$as_me: failed program was:" >&5
40238 sed 's/^/| /' conftest.$ac_ext >&5
40239
40240         ac_header_compiler=no
40241 fi
40242
40243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40245 echo "${ECHO_T}$ac_header_compiler" >&6; }
40246
40247 # Is the header present?
40248 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40249 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40250 cat >conftest.$ac_ext <<_ACEOF
40251 /* confdefs.h.  */
40252 _ACEOF
40253 cat confdefs.h >>conftest.$ac_ext
40254 cat >>conftest.$ac_ext <<_ACEOF
40255 /* end confdefs.h.  */
40256 #include <sys/acl.h>
40257 _ACEOF
40258 if { (ac_try="$ac_cpp conftest.$ac_ext"
40259 case "(($ac_try" in
40260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40261   *) ac_try_echo=$ac_try;;
40262 esac
40263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40265   ac_status=$?
40266   grep -v '^ *+' conftest.er1 >conftest.err
40267   rm -f conftest.er1
40268   cat conftest.err >&5
40269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40270   (exit $ac_status); } >/dev/null && {
40271          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40272          test ! -s conftest.err
40273        }; then
40274   ac_header_preproc=yes
40275 else
40276   echo "$as_me: failed program was:" >&5
40277 sed 's/^/| /' conftest.$ac_ext >&5
40278
40279   ac_header_preproc=no
40280 fi
40281
40282 rm -f conftest.err conftest.$ac_ext
40283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40284 echo "${ECHO_T}$ac_header_preproc" >&6; }
40285
40286 # So?  What about this header?
40287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40288   yes:no: )
40289     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40290 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40291     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40292 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40293     ac_header_preproc=yes
40294     ;;
40295   no:yes:* )
40296     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40297 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40298     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40299 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40300     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40301 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40302     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40303 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40304     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40305 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40306     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40307 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40308
40309     ;;
40310 esac
40311 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40312 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40313 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40314   echo $ECHO_N "(cached) $ECHO_C" >&6
40315 else
40316   ac_cv_header_sys_acl_h=$ac_header_preproc
40317 fi
40318 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40319 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40320
40321 fi
40322
40323
40324 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40325 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40326 if test "${ac_cv_func_acl_get_file+set}" = set; then
40327   echo $ECHO_N "(cached) $ECHO_C" >&6
40328 else
40329   cat >conftest.$ac_ext <<_ACEOF
40330 /* confdefs.h.  */
40331 _ACEOF
40332 cat confdefs.h >>conftest.$ac_ext
40333 cat >>conftest.$ac_ext <<_ACEOF
40334 /* end confdefs.h.  */
40335 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40337 #define acl_get_file innocuous_acl_get_file
40338
40339 /* System header to define __stub macros and hopefully few prototypes,
40340     which can conflict with char acl_get_file (); below.
40341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40342     <limits.h> exists even on freestanding compilers.  */
40343
40344 #ifdef __STDC__
40345 # include <limits.h>
40346 #else
40347 # include <assert.h>
40348 #endif
40349
40350 #undef acl_get_file
40351
40352 /* Override any GCC internal prototype to avoid an error.
40353    Use char because int might match the return type of a GCC
40354    builtin and then its argument prototype would still apply.  */
40355 #ifdef __cplusplus
40356 extern "C"
40357 #endif
40358 char acl_get_file ();
40359 /* The GNU C library defines this for functions which it implements
40360     to always fail with ENOSYS.  Some functions are actually named
40361     something starting with __ and the normal name is an alias.  */
40362 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40363 choke me
40364 #endif
40365
40366 int
40367 main ()
40368 {
40369 return acl_get_file ();
40370   ;
40371   return 0;
40372 }
40373 _ACEOF
40374 rm -f conftest.$ac_objext conftest$ac_exeext
40375 if { (ac_try="$ac_link"
40376 case "(($ac_try" in
40377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40378   *) ac_try_echo=$ac_try;;
40379 esac
40380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40381   (eval "$ac_link") 2>conftest.er1
40382   ac_status=$?
40383   grep -v '^ *+' conftest.er1 >conftest.err
40384   rm -f conftest.er1
40385   cat conftest.err >&5
40386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40387   (exit $ac_status); } && {
40388          test -z "$ac_c_werror_flag" ||
40389          test ! -s conftest.err
40390        } && test -s conftest$ac_exeext &&
40391        $as_test_x conftest$ac_exeext; then
40392   ac_cv_func_acl_get_file=yes
40393 else
40394   echo "$as_me: failed program was:" >&5
40395 sed 's/^/| /' conftest.$ac_ext >&5
40396
40397         ac_cv_func_acl_get_file=no
40398 fi
40399
40400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40401       conftest$ac_exeext conftest.$ac_ext
40402 fi
40403 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40404 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40405 if test $ac_cv_func_acl_get_file = yes; then
40406   have_acl=yes
40407 else
40408
40409        { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40410 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40411 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40412   echo $ECHO_N "(cached) $ECHO_C" >&6
40413 else
40414   ac_check_lib_save_LIBS=$LIBS
40415 LIBS="-lacl  $LIBS"
40416 cat >conftest.$ac_ext <<_ACEOF
40417 /* confdefs.h.  */
40418 _ACEOF
40419 cat confdefs.h >>conftest.$ac_ext
40420 cat >>conftest.$ac_ext <<_ACEOF
40421 /* end confdefs.h.  */
40422
40423 /* Override any GCC internal prototype to avoid an error.
40424    Use char because int might match the return type of a GCC
40425    builtin and then its argument prototype would still apply.  */
40426 #ifdef __cplusplus
40427 extern "C"
40428 #endif
40429 char acl_get_file ();
40430 int
40431 main ()
40432 {
40433 return acl_get_file ();
40434   ;
40435   return 0;
40436 }
40437 _ACEOF
40438 rm -f conftest.$ac_objext conftest$ac_exeext
40439 if { (ac_try="$ac_link"
40440 case "(($ac_try" in
40441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40442   *) ac_try_echo=$ac_try;;
40443 esac
40444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40445   (eval "$ac_link") 2>conftest.er1
40446   ac_status=$?
40447   grep -v '^ *+' conftest.er1 >conftest.err
40448   rm -f conftest.er1
40449   cat conftest.err >&5
40450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451   (exit $ac_status); } && {
40452          test -z "$ac_c_werror_flag" ||
40453          test ! -s conftest.err
40454        } && test -s conftest$ac_exeext &&
40455        $as_test_x conftest$ac_exeext; then
40456   ac_cv_lib_acl_acl_get_file=yes
40457 else
40458   echo "$as_me: failed program was:" >&5
40459 sed 's/^/| /' conftest.$ac_ext >&5
40460
40461         ac_cv_lib_acl_acl_get_file=no
40462 fi
40463
40464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40465       conftest$ac_exeext conftest.$ac_ext
40466 LIBS=$ac_check_lib_save_LIBS
40467 fi
40468 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40469 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40470 if test $ac_cv_lib_acl_acl_get_file = yes; then
40471
40472               have_acl=yes;
40473               FDLIBS="-lacl $FDLIBS"
40474
40475 else
40476
40477               { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40478 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40479 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40480   echo $ECHO_N "(cached) $ECHO_C" >&6
40481 else
40482   ac_check_lib_save_LIBS=$LIBS
40483 LIBS="-lsec  $LIBS"
40484 cat >conftest.$ac_ext <<_ACEOF
40485 /* confdefs.h.  */
40486 _ACEOF
40487 cat confdefs.h >>conftest.$ac_ext
40488 cat >>conftest.$ac_ext <<_ACEOF
40489 /* end confdefs.h.  */
40490
40491 /* Override any GCC internal prototype to avoid an error.
40492    Use char because int might match the return type of a GCC
40493    builtin and then its argument prototype would still apply.  */
40494 #ifdef __cplusplus
40495 extern "C"
40496 #endif
40497 char acltotext ();
40498 int
40499 main ()
40500 {
40501 return acltotext ();
40502   ;
40503   return 0;
40504 }
40505 _ACEOF
40506 rm -f conftest.$ac_objext conftest$ac_exeext
40507 if { (ac_try="$ac_link"
40508 case "(($ac_try" in
40509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40510   *) ac_try_echo=$ac_try;;
40511 esac
40512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40513   (eval "$ac_link") 2>conftest.er1
40514   ac_status=$?
40515   grep -v '^ *+' conftest.er1 >conftest.err
40516   rm -f conftest.er1
40517   cat conftest.err >&5
40518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40519   (exit $ac_status); } && {
40520          test -z "$ac_c_werror_flag" ||
40521          test ! -s conftest.err
40522        } && test -s conftest$ac_exeext &&
40523        $as_test_x conftest$ac_exeext; then
40524   ac_cv_lib_sec_acltotext=yes
40525 else
40526   echo "$as_me: failed program was:" >&5
40527 sed 's/^/| /' conftest.$ac_ext >&5
40528
40529         ac_cv_lib_sec_acltotext=no
40530 fi
40531
40532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40533       conftest$ac_exeext conftest.$ac_ext
40534 LIBS=$ac_check_lib_save_LIBS
40535 fi
40536 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40537 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40538 if test $ac_cv_lib_sec_acltotext = yes; then
40539
40540                      have_acl=yes;
40541                      FDLIBS="-lsec $FDLIBS"
40542
40543
40544 fi
40545
40546
40547
40548 fi
40549
40550
40551
40552 fi
40553
40554 if test $have_acl = yes; then
40555    cat >>confdefs.h <<\_ACEOF
40556 #define HAVE_ACL 1
40557 _ACEOF
40558
40559 fi
40560
40561 PTHREAD_LIB=""
40562 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40563 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40564 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40565   echo $ECHO_N "(cached) $ECHO_C" >&6
40566 else
40567   ac_check_lib_save_LIBS=$LIBS
40568 LIBS="-lpthread  $LIBS"
40569 cat >conftest.$ac_ext <<_ACEOF
40570 /* confdefs.h.  */
40571 _ACEOF
40572 cat confdefs.h >>conftest.$ac_ext
40573 cat >>conftest.$ac_ext <<_ACEOF
40574 /* end confdefs.h.  */
40575
40576 /* Override any GCC internal prototype to avoid an error.
40577    Use char because int might match the return type of a GCC
40578    builtin and then its argument prototype would still apply.  */
40579 #ifdef __cplusplus
40580 extern "C"
40581 #endif
40582 char pthread_create ();
40583 int
40584 main ()
40585 {
40586 return pthread_create ();
40587   ;
40588   return 0;
40589 }
40590 _ACEOF
40591 rm -f conftest.$ac_objext conftest$ac_exeext
40592 if { (ac_try="$ac_link"
40593 case "(($ac_try" in
40594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40595   *) ac_try_echo=$ac_try;;
40596 esac
40597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40598   (eval "$ac_link") 2>conftest.er1
40599   ac_status=$?
40600   grep -v '^ *+' conftest.er1 >conftest.err
40601   rm -f conftest.er1
40602   cat conftest.err >&5
40603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40604   (exit $ac_status); } && {
40605          test -z "$ac_c_werror_flag" ||
40606          test ! -s conftest.err
40607        } && test -s conftest$ac_exeext &&
40608        $as_test_x conftest$ac_exeext; then
40609   ac_cv_lib_pthread_pthread_create=yes
40610 else
40611   echo "$as_me: failed program was:" >&5
40612 sed 's/^/| /' conftest.$ac_ext >&5
40613
40614         ac_cv_lib_pthread_pthread_create=no
40615 fi
40616
40617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40618       conftest$ac_exeext conftest.$ac_ext
40619 LIBS=$ac_check_lib_save_LIBS
40620 fi
40621 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40622 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40623 if test $ac_cv_lib_pthread_pthread_create = yes; then
40624   PTHREAD_LIB="-lpthread"
40625 else
40626
40627        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40628 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40629 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40630   echo $ECHO_N "(cached) $ECHO_C" >&6
40631 else
40632   ac_check_lib_save_LIBS=$LIBS
40633 LIBS="-lpthreads  $LIBS"
40634 cat >conftest.$ac_ext <<_ACEOF
40635 /* confdefs.h.  */
40636 _ACEOF
40637 cat confdefs.h >>conftest.$ac_ext
40638 cat >>conftest.$ac_ext <<_ACEOF
40639 /* end confdefs.h.  */
40640
40641 /* Override any GCC internal prototype to avoid an error.
40642    Use char because int might match the return type of a GCC
40643    builtin and then its argument prototype would still apply.  */
40644 #ifdef __cplusplus
40645 extern "C"
40646 #endif
40647 char pthread_create ();
40648 int
40649 main ()
40650 {
40651 return pthread_create ();
40652   ;
40653   return 0;
40654 }
40655 _ACEOF
40656 rm -f conftest.$ac_objext conftest$ac_exeext
40657 if { (ac_try="$ac_link"
40658 case "(($ac_try" in
40659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40660   *) ac_try_echo=$ac_try;;
40661 esac
40662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40663   (eval "$ac_link") 2>conftest.er1
40664   ac_status=$?
40665   grep -v '^ *+' conftest.er1 >conftest.err
40666   rm -f conftest.er1
40667   cat conftest.err >&5
40668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669   (exit $ac_status); } && {
40670          test -z "$ac_c_werror_flag" ||
40671          test ! -s conftest.err
40672        } && test -s conftest$ac_exeext &&
40673        $as_test_x conftest$ac_exeext; then
40674   ac_cv_lib_pthreads_pthread_create=yes
40675 else
40676   echo "$as_me: failed program was:" >&5
40677 sed 's/^/| /' conftest.$ac_ext >&5
40678
40679         ac_cv_lib_pthreads_pthread_create=no
40680 fi
40681
40682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40683       conftest$ac_exeext conftest.$ac_ext
40684 LIBS=$ac_check_lib_save_LIBS
40685 fi
40686 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40687 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40688 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40689   PTHREAD_LIB="-lpthreads"
40690 else
40691
40692               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40693 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40694 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40695   echo $ECHO_N "(cached) $ECHO_C" >&6
40696 else
40697   ac_check_lib_save_LIBS=$LIBS
40698 LIBS="-lc_r  $LIBS"
40699 cat >conftest.$ac_ext <<_ACEOF
40700 /* confdefs.h.  */
40701 _ACEOF
40702 cat confdefs.h >>conftest.$ac_ext
40703 cat >>conftest.$ac_ext <<_ACEOF
40704 /* end confdefs.h.  */
40705
40706 /* Override any GCC internal prototype to avoid an error.
40707    Use char because int might match the return type of a GCC
40708    builtin and then its argument prototype would still apply.  */
40709 #ifdef __cplusplus
40710 extern "C"
40711 #endif
40712 char pthread_create ();
40713 int
40714 main ()
40715 {
40716 return pthread_create ();
40717   ;
40718   return 0;
40719 }
40720 _ACEOF
40721 rm -f conftest.$ac_objext conftest$ac_exeext
40722 if { (ac_try="$ac_link"
40723 case "(($ac_try" in
40724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40725   *) ac_try_echo=$ac_try;;
40726 esac
40727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40728   (eval "$ac_link") 2>conftest.er1
40729   ac_status=$?
40730   grep -v '^ *+' conftest.er1 >conftest.err
40731   rm -f conftest.er1
40732   cat conftest.err >&5
40733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734   (exit $ac_status); } && {
40735          test -z "$ac_c_werror_flag" ||
40736          test ! -s conftest.err
40737        } && test -s conftest$ac_exeext &&
40738        $as_test_x conftest$ac_exeext; then
40739   ac_cv_lib_c_r_pthread_create=yes
40740 else
40741   echo "$as_me: failed program was:" >&5
40742 sed 's/^/| /' conftest.$ac_ext >&5
40743
40744         ac_cv_lib_c_r_pthread_create=no
40745 fi
40746
40747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40748       conftest$ac_exeext conftest.$ac_ext
40749 LIBS=$ac_check_lib_save_LIBS
40750 fi
40751 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40752 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40753 if test $ac_cv_lib_c_r_pthread_create = yes; then
40754   PTHREAD_LIB="-lc_r"
40755 else
40756
40757                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
40758 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40759 if test "${ac_cv_func_pthread_create+set}" = set; then
40760   echo $ECHO_N "(cached) $ECHO_C" >&6
40761 else
40762   cat >conftest.$ac_ext <<_ACEOF
40763 /* confdefs.h.  */
40764 _ACEOF
40765 cat confdefs.h >>conftest.$ac_ext
40766 cat >>conftest.$ac_ext <<_ACEOF
40767 /* end confdefs.h.  */
40768 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40770 #define pthread_create innocuous_pthread_create
40771
40772 /* System header to define __stub macros and hopefully few prototypes,
40773     which can conflict with char pthread_create (); below.
40774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40775     <limits.h> exists even on freestanding compilers.  */
40776
40777 #ifdef __STDC__
40778 # include <limits.h>
40779 #else
40780 # include <assert.h>
40781 #endif
40782
40783 #undef pthread_create
40784
40785 /* Override any GCC internal prototype to avoid an error.
40786    Use char because int might match the return type of a GCC
40787    builtin and then its argument prototype would still apply.  */
40788 #ifdef __cplusplus
40789 extern "C"
40790 #endif
40791 char pthread_create ();
40792 /* The GNU C library defines this for functions which it implements
40793     to always fail with ENOSYS.  Some functions are actually named
40794     something starting with __ and the normal name is an alias.  */
40795 #if defined __stub_pthread_create || defined __stub___pthread_create
40796 choke me
40797 #endif
40798
40799 int
40800 main ()
40801 {
40802 return pthread_create ();
40803   ;
40804   return 0;
40805 }
40806 _ACEOF
40807 rm -f conftest.$ac_objext conftest$ac_exeext
40808 if { (ac_try="$ac_link"
40809 case "(($ac_try" in
40810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40811   *) ac_try_echo=$ac_try;;
40812 esac
40813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40814   (eval "$ac_link") 2>conftest.er1
40815   ac_status=$?
40816   grep -v '^ *+' conftest.er1 >conftest.err
40817   rm -f conftest.er1
40818   cat conftest.err >&5
40819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820   (exit $ac_status); } && {
40821          test -z "$ac_c_werror_flag" ||
40822          test ! -s conftest.err
40823        } && test -s conftest$ac_exeext &&
40824        $as_test_x conftest$ac_exeext; then
40825   ac_cv_func_pthread_create=yes
40826 else
40827   echo "$as_me: failed program was:" >&5
40828 sed 's/^/| /' conftest.$ac_ext >&5
40829
40830         ac_cv_func_pthread_create=no
40831 fi
40832
40833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40834       conftest$ac_exeext conftest.$ac_ext
40835 fi
40836 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40837 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40838
40839
40840
40841 fi
40842
40843
40844
40845 fi
40846
40847
40848
40849 fi
40850
40851
40852
40853 cat >>confdefs.h <<\_ACEOF
40854 #define FDLIBS 1
40855 _ACEOF
40856
40857
40858 CFLAGS=${CFLAGS--O}
40859
40860 if test x$have_gcc = xyes ; then
40861    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40862    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40863 fi
40864 LDFLAGS=${LDFLAGS--O}
40865 DB_LIBS="${SQL_LFLAGS}"
40866 CPPFLAGS="$CPPFLAGS"
40867 CFLAGS="$CFLAGS"
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884 OBJLIST=
40885
40886
40887 lld="lld"
40888 llu="llu"
40889
40890 WCFLAGS=
40891 WLDFLAGS=
40892
40893 PFILES="platforms/Makefile"
40894 PSCMD="ps -e"
40895 WIN32=
40896 MACOSX=
40897 hostname=`uname -n | cut -d '.' -f 1`
40898 if test x${hostname} = x ; then
40899    hostname="localhost"
40900 fi
40901 case "$DISTNAME" in
40902 aix)
40903    DISTVER=`uname -r`
40904    PSCMD="ps -e -o pid,comm"
40905    PFILES="${PFILES} \
40906       platforms/aix/Makefile"
40907    TAPEDRIVE="/dev/rmt0.1"
40908   ;;
40909 alpha)
40910    DISTVER=`uname -r`
40911    PTHREAD_LIB="-lpthread -lexc"
40912    if test "${CC}" = "gcc" ; then
40913       lld="lld"
40914       llu="llu"
40915    else
40916       lld="ld"
40917       llu="lu"
40918    fi
40919    TAPEDRIVE="/dev/nrmt0"
40920   ;;
40921 bsdi)
40922    DISTVER=`uname -a |awk '{print $3}'`
40923    TAPEDRIVE="/dev/nrmt0"
40924    PTHREAD_LIB="-pthread"
40925    CFLAGS="${CFLAGS} -pthread"
40926    PSCMD="ps -ax -o pid,command"
40927    lld="qd"
40928    llu="qu"
40929    PFILES="${PFILES} \
40930        platforms/bsdi/Makefile \
40931        platforms/bsdi/bacula-fd \
40932        platforms/bsdi/bacula-sd \
40933        platforms/bsdi/bacula-dir"
40934    largefile_support="yes"
40935   ;;
40936 cygwin)
40937    DISTVER=`uname -a |awk '{print $3}'`
40938    TAPEDRIVE="/dev/nrst0"
40939    WIN32=win32
40940    WCFLAGS="-mwindows"
40941    WLDFLAGS="-mwindows"
40942   ;;
40943 darwin)
40944    DISTVER=`uname -r`
40945    TAPEDRIVE="/dev/nst0"
40946    PSCMD="ps -e -o pid,command"
40947    MACOSX=macosx
40948    PFILES="${PFILES} \
40949       platforms/darwin/Makefile"
40950   ;;
40951 debian)
40952       ping -c 1 $hostname 2>&1 1>/dev/null
40953    if test ! $? = 0; then
40954       hostname="localhost"
40955    fi
40956    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40957       DISTNAME="ubuntu"
40958    fi
40959    DISTVER=`cat /etc/debian_version`
40960    if test -f /etc/lsb-release ; then
40961       . /etc/lsb-release
40962       if test "x$DISTRIB_ID" != "x" ; then
40963          DISTNAME=$DISTRIB_ID
40964       fi
40965       if test "x$DISTRIB_RELEASE" != "x" ; then
40966          DISTVER=$DISTRIB_RELEASE
40967       fi
40968    fi
40969    if test "$DISTNAME" = "Ubuntu" ; then
40970       DISTNAME="ubuntu"
40971    fi
40972    TAPEDRIVE="/dev/nst0"
40973    PSCMD="ps -e -o pid,command"
40974    if test "$DISTNAME" = "ubuntu" ; then
40975       PFILES="${PFILES} \
40976          platforms/ubuntu/Makefile \
40977          platforms/ubuntu/bacula-fd \
40978          platforms/ubuntu/bacula-sd \
40979          platforms/ubuntu/bacula-dir"
40980    else
40981       PFILES="${PFILES} \
40982          platforms/debian/Makefile \
40983          platforms/debian/bacula-fd \
40984          platforms/debian/bacula-sd \
40985          platforms/debian/bacula-dir"
40986    fi
40987   ;;
40988 freebsd)
40989       ping -c 1 $hostname 2>&1 1>/dev/null
40990    if test ! $? = 0; then
40991       hostname="localhost"
40992    fi
40993    DISTVER=`uname -a |awk '{print $3}'`
40994    VER=`echo $DISTVER | cut -c 1`
40995    if test x$VER = x4 ; then
40996       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
40997       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
40998    fi
40999    lld="qd"
41000    llu="qu"
41001    TAPEDRIVE="/dev/nrsa0"
41002    PSCMD="ps -ax -o pid,command"
41003    PFILES="${PFILES} \
41004        platforms/freebsd/Makefile \
41005        platforms/freebsd/bacula-fd \
41006        platforms/freebsd/bacula-sd \
41007        platforms/freebsd/bacula-dir"
41008    largefile_support="yes"
41009   ;;
41010 hpux)
41011    PSCMD="UNIX95=1; ps -e -o pid,comm"
41012    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41013    DISTVER=`uname -r`
41014    TAPEDRIVE="/dev/rmt/0hnb"
41015    PTHREAD_LIB="-lpthread"
41016    cat >>confdefs.h <<\_ACEOF
41017 #define _INCLUDE_LONGLONG 1
41018 _ACEOF
41019
41020   ;;
41021 irix)
41022    DISTVER=`uname -r`
41023    TAPEDRIVE="/dev/rmt/0cbn"
41024    PSCMD="ps -e -o pid,comm"
41025    PFILES="${PFILES} \
41026        platforms/irix/Makefile \
41027        platforms/irix/bacula-fd \
41028        platforms/irix/bacula-sd \
41029        platforms/irix/bacula-dir"
41030   ;;
41031 netbsd)
41032    DISTVER=`uname -a |awk '{print $3}'`
41033    lld="qd"
41034    llu="qu"
41035    TAPEDRIVE="/dev/nrst0"
41036    PSCMD="ps -ax -o pid,command"
41037    PTHREAD_LIB="-pthread"
41038    CFLAGS="${CFLAGS} -pthread"
41039   ;;
41040 openbsd)
41041    DISTVER=`uname -a |awk '{print $3}'`
41042    lld="qd"
41043    llu="qu"
41044    TAPEDRIVE="/dev/nrst0"
41045    PSCMD="ps -ax -o pid,command"
41046    PTHREAD_LIB="-pthread"
41047    CFLAGS="${CFLAGS} -pthread"
41048    PFILES="${PFILES} \
41049        platforms/openbsd/Makefile \
41050        platforms/openbsd/bacula-fd \
41051        platforms/openbsd/bacula-sd \
41052        platforms/openbsd/bacula-dir"
41053   ;;
41054 redhat)
41055       ping -c 1 $hostname 2>&1 1>/dev/null
41056    if test ! $? = 0; then
41057       hostname="localhost"
41058    fi
41059    if test -f /etc/whitebox-release ; then
41060       f=/etc/whitebox-release
41061    else
41062       f=/etc/redhat-release
41063    fi
41064    if test `cat $f | grep release |\
41065          cut -f 3 -d ' '`x = "Enterprise"x ; then
41066       DISTVER="Enterprise "`cat $f | grep release |\
41067           cut -f 6 -d ' '`
41068    else
41069        DISTVER=`cat /etc/redhat-release | grep release |\
41070            cut -f 5 -d ' '`
41071    fi
41072    TAPEDRIVE="/dev/nst0"
41073    PSCMD="ps -e -o pid,command"
41074    PFILES="${PFILES} \
41075        platforms/redhat/Makefile \
41076        platforms/redhat/bacula-fd \
41077        platforms/redhat/bacula-sd \
41078        platforms/redhat/bacula-dir \
41079        platforms/redhat/bacula.spec \
41080        "
41081   ;;
41082 mandrake)
41083       ping -c 1 $hostname 2>&1 1>/dev/null
41084    if test ! $? = 0; then
41085       hostname="localhost"
41086    fi
41087    DISTVER=`cat /etc/mandrake-release | grep release |\
41088       cut -f 5 -d ' '`
41089    TAPEDRIVE="/dev/nst0"
41090    PSCMD="ps -e -o pid,command"
41091    PFILES="${PFILES} \
41092        platforms/mandrake/Makefile \
41093        platforms/mandrake/bacula-fd \
41094        platforms/mandrake/bacula-sd \
41095        platforms/mandrake/bacula-dir \
41096        platforms/mandrake/bacula.spec \
41097        "
41098   ;;
41099 gentoo)
41100       ping -c 1 $hostname 2>&1 1>/dev/null
41101    if test ! $? = 0; then
41102       hostname="localhost"
41103    fi
41104    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41105    TAPEDRIVE="/dev/nst0"
41106    PSCMD="ps -e -o pid,command"
41107    PFILES="${PFILES} \
41108        platforms/gentoo/Makefile \
41109     platforms/gentoo/bacula-init \
41110        platforms/gentoo/bacula-fd \
41111        platforms/gentoo/bacula-sd \
41112        platforms/gentoo/bacula-dir"
41113   ;;
41114 slackware)
41115       ping -c 1 $hostname 2>&1 1>/dev/null
41116    if test ! $? = 0; then
41117       hostname="localhost"
41118    fi
41119    DISTVER=`cat /etc/slackware-version`
41120    TAPEDRIVE="/dev/nst0"
41121    PSCMD="ps -e -o pid,command"
41122    PFILES="${PFILES} \
41123        platforms/slackware/Makefile \
41124        platforms/slackware/rc.bacula-fd \
41125        platforms/slackware/rc.bacula-sd \
41126        platforms/slackware/rc.bacula-dir\
41127        platforms/slackware/functions.bacula"
41128   ;;
41129 solaris)
41130    DISTVER=`uname -r`
41131    TAPEDRIVE="/dev/rmt/0cbn"
41132    PSCMD="ps -e -o pid,comm"
41133    PFILES="${PFILES} \
41134        platforms/solaris/Makefile \
41135        platforms/solaris/bacula-fd \
41136        platforms/solaris/bacula-sd \
41137        platforms/solaris/bacula-dir"
41138    if test x$DISTVER = x5.6 ; then
41139        cat >>confdefs.h <<\_ACEOF
41140 #define HAVE_OLD_SOCKOPT 1
41141 _ACEOF
41142
41143    fi
41144    LIBS="$LIBS -lresolv"
41145   ;;
41146 suse)
41147       ping -c 1 $hostname 2>&1 1>/dev/null
41148    if test ! $? = 0; then
41149       hostname="localhost"
41150    fi
41151    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41152        cut -f 3 -d ' '`
41153    TAPEDRIVE="/dev/nst0"
41154    PSCMD="ps -e -o pid,command"
41155    PFILES="${PFILES} \
41156        platforms/suse/Makefile \
41157        platforms/suse/bacula-fd \
41158        platforms/suse/bacula-sd \
41159        platforms/suse/bacula-dir \
41160        platforms/suse/bacula \
41161        platforms/suse/bacula.spec"
41162   ;;
41163 suse5)
41164       ping -c 1 $hostname 2>&1 1>/dev/null
41165    if test ! $? = 0; then
41166       hostname="localhost"
41167    fi
41168    DISTNAME=suse
41169    DISTVER=5.x
41170    TAPEDRIVE="/dev/nst0"
41171    PSCMD="ps -e -o pid,command"
41172    PFILES="${PFILES} \
41173        platforms/suse/Makefile \
41174        platforms/suse/bacula-fd \
41175        platforms/suse/bacula-sd \
41176        platforms/suse/bacula-dir"
41177   ;;
41178 unknown)
41179    DISTVER=unknown
41180    TAPEDRIVE="/dev/nst0"
41181   ;;
41182 *)
41183   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41184   ;;
41185 esac
41186
41187
41188
41189 LIBS="$PTHREAD_LIB $LIBS"
41190
41191 cat >>confdefs.h <<_ACEOF
41192 #define lld "$lld"
41193 _ACEOF
41194
41195 cat >>confdefs.h <<_ACEOF
41196 #define llu "$llu"
41197 _ACEOF
41198
41199
41200
41201
41202
41203
41204
41205
41206 MCOMMON=./autoconf/Make.common
41207
41208
41209 if test "x${subsysdir}" = "x${sbindir}" ; then
41210    echo " "
41211    echo " "
41212    echo "You have set both --sbindir and --with-subsys-dir"
41213    echo "  equal to: ${subsysdir} "
41214    echo "This is not permitted. Please reconfigure."
41215    echo " "
41216    echo "Aborting configuration ..."
41217    echo " "
41218    echo " "
41219    exit 1
41220 fi
41221
41222 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
41223
41224 ac_config_commands="$ac_config_commands default"
41225
41226 cat >confcache <<\_ACEOF
41227 # This file is a shell script that caches the results of configure
41228 # tests run on this system so they can be shared between configure
41229 # scripts and configure runs, see configure's option --config-cache.
41230 # It is not useful on other systems.  If it contains results you don't
41231 # want to keep, you may remove or edit it.
41232 #
41233 # config.status only pays attention to the cache file if you give it
41234 # the --recheck option to rerun configure.
41235 #
41236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41238 # following values.
41239
41240 _ACEOF
41241
41242 # The following way of writing the cache mishandles newlines in values,
41243 # but we know of no workaround that is simple, portable, and efficient.
41244 # So, we kill variables containing newlines.
41245 # Ultrix sh set writes to stderr and can't be redirected directly,
41246 # and sets the high bit in the cache file unless we assign to the vars.
41247 (
41248   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41249     eval ac_val=\$$ac_var
41250     case $ac_val in #(
41251     *${as_nl}*)
41252       case $ac_var in #(
41253       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41254 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41255       esac
41256       case $ac_var in #(
41257       _ | IFS | as_nl) ;; #(
41258       *) $as_unset $ac_var ;;
41259       esac ;;
41260     esac
41261   done
41262
41263   (set) 2>&1 |
41264     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41265     *${as_nl}ac_space=\ *)
41266       # `set' does not quote correctly, so add quotes (double-quote
41267       # substitution turns \\\\ into \\, and sed turns \\ into \).
41268       sed -n \
41269         "s/'/'\\\\''/g;
41270           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41271       ;; #(
41272     *)
41273       # `set' quotes correctly as required by POSIX, so do not add quotes.
41274       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41275       ;;
41276     esac |
41277     sort
41278 ) |
41279   sed '
41280      /^ac_cv_env_/b end
41281      t clear
41282      :clear
41283      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41284      t end
41285      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41286      :end' >>confcache
41287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41288   if test -w "$cache_file"; then
41289     test "x$cache_file" != "x/dev/null" &&
41290       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41291 echo "$as_me: updating cache $cache_file" >&6;}
41292     cat confcache >$cache_file
41293   else
41294     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41295 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41296   fi
41297 fi
41298 rm -f confcache
41299
41300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41301 # Let make expand exec_prefix.
41302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41303
41304 DEFS=-DHAVE_CONFIG_H
41305
41306 ac_libobjs=
41307 ac_ltlibobjs=
41308 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41309   # 1. Remove the extension, and $U if already installed.
41310   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41311   ac_i=`echo "$ac_i" | sed "$ac_script"`
41312   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41313   #    will be set to the directory where LIBOBJS objects are built.
41314   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41315   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41316 done
41317 LIBOBJS=$ac_libobjs
41318
41319 LTLIBOBJS=$ac_ltlibobjs
41320
41321
41322
41323 : ${CONFIG_STATUS=./config.status}
41324 ac_clean_files_save=$ac_clean_files
41325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41326 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41327 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41328 cat >$CONFIG_STATUS <<_ACEOF
41329 #! $SHELL
41330 # Generated by $as_me.
41331 # Run this file to recreate the current configuration.
41332 # Compiler output produced by configure, useful for debugging
41333 # configure, is in config.log if it exists.
41334
41335 debug=false
41336 ac_cs_recheck=false
41337 ac_cs_silent=false
41338 SHELL=\${CONFIG_SHELL-$SHELL}
41339 _ACEOF
41340
41341 cat >>$CONFIG_STATUS <<\_ACEOF
41342 ## --------------------- ##
41343 ## M4sh Initialization.  ##
41344 ## --------------------- ##
41345
41346 # Be more Bourne compatible
41347 DUALCASE=1; export DUALCASE # for MKS sh
41348 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41349   emulate sh
41350   NULLCMD=:
41351   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41352   # is contrary to our usage.  Disable this feature.
41353   alias -g '${1+"$@"}'='"$@"'
41354   setopt NO_GLOB_SUBST
41355 else
41356   case `(set -o) 2>/dev/null` in
41357   *posix*) set -o posix ;;
41358 esac
41359
41360 fi
41361
41362
41363
41364
41365 # PATH needs CR
41366 # Avoid depending upon Character Ranges.
41367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41370 as_cr_digits='0123456789'
41371 as_cr_alnum=$as_cr_Letters$as_cr_digits
41372
41373 # The user is always right.
41374 if test "${PATH_SEPARATOR+set}" != set; then
41375   echo "#! /bin/sh" >conf$$.sh
41376   echo  "exit 0"   >>conf$$.sh
41377   chmod +x conf$$.sh
41378   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41379     PATH_SEPARATOR=';'
41380   else
41381     PATH_SEPARATOR=:
41382   fi
41383   rm -f conf$$.sh
41384 fi
41385
41386 # Support unset when possible.
41387 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41388   as_unset=unset
41389 else
41390   as_unset=false
41391 fi
41392
41393
41394 # IFS
41395 # We need space, tab and new line, in precisely that order.  Quoting is
41396 # there to prevent editors from complaining about space-tab.
41397 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41398 # splitting by setting IFS to empty value.)
41399 as_nl='
41400 '
41401 IFS=" ""        $as_nl"
41402
41403 # Find who we are.  Look in the path if we contain no directory separator.
41404 case $0 in
41405   *[\\/]* ) as_myself=$0 ;;
41406   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41407 for as_dir in $PATH
41408 do
41409   IFS=$as_save_IFS
41410   test -z "$as_dir" && as_dir=.
41411   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41412 done
41413 IFS=$as_save_IFS
41414
41415      ;;
41416 esac
41417 # We did not find ourselves, most probably we were run as `sh COMMAND'
41418 # in which case we are not to be found in the path.
41419 if test "x$as_myself" = x; then
41420   as_myself=$0
41421 fi
41422 if test ! -f "$as_myself"; then
41423   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41424   { (exit 1); exit 1; }
41425 fi
41426
41427 # Work around bugs in pre-3.0 UWIN ksh.
41428 for as_var in ENV MAIL MAILPATH
41429 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41430 done
41431 PS1='$ '
41432 PS2='> '
41433 PS4='+ '
41434
41435 # NLS nuisances.
41436 for as_var in \
41437   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41438   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41439   LC_TELEPHONE LC_TIME
41440 do
41441   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41442     eval $as_var=C; export $as_var
41443   else
41444     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41445   fi
41446 done
41447
41448 # Required to use basename.
41449 if expr a : '\(a\)' >/dev/null 2>&1 &&
41450    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41451   as_expr=expr
41452 else
41453   as_expr=false
41454 fi
41455
41456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41457   as_basename=basename
41458 else
41459   as_basename=false
41460 fi
41461
41462
41463 # Name of the executable.
41464 as_me=`$as_basename -- "$0" ||
41465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41466          X"$0" : 'X\(//\)$' \| \
41467          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41468 echo X/"$0" |
41469     sed '/^.*\/\([^/][^/]*\)\/*$/{
41470             s//\1/
41471             q
41472           }
41473           /^X\/\(\/\/\)$/{
41474             s//\1/
41475             q
41476           }
41477           /^X\/\(\/\).*/{
41478             s//\1/
41479             q
41480           }
41481           s/.*/./; q'`
41482
41483 # CDPATH.
41484 $as_unset CDPATH
41485
41486
41487
41488   as_lineno_1=$LINENO
41489   as_lineno_2=$LINENO
41490   test "x$as_lineno_1" != "x$as_lineno_2" &&
41491   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41492
41493   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41494   # uniformly replaced by the line number.  The first 'sed' inserts a
41495   # line-number line after each line using $LINENO; the second 'sed'
41496   # does the real work.  The second script uses 'N' to pair each
41497   # line-number line with the line containing $LINENO, and appends
41498   # trailing '-' during substitution so that $LINENO is not a special
41499   # case at line end.
41500   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41501   # scripts with optimization help from Paolo Bonzini.  Blame Lee
41502   # E. McMahon (1931-1989) for sed's syntax.  :-)
41503   sed -n '
41504     p
41505     /[$]LINENO/=
41506   ' <$as_myself |
41507     sed '
41508       s/[$]LINENO.*/&-/
41509       t lineno
41510       b
41511       :lineno
41512       N
41513       :loop
41514       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41515       t loop
41516       s/-\n.*//
41517     ' >$as_me.lineno &&
41518   chmod +x "$as_me.lineno" ||
41519     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41520    { (exit 1); exit 1; }; }
41521
41522   # Don't try to exec as it changes $[0], causing all sort of problems
41523   # (the dirname of $[0] is not the place where we might find the
41524   # original and so on.  Autoconf is especially sensitive to this).
41525   . "./$as_me.lineno"
41526   # Exit status is that of the last command.
41527   exit
41528 }
41529
41530
41531 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41532   as_dirname=dirname
41533 else
41534   as_dirname=false
41535 fi
41536
41537 ECHO_C= ECHO_N= ECHO_T=
41538 case `echo -n x` in
41539 -n*)
41540   case `echo 'x\c'` in
41541   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41542   *)   ECHO_C='\c';;
41543   esac;;
41544 *)
41545   ECHO_N='-n';;
41546 esac
41547
41548 if expr a : '\(a\)' >/dev/null 2>&1 &&
41549    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41550   as_expr=expr
41551 else
41552   as_expr=false
41553 fi
41554
41555 rm -f conf$$ conf$$.exe conf$$.file
41556 if test -d conf$$.dir; then
41557   rm -f conf$$.dir/conf$$.file
41558 else
41559   rm -f conf$$.dir
41560   mkdir conf$$.dir
41561 fi
41562 echo >conf$$.file
41563 if ln -s conf$$.file conf$$ 2>/dev/null; then
41564   as_ln_s='ln -s'
41565   # ... but there are two gotchas:
41566   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41567   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41568   # In both cases, we have to default to `cp -p'.
41569   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41570     as_ln_s='cp -p'
41571 elif ln conf$$.file conf$$ 2>/dev/null; then
41572   as_ln_s=ln
41573 else
41574   as_ln_s='cp -p'
41575 fi
41576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41577 rmdir conf$$.dir 2>/dev/null
41578
41579 if mkdir -p . 2>/dev/null; then
41580   as_mkdir_p=:
41581 else
41582   test -d ./-p && rmdir ./-p
41583   as_mkdir_p=false
41584 fi
41585
41586 if test -x / >/dev/null 2>&1; then
41587   as_test_x='test -x'
41588 else
41589   if ls -dL / >/dev/null 2>&1; then
41590     as_ls_L_option=L
41591   else
41592     as_ls_L_option=
41593   fi
41594   as_test_x='
41595     eval sh -c '\''
41596       if test -d "$1"; then
41597         test -d "$1/.";
41598       else
41599         case $1 in
41600         -*)set "./$1";;
41601         esac;
41602         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41603         ???[sx]*):;;*)false;;esac;fi
41604     '\'' sh
41605   '
41606 fi
41607 as_executable_p=$as_test_x
41608
41609 # Sed expression to map a string onto a valid CPP name.
41610 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41611
41612 # Sed expression to map a string onto a valid variable name.
41613 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41614
41615
41616 exec 6>&1
41617
41618 # Save the log message, to keep $[0] and so on meaningful, and to
41619 # report actual input values of CONFIG_FILES etc. instead of their
41620 # values after options handling.
41621 ac_log="
41622 This file was extended by $as_me, which was
41623 generated by GNU Autoconf 2.61.  Invocation command line was
41624
41625   CONFIG_FILES    = $CONFIG_FILES
41626   CONFIG_HEADERS  = $CONFIG_HEADERS
41627   CONFIG_LINKS    = $CONFIG_LINKS
41628   CONFIG_COMMANDS = $CONFIG_COMMANDS
41629   $ $0 $@
41630
41631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41632 "
41633
41634 _ACEOF
41635
41636 cat >>$CONFIG_STATUS <<_ACEOF
41637 # Files that config.status was made for.
41638 config_files="$ac_config_files"
41639 config_headers="$ac_config_headers"
41640 config_commands="$ac_config_commands"
41641
41642 _ACEOF
41643
41644 cat >>$CONFIG_STATUS <<\_ACEOF
41645 ac_cs_usage="\
41646 \`$as_me' instantiates files from templates according to the
41647 current configuration.
41648
41649 Usage: $0 [OPTIONS] [FILE]...
41650
41651   -h, --help       print this help, then exit
41652   -V, --version    print version number and configuration settings, then exit
41653   -q, --quiet      do not print progress messages
41654   -d, --debug      don't remove temporary files
41655       --recheck    update $as_me by reconfiguring in the same conditions
41656   --file=FILE[:TEMPLATE]
41657                    instantiate the configuration file FILE
41658   --header=FILE[:TEMPLATE]
41659                    instantiate the configuration header FILE
41660
41661 Configuration files:
41662 $config_files
41663
41664 Configuration headers:
41665 $config_headers
41666
41667 Configuration commands:
41668 $config_commands
41669
41670 Report bugs to <bug-autoconf@gnu.org>."
41671
41672 _ACEOF
41673 cat >>$CONFIG_STATUS <<_ACEOF
41674 ac_cs_version="\\
41675 config.status
41676 configured by $0, generated by GNU Autoconf 2.61,
41677   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41678
41679 Copyright (C) 2006 Free Software Foundation, Inc.
41680 This config.status script is free software; the Free Software Foundation
41681 gives unlimited permission to copy, distribute and modify it."
41682
41683 ac_pwd='$ac_pwd'
41684 srcdir='$srcdir'
41685 INSTALL='$INSTALL'
41686 _ACEOF
41687
41688 cat >>$CONFIG_STATUS <<\_ACEOF
41689 # If no file are specified by the user, then we need to provide default
41690 # value.  By we need to know if files were specified by the user.
41691 ac_need_defaults=:
41692 while test $# != 0
41693 do
41694   case $1 in
41695   --*=*)
41696     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41697     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41698     ac_shift=:
41699     ;;
41700   *)
41701     ac_option=$1
41702     ac_optarg=$2
41703     ac_shift=shift
41704     ;;
41705   esac
41706
41707   case $ac_option in
41708   # Handling of the options.
41709   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41710     ac_cs_recheck=: ;;
41711   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41712     echo "$ac_cs_version"; exit ;;
41713   --debug | --debu | --deb | --de | --d | -d )
41714     debug=: ;;
41715   --file | --fil | --fi | --f )
41716     $ac_shift
41717     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41718     ac_need_defaults=false;;
41719   --header | --heade | --head | --hea )
41720     $ac_shift
41721     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41722     ac_need_defaults=false;;
41723   --he | --h)
41724     # Conflict between --help and --header
41725     { echo "$as_me: error: ambiguous option: $1
41726 Try \`$0 --help' for more information." >&2
41727    { (exit 1); exit 1; }; };;
41728   --help | --hel | -h )
41729     echo "$ac_cs_usage"; exit ;;
41730   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41731   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41732     ac_cs_silent=: ;;
41733
41734   # This is an error.
41735   -*) { echo "$as_me: error: unrecognized option: $1
41736 Try \`$0 --help' for more information." >&2
41737    { (exit 1); exit 1; }; } ;;
41738
41739   *) ac_config_targets="$ac_config_targets $1"
41740      ac_need_defaults=false ;;
41741
41742   esac
41743   shift
41744 done
41745
41746 ac_configure_extra_args=
41747
41748 if $ac_cs_silent; then
41749   exec 6>/dev/null
41750   ac_configure_extra_args="$ac_configure_extra_args --silent"
41751 fi
41752
41753 _ACEOF
41754 cat >>$CONFIG_STATUS <<_ACEOF
41755 if \$ac_cs_recheck; then
41756   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41757   CONFIG_SHELL=$SHELL
41758   export CONFIG_SHELL
41759   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41760 fi
41761
41762 _ACEOF
41763 cat >>$CONFIG_STATUS <<\_ACEOF
41764 exec 5>>config.log
41765 {
41766   echo
41767   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41768 ## Running $as_me. ##
41769 _ASBOX
41770   echo "$ac_log"
41771 } >&5
41772
41773 _ACEOF
41774 cat >>$CONFIG_STATUS <<_ACEOF
41775 #
41776 # INIT-COMMANDS
41777 #
41778
41779
41780 # The HP-UX ksh and POSIX shell print the target directory to stdout
41781 # if CDPATH is set.
41782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41783
41784 sed_quote_subst='$sed_quote_subst'
41785 double_quote_subst='$double_quote_subst'
41786 delay_variable_subst='$delay_variable_subst'
41787 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41788 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41789 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41790 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41791 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41792 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41793 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41794 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41795 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41796 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41797 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41798 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41799 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41800 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41801 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41802 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41803 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41804 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41805 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41806 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41807 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41808 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41809 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41810 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41811 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41812 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41813 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41814 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41815 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41816 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41817 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41818 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41819 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41820 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41821 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41822 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41823 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41824 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41825 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41826 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41827 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41828 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41829 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41831 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"`'
41832 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"`'
41833 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41834 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41835 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41836 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41837 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41838 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41839 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41840 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41841 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41842 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41843 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41844 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41845 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41846 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41847 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41848 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41849 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41850 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41851 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41852 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41853 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41854 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41855 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41856 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41857 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41858 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41859 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41860 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41861 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41862 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41863 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41864 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41865 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41866 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41867 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41868 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41869 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41870 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41871 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41872 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41873 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41874 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41875 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41876 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41877 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41879 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41880 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41881 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41882 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41883 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41884 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41885 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41886 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41887 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41888 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41889 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41890 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41891 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41892 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41893 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41894 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41895 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41896 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41897 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41898 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41899 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41900 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41901 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41902 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41903 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41904 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41905 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41906 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41907 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41908 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41909 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41910 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41911 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41912 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41913 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41914 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41915 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41916 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41917 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41918 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41919 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41920 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41921 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41922 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41923 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41924 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41925 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41926 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41927 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41928 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41929 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41930 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958
41959 LTCC='$LTCC'
41960 LTCFLAGS='$LTCFLAGS'
41961 compiler='$compiler_DEFAULT'
41962
41963 # Quote evaled strings.
41964 for var in SED \
41965 GREP \
41966 EGREP \
41967 FGREP \
41968 LD \
41969 NM \
41970 LN_S \
41971 lt_SP2NL \
41972 lt_NL2SP \
41973 reload_flag \
41974 OBJDUMP \
41975 deplibs_check_method \
41976 file_magic_cmd \
41977 AR \
41978 AR_FLAGS \
41979 STRIP \
41980 RANLIB \
41981 CC \
41982 CFLAGS \
41983 compiler \
41984 lt_cv_sys_global_symbol_pipe \
41985 lt_cv_sys_global_symbol_to_cdecl \
41986 lt_cv_sys_global_symbol_to_c_name_address \
41987 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41988 SHELL \
41989 ECHO \
41990 lt_prog_compiler_no_builtin_flag \
41991 lt_prog_compiler_wl \
41992 lt_prog_compiler_pic \
41993 lt_prog_compiler_static \
41994 lt_cv_prog_compiler_c_o \
41995 need_locks \
41996 DSYMUTIL \
41997 NMEDIT \
41998 LIPO \
41999 OTOOL \
42000 OTOOL64 \
42001 shrext_cmds \
42002 export_dynamic_flag_spec \
42003 whole_archive_flag_spec \
42004 compiler_needs_object \
42005 with_gnu_ld \
42006 allow_undefined_flag \
42007 no_undefined_flag \
42008 hardcode_libdir_flag_spec \
42009 hardcode_libdir_flag_spec_ld \
42010 hardcode_libdir_separator \
42011 fix_srcfile_path \
42012 exclude_expsyms \
42013 include_expsyms \
42014 file_list_spec \
42015 variables_saved_for_relink \
42016 libname_spec \
42017 library_names_spec \
42018 soname_spec \
42019 finish_eval \
42020 old_striplib \
42021 striplib \
42022 compiler_lib_search_dirs \
42023 predep_objects \
42024 postdep_objects \
42025 predeps \
42026 postdeps \
42027 compiler_lib_search_path \
42028 LD_CXX \
42029 compiler_CXX \
42030 lt_prog_compiler_no_builtin_flag_CXX \
42031 lt_prog_compiler_wl_CXX \
42032 lt_prog_compiler_pic_CXX \
42033 lt_prog_compiler_static_CXX \
42034 lt_cv_prog_compiler_c_o_CXX \
42035 export_dynamic_flag_spec_CXX \
42036 whole_archive_flag_spec_CXX \
42037 compiler_needs_object_CXX \
42038 with_gnu_ld_CXX \
42039 allow_undefined_flag_CXX \
42040 no_undefined_flag_CXX \
42041 hardcode_libdir_flag_spec_CXX \
42042 hardcode_libdir_flag_spec_ld_CXX \
42043 hardcode_libdir_separator_CXX \
42044 fix_srcfile_path_CXX \
42045 exclude_expsyms_CXX \
42046 include_expsyms_CXX \
42047 file_list_spec_CXX \
42048 compiler_lib_search_dirs_CXX \
42049 predep_objects_CXX \
42050 postdep_objects_CXX \
42051 predeps_CXX \
42052 postdeps_CXX \
42053 compiler_lib_search_path_CXX; do
42054     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42055     *[\\\\\\\`\\"\\\$]*)
42056       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42057       ;;
42058     *)
42059       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42060       ;;
42061     esac
42062 done
42063
42064 # Double-quote double-evaled strings.
42065 for var in reload_cmds \
42066 old_postinstall_cmds \
42067 old_postuninstall_cmds \
42068 old_archive_cmds \
42069 extract_expsyms_cmds \
42070 old_archive_from_new_cmds \
42071 old_archive_from_expsyms_cmds \
42072 archive_cmds \
42073 archive_expsym_cmds \
42074 module_cmds \
42075 module_expsym_cmds \
42076 export_symbols_cmds \
42077 prelink_cmds \
42078 postinstall_cmds \
42079 postuninstall_cmds \
42080 finish_cmds \
42081 sys_lib_search_path_spec \
42082 sys_lib_dlsearch_path_spec \
42083 old_archive_cmds_CXX \
42084 old_archive_from_new_cmds_CXX \
42085 old_archive_from_expsyms_cmds_CXX \
42086 archive_cmds_CXX \
42087 archive_expsym_cmds_CXX \
42088 module_cmds_CXX \
42089 module_expsym_cmds_CXX \
42090 export_symbols_cmds_CXX \
42091 prelink_cmds_CXX; do
42092     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42093     *[\\\\\\\`\\"\\\$]*)
42094       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42095       ;;
42096     *)
42097       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42098       ;;
42099     esac
42100 done
42101
42102 # Fix-up fallback echo if it was mangled by the above quoting rules.
42103 case \$lt_ECHO in
42104 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42105   ;;
42106 esac
42107
42108 ac_aux_dir='$ac_aux_dir'
42109 xsi_shell='$xsi_shell'
42110 lt_shell_append='$lt_shell_append'
42111
42112 # See if we are running on zsh, and set the options which allow our
42113 # commands through without removal of \ escapes INIT.
42114 if test -n "\${ZSH_VERSION+set}" ; then
42115    setopt NO_GLOB_SUBST
42116 fi
42117
42118
42119     PACKAGE='$PACKAGE'
42120     VERSION='$VERSION'
42121     TIMESTAMP='$TIMESTAMP'
42122     RM='$RM'
42123     ofile='$ofile'
42124
42125
42126
42127
42128
42129 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42130     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42131     # from automake.
42132     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42133     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42134     LINGUAS="${LINGUAS-%UNSET%}"
42135
42136
42137 _ACEOF
42138
42139 cat >>$CONFIG_STATUS <<\_ACEOF
42140
42141 # Handling of arguments.
42142 for ac_config_target in $ac_config_targets
42143 do
42144   case $ac_config_target in
42145     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42146     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42147     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42148     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42149     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42150     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42151     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42152     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42153     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42154     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42155     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42156     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42157     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42158     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42159     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42160     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42161     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42162     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42163     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42164     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42165     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42166     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42167     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42168     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42169     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42170     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42171     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42172     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42173     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42174     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42175     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42176     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42177     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42178     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42179     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42180     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42181     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42182     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42183     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42184     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42185     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42186     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42187     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42188     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42189     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42190     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42191     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42192     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42193     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42194     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42195     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42196     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42197     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42198     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42199     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42200     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42201     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42202     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42203     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42204     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42205     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42206     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42207     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42208     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42209     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42210     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42211     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42212     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42213     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42214     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42215     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42216     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42217     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42218     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42219     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42220     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42221     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42222     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42223     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42224     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42225     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42226     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42227     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42228     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42229     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42230     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42231     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42232     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42233     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42234     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42235     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42236     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42237     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42238     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42239     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42240     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42241     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42242     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42243     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42244     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42245     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42246     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42247     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42248     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42249     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42250     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42251     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42252     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42253     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42254     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42255     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42256     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42257     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42258
42259   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42260 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42261    { (exit 1); exit 1; }; };;
42262   esac
42263 done
42264
42265
42266 # If the user did not use the arguments to specify the items to instantiate,
42267 # then the envvar interface is used.  Set only those that are not.
42268 # We use the long form for the default assignment because of an extremely
42269 # bizarre bug on SunOS 4.1.3.
42270 if $ac_need_defaults; then
42271   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42272   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42273   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42274 fi
42275
42276 # Have a temporary directory for convenience.  Make it in the build tree
42277 # simply because there is no reason against having it here, and in addition,
42278 # creating and moving files from /tmp can sometimes cause problems.
42279 # Hook for its removal unless debugging.
42280 # Note that there is a small window in which the directory will not be cleaned:
42281 # after its creation but before its name has been assigned to `$tmp'.
42282 $debug ||
42283 {
42284   tmp=
42285   trap 'exit_status=$?
42286   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42287 ' 0
42288   trap '{ (exit 1); exit 1; }' 1 2 13 15
42289 }
42290 # Create a (secure) tmp directory for tmp files.
42291
42292 {
42293   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42294   test -n "$tmp" && test -d "$tmp"
42295 }  ||
42296 {
42297   tmp=./conf$$-$RANDOM
42298   (umask 077 && mkdir "$tmp")
42299 } ||
42300 {
42301    echo "$me: cannot create a temporary directory in ." >&2
42302    { (exit 1); exit 1; }
42303 }
42304
42305 #
42306 # Set up the sed scripts for CONFIG_FILES section.
42307 #
42308
42309 # No need to generate the scripts if there are no CONFIG_FILES.
42310 # This happens for instance when ./config.status config.h
42311 if test -n "$CONFIG_FILES"; then
42312
42313 _ACEOF
42314
42315 # Create sed commands to just substitute file output variables.
42316
42317 # Remaining file output variables are in a fragment that also has non-file
42318 # output varibles.
42319
42320
42321
42322 ac_delim='%!_!# '
42323 for ac_last_try in false false false false false :; do
42324   cat >conf$$subs.sed <<_ACEOF
42325 SHELL!$SHELL$ac_delim
42326 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42327 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42328 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42329 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42330 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42331 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42332 exec_prefix!$exec_prefix$ac_delim
42333 prefix!$prefix$ac_delim
42334 program_transform_name!$program_transform_name$ac_delim
42335 bindir!$bindir$ac_delim
42336 sbindir!$sbindir$ac_delim
42337 libexecdir!$libexecdir$ac_delim
42338 datarootdir!$datarootdir$ac_delim
42339 datadir!$datadir$ac_delim
42340 sysconfdir!$sysconfdir$ac_delim
42341 sharedstatedir!$sharedstatedir$ac_delim
42342 localstatedir!$localstatedir$ac_delim
42343 includedir!$includedir$ac_delim
42344 oldincludedir!$oldincludedir$ac_delim
42345 docdir!$docdir$ac_delim
42346 infodir!$infodir$ac_delim
42347 htmldir!$htmldir$ac_delim
42348 dvidir!$dvidir$ac_delim
42349 pdfdir!$pdfdir$ac_delim
42350 psdir!$psdir$ac_delim
42351 libdir!$libdir$ac_delim
42352 localedir!$localedir$ac_delim
42353 mandir!$mandir$ac_delim
42354 DEFS!$DEFS$ac_delim
42355 ECHO_C!$ECHO_C$ac_delim
42356 ECHO_N!$ECHO_N$ac_delim
42357 ECHO_T!$ECHO_T$ac_delim
42358 LIBS!$LIBS$ac_delim
42359 build_alias!$build_alias$ac_delim
42360 host_alias!$host_alias$ac_delim
42361 target_alias!$target_alias$ac_delim
42362 BUILD_DIR!$BUILD_DIR$ac_delim
42363 TOP_DIR!$TOP_DIR$ac_delim
42364 TRUEPRG!$TRUEPRG$ac_delim
42365 FALSEPRG!$FALSEPRG$ac_delim
42366 VERSION!$VERSION$ac_delim
42367 DATE!$DATE$ac_delim
42368 LSMDATE!$LSMDATE$ac_delim
42369 BACULA!$BACULA$ac_delim
42370 post_host!$post_host$ac_delim
42371 CC!$CC$ac_delim
42372 CFLAGS!$CFLAGS$ac_delim
42373 LDFLAGS!$LDFLAGS$ac_delim
42374 CPPFLAGS!$CPPFLAGS$ac_delim
42375 ac_ct_CC!$ac_ct_CC$ac_delim
42376 EXEEXT!$EXEEXT$ac_delim
42377 OBJEXT!$OBJEXT$ac_delim
42378 CXX!$CXX$ac_delim
42379 CXXFLAGS!$CXXFLAGS$ac_delim
42380 ac_ct_CXX!$ac_ct_CXX$ac_delim
42381 CPP!$CPP$ac_delim
42382 GREP!$GREP$ac_delim
42383 EGREP!$EGREP$ac_delim
42384 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42385 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42386 INSTALL_DATA!$INSTALL_DATA$ac_delim
42387 MV!$MV$ac_delim
42388 REMOVE!$REMOVE$ac_delim
42389 CP!$CP$ac_delim
42390 SED!$SED$ac_delim
42391 ECHO!$ECHO$ac_delim
42392 CMP!$CMP$ac_delim
42393 TBL!$TBL$ac_delim
42394 AR!$AR$ac_delim
42395 OPENSSL!$OPENSSL$ac_delim
42396 MTX!$MTX$ac_delim
42397 DD!$DD$ac_delim
42398 MKISOFS!$MKISOFS$ac_delim
42399 PYTHON!$PYTHON$ac_delim
42400 GROWISOFS!$GROWISOFS$ac_delim
42401 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42402 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42403 PKGCONFIG!$PKGCONFIG$ac_delim
42404 QMAKE!$QMAKE$ac_delim
42405 QMAKEQT4!$QMAKEQT4$ac_delim
42406 WXCONFIG!$WXCONFIG$ac_delim
42407 WXFLAGS!$WXFLAGS$ac_delim
42408 CDRECORD!$CDRECORD$ac_delim
42409 PIDOF!$PIDOF$ac_delim
42410 AWK!$AWK$ac_delim
42411 ARFLAGS!$ARFLAGS$ac_delim
42412 MAKE_SHELL!$MAKE_SHELL$ac_delim
42413 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42414 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42415 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42416 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42417 LIBTOOL!$LIBTOOL$ac_delim
42418 build!$build$ac_delim
42419 _ACEOF
42420
42421   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42422     break
42423   elif $ac_last_try; then
42424     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42425 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42426    { (exit 1); exit 1; }; }
42427   else
42428     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42429   fi
42430 done
42431
42432 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42433 if test -n "$ac_eof"; then
42434   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42435   ac_eof=`expr $ac_eof + 1`
42436 fi
42437
42438 cat >>$CONFIG_STATUS <<_ACEOF
42439 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42441 /^[      ]*@MCOMMON@[    ]*$/{
42442 r $MCOMMON
42443 d
42444 }
42445 _ACEOF
42446 sed '
42447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42448 s/^/s,@/; s/!/@,|#_!!_#|/
42449 :n
42450 t n
42451 s/'"$ac_delim"'$/,g/; t
42452 s/$/\\/; p
42453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42454 ' >>$CONFIG_STATUS <conf$$subs.sed
42455 rm -f conf$$subs.sed
42456 cat >>$CONFIG_STATUS <<_ACEOF
42457 CEOF$ac_eof
42458 _ACEOF
42459
42460
42461 ac_delim='%!_!# '
42462 for ac_last_try in false false false false false :; do
42463   cat >conf$$subs.sed <<_ACEOF
42464 build_cpu!$build_cpu$ac_delim
42465 build_vendor!$build_vendor$ac_delim
42466 build_os!$build_os$ac_delim
42467 host!$host$ac_delim
42468 host_cpu!$host_cpu$ac_delim
42469 host_vendor!$host_vendor$ac_delim
42470 host_os!$host_os$ac_delim
42471 FGREP!$FGREP$ac_delim
42472 LD!$LD$ac_delim
42473 DUMPBIN!$DUMPBIN$ac_delim
42474 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42475 NM!$NM$ac_delim
42476 LN_S!$LN_S$ac_delim
42477 OBJDUMP!$OBJDUMP$ac_delim
42478 STRIP!$STRIP$ac_delim
42479 RANLIB!$RANLIB$ac_delim
42480 lt_ECHO!$lt_ECHO$ac_delim
42481 DSYMUTIL!$DSYMUTIL$ac_delim
42482 NMEDIT!$NMEDIT$ac_delim
42483 LIPO!$LIPO$ac_delim
42484 OTOOL!$OTOOL$ac_delim
42485 OTOOL64!$OTOOL64$ac_delim
42486 CXXCPP!$CXXCPP$ac_delim
42487 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42488 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42489 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42490 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42491 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42492 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42493 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42494 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42495 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42496 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42497 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42498 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42499 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42500 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42501 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42502 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42503 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42504 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42505 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42506 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42507 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42508 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42509 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42510 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42511 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42512 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42513 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42514 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42515 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42516 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42517 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42518 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42519 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42520 SET_MAKE!$SET_MAKE$ac_delim
42521 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42522 USE_NLS!$USE_NLS$ac_delim
42523 MSGFMT!$MSGFMT$ac_delim
42524 GMSGFMT!$GMSGFMT$ac_delim
42525 XGETTEXT!$XGETTEXT$ac_delim
42526 MSGMERGE!$MSGMERGE$ac_delim
42527 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42528 LIBICONV!$LIBICONV$ac_delim
42529 LTLIBICONV!$LTLIBICONV$ac_delim
42530 INTLLIBS!$INTLLIBS$ac_delim
42531 LIBINTL!$LIBINTL$ac_delim
42532 LTLIBINTL!$LTLIBINTL$ac_delim
42533 POSUB!$POSUB$ac_delim
42534 GLIBC2!$GLIBC2$ac_delim
42535 ALLOCA!$ALLOCA$ac_delim
42536 GLIBC21!$GLIBC21$ac_delim
42537 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42538 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42539 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42540 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42541 INTLBISON!$INTLBISON$ac_delim
42542 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42543 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42544 CATOBJEXT!$CATOBJEXT$ac_delim
42545 DATADIRNAME!$DATADIRNAME$ac_delim
42546 INSTOBJEXT!$INSTOBJEXT$ac_delim
42547 GENCAT!$GENCAT$ac_delim
42548 INTLOBJS!$INTLOBJS$ac_delim
42549 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42550 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42551 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42552 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42553 GNOME_LIBS!$GNOME_LIBS$ac_delim
42554 GNOME_DIR!$GNOME_DIR$ac_delim
42555 BAT_DIR!$BAT_DIR$ac_delim
42556 QWT_INC!$QWT_INC$ac_delim
42557 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42558 QWT_LIB!$QWT_LIB$ac_delim
42559 QWT!$QWT$ac_delim
42560 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42561 _ACEOF
42562
42563   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42564     break
42565   elif $ac_last_try; then
42566     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42568    { (exit 1); exit 1; }; }
42569   else
42570     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42571   fi
42572 done
42573
42574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42575 if test -n "$ac_eof"; then
42576   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42577   ac_eof=`expr $ac_eof + 1`
42578 fi
42579
42580 cat >>$CONFIG_STATUS <<_ACEOF
42581 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42583 _ACEOF
42584 sed '
42585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42586 s/^/s,@/; s/!/@,|#_!!_#|/
42587 :n
42588 t n
42589 s/'"$ac_delim"'$/,g/; t
42590 s/$/\\/; p
42591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42592 ' >>$CONFIG_STATUS <conf$$subs.sed
42593 rm -f conf$$subs.sed
42594 cat >>$CONFIG_STATUS <<_ACEOF
42595 CEOF$ac_eof
42596 _ACEOF
42597
42598
42599 ac_delim='%!_!# '
42600 for ac_last_try in false false false false false :; do
42601   cat >conf$$subs.sed <<_ACEOF
42602 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42603 WX_DIR!$WX_DIR$ac_delim
42604 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42605 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42606 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42607 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42608 STATIC_FD!$STATIC_FD$ac_delim
42609 STATIC_SD!$STATIC_SD$ac_delim
42610 STATIC_DIR!$STATIC_DIR$ac_delim
42611 STATIC_CONS!$STATIC_CONS$ac_delim
42612 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42613 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42614 ALL_DIRS!$ALL_DIRS$ac_delim
42615 DIRD_DIR!$DIRD_DIR$ac_delim
42616 DIR_TOOLS!$DIR_TOOLS$ac_delim
42617 STORED_DIR!$STORED_DIR$ac_delim
42618 CONS_INC!$CONS_INC$ac_delim
42619 CONS_OBJ!$CONS_OBJ$ac_delim
42620 CONS_SRC!$CONS_SRC$ac_delim
42621 CONS_LIBS!$CONS_LIBS$ac_delim
42622 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42623 READLINE_SRC!$READLINE_SRC$ac_delim
42624 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42625 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42626 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42627 OPENSSL_INC!$OPENSSL_INC$ac_delim
42628 working_dir!$working_dir$ac_delim
42629 archivedir!$archivedir$ac_delim
42630 scriptdir!$scriptdir$ac_delim
42631 plugindir!$plugindir$ac_delim
42632 dump_email!$dump_email$ac_delim
42633 job_email!$job_email$ac_delim
42634 smtp_host!$smtp_host$ac_delim
42635 piddir!$piddir$ac_delim
42636 subsysdir!$subsysdir$ac_delim
42637 baseport!$baseport$ac_delim
42638 dir_port!$dir_port$ac_delim
42639 fd_port!$fd_port$ac_delim
42640 sd_port!$sd_port$ac_delim
42641 dir_password!$dir_password$ac_delim
42642 fd_password!$fd_password$ac_delim
42643 sd_password!$sd_password$ac_delim
42644 mon_dir_password!$mon_dir_password$ac_delim
42645 mon_fd_password!$mon_fd_password$ac_delim
42646 mon_sd_password!$mon_sd_password$ac_delim
42647 db_name!$db_name$ac_delim
42648 db_user!$db_user$ac_delim
42649 db_password!$db_password$ac_delim
42650 db_port!$db_port$ac_delim
42651 dir_user!$dir_user$ac_delim
42652 dir_group!$dir_group$ac_delim
42653 sd_user!$sd_user$ac_delim
42654 sd_group!$sd_group$ac_delim
42655 fd_user!$fd_user$ac_delim
42656 fd_group!$fd_group$ac_delim
42657 SBINPERM!$SBINPERM$ac_delim
42658 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42659 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42660 SQL_BINDIR!$SQL_BINDIR$ac_delim
42661 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42662 uncomment_dbi!$uncomment_dbi$ac_delim
42663 DB_PROG!$DB_PROG$ac_delim
42664 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42665 cats!$cats$ac_delim
42666 DB_TYPE!$DB_TYPE$ac_delim
42667 GETCONF!$GETCONF$ac_delim
42668 XMKMF!$XMKMF$ac_delim
42669 X_CFLAGS!$X_CFLAGS$ac_delim
42670 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42671 X_LIBS!$X_LIBS$ac_delim
42672 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42673 LIBOBJS!$LIBOBJS$ac_delim
42674 FDLIBS!$FDLIBS$ac_delim
42675 DEBUG!$DEBUG$ac_delim
42676 DINCLUDE!$DINCLUDE$ac_delim
42677 DLIB!$DLIB$ac_delim
42678 DB_LIBS!$DB_LIBS$ac_delim
42679 WCFLAGS!$WCFLAGS$ac_delim
42680 WLDFLAGS!$WLDFLAGS$ac_delim
42681 WRAPLIBS!$WRAPLIBS$ac_delim
42682 OBJLIST!$OBJLIST$ac_delim
42683 hostname!$hostname$ac_delim
42684 TAPEDRIVE!$TAPEDRIVE$ac_delim
42685 PSCMD!$PSCMD$ac_delim
42686 WIN32!$WIN32$ac_delim
42687 MACOSX!$MACOSX$ac_delim
42688 DISTNAME!$DISTNAME$ac_delim
42689 DISTVER!$DISTVER$ac_delim
42690 LTLIBOBJS!$LTLIBOBJS$ac_delim
42691 _ACEOF
42692
42693   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42694     break
42695   elif $ac_last_try; then
42696     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42697 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42698    { (exit 1); exit 1; }; }
42699   else
42700     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42701   fi
42702 done
42703
42704 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42705 if test -n "$ac_eof"; then
42706   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42707   ac_eof=`expr $ac_eof + 1`
42708 fi
42709
42710 cat >>$CONFIG_STATUS <<_ACEOF
42711 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42713 _ACEOF
42714 sed '
42715 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42716 s/^/s,@/; s/!/@,|#_!!_#|/
42717 :n
42718 t n
42719 s/'"$ac_delim"'$/,g/; t
42720 s/$/\\/; p
42721 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42722 ' >>$CONFIG_STATUS <conf$$subs.sed
42723 rm -f conf$$subs.sed
42724 cat >>$CONFIG_STATUS <<_ACEOF
42725 :end
42726 s/|#_!!_#|//g
42727 CEOF$ac_eof
42728 _ACEOF
42729
42730
42731 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42732 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42733 # trailing colons and then remove the whole line if VPATH becomes empty
42734 # (actually we leave an empty line to preserve line numbers).
42735 if test "x$srcdir" = x.; then
42736   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42737 s/:*\$(srcdir):*/:/
42738 s/:*\${srcdir}:*/:/
42739 s/:*@srcdir@:*/:/
42740 s/^\([^=]*=[     ]*\):*/\1/
42741 s/:*$//
42742 s/^[^=]*=[       ]*$//
42743 }'
42744 fi
42745
42746 cat >>$CONFIG_STATUS <<\_ACEOF
42747 fi # test -n "$CONFIG_FILES"
42748
42749
42750 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42751 do
42752   case $ac_tag in
42753   :[FHLC]) ac_mode=$ac_tag; continue;;
42754   esac
42755   case $ac_mode$ac_tag in
42756   :[FHL]*:*);;
42757   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42758 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42759    { (exit 1); exit 1; }; };;
42760   :[FH]-) ac_tag=-:-;;
42761   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42762   esac
42763   ac_save_IFS=$IFS
42764   IFS=:
42765   set x $ac_tag
42766   IFS=$ac_save_IFS
42767   shift
42768   ac_file=$1
42769   shift
42770
42771   case $ac_mode in
42772   :L) ac_source=$1;;
42773   :[FH])
42774     ac_file_inputs=
42775     for ac_f
42776     do
42777       case $ac_f in
42778       -) ac_f="$tmp/stdin";;
42779       *) # Look for the file first in the build tree, then in the source tree
42780          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42781          # because $ac_f cannot contain `:'.
42782          test -f "$ac_f" ||
42783            case $ac_f in
42784            [\\/$]*) false;;
42785            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42786            esac ||
42787            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42788 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42789    { (exit 1); exit 1; }; };;
42790       esac
42791       ac_file_inputs="$ac_file_inputs $ac_f"
42792     done
42793
42794     # Let's still pretend it is `configure' which instantiates (i.e., don't
42795     # use $as_me), people would be surprised to read:
42796     #    /* config.h.  Generated by config.status.  */
42797     configure_input="Generated from "`IFS=:
42798           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42799     if test x"$ac_file" != x-; then
42800       configure_input="$ac_file.  $configure_input"
42801       { echo "$as_me:$LINENO: creating $ac_file" >&5
42802 echo "$as_me: creating $ac_file" >&6;}
42803     fi
42804
42805     case $ac_tag in
42806     *:-:* | *:-) cat >"$tmp/stdin";;
42807     esac
42808     ;;
42809   esac
42810
42811   ac_dir=`$as_dirname -- "$ac_file" ||
42812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42813          X"$ac_file" : 'X\(//\)[^/]' \| \
42814          X"$ac_file" : 'X\(//\)$' \| \
42815          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42816 echo X"$ac_file" |
42817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42818             s//\1/
42819             q
42820           }
42821           /^X\(\/\/\)[^/].*/{
42822             s//\1/
42823             q
42824           }
42825           /^X\(\/\/\)$/{
42826             s//\1/
42827             q
42828           }
42829           /^X\(\/\).*/{
42830             s//\1/
42831             q
42832           }
42833           s/.*/./; q'`
42834   { as_dir="$ac_dir"
42835   case $as_dir in #(
42836   -*) as_dir=./$as_dir;;
42837   esac
42838   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42839     as_dirs=
42840     while :; do
42841       case $as_dir in #(
42842       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42843       *) as_qdir=$as_dir;;
42844       esac
42845       as_dirs="'$as_qdir' $as_dirs"
42846       as_dir=`$as_dirname -- "$as_dir" ||
42847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42848          X"$as_dir" : 'X\(//\)[^/]' \| \
42849          X"$as_dir" : 'X\(//\)$' \| \
42850          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42851 echo X"$as_dir" |
42852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42853             s//\1/
42854             q
42855           }
42856           /^X\(\/\/\)[^/].*/{
42857             s//\1/
42858             q
42859           }
42860           /^X\(\/\/\)$/{
42861             s//\1/
42862             q
42863           }
42864           /^X\(\/\).*/{
42865             s//\1/
42866             q
42867           }
42868           s/.*/./; q'`
42869       test -d "$as_dir" && break
42870     done
42871     test -z "$as_dirs" || eval "mkdir $as_dirs"
42872   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42873 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42874    { (exit 1); exit 1; }; }; }
42875   ac_builddir=.
42876
42877 case "$ac_dir" in
42878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42879 *)
42880   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42881   # A ".." for each directory in $ac_dir_suffix.
42882   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42883   case $ac_top_builddir_sub in
42884   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42885   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42886   esac ;;
42887 esac
42888 ac_abs_top_builddir=$ac_pwd
42889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42890 # for backward compatibility:
42891 ac_top_builddir=$ac_top_build_prefix
42892
42893 case $srcdir in
42894   .)  # We are building in place.
42895     ac_srcdir=.
42896     ac_top_srcdir=$ac_top_builddir_sub
42897     ac_abs_top_srcdir=$ac_pwd ;;
42898   [\\/]* | ?:[\\/]* )  # Absolute name.
42899     ac_srcdir=$srcdir$ac_dir_suffix;
42900     ac_top_srcdir=$srcdir
42901     ac_abs_top_srcdir=$srcdir ;;
42902   *) # Relative name.
42903     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42904     ac_top_srcdir=$ac_top_build_prefix$srcdir
42905     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42906 esac
42907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42908
42909
42910   case $ac_mode in
42911   :F)
42912   #
42913   # CONFIG_FILE
42914   #
42915
42916   case $INSTALL in
42917   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42918   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42919   esac
42920 _ACEOF
42921
42922 cat >>$CONFIG_STATUS <<\_ACEOF
42923 # If the template does not know about datarootdir, expand it.
42924 # FIXME: This hack should be removed a few years after 2.60.
42925 ac_datarootdir_hack=; ac_datarootdir_seen=
42926
42927 case `sed -n '/datarootdir/ {
42928   p
42929   q
42930 }
42931 /@datadir@/p
42932 /@docdir@/p
42933 /@infodir@/p
42934 /@localedir@/p
42935 /@mandir@/p
42936 ' $ac_file_inputs` in
42937 *datarootdir*) ac_datarootdir_seen=yes;;
42938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42939   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42940 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42941 _ACEOF
42942 cat >>$CONFIG_STATUS <<_ACEOF
42943   ac_datarootdir_hack='
42944   s&@datadir@&$datadir&g
42945   s&@docdir@&$docdir&g
42946   s&@infodir@&$infodir&g
42947   s&@localedir@&$localedir&g
42948   s&@mandir@&$mandir&g
42949     s&\\\${datarootdir}&$datarootdir&g' ;;
42950 esac
42951 _ACEOF
42952
42953 # Neutralize VPATH when `$srcdir' = `.'.
42954 # Shell code in configure.ac might set extrasub.
42955 # FIXME: do we really want to maintain this feature?
42956 cat >>$CONFIG_STATUS <<_ACEOF
42957   sed "$ac_vpsub
42958 $extrasub
42959 _ACEOF
42960 cat >>$CONFIG_STATUS <<\_ACEOF
42961 :t
42962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42963 s&@configure_input@&$configure_input&;t t
42964 s&@top_builddir@&$ac_top_builddir_sub&;t t
42965 s&@srcdir@&$ac_srcdir&;t t
42966 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42967 s&@top_srcdir@&$ac_top_srcdir&;t t
42968 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42969 s&@builddir@&$ac_builddir&;t t
42970 s&@abs_builddir@&$ac_abs_builddir&;t t
42971 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42972 s&@INSTALL@&$ac_INSTALL&;t t
42973 $ac_datarootdir_hack
42974 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42975
42976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42977   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42978   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42979   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42980 which seems to be undefined.  Please make sure it is defined." >&5
42981 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42982 which seems to be undefined.  Please make sure it is defined." >&2;}
42983
42984   rm -f "$tmp/stdin"
42985   case $ac_file in
42986   -) cat "$tmp/out"; rm -f "$tmp/out";;
42987   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
42988   esac
42989  ;;
42990   :H)
42991   #
42992   # CONFIG_HEADER
42993   #
42994 _ACEOF
42995
42996 # Transform confdefs.h into a sed script `conftest.defines', that
42997 # substitutes the proper values into config.h.in to produce config.h.
42998 rm -f conftest.defines conftest.tail
42999 # First, append a space to every undef/define line, to ease matching.
43000 echo 's/$/ /' >conftest.defines
43001 # Then, protect against being on the right side of a sed subst, or in
43002 # an unquoted here document, in config.status.  If some macros were
43003 # called several times there might be several #defines for the same
43004 # symbol, which is useless.  But do not sort them, since the last
43005 # AC_DEFINE must be honored.
43006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43007 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43008 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43009 # PARAMS is the parameter list in the macro definition--in most cases, it's
43010 # just an empty string.
43011 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43012 ac_dB='\\)[      (].*,\\1define\\2'
43013 ac_dC=' '
43014 ac_dD=' ,'
43015
43016 uniq confdefs.h |
43017   sed -n '
43018         t rset
43019         :rset
43020         s/^[     ]*#[    ]*define[       ][      ]*//
43021         t ok
43022         d
43023         :ok
43024         s/[\\&,]/\\&/g
43025         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43026         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43027   ' >>conftest.defines
43028
43029 # Remove the space that was appended to ease matching.
43030 # Then replace #undef with comments.  This is necessary, for
43031 # example, in the case of _POSIX_SOURCE, which is predefined and required
43032 # on some systems where configure will not decide to define it.
43033 # (The regexp can be short, since the line contains either #define or #undef.)
43034 echo 's/ $//
43035 s,^[     #]*u.*,/* & */,' >>conftest.defines
43036
43037 # Break up conftest.defines:
43038 ac_max_sed_lines=50
43039
43040 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43041 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43042 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43043 # et cetera.
43044 ac_in='$ac_file_inputs'
43045 ac_out='"$tmp/out1"'
43046 ac_nxt='"$tmp/out2"'
43047
43048 while :
43049 do
43050   # Write a here document:
43051     cat >>$CONFIG_STATUS <<_ACEOF
43052     # First, check the format of the line:
43053     cat >"\$tmp/defines.sed" <<\\CEOF
43054 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43055 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43056 b
43057 :def
43058 _ACEOF
43059   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43060   echo 'CEOF
43061     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43062   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43063   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43064   grep . conftest.tail >/dev/null || break
43065   rm -f conftest.defines
43066   mv conftest.tail conftest.defines
43067 done
43068 rm -f conftest.defines conftest.tail
43069
43070 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43071 cat >>$CONFIG_STATUS <<\_ACEOF
43072   if test x"$ac_file" != x-; then
43073     echo "/* $configure_input  */" >"$tmp/config.h"
43074     cat "$ac_result" >>"$tmp/config.h"
43075     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43076       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43077 echo "$as_me: $ac_file is unchanged" >&6;}
43078     else
43079       rm -f $ac_file
43080       mv "$tmp/config.h" $ac_file
43081     fi
43082   else
43083     echo "/* $configure_input  */"
43084     cat "$ac_result"
43085   fi
43086   rm -f "$tmp/out12"
43087  ;;
43088
43089   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43090 echo "$as_me: executing $ac_file commands" >&6;}
43091  ;;
43092   esac
43093
43094
43095   case $ac_file$ac_mode in
43096     "libtool":C)
43097
43098     # See if we are running on zsh, and set the options which allow our
43099     # commands through without removal of \ escapes.
43100     if test -n "${ZSH_VERSION+set}" ; then
43101       setopt NO_GLOB_SUBST
43102     fi
43103
43104     cfgfile="${ofile}T"
43105     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43106     $RM "$cfgfile"
43107
43108     cat <<_LT_EOF >> "$cfgfile"
43109 #! $SHELL
43110
43111 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43112 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43113 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43114 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43115 #
43116 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43117 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43118 #   Written by Gordon Matzigkeit, 1996
43119 #
43120 #   This file is part of GNU Libtool.
43121 #
43122 # GNU Libtool is free software; you can redistribute it and/or
43123 # modify it under the terms of the GNU General Public License as
43124 # published by the Free Software Foundation; either version 2 of
43125 # the License, or (at your option) any later version.
43126 #
43127 # As a special exception to the GNU General Public License,
43128 # if you distribute this file as part of a program or library that
43129 # is built using GNU Libtool, you may include this file under the
43130 # same distribution terms that you use for the rest of that program.
43131 #
43132 # GNU Libtool is distributed in the hope that it will be useful,
43133 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43135 # GNU General Public License for more details.
43136 #
43137 # You should have received a copy of the GNU General Public License
43138 # along with GNU Libtool; see the file COPYING.  If not, a copy
43139 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43140 # obtained by writing to the Free Software Foundation, Inc.,
43141 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43142
43143
43144 # The names of the tagged configurations supported by this script.
43145 available_tags="CXX "
43146
43147 # ### BEGIN LIBTOOL CONFIG
43148
43149 # Which release of libtool.m4 was used?
43150 macro_version=$macro_version
43151 macro_revision=$macro_revision
43152
43153 # Whether or not to build shared libraries.
43154 build_libtool_libs=$enable_shared
43155
43156 # Whether or not to build static libraries.
43157 build_old_libs=$enable_static
43158
43159 # What type of objects to build.
43160 pic_mode=$pic_mode
43161
43162 # Whether or not to optimize for fast installation.
43163 fast_install=$enable_fast_install
43164
43165 # The host system.
43166 host_alias=$host_alias
43167 host=$host
43168 host_os=$host_os
43169
43170 # The build system.
43171 build_alias=$build_alias
43172 build=$build
43173 build_os=$build_os
43174
43175 # A sed program that does not truncate output.
43176 SED=$lt_SED
43177
43178 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43179 Xsed="\$SED -e 1s/^X//"
43180
43181 # A grep program that handles long lines.
43182 GREP=$lt_GREP
43183
43184 # An ERE matcher.
43185 EGREP=$lt_EGREP
43186
43187 # A literal string matcher.
43188 FGREP=$lt_FGREP
43189
43190 # A BSD- or MS-compatible name lister.
43191 NM=$lt_NM
43192
43193 # Whether we need soft or hard links.
43194 LN_S=$lt_LN_S
43195
43196 # What is the maximum length of a command?
43197 max_cmd_len=$max_cmd_len
43198
43199 # Object file suffix (normally "o").
43200 objext=$ac_objext
43201
43202 # Executable file suffix (normally "").
43203 exeext=$exeext
43204
43205 # whether the shell understands "unset".
43206 lt_unset=$lt_unset
43207
43208 # turn spaces into newlines.
43209 SP2NL=$lt_lt_SP2NL
43210
43211 # turn newlines into spaces.
43212 NL2SP=$lt_lt_NL2SP
43213
43214 # How to create reloadable object files.
43215 reload_flag=$lt_reload_flag
43216 reload_cmds=$lt_reload_cmds
43217
43218 # An object symbol dumper.
43219 OBJDUMP=$lt_OBJDUMP
43220
43221 # Method to check whether dependent libraries are shared objects.
43222 deplibs_check_method=$lt_deplibs_check_method
43223
43224 # Command to use when deplibs_check_method == "file_magic".
43225 file_magic_cmd=$lt_file_magic_cmd
43226
43227 # The archiver.
43228 AR=$lt_AR
43229 AR_FLAGS=$lt_AR_FLAGS
43230
43231 # A symbol stripping program.
43232 STRIP=$lt_STRIP
43233
43234 # Commands used to install an old-style archive.
43235 RANLIB=$lt_RANLIB
43236 old_postinstall_cmds=$lt_old_postinstall_cmds
43237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43238
43239 # A C compiler.
43240 LTCC=$lt_CC
43241
43242 # LTCC compiler flags.
43243 LTCFLAGS=$lt_CFLAGS
43244
43245 # Take the output of nm and produce a listing of raw symbols and C names.
43246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43247
43248 # Transform the output of nm in a proper C declaration.
43249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43250
43251 # Transform the output of nm in a C name address pair.
43252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43253
43254 # Transform the output of nm in a C name address pair when lib prefix is needed.
43255 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43256
43257 # The name of the directory that contains temporary libtool files.
43258 objdir=$objdir
43259
43260 # Shell to use when invoking shell scripts.
43261 SHELL=$lt_SHELL
43262
43263 # An echo program that does not interpret backslashes.
43264 ECHO=$lt_ECHO
43265
43266 # Used to examine libraries when file_magic_cmd begins with "file".
43267 MAGIC_CMD=$MAGIC_CMD
43268
43269 # Must we lock files when doing compilation?
43270 need_locks=$lt_need_locks
43271
43272 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43273 DSYMUTIL=$lt_DSYMUTIL
43274
43275 # Tool to change global to local symbols on Mac OS X.
43276 NMEDIT=$lt_NMEDIT
43277
43278 # Tool to manipulate fat objects and archives on Mac OS X.
43279 LIPO=$lt_LIPO
43280
43281 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43282 OTOOL=$lt_OTOOL
43283
43284 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43285 OTOOL64=$lt_OTOOL64
43286
43287 # Old archive suffix (normally "a").
43288 libext=$libext
43289
43290 # Shared library suffix (normally ".so").
43291 shrext_cmds=$lt_shrext_cmds
43292
43293 # The commands to extract the exported symbol list from a shared archive.
43294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43295
43296 # Variables whose values should be saved in libtool wrapper scripts and
43297 # restored at link time.
43298 variables_saved_for_relink=$lt_variables_saved_for_relink
43299
43300 # Do we need the "lib" prefix for modules?
43301 need_lib_prefix=$need_lib_prefix
43302
43303 # Do we need a version for libraries?
43304 need_version=$need_version
43305
43306 # Library versioning type.
43307 version_type=$version_type
43308
43309 # Shared library runtime path variable.
43310 runpath_var=$runpath_var
43311
43312 # Shared library path variable.
43313 shlibpath_var=$shlibpath_var
43314
43315 # Is shlibpath searched before the hard-coded library search path?
43316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43317
43318 # Format of library name prefix.
43319 libname_spec=$lt_libname_spec
43320
43321 # List of archive names.  First name is the real one, the rest are links.
43322 # The last name is the one that the linker finds with -lNAME
43323 library_names_spec=$lt_library_names_spec
43324
43325 # The coded name of the library, if different from the real name.
43326 soname_spec=$lt_soname_spec
43327
43328 # Command to use after installation of a shared archive.
43329 postinstall_cmds=$lt_postinstall_cmds
43330
43331 # Command to use after uninstallation of a shared archive.
43332 postuninstall_cmds=$lt_postuninstall_cmds
43333
43334 # Commands used to finish a libtool library installation in a directory.
43335 finish_cmds=$lt_finish_cmds
43336
43337 # As "finish_cmds", except a single script fragment to be evaled but
43338 # not shown.
43339 finish_eval=$lt_finish_eval
43340
43341 # Whether we should hardcode library paths into libraries.
43342 hardcode_into_libs=$hardcode_into_libs
43343
43344 # Compile-time system search path for libraries.
43345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43346
43347 # Run-time system search path for libraries.
43348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43349
43350 # Whether dlopen is supported.
43351 dlopen_support=$enable_dlopen
43352
43353 # Whether dlopen of programs is supported.
43354 dlopen_self=$enable_dlopen_self
43355
43356 # Whether dlopen of statically linked programs is supported.
43357 dlopen_self_static=$enable_dlopen_self_static
43358
43359 # Commands to strip libraries.
43360 old_striplib=$lt_old_striplib
43361 striplib=$lt_striplib
43362
43363
43364 # The linker used to build libraries.
43365 LD=$lt_LD
43366
43367 # Commands used to build an old-style archive.
43368 old_archive_cmds=$lt_old_archive_cmds
43369
43370 # A language specific compiler.
43371 CC=$lt_compiler
43372
43373 # Is the compiler the GNU compiler?
43374 with_gcc=$GCC
43375
43376 # Compiler flag to turn off builtin functions.
43377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43378
43379 # How to pass a linker flag through the compiler.
43380 wl=$lt_lt_prog_compiler_wl
43381
43382 # Additional compiler flags for building library objects.
43383 pic_flag=$lt_lt_prog_compiler_pic
43384
43385 # Compiler flag to prevent dynamic linking.
43386 link_static_flag=$lt_lt_prog_compiler_static
43387
43388 # Does compiler simultaneously support -c and -o options?
43389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43390
43391 # Whether or not to add -lc for building shared libraries.
43392 build_libtool_need_lc=$archive_cmds_need_lc
43393
43394 # Whether or not to disallow shared libs when runtime libs are static.
43395 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43396
43397 # Compiler flag to allow reflexive dlopens.
43398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43399
43400 # Compiler flag to generate shared objects directly from archives.
43401 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43402
43403 # Whether the compiler copes with passing no objects directly.
43404 compiler_needs_object=$lt_compiler_needs_object
43405
43406 # Create an old-style archive from a shared archive.
43407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43408
43409 # Create a temporary old-style archive to link instead of a shared archive.
43410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43411
43412 # Commands used to build a shared archive.
43413 archive_cmds=$lt_archive_cmds
43414 archive_expsym_cmds=$lt_archive_expsym_cmds
43415
43416 # Commands used to build a loadable module if different from building
43417 # a shared archive.
43418 module_cmds=$lt_module_cmds
43419 module_expsym_cmds=$lt_module_expsym_cmds
43420
43421 # Whether we are building with GNU ld or not.
43422 with_gnu_ld=$lt_with_gnu_ld
43423
43424 # Flag that allows shared libraries with undefined symbols to be built.
43425 allow_undefined_flag=$lt_allow_undefined_flag
43426
43427 # Flag that enforces no undefined symbols.
43428 no_undefined_flag=$lt_no_undefined_flag
43429
43430 # Flag to hardcode \$libdir into a binary during linking.
43431 # This must work even if \$libdir does not exist
43432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43433
43434 # If ld is used when linking, flag to hardcode \$libdir into a binary
43435 # during linking.  This must work even if \$libdir does not exist.
43436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43437
43438 # Whether we need a single "-rpath" flag with a separated argument.
43439 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43440
43441 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43442 # DIR into the resulting binary.
43443 hardcode_direct=$hardcode_direct
43444
43445 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43446 # DIR into the resulting binary and the resulting library dependency is
43447 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43448 # library is relocated.
43449 hardcode_direct_absolute=$hardcode_direct_absolute
43450
43451 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43452 # into the resulting binary.
43453 hardcode_minus_L=$hardcode_minus_L
43454
43455 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43456 # into the resulting binary.
43457 hardcode_shlibpath_var=$hardcode_shlibpath_var
43458
43459 # Set to "yes" if building a shared library automatically hardcodes DIR
43460 # into the library and all subsequent libraries and executables linked
43461 # against it.
43462 hardcode_automatic=$hardcode_automatic
43463
43464 # Set to yes if linker adds runtime paths of dependent libraries
43465 # to runtime path list.
43466 inherit_rpath=$inherit_rpath
43467
43468 # Whether libtool must link a program against all its dependency libraries.
43469 link_all_deplibs=$link_all_deplibs
43470
43471 # Fix the shell variable \$srcfile for the compiler.
43472 fix_srcfile_path=$lt_fix_srcfile_path
43473
43474 # Set to "yes" if exported symbols are required.
43475 always_export_symbols=$always_export_symbols
43476
43477 # The commands to list exported symbols.
43478 export_symbols_cmds=$lt_export_symbols_cmds
43479
43480 # Symbols that should not be listed in the preloaded symbols.
43481 exclude_expsyms=$lt_exclude_expsyms
43482
43483 # Symbols that must always be exported.
43484 include_expsyms=$lt_include_expsyms
43485
43486 # Commands necessary for linking programs (against libraries) with templates.
43487 prelink_cmds=$lt_prelink_cmds
43488
43489 # Specify filename containing input files.
43490 file_list_spec=$lt_file_list_spec
43491
43492 # How to hardcode a shared library path into an executable.
43493 hardcode_action=$hardcode_action
43494
43495 # The directories searched by this compiler when creating a shared library.
43496 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43497
43498 # Dependencies to place before and after the objects being linked to
43499 # create a shared library.
43500 predep_objects=$lt_predep_objects
43501 postdep_objects=$lt_postdep_objects
43502 predeps=$lt_predeps
43503 postdeps=$lt_postdeps
43504
43505 # The library search path used internally by the compiler when linking
43506 # a shared library.
43507 compiler_lib_search_path=$lt_compiler_lib_search_path
43508
43509 # ### END LIBTOOL CONFIG
43510
43511 _LT_EOF
43512
43513   case $host_os in
43514   aix3*)
43515     cat <<\_LT_EOF >> "$cfgfile"
43516 # AIX sometimes has problems with the GCC collect2 program.  For some
43517 # reason, if we set the COLLECT_NAMES environment variable, the problems
43518 # vanish in a puff of smoke.
43519 if test "X${COLLECT_NAMES+set}" != Xset; then
43520   COLLECT_NAMES=
43521   export COLLECT_NAMES
43522 fi
43523 _LT_EOF
43524     ;;
43525   esac
43526
43527
43528 ltmain="$ac_aux_dir/ltmain.sh"
43529
43530
43531   # We use sed instead of cat because bash on DJGPP gets confused if
43532   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43533   # text mode, it properly converts lines to CR/LF.  This bash problem
43534   # is reportedly fixed, but why not run on old versions too?
43535   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43536     || (rm -f "$cfgfile"; exit 1)
43537
43538   case $xsi_shell in
43539   yes)
43540     cat << \_LT_EOF >> "$cfgfile"
43541
43542 # func_dirname file append nondir_replacement
43543 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43544 # otherwise set result to NONDIR_REPLACEMENT.
43545 func_dirname ()
43546 {
43547   case ${1} in
43548     */*) func_dirname_result="${1%/*}${2}" ;;
43549     *  ) func_dirname_result="${3}" ;;
43550   esac
43551 }
43552
43553 # func_basename file
43554 func_basename ()
43555 {
43556   func_basename_result="${1##*/}"
43557 }
43558
43559 # func_dirname_and_basename file append nondir_replacement
43560 # perform func_basename and func_dirname in a single function
43561 # call:
43562 #   dirname:  Compute the dirname of FILE.  If nonempty,
43563 #             add APPEND to the result, otherwise set result
43564 #             to NONDIR_REPLACEMENT.
43565 #             value returned in "$func_dirname_result"
43566 #   basename: Compute filename of FILE.
43567 #             value retuned in "$func_basename_result"
43568 # Implementation must be kept synchronized with func_dirname
43569 # and func_basename. For efficiency, we do not delegate to
43570 # those functions but instead duplicate the functionality here.
43571 func_dirname_and_basename ()
43572 {
43573   case ${1} in
43574     */*) func_dirname_result="${1%/*}${2}" ;;
43575     *  ) func_dirname_result="${3}" ;;
43576   esac
43577   func_basename_result="${1##*/}"
43578 }
43579
43580 # func_stripname prefix suffix name
43581 # strip PREFIX and SUFFIX off of NAME.
43582 # PREFIX and SUFFIX must not contain globbing or regex special
43583 # characters, hashes, percent signs, but SUFFIX may contain a leading
43584 # dot (in which case that matches only a dot).
43585 func_stripname ()
43586 {
43587   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43588   # positional parameters, so assign one to ordinary parameter first.
43589   func_stripname_result=${3}
43590   func_stripname_result=${func_stripname_result#"${1}"}
43591   func_stripname_result=${func_stripname_result%"${2}"}
43592 }
43593
43594 # func_opt_split
43595 func_opt_split ()
43596 {
43597   func_opt_split_opt=${1%%=*}
43598   func_opt_split_arg=${1#*=}
43599 }
43600
43601 # func_lo2o object
43602 func_lo2o ()
43603 {
43604   case ${1} in
43605     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43606     *)    func_lo2o_result=${1} ;;
43607   esac
43608 }
43609
43610 # func_xform libobj-or-source
43611 func_xform ()
43612 {
43613   func_xform_result=${1%.*}.lo
43614 }
43615
43616 # func_arith arithmetic-term...
43617 func_arith ()
43618 {
43619   func_arith_result=$(( $* ))
43620 }
43621
43622 # func_len string
43623 # STRING may not start with a hyphen.
43624 func_len ()
43625 {
43626   func_len_result=${#1}
43627 }
43628
43629 _LT_EOF
43630     ;;
43631   *) # Bourne compatible functions.
43632     cat << \_LT_EOF >> "$cfgfile"
43633
43634 # func_dirname file append nondir_replacement
43635 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43636 # otherwise set result to NONDIR_REPLACEMENT.
43637 func_dirname ()
43638 {
43639   # Extract subdirectory from the argument.
43640   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43641   if test "X$func_dirname_result" = "X${1}"; then
43642     func_dirname_result="${3}"
43643   else
43644     func_dirname_result="$func_dirname_result${2}"
43645   fi
43646 }
43647
43648 # func_basename file
43649 func_basename ()
43650 {
43651   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43652 }
43653
43654
43655 # func_stripname prefix suffix name
43656 # strip PREFIX and SUFFIX off of NAME.
43657 # PREFIX and SUFFIX must not contain globbing or regex special
43658 # characters, hashes, percent signs, but SUFFIX may contain a leading
43659 # dot (in which case that matches only a dot).
43660 # func_strip_suffix prefix name
43661 func_stripname ()
43662 {
43663   case ${2} in
43664     .*) func_stripname_result=`$ECHO "X${3}" \
43665            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43666     *)  func_stripname_result=`$ECHO "X${3}" \
43667            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43668   esac
43669 }
43670
43671 # sed scripts:
43672 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43673 my_sed_long_arg='1s/^-[^=]*=//'
43674
43675 # func_opt_split
43676 func_opt_split ()
43677 {
43678   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43679   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43680 }
43681
43682 # func_lo2o object
43683 func_lo2o ()
43684 {
43685   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43686 }
43687
43688 # func_xform libobj-or-source
43689 func_xform ()
43690 {
43691   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43692 }
43693
43694 # func_arith arithmetic-term...
43695 func_arith ()
43696 {
43697   func_arith_result=`expr "$@"`
43698 }
43699
43700 # func_len string
43701 # STRING may not start with a hyphen.
43702 func_len ()
43703 {
43704   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43705 }
43706
43707 _LT_EOF
43708 esac
43709
43710 case $lt_shell_append in
43711   yes)
43712     cat << \_LT_EOF >> "$cfgfile"
43713
43714 # func_append var value
43715 # Append VALUE to the end of shell variable VAR.
43716 func_append ()
43717 {
43718   eval "$1+=\$2"
43719 }
43720 _LT_EOF
43721     ;;
43722   *)
43723     cat << \_LT_EOF >> "$cfgfile"
43724
43725 # func_append var value
43726 # Append VALUE to the end of shell variable VAR.
43727 func_append ()
43728 {
43729   eval "$1=\$$1\$2"
43730 }
43731
43732 _LT_EOF
43733     ;;
43734   esac
43735
43736
43737   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43738     || (rm -f "$cfgfile"; exit 1)
43739
43740   mv -f "$cfgfile" "$ofile" ||
43741     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43742   chmod +x "$ofile"
43743
43744
43745     cat <<_LT_EOF >> "$ofile"
43746
43747 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43748
43749 # The linker used to build libraries.
43750 LD=$lt_LD_CXX
43751
43752 # Commands used to build an old-style archive.
43753 old_archive_cmds=$lt_old_archive_cmds_CXX
43754
43755 # A language specific compiler.
43756 CC=$lt_compiler_CXX
43757
43758 # Is the compiler the GNU compiler?
43759 with_gcc=$GCC_CXX
43760
43761 # Compiler flag to turn off builtin functions.
43762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43763
43764 # How to pass a linker flag through the compiler.
43765 wl=$lt_lt_prog_compiler_wl_CXX
43766
43767 # Additional compiler flags for building library objects.
43768 pic_flag=$lt_lt_prog_compiler_pic_CXX
43769
43770 # Compiler flag to prevent dynamic linking.
43771 link_static_flag=$lt_lt_prog_compiler_static_CXX
43772
43773 # Does compiler simultaneously support -c and -o options?
43774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43775
43776 # Whether or not to add -lc for building shared libraries.
43777 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43778
43779 # Whether or not to disallow shared libs when runtime libs are static.
43780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43781
43782 # Compiler flag to allow reflexive dlopens.
43783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43784
43785 # Compiler flag to generate shared objects directly from archives.
43786 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43787
43788 # Whether the compiler copes with passing no objects directly.
43789 compiler_needs_object=$lt_compiler_needs_object_CXX
43790
43791 # Create an old-style archive from a shared archive.
43792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43793
43794 # Create a temporary old-style archive to link instead of a shared archive.
43795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43796
43797 # Commands used to build a shared archive.
43798 archive_cmds=$lt_archive_cmds_CXX
43799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43800
43801 # Commands used to build a loadable module if different from building
43802 # a shared archive.
43803 module_cmds=$lt_module_cmds_CXX
43804 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43805
43806 # Whether we are building with GNU ld or not.
43807 with_gnu_ld=$lt_with_gnu_ld_CXX
43808
43809 # Flag that allows shared libraries with undefined symbols to be built.
43810 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43811
43812 # Flag that enforces no undefined symbols.
43813 no_undefined_flag=$lt_no_undefined_flag_CXX
43814
43815 # Flag to hardcode \$libdir into a binary during linking.
43816 # This must work even if \$libdir does not exist
43817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43818
43819 # If ld is used when linking, flag to hardcode \$libdir into a binary
43820 # during linking.  This must work even if \$libdir does not exist.
43821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43822
43823 # Whether we need a single "-rpath" flag with a separated argument.
43824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43825
43826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43827 # DIR into the resulting binary.
43828 hardcode_direct=$hardcode_direct_CXX
43829
43830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43831 # DIR into the resulting binary and the resulting library dependency is
43832 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43833 # library is relocated.
43834 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43835
43836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43837 # into the resulting binary.
43838 hardcode_minus_L=$hardcode_minus_L_CXX
43839
43840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43841 # into the resulting binary.
43842 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43843
43844 # Set to "yes" if building a shared library automatically hardcodes DIR
43845 # into the library and all subsequent libraries and executables linked
43846 # against it.
43847 hardcode_automatic=$hardcode_automatic_CXX
43848
43849 # Set to yes if linker adds runtime paths of dependent libraries
43850 # to runtime path list.
43851 inherit_rpath=$inherit_rpath_CXX
43852
43853 # Whether libtool must link a program against all its dependency libraries.
43854 link_all_deplibs=$link_all_deplibs_CXX
43855
43856 # Fix the shell variable \$srcfile for the compiler.
43857 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43858
43859 # Set to "yes" if exported symbols are required.
43860 always_export_symbols=$always_export_symbols_CXX
43861
43862 # The commands to list exported symbols.
43863 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43864
43865 # Symbols that should not be listed in the preloaded symbols.
43866 exclude_expsyms=$lt_exclude_expsyms_CXX
43867
43868 # Symbols that must always be exported.
43869 include_expsyms=$lt_include_expsyms_CXX
43870
43871 # Commands necessary for linking programs (against libraries) with templates.
43872 prelink_cmds=$lt_prelink_cmds_CXX
43873
43874 # Specify filename containing input files.
43875 file_list_spec=$lt_file_list_spec_CXX
43876
43877 # How to hardcode a shared library path into an executable.
43878 hardcode_action=$hardcode_action_CXX
43879
43880 # The directories searched by this compiler when creating a shared library.
43881 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43882
43883 # Dependencies to place before and after the objects being linked to
43884 # create a shared library.
43885 predep_objects=$lt_predep_objects_CXX
43886 postdep_objects=$lt_postdep_objects_CXX
43887 predeps=$lt_predeps_CXX
43888 postdeps=$lt_postdeps_CXX
43889
43890 # The library search path used internally by the compiler when linking
43891 # a shared library.
43892 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43893
43894 # ### END LIBTOOL TAG CONFIG: CXX
43895 _LT_EOF
43896
43897  ;;
43898     "default-1":C)
43899     for ac_file in $CONFIG_FILES; do
43900       # Support "outfile[:infile[:infile...]]"
43901       case "$ac_file" in
43902         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43903       esac
43904       # PO directories have a Makefile.in generated from Makefile.in.in.
43905       case "$ac_file" in */Makefile.in)
43906         # Adjust a relative srcdir.
43907         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43908         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43909         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43910         # In autoconf-2.13 it is called $ac_given_srcdir.
43911         # In autoconf-2.50 it is called $srcdir.
43912         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43913         case "$ac_given_srcdir" in
43914           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43915           /*) top_srcdir="$ac_given_srcdir" ;;
43916           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
43917         esac
43918         # Treat a directory as a PO directory if and only if it has a
43919         # POTFILES.in file. This allows packages to have multiple PO
43920         # directories under different names or in different locations.
43921         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43922           rm -f "$ac_dir/POTFILES"
43923           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43924           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43925           POMAKEFILEDEPS="POTFILES.in"
43926           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43927           # on $ac_dir but don't depend on user-specified configuration
43928           # parameters.
43929           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43930             # The LINGUAS file contains the set of available languages.
43931             if test -n "$OBSOLETE_ALL_LINGUAS"; then
43932               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43933             fi
43934             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43935             # Hide the ALL_LINGUAS assigment from automake.
43936             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43937             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43938           else
43939             # The set of available languages was given in configure.in.
43940             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43941           fi
43942           # Compute POFILES
43943           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43944           # Compute UPDATEPOFILES
43945           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43946           # Compute DUMMYPOFILES
43947           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43948           # Compute GMOFILES
43949           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43950           case "$ac_given_srcdir" in
43951             .) srcdirpre= ;;
43952             *) srcdirpre='$(srcdir)/' ;;
43953           esac
43954           POFILES=
43955           UPDATEPOFILES=
43956           DUMMYPOFILES=
43957           GMOFILES=
43958           for lang in $ALL_LINGUAS; do
43959             POFILES="$POFILES $srcdirpre$lang.po"
43960             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43961             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43962             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43963           done
43964           # CATALOGS depends on both $ac_dir and the user's LINGUAS
43965           # environment variable.
43966           INST_LINGUAS=
43967           if test -n "$ALL_LINGUAS"; then
43968             for presentlang in $ALL_LINGUAS; do
43969               useit=no
43970               if test "%UNSET%" != "$LINGUAS"; then
43971                 desiredlanguages="$LINGUAS"
43972               else
43973                 desiredlanguages="$ALL_LINGUAS"
43974               fi
43975               for desiredlang in $desiredlanguages; do
43976                 # Use the presentlang catalog if desiredlang is
43977                 #   a. equal to presentlang, or
43978                 #   b. a variant of presentlang (because in this case,
43979                 #      presentlang can be used as a fallback for messages
43980                 #      which are not translated in the desiredlang catalog).
43981                 case "$desiredlang" in
43982                   "$presentlang"*) useit=yes;;
43983                 esac
43984               done
43985               if test $useit = yes; then
43986                 INST_LINGUAS="$INST_LINGUAS $presentlang"
43987               fi
43988             done
43989           fi
43990           CATALOGS=
43991           if test -n "$INST_LINGUAS"; then
43992             for lang in $INST_LINGUAS; do
43993               CATALOGS="$CATALOGS $lang.gmo"
43994             done
43995           fi
43996           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
43997           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"
43998           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
43999             if test -f "$f"; then
44000               case "$f" in
44001                 *.orig | *.bak | *~) ;;
44002                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44003               esac
44004             fi
44005           done
44006         fi
44007         ;;
44008       esac
44009     done ;;
44010     "default":C)
44011  ;;
44012
44013   esac
44014 done # for ac_tag
44015
44016
44017 { (exit 0); exit 0; }
44018 _ACEOF
44019 chmod +x $CONFIG_STATUS
44020 ac_clean_files=$ac_clean_files_save
44021
44022
44023 # configure is writing to config.log, and then calls config.status.
44024 # config.status does its own redirection, appending to config.log.
44025 # Unfortunately, on DOS this fails, as config.log is still kept open
44026 # by configure, so config.status won't be able to write to it; its
44027 # output is simply discarded.  So we exec the FD to /dev/null,
44028 # effectively closing config.log, so it can be properly (re)opened and
44029 # appended to by config.status.  When coming back to configure, we
44030 # need to make the FD available again.
44031 if test "$no_create" != yes; then
44032   ac_cs_success=:
44033   ac_config_status_args=
44034   test "$silent" = yes &&
44035     ac_config_status_args="$ac_config_status_args --quiet"
44036   exec 5>/dev/null
44037   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44038   exec 5>>config.log
44039   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44040   # would make configure fail if this is the last instruction.
44041   $ac_cs_success || { (exit 1); exit 1; }
44042 fi
44043
44044
44045 if test "${support_bat}" = "yes" ; then
44046    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44047       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44048       exit 1
44049    fi
44050
44051    QMAKEBIN="qmake"
44052
44053    if test "x$QMAKEQT4" != "xnone"; then
44054        QMAKEBIN=qmake-qt4
44055    fi
44056
44057    cd src/qt-console
44058    chmod 755 install_conf_file build-depkgs-qt-console
44059    echo "Creating bat Makefile"
44060    $QMAKEBIN
44061    make clean
44062    cd ${BUILD_DIR}
44063 fi
44064
44065 if test X"$GCC" = "Xyes" ; then
44066   echo "Doing make of dependencies"
44067   ${MAKE:-make} depend
44068 fi
44069
44070 cd scripts
44071 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44072 chmod 755 dvd-handler dvd-simulator
44073 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44074 cd ..
44075
44076 c=updatedb
44077 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44078 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44079
44080 c=src/cats
44081
44082 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44083 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44084
44085 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44086 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44087
44088 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44089 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44090
44091 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44092 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44093
44094 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44095 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44096
44097 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44098 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44099
44100 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44101 chmod 755 $c/sqlite
44102 chmod 755 $c/mysql
44103
44104 chmod 755 src/win32/build-depkgs-mingw32
44105
44106 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44107    largefile_support="yes"
44108 fi
44109
44110 if test X"$GCC" = "Xyes" ; then
44111                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44112    if test "x${CCVERSION}" = "x" ; then
44113       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44114    fi
44115    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44116    if test x"${CXXVERSION}" = x ; then
44117       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44118    fi
44119 fi
44120
44121 if test "x${db_type}" = "xInternal" ; then
44122    echo " "
44123    echo " "
44124    echo "You have not specified either --enable-client-only or one of the"
44125    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44126    echo "  This is not permitted. Please reconfigure."
44127    echo " "
44128    echo "Aborting the configuration ..."
44129    echo " "
44130    echo " "
44131    exit 1
44132 fi
44133
44134 echo "
44135 Configuration on `date`:
44136
44137    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44138    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44139    Source code location:    ${srcdir}
44140    Install binaries:        ${sbindir}
44141    Install libraries:       ${libdir}
44142    Install config files:    ${sysconfdir}
44143    Scripts directory:       ${scriptdir}
44144    Archive directory:       ${archivedir}
44145    Working directory:       ${working_dir}
44146    PID directory:           ${piddir}
44147    Subsys directory:        ${subsysdir}
44148    Man directory:           ${mandir}
44149    Data directory:          ${datarootdir}
44150    C Compiler:              ${CC} ${CCVERSION}
44151    C++ Compiler:            ${CXX} ${CXXVERSION}
44152    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44153    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44154    Libraries:               ${LIBS}
44155    Statically Linked Tools: ${support_static_tools}
44156    Statically Linked FD:    ${support_static_fd}
44157    Statically Linked SD:    ${support_static_sd}
44158    Statically Linked DIR:   ${support_static_dir}
44159    Statically Linked CONS:  ${support_static_cons}
44160    Database type:           ${db_type}
44161    Database port:           ${db_port}
44162    Database lib:            ${DB_LIBS}
44163    Database name:           ${db_name}
44164    Database user:           ${db_user}
44165
44166    Job Output Email:        ${job_email}
44167    Traceback Email:         ${dump_email}
44168    SMTP Host Address:       ${smtp_host}
44169
44170    Director Port:           ${dir_port}
44171    File daemon Port:        ${fd_port}
44172    Storage daemon Port:     ${sd_port}
44173
44174    Director User:           ${dir_user}
44175    Director Group:          ${dir_group}
44176    Storage Daemon User:     ${sd_user}
44177    Storage DaemonGroup:     ${sd_group}
44178    File Daemon User:        ${fd_user}
44179    File Daemon Group:       ${fd_group}
44180
44181    SQL binaries Directory   ${SQL_BINDIR}
44182
44183    Large file support:      $largefile_support
44184    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44185    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44186    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44187    TLS support:             ${support_tls}
44188    Encryption support:      ${support_crypto}
44189    ZLIB support:            ${have_zlib}
44190    enable-smartalloc:       ${support_smartalloc}
44191    bat support:             ${support_bat} ${QWT_LDFLAGS}
44192    enable-gnome:            ${support_gnome} ${gnome_version}
44193    enable-bwx-console:      ${support_wx_console} ${wx_version}
44194    enable-tray-monitor:     ${support_tray_monitor}
44195    client-only:             ${build_client_only}
44196    build-dird:              ${build_dird}
44197    build-stored:            ${build_stored}
44198    ACL support:             ${have_acl}
44199    Python support:          ${support_python} ${PYTHON_LIBS}
44200    Batch insert enabled:    ${support_batch_insert}
44201
44202   " > config.out
44203
44204 cat config.out