]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
update configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.2.1.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='bacula'
569 PACKAGE_TARNAME='bacula'
570 PACKAGE_VERSION='5.2.1'
571 PACKAGE_STRING='bacula 5.2.1'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_unique_file="src/version.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_header_list=
613 ac_subst_vars='LTLIBOBJS
614 COMPRESS_MANPAGES
615 DISTVER
616 DISTNAME
617 MACOSX
618 WIN32
619 PSCMD
620 TAPEDRIVE
621 SYSTEMD_UNITDIR
622 OBJLIST
623 WRAPLIBS
624 WLDFLAGS
625 WCFLAGS
626 DLIB
627 DINCLUDE
628 DEBUG
629 FDLIBS
630 CAP_LIBS
631 LZOLIBS
632 ZLIBS
633 LIBOBJS
634 X_EXTRA_LIBS
635 X_LIBS
636 X_PRE_LIBS
637 X_CFLAGS
638 XMKMF
639 GETCONF
640 SHARED_CATALOG_TARGETS
641 DEFAULT_DB_TYPE
642 DB_LIBS
643 DB_BACKENDS
644 uncomment_dbi
645 SQLITE_BINDIR
646 SQLITE_INCLUDE
647 SQLITE_LIBS
648 MYSQL_BINDIR
649 MYSQL_INCLUDE
650 MYSQL_LIBS
651 POSTGRESQL_BINDIR
652 POSTGRESQL_INCLUDE
653 POSTGRESQL_LIBS
654 SBINPERM
655 fd_group
656 fd_user
657 sd_group
658 sd_user
659 dir_group
660 dir_user
661 db_port
662 db_password
663 db_user
664 db_name
665 mon_sd_password
666 mon_fd_password
667 mon_dir_password
668 sd_password
669 fd_password
670 dir_password
671 sd_port
672 fd_port
673 dir_port
674 baseport
675 subsysdir
676 piddir
677 smtp_host
678 job_email
679 dump_email
680 plugindir
681 logdir
682 bsrdir
683 scriptdir
684 hostname
685 basename
686 archivedir
687 working_dir
688 OPENSSL_INC
689 OPENSSL_LIBS
690 PYTHON_INCDIR
691 PYTHON_LIBS
692 READLINE_SRC
693 CONS_LDFLAGS
694 CONS_LIBS
695 CONS_SRC
696 CONS_OBJ
697 CONS_INC
698 STORED_DIR
699 DIR_TOOLS
700 DIRD_DIR
701 ALL_DIRS
702 STATIC_WX_CONS
703 STATIC_GNOME_CONS
704 STATIC_CONS
705 STATIC_DIR
706 STATIC_SD
707 STATIC_FD
708 TTOOL_LDFLAGS
709 TRAY_MONITOR_DIR
710 TRAY_MONITOR_LDFLAGS
711 TRAY_MONITOR_CPPFLAGS
712 WX_DIR
713 WXCONS_LDFLAGS
714 WXCONS_CPPFLAGS
715 QWT
716 QWT_LIB
717 QWT_LDFLAGS
718 QWT_INC
719 BAT_DIR
720 INTL_LIBTOOL_SUFFIX_PREFIX
721 INTLOBJS
722 GENCAT
723 INSTOBJEXT
724 DATADIRNAME
725 CATOBJEXT
726 USE_INCLUDED_LIBINTL
727 BUILD_INCLUDED_LIBINTL
728 INTLBISON
729 HAVE_WPRINTF
730 HAVE_SNPRINTF
731 HAVE_ASPRINTF
732 HAVE_POSIX_PRINTF
733 GLIBC21
734 ALLOCA
735 GLIBC2
736 POSUB
737 LTLIBINTL
738 LIBINTL
739 INTLLIBS
740 LTLIBICONV
741 LIBICONV
742 INTL_MACOSX_LIBS
743 MSGMERGE
744 XGETTEXT
745 GMSGFMT
746 MSGFMT
747 USE_NLS
748 MKINSTALLDIRS
749 SET_MAKE
750 HAVE_DARWIN_OS_FALSE
751 HAVE_DARWIN_OS_TRUE
752 HAVE_IRIX_OS_FALSE
753 HAVE_IRIX_OS_TRUE
754 HAVE_SGI_OS_FALSE
755 HAVE_SGI_OS_TRUE
756 HAVE_BSDI_OS_FALSE
757 HAVE_BSDI_OS_TRUE
758 HAVE_OPENBSD_OS_FALSE
759 HAVE_OPENBSD_OS_TRUE
760 HAVE_NETBSD_OS_FALSE
761 HAVE_NETBSD_OS_TRUE
762 HAVE_FREEBSD_OS_FALSE
763 HAVE_FREEBSD_OS_TRUE
764 HAVE_LINUX_OS_FALSE
765 HAVE_LINUX_OS_TRUE
766 HAVE_HPUX_OS_FALSE
767 HAVE_HPUX_OS_TRUE
768 HAVE_AIX_OS_FALSE
769 HAVE_AIX_OS_TRUE
770 HAVE_OSF1_OS_FALSE
771 HAVE_OSF1_OS_TRUE
772 HAVE_SUN_OS_FALSE
773 HAVE_SUN_OS_TRUE
774 INCLUDE_UNINSTALL_TARGET
775 INCLUDE_INSTALL_TARGET
776 FD_PLUGIN_DIR
777 QMAKE_LIBTOOL
778 LIBTOOL_CLEAN_TARGET
779 LIBTOOL_UNINSTALL_TARGET
780 LIBTOOL_INSTALL_TARGET
781 DEFAULT_SHARED_OBJECT_TYPE
782 DEFAULT_ARCHIVE_TYPE
783 DEFAULT_OBJECT_TYPE
784 CXXCPP
785 OTOOL64
786 OTOOL
787 LIPO
788 NMEDIT
789 DSYMUTIL
790 MANIFEST_TOOL
791 RANLIB
792 STRIP
793 ac_ct_AR
794 DLLTOOL
795 OBJDUMP
796 LN_S
797 NM
798 ac_ct_DUMPBIN
799 DUMPBIN
800 LD
801 FGREP
802 host_os
803 host_vendor
804 host_cpu
805 host
806 build_os
807 build_vendor
808 build_cpu
809 build
810 LIBTOOL
811 LOCAL_DEFS
812 LOCAL_LDFLAGS
813 LOCAL_CFLAGS
814 LOCAL_LIBS
815 MAKE_SHELL
816 ARFLAGS
817 AWK
818 PIDOF
819 CDRECORD
820 WXFLAGS
821 WXCONFIG
822 GMAKE
823 QMAKE
824 PKGCONFIG
825 DVDRWFORMAT
826 DVDRWMEDIAINFO
827 GROWISOFS
828 PYTHON
829 MKISOFS
830 DD
831 MTX
832 OPENSSL
833 AR
834 TBL
835 CMP
836 ECHO
837 SED
838 CP
839 REMOVE
840 MV
841 INSTALL_DATA
842 INSTALL_SCRIPT
843 INSTALL_PROGRAM
844 EGREP
845 GREP
846 CPP
847 ac_ct_CXX
848 CXXFLAGS
849 CXX
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 LIBBACFIND_LT_RELEASE
858 LIBBACCATS_LT_RELEASE
859 LIBBACSQL_LT_RELEASE
860 LIBBACPY_LT_RELEASE
861 LIBBACCFG_LT_RELEASE
862 LIBBAC_LT_RELEASE
863 BDB_VERSION
864 post_host
865 BACULA
866 LSMDATE
867 DATE
868 VERSION
869 FALSEPRG
870 TRUEPRG
871 WIN32TOPDIR
872 WIN32MAINDIR
873 WIN32BUILDDIR
874 TOP_DIR
875 BUILD_DIR
876 target_alias
877 host_alias
878 build_alias
879 LIBS
880 ECHO_T
881 ECHO_N
882 ECHO_C
883 DEFS
884 mandir
885 localedir
886 libdir
887 psdir
888 pdfdir
889 dvidir
890 htmldir
891 infodir
892 docdir
893 oldincludedir
894 includedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_URL
907 PACKAGE_BUGREPORT
908 PACKAGE_STRING
909 PACKAGE_VERSION
910 PACKAGE_TARNAME
911 PACKAGE_NAME
912 PATH_SEPARATOR
913 SHELL'
914 ac_subst_files='MCOMMON'
915 ac_user_opts='
916 enable_option_checking
917 enable_libtool
918 enable_shared
919 enable_static
920 with_pic
921 enable_fast_install
922 with_gnu_ld
923 with_sysroot
924 enable_libtool_lock
925 enable_includes
926 enable_nls
927 enable_rpath
928 with_libiconv_prefix
929 with_libintl_prefix
930 with_included_gettext
931 enable_gnome
932 enable_bat
933 enable_bwx_console
934 enable_tray_monitor
935 enable_smartalloc
936 enable_lockmgr
937 enable_static_tools
938 enable_static_fd
939 enable_static_sd
940 enable_static_dir
941 enable_static_cons
942 enable_client_only
943 enable_build_dird
944 enable_build_stored
945 enable_conio
946 enable_ipv6
947 enable_readline
948 with_readline
949 with_python
950 with_tcp_wrappers
951 with_openssl
952 with_working_dir
953 with_archivedir
954 with_basename
955 with_hostname
956 with_scriptdir
957 with_bsrdir
958 with_logdir
959 with_plugindir
960 with_dump_email
961 with_job_email
962 with_smtp_host
963 with_pid_dir
964 with_subsys_dir
965 with_baseport
966 with_dir_password
967 with_fd_password
968 with_sd_password
969 with_mon_dir_password
970 with_mon_fd_password
971 with_mon_sd_password
972 with_db_name
973 with_db_user
974 with_db_password
975 with_db_port
976 with_dir_user
977 with_dir_group
978 with_sd_user
979 with_sd_group
980 with_fd_user
981 with_fd_group
982 with_sbin_perm
983 enable_batch_insert
984 with_postgresql
985 with_mysql
986 with_embedded_mysql
987 with_sqlite3
988 enable_largefile
989 with_x
990 enable_acl
991 enable_xattr
992 with_systemd
993 '
994       ac_precious_vars='build_alias
995 host_alias
996 target_alias
997 CC
998 CFLAGS
999 LDFLAGS
1000 LIBS
1001 CPPFLAGS
1002 CXX
1003 CXXFLAGS
1004 CCC
1005 CPP
1006 WXCONFIG
1007 WXFLAGS
1008 CXXCPP
1009 XMKMF'
1010
1011
1012 # Initialize some variables set by options.
1013 ac_init_help=
1014 ac_init_version=false
1015 ac_unrecognized_opts=
1016 ac_unrecognized_sep=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file=/dev/null
1020 exec_prefix=NONE
1021 no_create=
1022 no_recursion=
1023 prefix=NONE
1024 program_prefix=NONE
1025 program_suffix=NONE
1026 program_transform_name=s,x,x,
1027 silent=
1028 site=
1029 srcdir=
1030 verbose=
1031 x_includes=NONE
1032 x_libraries=NONE
1033
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir='${exec_prefix}/bin'
1041 sbindir='${exec_prefix}/sbin'
1042 libexecdir='${exec_prefix}/libexec'
1043 datarootdir='${prefix}/share'
1044 datadir='${datarootdir}'
1045 sysconfdir='${prefix}/etc'
1046 sharedstatedir='${prefix}/com'
1047 localstatedir='${prefix}/var'
1048 includedir='${prefix}/include'
1049 oldincludedir='/usr/include'
1050 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1051 infodir='${datarootdir}/info'
1052 htmldir='${docdir}'
1053 dvidir='${docdir}'
1054 pdfdir='${docdir}'
1055 psdir='${docdir}'
1056 libdir='${exec_prefix}/lib'
1057 localedir='${datarootdir}/locale'
1058 mandir='${datarootdir}/man'
1059
1060 ac_prev=
1061 ac_dashdash=
1062 for ac_option
1063 do
1064   # If the previous option needs an argument, assign it.
1065   if test -n "$ac_prev"; then
1066     eval $ac_prev=\$ac_option
1067     ac_prev=
1068     continue
1069   fi
1070
1071   case $ac_option in
1072   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1073   *=)   ac_optarg= ;;
1074   *)    ac_optarg=yes ;;
1075   esac
1076
1077   # Accept the important Cygnus configure options, so we can diagnose typos.
1078
1079   case $ac_dashdash$ac_option in
1080   --)
1081     ac_dashdash=yes ;;
1082
1083   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1084     ac_prev=bindir ;;
1085   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1086     bindir=$ac_optarg ;;
1087
1088   -build | --build | --buil | --bui | --bu)
1089     ac_prev=build_alias ;;
1090   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1091     build_alias=$ac_optarg ;;
1092
1093   -cache-file | --cache-file | --cache-fil | --cache-fi \
1094   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1095     ac_prev=cache_file ;;
1096   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1097   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1098     cache_file=$ac_optarg ;;
1099
1100   --config-cache | -C)
1101     cache_file=config.cache ;;
1102
1103   -datadir | --datadir | --datadi | --datad)
1104     ac_prev=datadir ;;
1105   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1106     datadir=$ac_optarg ;;
1107
1108   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1109   | --dataroo | --dataro | --datar)
1110     ac_prev=datarootdir ;;
1111   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1112   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1113     datarootdir=$ac_optarg ;;
1114
1115   -disable-* | --disable-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid feature name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "enable_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval enable_$ac_useropt=no ;;
1130
1131   -docdir | --docdir | --docdi | --doc | --do)
1132     ac_prev=docdir ;;
1133   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1134     docdir=$ac_optarg ;;
1135
1136   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1137     ac_prev=dvidir ;;
1138   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1139     dvidir=$ac_optarg ;;
1140
1141   -enable-* | --enable-*)
1142     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145       as_fn_error $? "invalid feature name: $ac_useropt"
1146     ac_useropt_orig=$ac_useropt
1147     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148     case $ac_user_opts in
1149       *"
1150 "enable_$ac_useropt"
1151 "*) ;;
1152       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1153          ac_unrecognized_sep=', ';;
1154     esac
1155     eval enable_$ac_useropt=\$ac_optarg ;;
1156
1157   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1158   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1159   | --exec | --exe | --ex)
1160     ac_prev=exec_prefix ;;
1161   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1162   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1163   | --exec=* | --exe=* | --ex=*)
1164     exec_prefix=$ac_optarg ;;
1165
1166   -gas | --gas | --ga | --g)
1167     # Obsolete; use --with-gas.
1168     with_gas=yes ;;
1169
1170   -help | --help | --hel | --he | -h)
1171     ac_init_help=long ;;
1172   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1173     ac_init_help=recursive ;;
1174   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1175     ac_init_help=short ;;
1176
1177   -host | --host | --hos | --ho)
1178     ac_prev=host_alias ;;
1179   -host=* | --host=* | --hos=* | --ho=*)
1180     host_alias=$ac_optarg ;;
1181
1182   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1183     ac_prev=htmldir ;;
1184   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1185   | --ht=*)
1186     htmldir=$ac_optarg ;;
1187
1188   -includedir | --includedir | --includedi | --included | --include \
1189   | --includ | --inclu | --incl | --inc)
1190     ac_prev=includedir ;;
1191   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1192   | --includ=* | --inclu=* | --incl=* | --inc=*)
1193     includedir=$ac_optarg ;;
1194
1195   -infodir | --infodir | --infodi | --infod | --info | --inf)
1196     ac_prev=infodir ;;
1197   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1198     infodir=$ac_optarg ;;
1199
1200   -libdir | --libdir | --libdi | --libd)
1201     ac_prev=libdir ;;
1202   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1203     libdir=$ac_optarg ;;
1204
1205   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1206   | --libexe | --libex | --libe)
1207     ac_prev=libexecdir ;;
1208   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1209   | --libexe=* | --libex=* | --libe=*)
1210     libexecdir=$ac_optarg ;;
1211
1212   -localedir | --localedir | --localedi | --localed | --locale)
1213     ac_prev=localedir ;;
1214   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1215     localedir=$ac_optarg ;;
1216
1217   -localstatedir | --localstatedir | --localstatedi | --localstated \
1218   | --localstate | --localstat | --localsta | --localst | --locals)
1219     ac_prev=localstatedir ;;
1220   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1221   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1222     localstatedir=$ac_optarg ;;
1223
1224   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1225     ac_prev=mandir ;;
1226   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1227     mandir=$ac_optarg ;;
1228
1229   -nfp | --nfp | --nf)
1230     # Obsolete; use --without-fp.
1231     with_fp=no ;;
1232
1233   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1234   | --no-cr | --no-c | -n)
1235     no_create=yes ;;
1236
1237   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1238   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1239     no_recursion=yes ;;
1240
1241   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1242   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1243   | --oldin | --oldi | --old | --ol | --o)
1244     ac_prev=oldincludedir ;;
1245   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1246   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1247   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1248     oldincludedir=$ac_optarg ;;
1249
1250   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1251     ac_prev=prefix ;;
1252   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1253     prefix=$ac_optarg ;;
1254
1255   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1256   | --program-pre | --program-pr | --program-p)
1257     ac_prev=program_prefix ;;
1258   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1259   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1260     program_prefix=$ac_optarg ;;
1261
1262   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1263   | --program-suf | --program-su | --program-s)
1264     ac_prev=program_suffix ;;
1265   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1266   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1267     program_suffix=$ac_optarg ;;
1268
1269   -program-transform-name | --program-transform-name \
1270   | --program-transform-nam | --program-transform-na \
1271   | --program-transform-n | --program-transform- \
1272   | --program-transform | --program-transfor \
1273   | --program-transfo | --program-transf \
1274   | --program-trans | --program-tran \
1275   | --progr-tra | --program-tr | --program-t)
1276     ac_prev=program_transform_name ;;
1277   -program-transform-name=* | --program-transform-name=* \
1278   | --program-transform-nam=* | --program-transform-na=* \
1279   | --program-transform-n=* | --program-transform-=* \
1280   | --program-transform=* | --program-transfor=* \
1281   | --program-transfo=* | --program-transf=* \
1282   | --program-trans=* | --program-tran=* \
1283   | --progr-tra=* | --program-tr=* | --program-t=*)
1284     program_transform_name=$ac_optarg ;;
1285
1286   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1287     ac_prev=pdfdir ;;
1288   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1289     pdfdir=$ac_optarg ;;
1290
1291   -psdir | --psdir | --psdi | --psd | --ps)
1292     ac_prev=psdir ;;
1293   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1294     psdir=$ac_optarg ;;
1295
1296   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1297   | -silent | --silent | --silen | --sile | --sil)
1298     silent=yes ;;
1299
1300   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1301     ac_prev=sbindir ;;
1302   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1303   | --sbi=* | --sb=*)
1304     sbindir=$ac_optarg ;;
1305
1306   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1307   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1308   | --sharedst | --shareds | --shared | --share | --shar \
1309   | --sha | --sh)
1310     ac_prev=sharedstatedir ;;
1311   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1312   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1313   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1314   | --sha=* | --sh=*)
1315     sharedstatedir=$ac_optarg ;;
1316
1317   -site | --site | --sit)
1318     ac_prev=site ;;
1319   -site=* | --site=* | --sit=*)
1320     site=$ac_optarg ;;
1321
1322   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1323     ac_prev=srcdir ;;
1324   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1325     srcdir=$ac_optarg ;;
1326
1327   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1328   | --syscon | --sysco | --sysc | --sys | --sy)
1329     ac_prev=sysconfdir ;;
1330   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1331   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1332     sysconfdir=$ac_optarg ;;
1333
1334   -target | --target | --targe | --targ | --tar | --ta | --t)
1335     ac_prev=target_alias ;;
1336   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1337     target_alias=$ac_optarg ;;
1338
1339   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1340     verbose=yes ;;
1341
1342   -version | --version | --versio | --versi | --vers | -V)
1343     ac_init_version=: ;;
1344
1345   -with-* | --with-*)
1346     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1347     # Reject names that are not valid shell variable names.
1348     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349       as_fn_error $? "invalid package name: $ac_useropt"
1350     ac_useropt_orig=$ac_useropt
1351     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352     case $ac_user_opts in
1353       *"
1354 "with_$ac_useropt"
1355 "*) ;;
1356       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1357          ac_unrecognized_sep=', ';;
1358     esac
1359     eval with_$ac_useropt=\$ac_optarg ;;
1360
1361   -without-* | --without-*)
1362     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1363     # Reject names that are not valid shell variable names.
1364     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365       as_fn_error $? "invalid package name: $ac_useropt"
1366     ac_useropt_orig=$ac_useropt
1367     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368     case $ac_user_opts in
1369       *"
1370 "with_$ac_useropt"
1371 "*) ;;
1372       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1373          ac_unrecognized_sep=', ';;
1374     esac
1375     eval with_$ac_useropt=no ;;
1376
1377   --x)
1378     # Obsolete; use --with-x.
1379     with_x=yes ;;
1380
1381   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1382   | --x-incl | --x-inc | --x-in | --x-i)
1383     ac_prev=x_includes ;;
1384   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1385   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1386     x_includes=$ac_optarg ;;
1387
1388   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1389   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1390     ac_prev=x_libraries ;;
1391   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1392   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1393     x_libraries=$ac_optarg ;;
1394
1395   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1396 Try \`$0 --help' for more information"
1397     ;;
1398
1399   *=*)
1400     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1401     # Reject names that are not valid shell variable names.
1402     case $ac_envvar in #(
1403       '' | [0-9]* | *[!_$as_cr_alnum]* )
1404       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1405     esac
1406     eval $ac_envvar=\$ac_optarg
1407     export $ac_envvar ;;
1408
1409   *)
1410     # FIXME: should be removed in autoconf 3.0.
1411     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1412     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1413       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1414     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1415     ;;
1416
1417   esac
1418 done
1419
1420 if test -n "$ac_prev"; then
1421   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1422   as_fn_error $? "missing argument to $ac_option"
1423 fi
1424
1425 if test -n "$ac_unrecognized_opts"; then
1426   case $enable_option_checking in
1427     no) ;;
1428     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1429     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1430   esac
1431 fi
1432
1433 # Check all directory arguments for consistency.
1434 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435                 datadir sysconfdir sharedstatedir localstatedir includedir \
1436                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437                 libdir localedir mandir
1438 do
1439   eval ac_val=\$$ac_var
1440   # Remove trailing slashes.
1441   case $ac_val in
1442     */ )
1443       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1444       eval $ac_var=\$ac_val;;
1445   esac
1446   # Be sure to have absolute directory names.
1447   case $ac_val in
1448     [\\/$]* | ?:[\\/]* )  continue;;
1449     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450   esac
1451   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1452 done
1453
1454 # There might be people who depend on the old broken behavior: `$host'
1455 # used to hold the argument of --host etc.
1456 # FIXME: To remove some day.
1457 build=$build_alias
1458 host=$host_alias
1459 target=$target_alias
1460
1461 # FIXME: To remove some day.
1462 if test "x$host_alias" != x; then
1463   if test "x$build_alias" = x; then
1464     cross_compiling=maybe
1465     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1466     If a cross compiler is detected then cross compile mode will be used" >&2
1467   elif test "x$build_alias" != "x$host_alias"; then
1468     cross_compiling=yes
1469   fi
1470 fi
1471
1472 ac_tool_prefix=
1473 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1474
1475 test "$silent" = yes && exec 6>/dev/null
1476
1477
1478 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1479 ac_ls_di=`ls -di .` &&
1480 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1481   as_fn_error $? "working directory cannot be determined"
1482 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483   as_fn_error $? "pwd does not report name of working directory"
1484
1485
1486 # Find the source files, if location was not specified.
1487 if test -z "$srcdir"; then
1488   ac_srcdir_defaulted=yes
1489   # Try the directory containing this script, then the parent directory.
1490   ac_confdir=`$as_dirname -- "$as_myself" ||
1491 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1492          X"$as_myself" : 'X\(//\)[^/]' \| \
1493          X"$as_myself" : 'X\(//\)$' \| \
1494          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1495 $as_echo X"$as_myself" |
1496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1497             s//\1/
1498             q
1499           }
1500           /^X\(\/\/\)[^/].*/{
1501             s//\1/
1502             q
1503           }
1504           /^X\(\/\/\)$/{
1505             s//\1/
1506             q
1507           }
1508           /^X\(\/\).*/{
1509             s//\1/
1510             q
1511           }
1512           s/.*/./; q'`
1513   srcdir=$ac_confdir
1514   if test ! -r "$srcdir/$ac_unique_file"; then
1515     srcdir=..
1516   fi
1517 else
1518   ac_srcdir_defaulted=no
1519 fi
1520 if test ! -r "$srcdir/$ac_unique_file"; then
1521   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1522   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1523 fi
1524 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 ac_abs_confdir=`(
1526         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1527         pwd)`
1528 # When building in place, set srcdir=.
1529 if test "$ac_abs_confdir" = "$ac_pwd"; then
1530   srcdir=.
1531 fi
1532 # Remove unnecessary trailing slashes from srcdir.
1533 # Double slashes in file names in object file debugging info
1534 # mess up M-x gdb in Emacs.
1535 case $srcdir in
1536 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1537 esac
1538 for ac_var in $ac_precious_vars; do
1539   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1540   eval ac_env_${ac_var}_value=\$${ac_var}
1541   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1542   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1543 done
1544
1545 #
1546 # Report the --help message.
1547 #
1548 if test "$ac_init_help" = "long"; then
1549   # Omit some internal or obsolete options to make the list less imposing.
1550   # This message is too long to be a string in the A/UX 3.1 sh.
1551   cat <<_ACEOF
1552 \`configure' configures bacula 5.2.1 to adapt to many kinds of systems.
1553
1554 Usage: $0 [OPTION]... [VAR=VALUE]...
1555
1556 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1557 VAR=VALUE.  See below for descriptions of some of the useful variables.
1558
1559 Defaults for the options are specified in brackets.
1560
1561 Configuration:
1562   -h, --help              display this help and exit
1563       --help=short        display options specific to this package
1564       --help=recursive    display the short help of all the included packages
1565   -V, --version           display version information and exit
1566   -q, --quiet, --silent   do not print \`checking ...' messages
1567       --cache-file=FILE   cache test results in FILE [disabled]
1568   -C, --config-cache      alias for \`--cache-file=config.cache'
1569   -n, --no-create         do not create output files
1570       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1571
1572 Installation directories:
1573   --prefix=PREFIX         install architecture-independent files in PREFIX
1574                           [$ac_default_prefix]
1575   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1576                           [PREFIX]
1577
1578 By default, \`make install' will install all the files in
1579 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1580 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1581 for instance \`--prefix=\$HOME'.
1582
1583 For better control, use the options below.
1584
1585 Fine tuning of the installation directories:
1586   --bindir=DIR            user executables [EPREFIX/bin]
1587   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1588   --libexecdir=DIR        program executables [EPREFIX/libexec]
1589   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1590   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1591   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1592   --libdir=DIR            object code libraries [EPREFIX/lib]
1593   --includedir=DIR        C header files [PREFIX/include]
1594   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1595   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1596   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1597   --infodir=DIR           info documentation [DATAROOTDIR/info]
1598   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1599   --mandir=DIR            man documentation [DATAROOTDIR/man]
1600   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1601   --htmldir=DIR           html documentation [DOCDIR]
1602   --dvidir=DIR            dvi documentation [DOCDIR]
1603   --pdfdir=DIR            pdf documentation [DOCDIR]
1604   --psdir=DIR             ps documentation [DOCDIR]
1605 _ACEOF
1606
1607   cat <<\_ACEOF
1608
1609 X features:
1610   --x-includes=DIR    X include files are in DIR
1611   --x-libraries=DIR   X library files are in DIR
1612
1613 System types:
1614   --build=BUILD     configure for building on BUILD [guessed]
1615   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1616 _ACEOF
1617 fi
1618
1619 if test -n "$ac_init_help"; then
1620   case $ac_init_help in
1621      short | recursive ) echo "Configuration of bacula 5.2.1:";;
1622    esac
1623   cat <<\_ACEOF
1624
1625 Optional Features:
1626   --disable-option-checking  ignore unrecognized --enable/--with options
1627   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1628   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1629   --enable-libtool        enable building using GNU libtool [default=yes]
1630   --enable-shared[=PKGS]  build shared libraries [default=yes]
1631   --enable-static[=PKGS]  build static libraries [default=no]
1632   --enable-fast-install[=PKGS]
1633                           optimize for fast installation [default=yes]
1634   --disable-libtool-lock  avoid locking (might break parallel builds)
1635   --enable-includes       enable installing of include files [default=no]
1636   --disable-nls           do not use Native Language Support
1637   --disable-rpath         do not hardcode runtime library paths
1638   --enable-gnome          enable build of bgnome-console GUI [default=no]
1639   --enable-bat            enable build of bat Qt4 GUI [default=no]
1640   --enable-bwx-console    enable build of wxWidgets console [default=no]
1641   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1642                           KDE [default=no]
1643   --enable-smartalloc     enable smartalloc debugging support [default=no]
1644   --enable-lockmgr        enable lock manager support [default=no]
1645   --enable-static-tools   enable static tape tools [default=no]
1646   --enable-static-fd      enable static File daemon [default=no]
1647   --enable-static-sd      enable static Storage daemon [default=no]
1648   --enable-static-dir     enable static Director [default=no]
1649   --enable-static-cons    enable static Console [default=no]
1650   --enable-client-only    build client (File daemon) only [default=no]
1651   --enable-build-dird     enable building of dird (Director) [default=yes]
1652   --enable-build-stored   enable building of stored (Storage daemon)
1653                           [default=yes]
1654   --disable-conio         disable conio support [default=no]
1655   --enable-ipv6           enable ipv6 support [default=yes]
1656   --disable-readline      disable readline support [default=yes]
1657   --enable-batch-insert   enable the DB batch insert code [default=yes]
1658   --disable-largefile     omit support for large files
1659   --disable-acl           disable acl support [default=auto]
1660   --disable-xattr         disable xattr support [default=auto]
1661
1662 Optional Packages:
1663   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1664   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1665   --with-pic              try to use only PIC/non-PIC objects [default=use
1666                           both]
1667   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1668   --with-sysroot=DIR Search for dependent libraries within DIR
1669                         (or the compiler's sysroot if not specified).
1670   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1671   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1672   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1673   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1674   --without-libintl-prefix     don't search for libintl in includedir and libdir
1675   --with-included-gettext use the GNU gettext library included here
1676   --with-readline[=DIR]   specify readline library directory
1677   --with-python[=DIR]     Include Python support. DIR is the Python base
1678                           install directory, default is to search through a
1679                           number of common places for the Python files.
1680   --with-tcp-wrappers[=DIR]
1681                           enable tcpwrappers support
1682   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1683   --with-working-dir=PATH specify path of Bacula working directory
1684   --with-archivedir=PATH  specify path of SD archive directory
1685   --with-basename=RESNAME specify base resource name for daemons
1686   --with-hostname=RESNAME specify host name for daemons
1687   --with-scriptdir=PATH   specify path of Bacula scripts directory
1688   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1689   --with-logdir=PATH      specify path of Bacula logs 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=0750]
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-x                use the X Window System
1734   --with-systemd[=UNITDIR]
1735                           Include systemd support. UNITDIR is where systemd
1736                           system .service files are located, default is to ask
1737                           systemctl.
1738
1739 Some influential environment variables:
1740   CC          C compiler command
1741   CFLAGS      C compiler flags
1742   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1743               nonstandard directory <lib dir>
1744   LIBS        libraries to pass to the linker, e.g. -l<library>
1745   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746               you have headers in a nonstandard directory <include dir>
1747   CXX         C++ compiler command
1748   CXXFLAGS    C++ compiler flags
1749   CPP         C preprocessor
1750   WXCONFIG    wx-config command. On some systems, you must set it to
1751               wx-config-2.6 to use wxWidgets 2.6.
1752   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1753   CXXCPP      C++ preprocessor
1754   XMKMF       Path to xmkmf, Makefile generator for X Window System
1755
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1758
1759 Report bugs to the package provider.
1760 _ACEOF
1761 ac_status=$?
1762 fi
1763
1764 if test "$ac_init_help" = "recursive"; then
1765   # If there are subdirs, report their specific --help.
1766   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1767     test -d "$ac_dir" ||
1768       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769       continue
1770     ac_builddir=.
1771
1772 case "$ac_dir" in
1773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1774 *)
1775   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776   # A ".." for each directory in $ac_dir_suffix.
1777   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778   case $ac_top_builddir_sub in
1779   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1781   esac ;;
1782 esac
1783 ac_abs_top_builddir=$ac_pwd
1784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir=$ac_top_build_prefix
1787
1788 case $srcdir in
1789   .)  # We are building in place.
1790     ac_srcdir=.
1791     ac_top_srcdir=$ac_top_builddir_sub
1792     ac_abs_top_srcdir=$ac_pwd ;;
1793   [\\/]* | ?:[\\/]* )  # Absolute name.
1794     ac_srcdir=$srcdir$ac_dir_suffix;
1795     ac_top_srcdir=$srcdir
1796     ac_abs_top_srcdir=$srcdir ;;
1797   *) # Relative name.
1798     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799     ac_top_srcdir=$ac_top_build_prefix$srcdir
1800     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1801 esac
1802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1803
1804     cd "$ac_dir" || { ac_status=$?; continue; }
1805     # Check for guested configure.
1806     if test -f "$ac_srcdir/configure.gnu"; then
1807       echo &&
1808       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809     elif test -f "$ac_srcdir/configure"; then
1810       echo &&
1811       $SHELL "$ac_srcdir/configure" --help=recursive
1812     else
1813       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1814     fi || ac_status=$?
1815     cd "$ac_pwd" || { ac_status=$?; break; }
1816   done
1817 fi
1818
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1821   cat <<\_ACEOF
1822 bacula configure 5.2.1
1823 generated by GNU Autoconf 2.68
1824
1825 Copyright (C) 2010 Free Software Foundation, Inc.
1826 This configure script is free software; the Free Software Foundation
1827 gives unlimited permission to copy, distribute and modify it.
1828 _ACEOF
1829   exit
1830 fi
1831
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1835
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   rm -f conftest.$ac_objext
1843   if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846   *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850   (eval "$ac_compile") 2>conftest.err
1851   ac_status=$?
1852   if test -s conftest.err; then
1853     grep -v '^ *+' conftest.err >conftest.er1
1854     cat conftest.er1 >&5
1855     mv -f conftest.er1 conftest.err
1856   fi
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; } && {
1859          test -z "$ac_c_werror_flag" ||
1860          test ! -s conftest.err
1861        } && test -s conftest.$ac_objext; then :
1862   ac_retval=0
1863 else
1864   $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867         ac_retval=1
1868 fi
1869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870   as_fn_set_status $ac_retval
1871
1872 } # ac_fn_c_try_compile
1873
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   rm -f conftest.$ac_objext
1881   if { { ac_try="$ac_compile"
1882 case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888   (eval "$ac_compile") 2>conftest.err
1889   ac_status=$?
1890   if test -s conftest.err; then
1891     grep -v '^ *+' conftest.err >conftest.er1
1892     cat conftest.er1 >&5
1893     mv -f conftest.er1 conftest.err
1894   fi
1895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896   test $ac_status = 0; } && {
1897          test -z "$ac_cxx_werror_flag" ||
1898          test ! -s conftest.err
1899        } && test -s conftest.$ac_objext; then :
1900   ac_retval=0
1901 else
1902   $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905         ac_retval=1
1906 fi
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908   as_fn_set_status $ac_retval
1909
1910 } # ac_fn_cxx_try_compile
1911
1912 # ac_fn_c_try_cpp LINENO
1913 # ----------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_c_try_cpp ()
1916 {
1917   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918   if { { ac_try="$ac_cpp conftest.$ac_ext"
1919 case "(($ac_try" in
1920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921   *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926   ac_status=$?
1927   if test -s conftest.err; then
1928     grep -v '^ *+' conftest.err >conftest.er1
1929     cat conftest.er1 >&5
1930     mv -f conftest.er1 conftest.err
1931   fi
1932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933   test $ac_status = 0; } > conftest.i && {
1934          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1935          test ! -s conftest.err
1936        }; then :
1937   ac_retval=0
1938 else
1939   $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942     ac_retval=1
1943 fi
1944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945   as_fn_set_status $ac_retval
1946
1947 } # ac_fn_c_try_cpp
1948
1949 # ac_fn_c_try_link LINENO
1950 # -----------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_c_try_link ()
1953 {
1954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955   rm -f conftest.$ac_objext conftest$ac_exeext
1956   if { { ac_try="$ac_link"
1957 case "(($ac_try" in
1958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959   *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963   (eval "$ac_link") 2>conftest.err
1964   ac_status=$?
1965   if test -s conftest.err; then
1966     grep -v '^ *+' conftest.err >conftest.er1
1967     cat conftest.er1 >&5
1968     mv -f conftest.er1 conftest.err
1969   fi
1970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971   test $ac_status = 0; } && {
1972          test -z "$ac_c_werror_flag" ||
1973          test ! -s conftest.err
1974        } && test -s conftest$ac_exeext && {
1975          test "$cross_compiling" = yes ||
1976          $as_test_x conftest$ac_exeext
1977        }; then :
1978   ac_retval=0
1979 else
1980   $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983         ac_retval=1
1984 fi
1985   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1986   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1987   # interfere with the next link command; also delete a directory that is
1988   # left behind by Apple's compiler.  We do this before executing the actions.
1989   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991   as_fn_set_status $ac_retval
1992
1993 } # ac_fn_c_try_link
1994
1995 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists and can be compiled using the include files in
1998 # INCLUDES, setting the cache variable VAR accordingly.
1999 ac_fn_c_check_header_compile ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005   $as_echo_n "(cached) " >&6
2006 else
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $4
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013   eval "$3=yes"
2014 else
2015   eval "$3=no"
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 fi
2019 eval ac_res=\$$3
2020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024 } # ac_fn_c_check_header_compile
2025
2026 # ac_fn_c_try_run LINENO
2027 # ----------------------
2028 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2029 # that executables *can* be run.
2030 ac_fn_c_try_run ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   if { { ac_try="$ac_link"
2034 case "(($ac_try" in
2035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036   *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040   (eval "$ac_link") 2>&5
2041   ac_status=$?
2042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2044   { { case "(($ac_try" in
2045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046   *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050   (eval "$ac_try") 2>&5
2051   ac_status=$?
2052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053   test $ac_status = 0; }; }; then :
2054   ac_retval=0
2055 else
2056   $as_echo "$as_me: program exited with status $ac_status" >&5
2057        $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2059
2060        ac_retval=$ac_status
2061 fi
2062   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064   as_fn_set_status $ac_retval
2065
2066 } # ac_fn_c_try_run
2067
2068 # ac_fn_c_check_func LINENO FUNC VAR
2069 # ----------------------------------
2070 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2071 ac_fn_c_check_func ()
2072 {
2073   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if eval \${$3+:} false; then :
2077   $as_echo_n "(cached) " >&6
2078 else
2079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2083 #define $2 innocuous_$2
2084
2085 /* System header to define __stub macros and hopefully few prototypes,
2086     which can conflict with char $2 (); below.
2087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2088     <limits.h> exists even on freestanding compilers.  */
2089
2090 #ifdef __STDC__
2091 # include <limits.h>
2092 #else
2093 # include <assert.h>
2094 #endif
2095
2096 #undef $2
2097
2098 /* Override any GCC internal prototype to avoid an error.
2099    Use char because int might match the return type of a GCC
2100    builtin and then its argument prototype would still apply.  */
2101 #ifdef __cplusplus
2102 extern "C"
2103 #endif
2104 char $2 ();
2105 /* The GNU C library defines this for functions which it implements
2106     to always fail with ENOSYS.  Some functions are actually named
2107     something starting with __ and the normal name is an alias.  */
2108 #if defined __stub_$2 || defined __stub___$2
2109 choke me
2110 #endif
2111
2112 int
2113 main ()
2114 {
2115 return $2 ();
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_link "$LINENO"; then :
2121   eval "$3=yes"
2122 else
2123   eval "$3=no"
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext \
2126     conftest$ac_exeext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_func
2134
2135 # ac_fn_cxx_try_cpp LINENO
2136 # ------------------------
2137 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_cxx_try_cpp ()
2139 {
2140   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141   if { { ac_try="$ac_cpp conftest.$ac_ext"
2142 case "(($ac_try" in
2143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144   *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2149   ac_status=$?
2150   if test -s conftest.err; then
2151     grep -v '^ *+' conftest.err >conftest.er1
2152     cat conftest.er1 >&5
2153     mv -f conftest.er1 conftest.err
2154   fi
2155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156   test $ac_status = 0; } > conftest.i && {
2157          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2158          test ! -s conftest.err
2159        }; then :
2160   ac_retval=0
2161 else
2162   $as_echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165     ac_retval=1
2166 fi
2167   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168   as_fn_set_status $ac_retval
2169
2170 } # ac_fn_cxx_try_cpp
2171
2172 # ac_fn_cxx_try_link LINENO
2173 # -------------------------
2174 # Try to link conftest.$ac_ext, and return whether this succeeded.
2175 ac_fn_cxx_try_link ()
2176 {
2177   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178   rm -f conftest.$ac_objext conftest$ac_exeext
2179   if { { ac_try="$ac_link"
2180 case "(($ac_try" in
2181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182   *) ac_try_echo=$ac_try;;
2183 esac
2184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186   (eval "$ac_link") 2>conftest.err
2187   ac_status=$?
2188   if test -s conftest.err; then
2189     grep -v '^ *+' conftest.err >conftest.er1
2190     cat conftest.er1 >&5
2191     mv -f conftest.er1 conftest.err
2192   fi
2193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194   test $ac_status = 0; } && {
2195          test -z "$ac_cxx_werror_flag" ||
2196          test ! -s conftest.err
2197        } && test -s conftest$ac_exeext && {
2198          test "$cross_compiling" = yes ||
2199          $as_test_x conftest$ac_exeext
2200        }; then :
2201   ac_retval=0
2202 else
2203   $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206         ac_retval=1
2207 fi
2208   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2209   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2210   # interfere with the next link command; also delete a directory that is
2211   # left behind by Apple's compiler.  We do this before executing the actions.
2212   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2213   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214   as_fn_set_status $ac_retval
2215
2216 } # ac_fn_cxx_try_link
2217
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2223 {
2224   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228   $as_echo_n "(cached) " >&6
2229 else
2230   eval "$3=no"
2231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 $4
2234 int
2235 main ()
2236 {
2237 if (sizeof ($2))
2238          return 0;
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 if (sizeof (($2)))
2251             return 0;
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257
2258 else
2259   eval "$3=yes"
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 fi
2265 eval ac_res=\$$3
2266                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269
2270 } # ac_fn_c_check_type
2271
2272 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2273 # -------------------------------------------------------
2274 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2275 # the include files in INCLUDES and setting the cache variable VAR
2276 # accordingly.
2277 ac_fn_c_check_header_mongrel ()
2278 {
2279   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280   if eval \${$3+:} false; then :
2281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if eval \${$3+:} false; then :
2284   $as_echo_n "(cached) " >&6
2285 fi
2286 eval ac_res=\$$3
2287                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 else
2290   # Is the header compilable?
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2292 $as_echo_n "checking $2 usability... " >&6; }
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $4
2296 #include <$2>
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299   ac_header_compiler=yes
2300 else
2301   ac_header_compiler=no
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2305 $as_echo "$ac_header_compiler" >&6; }
2306
2307 # Is the header present?
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2309 $as_echo_n "checking $2 presence... " >&6; }
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h.  */
2312 #include <$2>
2313 _ACEOF
2314 if ac_fn_c_try_cpp "$LINENO"; then :
2315   ac_header_preproc=yes
2316 else
2317   ac_header_preproc=no
2318 fi
2319 rm -f conftest.err conftest.i conftest.$ac_ext
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2321 $as_echo "$ac_header_preproc" >&6; }
2322
2323 # So?  What about this header?
2324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2325   yes:no: )
2326     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2327 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2328     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2329 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2330     ;;
2331   no:yes:* )
2332     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2333 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2334     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2335 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2336     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2337 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2338     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2339 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2340     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2341 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2342     ;;
2343 esac
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347   $as_echo_n "(cached) " >&6
2348 else
2349   eval "$3=\$ac_header_compiler"
2350 fi
2351 eval ac_res=\$$3
2352                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 fi
2355   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356
2357 } # ac_fn_c_check_header_mongrel
2358
2359 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2360 # --------------------------------------------
2361 # Tries to find the compile-time value of EXPR in a program that includes
2362 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2363 # computed
2364 ac_fn_c_compute_int ()
2365 {
2366   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367   if test "$cross_compiling" = yes; then
2368     # Depending upon the size, compute the lo and hi bounds.
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h.  */
2371 $4
2372 int
2373 main ()
2374 {
2375 static int test_array [1 - 2 * !(($2) >= 0)];
2376 test_array [0] = 0
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 if ac_fn_c_try_compile "$LINENO"; then :
2383   ac_lo=0 ac_mid=0
2384   while :; do
2385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h.  */
2387 $4
2388 int
2389 main ()
2390 {
2391 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2392 test_array [0] = 0
2393
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 if ac_fn_c_try_compile "$LINENO"; then :
2399   ac_hi=$ac_mid; break
2400 else
2401   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2402                         if test $ac_lo -le $ac_mid; then
2403                           ac_lo= ac_hi=
2404                           break
2405                         fi
2406                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409   done
2410 else
2411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 $4
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($2) < 0)];
2418 test_array [0] = 0
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   ac_hi=-1 ac_mid=-1
2426   while :; do
2427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 $4
2430 int
2431 main ()
2432 {
2433 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2434 test_array [0] = 0
2435
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441   ac_lo=$ac_mid; break
2442 else
2443   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2444                         if test $ac_mid -le $ac_hi; then
2445                           ac_lo= ac_hi=
2446                           break
2447                         fi
2448                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451   done
2452 else
2453   ac_lo= ac_hi=
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 # Binary search between lo and hi bounds.
2459 while test "x$ac_lo" != "x$ac_hi"; do
2460   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h.  */
2463 $4
2464 int
2465 main ()
2466 {
2467 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2468 test_array [0] = 0
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475   ac_hi=$ac_mid
2476 else
2477   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2478 fi
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 done
2481 case $ac_lo in #((
2482 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2483 '') ac_retval=1 ;;
2484 esac
2485   else
2486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488 $4
2489 static long int longval () { return $2; }
2490 static unsigned long int ulongval () { return $2; }
2491 #include <stdio.h>
2492 #include <stdlib.h>
2493 int
2494 main ()
2495 {
2496
2497   FILE *f = fopen ("conftest.val", "w");
2498   if (! f)
2499     return 1;
2500   if (($2) < 0)
2501     {
2502       long int i = longval ();
2503       if (i != ($2))
2504         return 1;
2505       fprintf (f, "%ld", i);
2506     }
2507   else
2508     {
2509       unsigned long int i = ulongval ();
2510       if (i != ($2))
2511         return 1;
2512       fprintf (f, "%lu", i);
2513     }
2514   /* Do not output a trailing newline, as this causes \r\n confusion
2515      on some platforms.  */
2516   return ferror (f) || fclose (f) != 0;
2517
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 if ac_fn_c_try_run "$LINENO"; then :
2523   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2524 else
2525   ac_retval=1
2526 fi
2527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2528   conftest.$ac_objext conftest.beam conftest.$ac_ext
2529 rm -f conftest.val
2530
2531   fi
2532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533   as_fn_set_status $ac_retval
2534
2535 } # ac_fn_c_compute_int
2536
2537 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2538 # ----------------------------------------------------
2539 # Tries to find if the field MEMBER exists in type AGGR, after including
2540 # INCLUDES, setting cache variable VAR accordingly.
2541 ac_fn_c_check_member ()
2542 {
2543   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2545 $as_echo_n "checking for $2.$3... " >&6; }
2546 if eval \${$4+:} false; then :
2547   $as_echo_n "(cached) " >&6
2548 else
2549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h.  */
2551 $5
2552 int
2553 main ()
2554 {
2555 static $2 ac_aggr;
2556 if (ac_aggr.$3)
2557 return 0;
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 if ac_fn_c_try_compile "$LINENO"; then :
2563   eval "$4=yes"
2564 else
2565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h.  */
2567 $5
2568 int
2569 main ()
2570 {
2571 static $2 ac_aggr;
2572 if (sizeof ac_aggr.$3)
2573 return 0;
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579   eval "$4=yes"
2580 else
2581   eval "$4=no"
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 eval ac_res=\$$4
2588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591
2592 } # ac_fn_c_check_member
2593
2594 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2595 # ---------------------------------------------
2596 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2597 # accordingly.
2598 ac_fn_c_check_decl ()
2599 {
2600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601   as_decl_name=`echo $2|sed 's/ *(.*//'`
2602   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2604 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2605 if eval \${$3+:} false; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h.  */
2610 $4
2611 int
2612 main ()
2613 {
2614 #ifndef $as_decl_name
2615 #ifdef __cplusplus
2616   (void) $as_decl_use;
2617 #else
2618   (void) $as_decl_name;
2619 #endif
2620 #endif
2621
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 if ac_fn_c_try_compile "$LINENO"; then :
2627   eval "$3=yes"
2628 else
2629   eval "$3=no"
2630 fi
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 fi
2633 eval ac_res=\$$3
2634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635 $as_echo "$ac_res" >&6; }
2636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2637
2638 } # ac_fn_c_check_decl
2639
2640 # ac_fn_cxx_try_run LINENO
2641 # ------------------------
2642 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2643 # that executables *can* be run.
2644 ac_fn_cxx_try_run ()
2645 {
2646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647   if { { ac_try="$ac_link"
2648 case "(($ac_try" in
2649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650   *) ac_try_echo=$ac_try;;
2651 esac
2652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2653 $as_echo "$ac_try_echo"; } >&5
2654   (eval "$ac_link") 2>&5
2655   ac_status=$?
2656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2658   { { case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663 $as_echo "$ac_try_echo"; } >&5
2664   (eval "$ac_try") 2>&5
2665   ac_status=$?
2666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667   test $ac_status = 0; }; }; then :
2668   ac_retval=0
2669 else
2670   $as_echo "$as_me: program exited with status $ac_status" >&5
2671        $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674        ac_retval=$ac_status
2675 fi
2676   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678   as_fn_set_status $ac_retval
2679
2680 } # ac_fn_cxx_try_run
2681
2682 # ac_fn_cxx_check_func LINENO FUNC VAR
2683 # ------------------------------------
2684 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2685 ac_fn_cxx_check_func ()
2686 {
2687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2689 $as_echo_n "checking for $2... " >&6; }
2690 if eval \${$3+:} false; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h.  */
2695 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2697 #define $2 innocuous_$2
2698
2699 /* System header to define __stub macros and hopefully few prototypes,
2700     which can conflict with char $2 (); below.
2701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2702     <limits.h> exists even on freestanding compilers.  */
2703
2704 #ifdef __STDC__
2705 # include <limits.h>
2706 #else
2707 # include <assert.h>
2708 #endif
2709
2710 #undef $2
2711
2712 /* Override any GCC internal prototype to avoid an error.
2713    Use char because int might match the return type of a GCC
2714    builtin and then its argument prototype would still apply.  */
2715 #ifdef __cplusplus
2716 extern "C"
2717 #endif
2718 char $2 ();
2719 /* The GNU C library defines this for functions which it implements
2720     to always fail with ENOSYS.  Some functions are actually named
2721     something starting with __ and the normal name is an alias.  */
2722 #if defined __stub_$2 || defined __stub___$2
2723 choke me
2724 #endif
2725
2726 int
2727 main ()
2728 {
2729 return $2 ();
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 if ac_fn_cxx_try_link "$LINENO"; then :
2735   eval "$3=yes"
2736 else
2737   eval "$3=no"
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext \
2740     conftest$ac_exeext conftest.$ac_ext
2741 fi
2742 eval ac_res=\$$3
2743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744 $as_echo "$ac_res" >&6; }
2745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746
2747 } # ac_fn_cxx_check_func
2748 cat >config.log <<_ACEOF
2749 This file contains any messages produced by compilers while
2750 running configure, to aid debugging if configure makes a mistake.
2751
2752 It was created by bacula $as_me 5.2.1, which was
2753 generated by GNU Autoconf 2.68.  Invocation command line was
2754
2755   $ $0 $@
2756
2757 _ACEOF
2758 exec 5>>config.log
2759 {
2760 cat <<_ASUNAME
2761 ## --------- ##
2762 ## Platform. ##
2763 ## --------- ##
2764
2765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2770
2771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2772 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2773
2774 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2775 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2777 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2778 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2779 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2780 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2781
2782 _ASUNAME
2783
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787   IFS=$as_save_IFS
2788   test -z "$as_dir" && as_dir=.
2789     $as_echo "PATH: $as_dir"
2790   done
2791 IFS=$as_save_IFS
2792
2793 } >&5
2794
2795 cat >&5 <<_ACEOF
2796
2797
2798 ## ----------- ##
2799 ## Core tests. ##
2800 ## ----------- ##
2801
2802 _ACEOF
2803
2804
2805 # Keep a trace of the command line.
2806 # Strip out --no-create and --no-recursion so they do not pile up.
2807 # Strip out --silent because we don't want to record it for future runs.
2808 # Also quote any args containing shell meta-characters.
2809 # Make two passes to allow for proper duplicate-argument suppression.
2810 ac_configure_args=
2811 ac_configure_args0=
2812 ac_configure_args1=
2813 ac_must_keep_next=false
2814 for ac_pass in 1 2
2815 do
2816   for ac_arg
2817   do
2818     case $ac_arg in
2819     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2820     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2821     | -silent | --silent | --silen | --sile | --sil)
2822       continue ;;
2823     *\'*)
2824       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2825     esac
2826     case $ac_pass in
2827     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2828     2)
2829       as_fn_append ac_configure_args1 " '$ac_arg'"
2830       if test $ac_must_keep_next = true; then
2831         ac_must_keep_next=false # Got value, back to normal.
2832       else
2833         case $ac_arg in
2834           *=* | --config-cache | -C | -disable-* | --disable-* \
2835           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2836           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2837           | -with-* | --with-* | -without-* | --without-* | --x)
2838             case "$ac_configure_args0 " in
2839               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2840             esac
2841             ;;
2842           -* ) ac_must_keep_next=true ;;
2843         esac
2844       fi
2845       as_fn_append ac_configure_args " '$ac_arg'"
2846       ;;
2847     esac
2848   done
2849 done
2850 { ac_configure_args0=; unset ac_configure_args0;}
2851 { ac_configure_args1=; unset ac_configure_args1;}
2852
2853 # When interrupted or exit'd, cleanup temporary files, and complete
2854 # config.log.  We remove comments because anyway the quotes in there
2855 # would cause problems or look ugly.
2856 # WARNING: Use '\'' to represent an apostrophe within the trap.
2857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2858 trap 'exit_status=$?
2859   # Save into config.log some information that might help in debugging.
2860   {
2861     echo
2862
2863     $as_echo "## ---------------- ##
2864 ## Cache variables. ##
2865 ## ---------------- ##"
2866     echo
2867     # The following way of writing the cache mishandles newlines in values,
2868 (
2869   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2870     eval ac_val=\$$ac_var
2871     case $ac_val in #(
2872     *${as_nl}*)
2873       case $ac_var in #(
2874       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2876       esac
2877       case $ac_var in #(
2878       _ | IFS | as_nl) ;; #(
2879       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2880       *) { eval $ac_var=; unset $ac_var;} ;;
2881       esac ;;
2882     esac
2883   done
2884   (set) 2>&1 |
2885     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2886     *${as_nl}ac_space=\ *)
2887       sed -n \
2888         "s/'\''/'\''\\\\'\'''\''/g;
2889           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2890       ;; #(
2891     *)
2892       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2893       ;;
2894     esac |
2895     sort
2896 )
2897     echo
2898
2899     $as_echo "## ----------------- ##
2900 ## Output variables. ##
2901 ## ----------------- ##"
2902     echo
2903     for ac_var in $ac_subst_vars
2904     do
2905       eval ac_val=\$$ac_var
2906       case $ac_val in
2907       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2908       esac
2909       $as_echo "$ac_var='\''$ac_val'\''"
2910     done | sort
2911     echo
2912
2913     if test -n "$ac_subst_files"; then
2914       $as_echo "## ------------------- ##
2915 ## File substitutions. ##
2916 ## ------------------- ##"
2917       echo
2918       for ac_var in $ac_subst_files
2919       do
2920         eval ac_val=\$$ac_var
2921         case $ac_val in
2922         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2923         esac
2924         $as_echo "$ac_var='\''$ac_val'\''"
2925       done | sort
2926       echo
2927     fi
2928
2929     if test -s confdefs.h; then
2930       $as_echo "## ----------- ##
2931 ## confdefs.h. ##
2932 ## ----------- ##"
2933       echo
2934       cat confdefs.h
2935       echo
2936     fi
2937     test "$ac_signal" != 0 &&
2938       $as_echo "$as_me: caught signal $ac_signal"
2939     $as_echo "$as_me: exit $exit_status"
2940   } >&5
2941   rm -f core *.core core.conftest.* &&
2942     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2943     exit $exit_status
2944 ' 0
2945 for ac_signal in 1 2 13 15; do
2946   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2947 done
2948 ac_signal=0
2949
2950 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2951 rm -f -r conftest* confdefs.h
2952
2953 $as_echo "/* confdefs.h */" > confdefs.h
2954
2955 # Predefined preprocessor variables.
2956
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_NAME "$PACKAGE_NAME"
2959 _ACEOF
2960
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2963 _ACEOF
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2967 _ACEOF
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_STRING "$PACKAGE_STRING"
2971 _ACEOF
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2975 _ACEOF
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_URL "$PACKAGE_URL"
2979 _ACEOF
2980
2981
2982 # Let the site file select an alternate cache file if it wants to.
2983 # Prefer an explicitly selected file to automatically selected ones.
2984 ac_site_file1=NONE
2985 ac_site_file2=NONE
2986 if test -n "$CONFIG_SITE"; then
2987   # We do not want a PATH search for config.site.
2988   case $CONFIG_SITE in #((
2989     -*)  ac_site_file1=./$CONFIG_SITE;;
2990     */*) ac_site_file1=$CONFIG_SITE;;
2991     *)   ac_site_file1=./$CONFIG_SITE;;
2992   esac
2993 elif test "x$prefix" != xNONE; then
2994   ac_site_file1=$prefix/share/config.site
2995   ac_site_file2=$prefix/etc/config.site
2996 else
2997   ac_site_file1=$ac_default_prefix/share/config.site
2998   ac_site_file2=$ac_default_prefix/etc/config.site
2999 fi
3000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3001 do
3002   test "x$ac_site_file" = xNONE && continue
3003   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3004     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3006     sed 's/^/| /' "$ac_site_file" >&5
3007     . "$ac_site_file" \
3008       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error $? "failed to load site script $ac_site_file
3011 See \`config.log' for more details" "$LINENO" 5; }
3012   fi
3013 done
3014
3015 if test -r "$cache_file"; then
3016   # Some versions of bash will fail to source /dev/null (special files
3017   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3018   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3019     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3020 $as_echo "$as_me: loading cache $cache_file" >&6;}
3021     case $cache_file in
3022       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3023       *)                      . "./$cache_file";;
3024     esac
3025   fi
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3028 $as_echo "$as_me: creating cache $cache_file" >&6;}
3029   >$cache_file
3030 fi
3031
3032 as_fn_append ac_header_list " stdlib.h"
3033 as_fn_append ac_header_list " unistd.h"
3034 as_fn_append ac_header_list " sys/param.h"
3035 # Check that the precious variables saved in the cache have kept the same
3036 # value.
3037 ac_cache_corrupted=false
3038 for ac_var in $ac_precious_vars; do
3039   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3040   eval ac_new_set=\$ac_env_${ac_var}_set
3041   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3042   eval ac_new_val=\$ac_env_${ac_var}_value
3043   case $ac_old_set,$ac_new_set in
3044     set,)
3045       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3046 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3047       ac_cache_corrupted=: ;;
3048     ,set)
3049       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3050 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3051       ac_cache_corrupted=: ;;
3052     ,);;
3053     *)
3054       if test "x$ac_old_val" != "x$ac_new_val"; then
3055         # differences in whitespace do not lead to failure.
3056         ac_old_val_w=`echo x $ac_old_val`
3057         ac_new_val_w=`echo x $ac_new_val`
3058         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3059           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3060 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3061           ac_cache_corrupted=:
3062         else
3063           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3064 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3065           eval $ac_var=\$ac_old_val
3066         fi
3067         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3068 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3069         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3070 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3071       fi;;
3072   esac
3073   # Pass precious variables to config.status.
3074   if test "$ac_new_set" = set; then
3075     case $ac_new_val in
3076     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3077     *) ac_arg=$ac_var=$ac_new_val ;;
3078     esac
3079     case " $ac_configure_args " in
3080       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3081       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3082     esac
3083   fi
3084 done
3085 if $ac_cache_corrupted; then
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3089 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3090   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3091 fi
3092 ## -------------------- ##
3093 ## Main body of script. ##
3094 ## -------------------- ##
3095
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101
3102
3103
3104
3105 BUILD_DIR=`pwd`
3106 cd ..
3107 TOP_DIR=`pwd`
3108 cd ${BUILD_DIR}
3109
3110
3111 ac_aux_dir=
3112 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3113   if test -f "$ac_dir/install-sh"; then
3114     ac_aux_dir=$ac_dir
3115     ac_install_sh="$ac_aux_dir/install-sh -c"
3116     break
3117   elif test -f "$ac_dir/install.sh"; then
3118     ac_aux_dir=$ac_dir
3119     ac_install_sh="$ac_aux_dir/install.sh -c"
3120     break
3121   elif test -f "$ac_dir/shtool"; then
3122     ac_aux_dir=$ac_dir
3123     ac_install_sh="$ac_aux_dir/shtool install -c"
3124     break
3125   fi
3126 done
3127 if test -z "$ac_aux_dir"; then
3128   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3129 fi
3130
3131 # These three variables are undocumented and unsupported,
3132 # and are intended to be withdrawn in a future Autoconf release.
3133 # They can cause serious problems if a builder's source tree is in a directory
3134 # whose full name contains unusual characters.
3135 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3136 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3137 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3138
3139
3140 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3141
3142
3143 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3144 WIN32MAINDIR=${BUILD_DIR}
3145 WIN32TOPDIR=${TOP_DIR}
3146
3147
3148
3149
3150 for ac_prog in true
3151 do
3152   # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_path_TRUEPRG+:} false; then :
3157   $as_echo_n "(cached) " >&6
3158 else
3159   case $TRUEPRG in
3160   [\\/]* | ?:[\\/]*)
3161   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3162   ;;
3163   *)
3164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179   ;;
3180 esac
3181 fi
3182 TRUEPRG=$ac_cv_path_TRUEPRG
3183 if test -n "$TRUEPRG"; then
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3185 $as_echo "$TRUEPRG" >&6; }
3186 else
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192   test -n "$TRUEPRG" && break
3193 done
3194 test -n "$TRUEPRG" || TRUEPRG=":"
3195
3196 for ac_prog in false
3197 do
3198   # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_path_FALSEPRG+:} false; then :
3203   $as_echo_n "(cached) " >&6
3204 else
3205   case $FALSEPRG in
3206   [\\/]* | ?:[\\/]*)
3207   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3208   ;;
3209   *)
3210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215     for ac_exec_ext in '' $ac_executable_extensions; do
3216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222   done
3223 IFS=$as_save_IFS
3224
3225   ;;
3226 esac
3227 fi
3228 FALSEPRG=$ac_cv_path_FALSEPRG
3229 if test -n "$FALSEPRG"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3231 $as_echo "$FALSEPRG" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238   test -n "$FALSEPRG" && break
3239 done
3240 test -n "$FALSEPRG" || FALSEPRG=":"
3241
3242
3243
3244 post_host=
3245 if test "x$BACULA" != x; then
3246    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3247 fi
3248 BACULA=${BACULA:-Bacula}
3249 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3250 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3251 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3252 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3253
3254 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3255 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257
3258 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3259 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3260 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3261
3262
3263 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265
3266 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3267 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3268
3269
3270 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271
3272 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3273
3274
3275 echo "configuring for ${BACULA} $VERSION ($DATE)"
3276
3277
3278
3279 ac_ext=c
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 if test -n "$ac_tool_prefix"; then
3285   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3286 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   if test -n "$CC"; then
3293   ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307   done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322 fi
3323 if test -z "$ac_cv_prog_CC"; then
3324   ac_ct_CC=$CC
3325   # Extract the first word of "gcc", so it can be a program name with args.
3326 set dummy gcc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if test -n "$ac_ct_CC"; then
3333   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340     for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_ac_ct_CC="gcc"
3343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347   done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355 $as_echo "$ac_ct_CC" >&6; }
3356 else
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361   if test "x$ac_ct_CC" = x; then
3362     CC=""
3363   else
3364     case $cross_compiling:$ac_tool_warned in
3365 yes:)
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368 ac_tool_warned=yes ;;
3369 esac
3370     CC=$ac_ct_CC
3371   fi
3372 else
3373   CC="$ac_cv_prog_CC"
3374 fi
3375
3376 if test -z "$CC"; then
3377           if test -n "$ac_tool_prefix"; then
3378     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}cc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_CC+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   if test -n "$CC"; then
3386   ac_cv_prog_CC="$CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393     for ac_exec_ext in '' $ac_executable_extensions; do
3394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395     ac_cv_prog_CC="${ac_tool_prefix}cc"
3396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400   done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3409 else
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415   fi
3416 fi
3417 if test -z "$CC"; then
3418   # Extract the first word of "cc", so it can be a program name with args.
3419 set dummy cc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   if test -n "$CC"; then
3426   ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428   ac_prog_rejected=no
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3437        ac_prog_rejected=yes
3438        continue
3439      fi
3440     ac_cv_prog_CC="cc"
3441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442     break 2
3443   fi
3444 done
3445   done
3446 IFS=$as_save_IFS
3447
3448 if test $ac_prog_rejected = yes; then
3449   # We found a bogon in the path, so make sure we never use it.
3450   set dummy $ac_cv_prog_CC
3451   shift
3452   if test $# != 0; then
3453     # We chose a different compiler from the bogus one.
3454     # However, it has the same basename, so the bogon will be chosen
3455     # first if we set CC to just the basename; use the full file name.
3456     shift
3457     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3458   fi
3459 fi
3460 fi
3461 fi
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3466 else
3467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471
3472 fi
3473 if test -z "$CC"; then
3474   if test -n "$ac_tool_prefix"; then
3475   for ac_prog in cl.exe
3476   do
3477     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   if test -n "$CC"; then
3485   ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490   IFS=$as_save_IFS
3491   test -z "$as_dir" && as_dir=.
3492     for ac_exec_ext in '' $ac_executable_extensions; do
3493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3494     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496     break 2
3497   fi
3498 done
3499   done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514     test -n "$CC" && break
3515   done
3516 fi
3517 if test -z "$CC"; then
3518   ac_ct_CC=$CC
3519   for ac_prog in cl.exe
3520 do
3521   # Extract the first word of "$ac_prog", so it can be a program name with args.
3522 set dummy $ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3526   $as_echo_n "(cached) " >&6
3527 else
3528   if test -n "$ac_ct_CC"; then
3529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534   IFS=$as_save_IFS
3535   test -z "$as_dir" && as_dir=.
3536     for ac_exec_ext in '' $ac_executable_extensions; do
3537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538     ac_cv_prog_ac_ct_CC="$ac_prog"
3539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543   done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3549 if test -n "$ac_ct_CC"; then
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3551 $as_echo "$ac_ct_CC" >&6; }
3552 else
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 fi
3556
3557
3558   test -n "$ac_ct_CC" && break
3559 done
3560
3561   if test "x$ac_ct_CC" = x; then
3562     CC=""
3563   else
3564     case $cross_compiling:$ac_tool_warned in
3565 yes:)
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3568 ac_tool_warned=yes ;;
3569 esac
3570     CC=$ac_ct_CC
3571   fi
3572 fi
3573
3574 fi
3575
3576
3577 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error $? "no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details" "$LINENO" 5; }
3581
3582 # Provide some information about the compiler.
3583 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3584 set X $ac_compile
3585 ac_compiler=$2
3586 for ac_option in --version -v -V -qversion; do
3587   { { ac_try="$ac_compiler $ac_option >&5"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3595   ac_status=$?
3596   if test -s conftest.err; then
3597     sed '10a\
3598 ... rest of stderr output deleted ...
3599          10q' conftest.err >conftest.er1
3600     cat conftest.er1 >&5
3601   fi
3602   rm -f conftest.er1 conftest.err
3603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604   test $ac_status = 0; }
3605 done
3606
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609
3610 int
3611 main ()
3612 {
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 ac_clean_files_save=$ac_clean_files
3619 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3620 # Try to create an executable without -o first, disregard a.out.
3621 # It will help us diagnose broken compilers, and finding out an intuition
3622 # of exeext.
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3624 $as_echo_n "checking whether the C compiler works... " >&6; }
3625 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3626
3627 # The possible output files:
3628 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3629
3630 ac_rmfiles=
3631 for ac_file in $ac_files
3632 do
3633   case $ac_file in
3634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3635     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3636   esac
3637 done
3638 rm -f $ac_rmfiles
3639
3640 if { { ac_try="$ac_link_default"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647   (eval "$ac_link_default") 2>&5
3648   ac_status=$?
3649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650   test $ac_status = 0; }; then :
3651   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3652 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3653 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3654 # so that the user can short-circuit this test for compilers unknown to
3655 # Autoconf.
3656 for ac_file in $ac_files ''
3657 do
3658   test -f "$ac_file" || continue
3659   case $ac_file in
3660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3661         ;;
3662     [ab].out )
3663         # We found the default executable, but exeext='' is most
3664         # certainly right.
3665         break;;
3666     *.* )
3667         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3668         then :; else
3669            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3670         fi
3671         # We set ac_cv_exeext here because the later test for it is not
3672         # safe: cross compilers may not add the suffix if given an `-o'
3673         # argument, so we may need to know it at that point already.
3674         # Even if this section looks crufty: it has the advantage of
3675         # actually working.
3676         break;;
3677     * )
3678         break;;
3679   esac
3680 done
3681 test "$ac_cv_exeext" = no && ac_cv_exeext=
3682
3683 else
3684   ac_file=''
3685 fi
3686 if test -z "$ac_file"; then :
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error 77 "C compiler cannot create executables
3695 See \`config.log' for more details" "$LINENO" 5; }
3696 else
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698 $as_echo "yes" >&6; }
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3701 $as_echo_n "checking for C compiler default output file name... " >&6; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3703 $as_echo "$ac_file" >&6; }
3704 ac_exeext=$ac_cv_exeext
3705
3706 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3707 ac_clean_files=$ac_clean_files_save
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3709 $as_echo_n "checking for suffix of executables... " >&6; }
3710 if { { ac_try="$ac_link"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717   (eval "$ac_link") 2>&5
3718   ac_status=$?
3719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720   test $ac_status = 0; }; then :
3721   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3722 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3723 # work properly (i.e., refer to `conftest.exe'), while it won't with
3724 # `rm'.
3725 for ac_file in conftest.exe conftest conftest.*; do
3726   test -f "$ac_file" || continue
3727   case $ac_file in
3728     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3729     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3730           break;;
3731     * ) break;;
3732   esac
3733 done
3734 else
3735   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3738 See \`config.log' for more details" "$LINENO" 5; }
3739 fi
3740 rm -f conftest conftest$ac_cv_exeext
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3742 $as_echo "$ac_cv_exeext" >&6; }
3743
3744 rm -f conftest.$ac_ext
3745 EXEEXT=$ac_cv_exeext
3746 ac_exeext=$EXEEXT
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h.  */
3749 #include <stdio.h>
3750 int
3751 main ()
3752 {
3753 FILE *f = fopen ("conftest.out", "w");
3754  return ferror (f) || fclose (f) != 0;
3755
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 ac_clean_files="$ac_clean_files conftest.out"
3761 # Check that the compiler produces executables we can run.  If not, either
3762 # the compiler is broken, or we cross compile.
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3764 $as_echo_n "checking whether we are cross compiling... " >&6; }
3765 if test "$cross_compiling" != yes; then
3766   { { ac_try="$ac_link"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772 $as_echo "$ac_try_echo"; } >&5
3773   (eval "$ac_link") 2>&5
3774   ac_status=$?
3775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776   test $ac_status = 0; }
3777   if { ac_try='./conftest$ac_cv_exeext'
3778   { { case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_try") 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }; }; then
3788     cross_compiling=no
3789   else
3790     if test "$cross_compiling" = maybe; then
3791         cross_compiling=yes
3792     else
3793         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error $? "cannot run C compiled programs.
3796 If you meant to cross compile, use \`--host'.
3797 See \`config.log' for more details" "$LINENO" 5; }
3798     fi
3799   fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3802 $as_echo "$cross_compiling" >&6; }
3803
3804 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3805 ac_clean_files=$ac_clean_files_save
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3807 $as_echo_n "checking for suffix of object files... " >&6; }
3808 if ${ac_cv_objext+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 rm -f conftest.o conftest.obj
3823 if { { ac_try="$ac_compile"
3824 case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830   (eval "$ac_compile") 2>&5
3831   ac_status=$?
3832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833   test $ac_status = 0; }; then :
3834   for ac_file in conftest.o conftest.obj conftest.*; do
3835   test -f "$ac_file" || continue;
3836   case $ac_file in
3837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3838     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3839        break;;
3840   esac
3841 done
3842 else
3843   $as_echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "cannot compute suffix of object files: cannot compile
3849 See \`config.log' for more details" "$LINENO" 5; }
3850 fi
3851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3854 $as_echo "$ac_cv_objext" >&6; }
3855 OBJEXT=$ac_cv_objext
3856 ac_objext=$OBJEXT
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3858 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3859 if ${ac_cv_c_compiler_gnu+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h.  */
3864
3865 int
3866 main ()
3867 {
3868 #ifndef __GNUC__
3869        choke me
3870 #endif
3871
3872   ;
3873   return 0;
3874 }
3875 _ACEOF
3876 if ac_fn_c_try_compile "$LINENO"; then :
3877   ac_compiler_gnu=yes
3878 else
3879   ac_compiler_gnu=no
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3883
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3886 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3887 if test $ac_compiler_gnu = yes; then
3888   GCC=yes
3889 else
3890   GCC=
3891 fi
3892 ac_test_CFLAGS=${CFLAGS+set}
3893 ac_save_CFLAGS=$CFLAGS
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3895 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3896 if ${ac_cv_prog_cc_g+:} false; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   ac_save_c_werror_flag=$ac_c_werror_flag
3900    ac_c_werror_flag=yes
3901    ac_cv_prog_cc_g=no
3902    CFLAGS="-g"
3903    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915   ac_cv_prog_cc_g=yes
3916 else
3917   CFLAGS=""
3918       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h.  */
3920
3921 int
3922 main ()
3923 {
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930
3931 else
3932   ac_c_werror_flag=$ac_save_c_werror_flag
3933          CFLAGS="-g"
3934          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h.  */
3936
3937 int
3938 main ()
3939 {
3940
3941   ;
3942   return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"; then :
3946   ac_cv_prog_cc_g=yes
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 fi
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 fi
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953    ac_c_werror_flag=$ac_save_c_werror_flag
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3956 $as_echo "$ac_cv_prog_cc_g" >&6; }
3957 if test "$ac_test_CFLAGS" = set; then
3958   CFLAGS=$ac_save_CFLAGS
3959 elif test $ac_cv_prog_cc_g = yes; then
3960   if test "$GCC" = yes; then
3961     CFLAGS="-g -O2"
3962   else
3963     CFLAGS="-g"
3964   fi
3965 else
3966   if test "$GCC" = yes; then
3967     CFLAGS="-O2"
3968   else
3969     CFLAGS=
3970   fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3973 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3974 if ${ac_cv_prog_cc_c89+:} false; then :
3975   $as_echo_n "(cached) " >&6
3976 else
3977   ac_cv_prog_cc_c89=no
3978 ac_save_CC=$CC
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h.  */
3981 #include <stdarg.h>
3982 #include <stdio.h>
3983 #include <sys/types.h>
3984 #include <sys/stat.h>
3985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3986 struct buf { int x; };
3987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3988 static char *e (p, i)
3989      char **p;
3990      int i;
3991 {
3992   return p[i];
3993 }
3994 static char *f (char * (*g) (char **, int), char **p, ...)
3995 {
3996   char *s;
3997   va_list v;
3998   va_start (v,p);
3999   s = g (p, va_arg (v,int));
4000   va_end (v);
4001   return s;
4002 }
4003
4004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4005    function prototypes and stuff, but not '\xHH' hex character constants.
4006    These don't provoke an error unfortunately, instead are silently treated
4007    as 'x'.  The following induces an error, until -std is added to get
4008    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4009    array size at least.  It's necessary to write '\x00'==0 to get something
4010    that's true only with -std.  */
4011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4012
4013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4014    inside strings and character constants.  */
4015 #define FOO(x) 'x'
4016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4017
4018 int test (int i, double x);
4019 struct s1 {int (*f) (int a);};
4020 struct s2 {int (*f) (double a);};
4021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4022 int argc;
4023 char **argv;
4024 int
4025 main ()
4026 {
4027 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4033         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4034 do
4035   CC="$ac_save_CC $ac_arg"
4036   if ac_fn_c_try_compile "$LINENO"; then :
4037   ac_cv_prog_cc_c89=$ac_arg
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext
4040   test "x$ac_cv_prog_cc_c89" != "xno" && break
4041 done
4042 rm -f conftest.$ac_ext
4043 CC=$ac_save_CC
4044
4045 fi
4046 # AC_CACHE_VAL
4047 case "x$ac_cv_prog_cc_c89" in
4048   x)
4049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4050 $as_echo "none needed" >&6; } ;;
4051   xno)
4052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4053 $as_echo "unsupported" >&6; } ;;
4054   *)
4055     CC="$CC $ac_cv_prog_cc_c89"
4056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4057 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4058 esac
4059 if test "x$ac_cv_prog_cc_c89" != xno; then :
4060
4061 fi
4062
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068
4069 ac_ext=cpp
4070 ac_cpp='$CXXCPP $CPPFLAGS'
4071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4074 if test -z "$CXX"; then
4075   if test -n "$CCC"; then
4076     CXX=$CCC
4077   else
4078     if test -n "$ac_tool_prefix"; then
4079   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4080   do
4081     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_CXX+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   if test -n "$CXX"; then
4089   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096     for ac_exec_ext in '' $ac_executable_extensions; do
4097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103   done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 CXX=$ac_cv_prog_CXX
4109 if test -n "$CXX"; then
4110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4111 $as_echo "$CXX" >&6; }
4112 else
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116
4117
4118     test -n "$CXX" && break
4119   done
4120 fi
4121 if test -z "$CXX"; then
4122   ac_ct_CXX=$CXX
4123   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4124 do
4125   # Extract the first word of "$ac_prog", so it can be a program name with args.
4126 set dummy $ac_prog; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   if test -n "$ac_ct_CXX"; then
4133   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140     for ac_exec_ext in '' $ac_executable_extensions; do
4141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142     ac_cv_prog_ac_ct_CXX="$ac_prog"
4143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147   done
4148 IFS=$as_save_IFS
4149
4150 fi
4151 fi
4152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4153 if test -n "$ac_ct_CXX"; then
4154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4155 $as_echo "$ac_ct_CXX" >&6; }
4156 else
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161
4162   test -n "$ac_ct_CXX" && break
4163 done
4164
4165   if test "x$ac_ct_CXX" = x; then
4166     CXX="g++"
4167   else
4168     case $cross_compiling:$ac_tool_warned in
4169 yes:)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4173 esac
4174     CXX=$ac_ct_CXX
4175   fi
4176 fi
4177
4178   fi
4179 fi
4180 # Provide some information about the compiler.
4181 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4182 set X $ac_compile
4183 ac_compiler=$2
4184 for ac_option in --version -v -V -qversion; do
4185   { { ac_try="$ac_compiler $ac_option >&5"
4186 case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191 $as_echo "$ac_try_echo"; } >&5
4192   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4193   ac_status=$?
4194   if test -s conftest.err; then
4195     sed '10a\
4196 ... rest of stderr output deleted ...
4197          10q' conftest.err >conftest.er1
4198     cat conftest.er1 >&5
4199   fi
4200   rm -f conftest.er1 conftest.err
4201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202   test $ac_status = 0; }
4203 done
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4206 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4207 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h.  */
4212
4213 int
4214 main ()
4215 {
4216 #ifndef __GNUC__
4217        choke me
4218 #endif
4219
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 if ac_fn_cxx_try_compile "$LINENO"; then :
4225   ac_compiler_gnu=yes
4226 else
4227   ac_compiler_gnu=no
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4234 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4235 if test $ac_compiler_gnu = yes; then
4236   GXX=yes
4237 else
4238   GXX=
4239 fi
4240 ac_test_CXXFLAGS=${CXXFLAGS+set}
4241 ac_save_CXXFLAGS=$CXXFLAGS
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4243 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4244 if ${ac_cv_prog_cxx_g+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4248    ac_cxx_werror_flag=yes
4249    ac_cv_prog_cxx_g=no
4250    CXXFLAGS="-g"
4251    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253
4254 int
4255 main ()
4256 {
4257
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_cxx_try_compile "$LINENO"; then :
4263   ac_cv_prog_cxx_g=yes
4264 else
4265   CXXFLAGS=""
4266       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278
4279 else
4280   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4281          CXXFLAGS="-g"
4282          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h.  */
4284
4285 int
4286 main ()
4287 {
4288
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
4293 if ac_fn_cxx_try_compile "$LINENO"; then :
4294   ac_cv_prog_cxx_g=yes
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 fi
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 fi
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4304 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4305 if test "$ac_test_CXXFLAGS" = set; then
4306   CXXFLAGS=$ac_save_CXXFLAGS
4307 elif test $ac_cv_prog_cxx_g = yes; then
4308   if test "$GXX" = yes; then
4309     CXXFLAGS="-g -O2"
4310   else
4311     CXXFLAGS="-g"
4312   fi
4313 else
4314   if test "$GXX" = yes; then
4315     CXXFLAGS="-O2"
4316   else
4317     CXXFLAGS=
4318   fi
4319 fi
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326 if test "x$CC" != xcc; then
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4328 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4329 else
4330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4331 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4332 fi
4333 set dummy $CC; ac_cc=`$as_echo "$2" |
4334                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4336   $as_echo_n "(cached) " >&6
4337 else
4338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h.  */
4340
4341 int
4342 main ()
4343 {
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 # Make sure it works both with $CC and with simple cc.
4350 # We do the test twice because some compilers refuse to overwrite an
4351 # existing .o file with -o, though they will create one.
4352 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4353 rm -f conftest2.*
4354 if { { case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360   (eval "$ac_try") 2>&5
4361   ac_status=$?
4362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363   test $ac_status = 0; } &&
4364    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370   (eval "$ac_try") 2>&5
4371   ac_status=$?
4372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373   test $ac_status = 0; };
4374 then
4375   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4376   if test "x$CC" != xcc; then
4377     # Test first that cc exists at all.
4378     if { ac_try='cc -c conftest.$ac_ext >&5'
4379   { { case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385   (eval "$ac_try") 2>&5
4386   ac_status=$?
4387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388   test $ac_status = 0; }; }; then
4389       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4390       rm -f conftest2.*
4391       if { { case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397   (eval "$ac_try") 2>&5
4398   ac_status=$?
4399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400   test $ac_status = 0; } &&
4401          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 $as_echo "$ac_try_echo"; } >&5
4407   (eval "$ac_try") 2>&5
4408   ac_status=$?
4409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410   test $ac_status = 0; };
4411       then
4412         # cc works too.
4413         :
4414       else
4415         # cc exists but doesn't like -o.
4416         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4417       fi
4418     fi
4419   fi
4420 else
4421   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4422 fi
4423 rm -f core conftest*
4424
4425 fi
4426 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4428 $as_echo "yes" >&6; }
4429 else
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432
4433 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4434
4435 fi
4436
4437 ac_ext=c
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4443 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4444 # On Suns, sometimes $CPP names a directory.
4445 if test -n "$CPP" && test -d "$CPP"; then
4446   CPP=
4447 fi
4448 if test -z "$CPP"; then
4449   if ${ac_cv_prog_CPP+:} false; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452       # Double quotes because CPP needs to be expanded
4453     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4454     do
4455       ac_preproc_ok=false
4456 for ac_c_preproc_warn_flag in '' yes
4457 do
4458   # Use a header file that comes with gcc, so configuring glibc
4459   # with a fresh cross-compiler works.
4460   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4461   # <limits.h> exists even on freestanding compilers.
4462   # On the NeXT, cc -E runs the code through the compiler's parser,
4463   # not just through cpp. "Syntax error" is here to catch this case.
4464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h.  */
4466 #ifdef __STDC__
4467 # include <limits.h>
4468 #else
4469 # include <assert.h>
4470 #endif
4471                      Syntax error
4472 _ACEOF
4473 if ac_fn_c_try_cpp "$LINENO"; then :
4474
4475 else
4476   # Broken: fails on valid input.
4477 continue
4478 fi
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4480
4481   # OK, works on sane cases.  Now check whether nonexistent headers
4482   # can be detected and how.
4483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h.  */
4485 #include <ac_nonexistent.h>
4486 _ACEOF
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4488   # Broken: success on invalid input.
4489 continue
4490 else
4491   # Passes both tests.
4492 ac_preproc_ok=:
4493 break
4494 fi
4495 rm -f conftest.err conftest.i conftest.$ac_ext
4496
4497 done
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.i conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then :
4501   break
4502 fi
4503
4504     done
4505     ac_cv_prog_CPP=$CPP
4506
4507 fi
4508   CPP=$ac_cv_prog_CPP
4509 else
4510   ac_cv_prog_CPP=$CPP
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4513 $as_echo "$CPP" >&6; }
4514 ac_preproc_ok=false
4515 for ac_c_preproc_warn_flag in '' yes
4516 do
4517   # Use a header file that comes with gcc, so configuring glibc
4518   # with a fresh cross-compiler works.
4519   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4520   # <limits.h> exists even on freestanding compilers.
4521   # On the NeXT, cc -E runs the code through the compiler's parser,
4522   # not just through cpp. "Syntax error" is here to catch this case.
4523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h.  */
4525 #ifdef __STDC__
4526 # include <limits.h>
4527 #else
4528 # include <assert.h>
4529 #endif
4530                      Syntax error
4531 _ACEOF
4532 if ac_fn_c_try_cpp "$LINENO"; then :
4533
4534 else
4535   # Broken: fails on valid input.
4536 continue
4537 fi
4538 rm -f conftest.err conftest.i conftest.$ac_ext
4539
4540   # OK, works on sane cases.  Now check whether nonexistent headers
4541   # can be detected and how.
4542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h.  */
4544 #include <ac_nonexistent.h>
4545 _ACEOF
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4547   # Broken: success on invalid input.
4548 continue
4549 else
4550   # Passes both tests.
4551 ac_preproc_ok=:
4552 break
4553 fi
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4555
4556 done
4557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4558 rm -f conftest.i conftest.err conftest.$ac_ext
4559 if $ac_preproc_ok; then :
4560
4561 else
4562   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4564 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details" "$LINENO" 5; }
4566 fi
4567
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4576 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4577 if ${ac_cv_path_GREP+:} false; then :
4578   $as_echo_n "(cached) " >&6
4579 else
4580   if test -z "$GREP"; then
4581   ac_path_GREP_found=false
4582   # Loop through the user's path and test for each of PROGNAME-LIST
4583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 do
4586   IFS=$as_save_IFS
4587   test -z "$as_dir" && as_dir=.
4588     for ac_prog in grep ggrep; do
4589     for ac_exec_ext in '' $ac_executable_extensions; do
4590       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4591       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4592 # Check for GNU ac_path_GREP and select it if it is found.
4593   # Check for GNU $ac_path_GREP
4594 case `"$ac_path_GREP" --version 2>&1` in
4595 *GNU*)
4596   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4597 *)
4598   ac_count=0
4599   $as_echo_n 0123456789 >"conftest.in"
4600   while :
4601   do
4602     cat "conftest.in" "conftest.in" >"conftest.tmp"
4603     mv "conftest.tmp" "conftest.in"
4604     cp "conftest.in" "conftest.nl"
4605     $as_echo 'GREP' >> "conftest.nl"
4606     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608     as_fn_arith $ac_count + 1 && ac_count=$as_val
4609     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4610       # Best one so far, save it but keep looking for a better one
4611       ac_cv_path_GREP="$ac_path_GREP"
4612       ac_path_GREP_max=$ac_count
4613     fi
4614     # 10*(2^10) chars as input seems more than enough
4615     test $ac_count -gt 10 && break
4616   done
4617   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 esac
4619
4620       $ac_path_GREP_found && break 3
4621     done
4622   done
4623   done
4624 IFS=$as_save_IFS
4625   if test -z "$ac_cv_path_GREP"; then
4626     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627   fi
4628 else
4629   ac_cv_path_GREP=$GREP
4630 fi
4631
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4634 $as_echo "$ac_cv_path_GREP" >&6; }
4635  GREP="$ac_cv_path_GREP"
4636
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4639 $as_echo_n "checking for egrep... " >&6; }
4640 if ${ac_cv_path_EGREP+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4644    then ac_cv_path_EGREP="$GREP -E"
4645    else
4646      if test -z "$EGREP"; then
4647   ac_path_EGREP_found=false
4648   # Loop through the user's path and test for each of PROGNAME-LIST
4649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654     for ac_prog in egrep; do
4655     for ac_exec_ext in '' $ac_executable_extensions; do
4656       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4657       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4658 # Check for GNU ac_path_EGREP and select it if it is found.
4659   # Check for GNU $ac_path_EGREP
4660 case `"$ac_path_EGREP" --version 2>&1` in
4661 *GNU*)
4662   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4663 *)
4664   ac_count=0
4665   $as_echo_n 0123456789 >"conftest.in"
4666   while :
4667   do
4668     cat "conftest.in" "conftest.in" >"conftest.tmp"
4669     mv "conftest.tmp" "conftest.in"
4670     cp "conftest.in" "conftest.nl"
4671     $as_echo 'EGREP' >> "conftest.nl"
4672     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4673     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4674     as_fn_arith $ac_count + 1 && ac_count=$as_val
4675     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4676       # Best one so far, save it but keep looking for a better one
4677       ac_cv_path_EGREP="$ac_path_EGREP"
4678       ac_path_EGREP_max=$ac_count
4679     fi
4680     # 10*(2^10) chars as input seems more than enough
4681     test $ac_count -gt 10 && break
4682   done
4683   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4684 esac
4685
4686       $ac_path_EGREP_found && break 3
4687     done
4688   done
4689   done
4690 IFS=$as_save_IFS
4691   if test -z "$ac_cv_path_EGREP"; then
4692     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4693   fi
4694 else
4695   ac_cv_path_EGREP=$EGREP
4696 fi
4697
4698    fi
4699 fi
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4701 $as_echo "$ac_cv_path_EGREP" >&6; }
4702  EGREP="$ac_cv_path_EGREP"
4703
4704
4705 if test $ac_cv_c_compiler_gnu = yes; then
4706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4707 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4708 if ${ac_cv_prog_gcc_traditional+:} false; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711     ac_pattern="Autoconf.*'x'"
4712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h.  */
4714 #include <sgtty.h>
4715 Autoconf TIOCGETP
4716 _ACEOF
4717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4718   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4719   ac_cv_prog_gcc_traditional=yes
4720 else
4721   ac_cv_prog_gcc_traditional=no
4722 fi
4723 rm -f conftest*
4724
4725
4726   if test $ac_cv_prog_gcc_traditional = no; then
4727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729 #include <termio.h>
4730 Autoconf TCGETA
4731 _ACEOF
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4734   ac_cv_prog_gcc_traditional=yes
4735 fi
4736 rm -f conftest*
4737
4738   fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4741 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4742   if test $ac_cv_prog_gcc_traditional = yes; then
4743     CC="$CC -traditional"
4744   fi
4745 fi
4746
4747 BASECC=`basename $CC`
4748 have_gcc=no
4749 if test "x$BASECC" = xgcc; then
4750    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4751
4752    have_gcc=yes
4753 fi
4754 # Extract the first word of "$CXX", so it can be a program name with args.
4755 set dummy $CXX; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_path_CXX+:} false; then :
4759   $as_echo_n "(cached) " >&6
4760 else
4761   case $CXX in
4762   [\\/]* | ?:[\\/]*)
4763   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4764   ;;
4765   *)
4766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769   IFS=$as_save_IFS
4770   test -z "$as_dir" && as_dir=.
4771     for ac_exec_ext in '' $ac_executable_extensions; do
4772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775     break 2
4776   fi
4777 done
4778   done
4779 IFS=$as_save_IFS
4780
4781   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4782   ;;
4783 esac
4784 fi
4785 CXX=$ac_cv_path_CXX
4786 if test -n "$CXX"; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4788 $as_echo "$CXX" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795 if test ! -e $CXX; then
4796    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4797 fi
4798
4799 # Find a good install program.  We prefer a C program (faster),
4800 # so one script is as good as another.  But avoid the broken or
4801 # incompatible versions:
4802 # SysV /etc/install, /usr/sbin/install
4803 # SunOS /usr/etc/install
4804 # IRIX /sbin/install
4805 # AIX /bin/install
4806 # AmigaOS /C/install, which installs bootblocks on floppy discs
4807 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4808 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4809 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4810 # OS/2's system install, which has a completely different semantic
4811 # ./install, which can be erroneously created by make from ./install.sh.
4812 # Reject install programs that cannot install multiple files.
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4814 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4815 if test -z "$INSTALL"; then
4816 if ${ac_cv_path_install+:} false; then :
4817   $as_echo_n "(cached) " >&6
4818 else
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824     # Account for people who put trailing slashes in PATH elements.
4825 case $as_dir/ in #((
4826   ./ | .// | /[cC]/* | \
4827   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4828   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4829   /usr/ucb/* ) ;;
4830   *)
4831     # OSF1 and SCO ODT 3.0 have their own names for install.
4832     # Don't use installbsd from OSF since it installs stuff as root
4833     # by default.
4834     for ac_prog in ginstall scoinst install; do
4835       for ac_exec_ext in '' $ac_executable_extensions; do
4836         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4837           if test $ac_prog = install &&
4838             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4839             # AIX install.  It has an incompatible calling convention.
4840             :
4841           elif test $ac_prog = install &&
4842             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4843             # program-specific install script used by HP pwplus--don't use.
4844             :
4845           else
4846             rm -rf conftest.one conftest.two conftest.dir
4847             echo one > conftest.one
4848             echo two > conftest.two
4849             mkdir conftest.dir
4850             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4851               test -s conftest.one && test -s conftest.two &&
4852               test -s conftest.dir/conftest.one &&
4853               test -s conftest.dir/conftest.two
4854             then
4855               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4856               break 3
4857             fi
4858           fi
4859         fi
4860       done
4861     done
4862     ;;
4863 esac
4864
4865   done
4866 IFS=$as_save_IFS
4867
4868 rm -rf conftest.one conftest.two conftest.dir
4869
4870 fi
4871   if test "${ac_cv_path_install+set}" = set; then
4872     INSTALL=$ac_cv_path_install
4873   else
4874     # As a last resort, use the slow shell script.  Don't cache a
4875     # value for INSTALL within a source directory, because that will
4876     # break other packages using the cache if that directory is
4877     # removed, or if the value is a relative name.
4878     INSTALL=$ac_install_sh
4879   fi
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4882 $as_echo "$INSTALL" >&6; }
4883
4884 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4885 # It thinks the first close brace ends the variable substitution.
4886 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4887
4888 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4889
4890 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4891
4892 # Extract the first word of "mv", so it can be a program name with args.
4893 set dummy mv; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_path_MV+:} false; then :
4897   $as_echo_n "(cached) " >&6
4898 else
4899   case $MV in
4900   [\\/]* | ?:[\\/]*)
4901   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4902   ;;
4903   *)
4904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909     for ac_exec_ext in '' $ac_executable_extensions; do
4910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916   done
4917 IFS=$as_save_IFS
4918
4919   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4920   ;;
4921 esac
4922 fi
4923 MV=$ac_cv_path_MV
4924 if test -n "$MV"; then
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4926 $as_echo "$MV" >&6; }
4927 else
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933 # Extract the first word of "rm", so it can be a program name with args.
4934 set dummy rm; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_path_REMOVE+:} false; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940   case $REMOVE in
4941   [\\/]* | ?:[\\/]*)
4942   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4943   ;;
4944   *)
4945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950     for ac_exec_ext in '' $ac_executable_extensions; do
4951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957   done
4958 IFS=$as_save_IFS
4959
4960   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4961   ;;
4962 esac
4963 fi
4964 REMOVE=$ac_cv_path_REMOVE
4965 if test -n "$REMOVE"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4967 $as_echo "$REMOVE" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972
4973
4974 # Extract the first word of "cp", so it can be a program name with args.
4975 set dummy cp; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_path_CP+:} false; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   case $CP in
4982   [\\/]* | ?:[\\/]*)
4983   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4984   ;;
4985   *)
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991     for ac_exec_ext in '' $ac_executable_extensions; do
4992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998   done
4999 IFS=$as_save_IFS
5000
5001   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5002   ;;
5003 esac
5004 fi
5005 CP=$ac_cv_path_CP
5006 if test -n "$CP"; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5008 $as_echo "$CP" >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015 # Extract the first word of "sed", so it can be a program name with args.
5016 set dummy sed; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_path_SED+:} false; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   case $SED in
5023   [\\/]* | ?:[\\/]*)
5024   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5025   ;;
5026   *)
5027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032     for ac_exec_ext in '' $ac_executable_extensions; do
5033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039   done
5040 IFS=$as_save_IFS
5041
5042   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5043   ;;
5044 esac
5045 fi
5046 SED=$ac_cv_path_SED
5047 if test -n "$SED"; then
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5049 $as_echo "$SED" >&6; }
5050 else
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055
5056 # Extract the first word of "echo", so it can be a program name with args.
5057 set dummy echo; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_path_ECHO+:} false; then :
5061   $as_echo_n "(cached) " >&6
5062 else
5063   case $ECHO in
5064   [\\/]* | ?:[\\/]*)
5065   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5066   ;;
5067   *)
5068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073     for ac_exec_ext in '' $ac_executable_extensions; do
5074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080   done
5081 IFS=$as_save_IFS
5082
5083   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5084   ;;
5085 esac
5086 fi
5087 ECHO=$ac_cv_path_ECHO
5088 if test -n "$ECHO"; then
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5090 $as_echo "$ECHO" >&6; }
5091 else
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094 fi
5095
5096
5097 # Extract the first word of "cmp", so it can be a program name with args.
5098 set dummy cmp; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_path_CMP+:} false; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104   case $CMP in
5105   [\\/]* | ?:[\\/]*)
5106   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5107   ;;
5108   *)
5109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121   done
5122 IFS=$as_save_IFS
5123
5124   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5125   ;;
5126 esac
5127 fi
5128 CMP=$ac_cv_path_CMP
5129 if test -n "$CMP"; then
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5131 $as_echo "$CMP" >&6; }
5132 else
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137
5138 # Extract the first word of "tbl", so it can be a program name with args.
5139 set dummy tbl; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_path_TBL+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   case $TBL in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155     for ac_exec_ext in '' $ac_executable_extensions; do
5156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162   done
5163 IFS=$as_save_IFS
5164
5165   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5166   ;;
5167 esac
5168 fi
5169 TBL=$ac_cv_path_TBL
5170 if test -n "$TBL"; then
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5172 $as_echo "$TBL" >&6; }
5173 else
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178
5179 # Extract the first word of "ar", so it can be a program name with args.
5180 set dummy ar; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_path_AR+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   case $AR in
5187   [\\/]* | ?:[\\/]*)
5188   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5189   ;;
5190   *)
5191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196     for ac_exec_ext in '' $ac_executable_extensions; do
5197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203   done
5204 IFS=$as_save_IFS
5205
5206   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5207   ;;
5208 esac
5209 fi
5210 AR=$ac_cv_path_AR
5211 if test -n "$AR"; then
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5213 $as_echo "$AR" >&6; }
5214 else
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219
5220 # Extract the first word of "openssl", so it can be a program name with args.
5221 set dummy openssl; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_path_OPENSSL+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   case $OPENSSL in
5228   [\\/]* | ?:[\\/]*)
5229   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5230   ;;
5231   *)
5232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237     for ac_exec_ext in '' $ac_executable_extensions; do
5238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241     break 2
5242   fi
5243 done
5244   done
5245 IFS=$as_save_IFS
5246
5247   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5248   ;;
5249 esac
5250 fi
5251 OPENSSL=$ac_cv_path_OPENSSL
5252 if test -n "$OPENSSL"; then
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5254 $as_echo "$OPENSSL" >&6; }
5255 else
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261 # Extract the first word of "mtx", so it can be a program name with args.
5262 set dummy mtx; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_path_MTX+:} false; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   case $MTX in
5269   [\\/]* | ?:[\\/]*)
5270   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5271   ;;
5272   *)
5273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276   IFS=$as_save_IFS
5277   test -z "$as_dir" && as_dir=.
5278     for ac_exec_ext in '' $ac_executable_extensions; do
5279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282     break 2
5283   fi
5284 done
5285   done
5286 IFS=$as_save_IFS
5287
5288   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5289   ;;
5290 esac
5291 fi
5292 MTX=$ac_cv_path_MTX
5293 if test -n "$MTX"; then
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5295 $as_echo "$MTX" >&6; }
5296 else
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 # Extract the first word of "dd", so it can be a program name with args.
5303 set dummy dd; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_path_DD+:} false; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309   case $DD in
5310   [\\/]* | ?:[\\/]*)
5311   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5312   ;;
5313   *)
5314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317   IFS=$as_save_IFS
5318   test -z "$as_dir" && as_dir=.
5319     for ac_exec_ext in '' $ac_executable_extensions; do
5320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323     break 2
5324   fi
5325 done
5326   done
5327 IFS=$as_save_IFS
5328
5329   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5330   ;;
5331 esac
5332 fi
5333 DD=$ac_cv_path_DD
5334 if test -n "$DD"; then
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5336 $as_echo "$DD" >&6; }
5337 else
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342
5343 # Extract the first word of "mkisofs", so it can be a program name with args.
5344 set dummy mkisofs; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_path_MKISOFS+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   case $MKISOFS in
5351   [\\/]* | ?:[\\/]*)
5352   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5353   ;;
5354   *)
5355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369
5370   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5371   ;;
5372 esac
5373 fi
5374 MKISOFS=$ac_cv_path_MKISOFS
5375 if test -n "$MKISOFS"; then
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5377 $as_echo "$MKISOFS" >&6; }
5378 else
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5382
5383
5384 # Extract the first word of "python", so it can be a program name with args.
5385 set dummy python; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_path_PYTHON+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   case $PYTHON in
5392   [\\/]* | ?:[\\/]*)
5393   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5394   ;;
5395   *)
5396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408   done
5409 IFS=$as_save_IFS
5410
5411   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5412   ;;
5413 esac
5414 fi
5415 PYTHON=$ac_cv_path_PYTHON
5416 if test -n "$PYTHON"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5418 $as_echo "$PYTHON" >&6; }
5419 else
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423
5424
5425 # Extract the first word of "growisofs", so it can be a program name with args.
5426 set dummy growisofs; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if ${ac_cv_path_GROWISOFS+:} false; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   case $GROWISOFS in
5433   [\\/]* | ?:[\\/]*)
5434   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5435   ;;
5436   *)
5437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440   IFS=$as_save_IFS
5441   test -z "$as_dir" && as_dir=.
5442     for ac_exec_ext in '' $ac_executable_extensions; do
5443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446     break 2
5447   fi
5448 done
5449   done
5450 IFS=$as_save_IFS
5451
5452   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5453   ;;
5454 esac
5455 fi
5456 GROWISOFS=$ac_cv_path_GROWISOFS
5457 if test -n "$GROWISOFS"; then
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5459 $as_echo "$GROWISOFS" >&6; }
5460 else
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465
5466 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5467 set dummy dvd+rw-mediainfo; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   case $DVDRWMEDIAINFO in
5474   [\\/]* | ?:[\\/]*)
5475   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5476   ;;
5477   *)
5478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483     for ac_exec_ext in '' $ac_executable_extensions; do
5484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487     break 2
5488   fi
5489 done
5490   done
5491 IFS=$as_save_IFS
5492
5493   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5494   ;;
5495 esac
5496 fi
5497 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5498 if test -n "$DVDRWMEDIAINFO"; then
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5500 $as_echo "$DVDRWMEDIAINFO" >&6; }
5501 else
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506
5507 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5508 set dummy dvd+rw-format; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   case $DVDRWFORMAT in
5515   [\\/]* | ?:[\\/]*)
5516   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5517   ;;
5518   *)
5519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522   IFS=$as_save_IFS
5523   test -z "$as_dir" && as_dir=.
5524     for ac_exec_ext in '' $ac_executable_extensions; do
5525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528     break 2
5529   fi
5530 done
5531   done
5532 IFS=$as_save_IFS
5533
5534   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5535   ;;
5536 esac
5537 fi
5538 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5539 if test -n "$DVDRWFORMAT"; then
5540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5541 $as_echo "$DVDRWFORMAT" >&6; }
5542 else
5543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547
5548 # Extract the first word of "pkg-config", so it can be a program name with args.
5549 set dummy pkg-config; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if ${ac_cv_path_PKGCONFIG+:} false; then :
5553   $as_echo_n "(cached) " >&6
5554 else
5555   case $PKGCONFIG in
5556   [\\/]* | ?:[\\/]*)
5557   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5558   ;;
5559   *)
5560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565     for ac_exec_ext in '' $ac_executable_extensions; do
5566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569     break 2
5570   fi
5571 done
5572   done
5573 IFS=$as_save_IFS
5574
5575   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5576   ;;
5577 esac
5578 fi
5579 PKGCONFIG=$ac_cv_path_PKGCONFIG
5580 if test -n "$PKGCONFIG"; then
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5582 $as_echo "$PKGCONFIG" >&6; }
5583 else
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589 # Extract the first word of "qmake", so it can be a program name with args.
5590 set dummy qmake; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_path_QMAKE+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   case $QMAKE in
5597   [\\/]* | ?:[\\/]*)
5598   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5599   ;;
5600   *)
5601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604   IFS=$as_save_IFS
5605   test -z "$as_dir" && as_dir=.
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610     break 2
5611   fi
5612 done
5613   done
5614 IFS=$as_save_IFS
5615
5616   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5617   ;;
5618 esac
5619 fi
5620 QMAKE=$ac_cv_path_QMAKE
5621 if test -n "$QMAKE"; then
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5623 $as_echo "$QMAKE" >&6; }
5624 else
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629
5630 # Extract the first word of "gmake", so it can be a program name with args.
5631 set dummy gmake; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_path_GMAKE+:} false; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   case $GMAKE in
5638   [\\/]* | ?:[\\/]*)
5639   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5640   ;;
5641   *)
5642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647     for ac_exec_ext in '' $ac_executable_extensions; do
5648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651     break 2
5652   fi
5653 done
5654   done
5655 IFS=$as_save_IFS
5656
5657   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5658   ;;
5659 esac
5660 fi
5661 GMAKE=$ac_cv_path_GMAKE
5662 if test -n "$GMAKE"; then
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5664 $as_echo "$GMAKE" >&6; }
5665 else
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669
5670
5671
5672 if test "x$WXCONFIG" = x; then
5673    WXCONFIG=wx-config
5674 fi
5675 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5676 set dummy ${WXCONFIG}; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_path_WXCONFIG+:} false; then :
5680   $as_echo_n "(cached) " >&6
5681 else
5682   case $WXCONFIG in
5683   [\\/]* | ?:[\\/]*)
5684   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5685   ;;
5686   *)
5687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690   IFS=$as_save_IFS
5691   test -z "$as_dir" && as_dir=.
5692     for ac_exec_ext in '' $ac_executable_extensions; do
5693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696     break 2
5697   fi
5698 done
5699   done
5700 IFS=$as_save_IFS
5701
5702   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5703   ;;
5704 esac
5705 fi
5706 WXCONFIG=$ac_cv_path_WXCONFIG
5707 if test -n "$WXCONFIG"; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5709 $as_echo "$WXCONFIG" >&6; }
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716
5717 # Extract the first word of "cdrecord", so it can be a program name with args.
5718 set dummy cdrecord; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_path_CDRECORD+:} false; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   case $CDRECORD in
5725   [\\/]* | ?:[\\/]*)
5726   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5727   ;;
5728   *)
5729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734     for ac_exec_ext in '' $ac_executable_extensions; do
5735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738     break 2
5739   fi
5740 done
5741   done
5742 IFS=$as_save_IFS
5743
5744   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5745   ;;
5746 esac
5747 fi
5748 CDRECORD=$ac_cv_path_CDRECORD
5749 if test -n "$CDRECORD"; then
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5751 $as_echo "$CDRECORD" >&6; }
5752 else
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5755 fi
5756
5757
5758 # Extract the first word of "pidof", so it can be a program name with args.
5759 set dummy pidof; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_path_PIDOF+:} false; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   case $PIDOF in
5766   [\\/]* | ?:[\\/]*)
5767   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5768   ;;
5769   *)
5770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775     for ac_exec_ext in '' $ac_executable_extensions; do
5776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782   done
5783 IFS=$as_save_IFS
5784
5785   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5786   ;;
5787 esac
5788 fi
5789 PIDOF=$ac_cv_path_PIDOF
5790 if test -n "$PIDOF"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5792 $as_echo "$PIDOF" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798
5799 for ac_prog in gawk mawk nawk awk
5800 do
5801   # Extract the first word of "$ac_prog", so it can be a program name with args.
5802 set dummy $ac_prog; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_AWK+:} false; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if test -n "$AWK"; then
5809   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816     for ac_exec_ext in '' $ac_executable_extensions; do
5817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818     ac_cv_prog_AWK="$ac_prog"
5819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823   done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 AWK=$ac_cv_prog_AWK
5829 if test -n "$AWK"; then
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5831 $as_echo "$AWK" >&6; }
5832 else
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837
5838   test -n "$AWK" && break
5839 done
5840
5841 # Some AWK programs fail, so test it and warn the user
5842 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5843       { if ((prog == $2) || (("(" prog ")") == $2) ||
5844       (("" prog "") == $2) ||
5845       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5846 else
5847   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5848    The regex engine of $AWK is too broken to be used you
5849    might want to install GNU AWK.
5850    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5851 fi
5852 THE_AWK=$AWK
5853 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5854 set dummy $THE_AWK; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_path_AWK+:} false; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   case $AWK in
5861   [\\/]* | ?:[\\/]*)
5862   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5863   ;;
5864   *)
5865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870     for ac_exec_ext in '' $ac_executable_extensions; do
5871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877   done
5878 IFS=$as_save_IFS
5879
5880   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5881   ;;
5882 esac
5883 fi
5884 AWK=$ac_cv_path_AWK
5885 if test -n "$AWK"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5887 $as_echo "$AWK" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893
5894
5895
5896 test -n "$ARFLAG" || ARFLAGS="cr"
5897
5898
5899 MAKE_SHELL=/bin/sh
5900
5901
5902
5903
5904
5905
5906
5907 use_libtool=yes
5908 # Check whether --enable-libtool was given.
5909 if test "${enable_libtool+set}" = set; then :
5910   enableval=$enable_libtool;
5911        if test x$enableval = xno; then
5912           use_libtool=no
5913        fi
5914
5915
5916 fi
5917
5918 case `pwd` in
5919   *\ * | *\     *)
5920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5921 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5922 esac
5923
5924
5925
5926 macro_version='2.4'
5927 macro_revision='1.3293'
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941 ltmain="$ac_aux_dir/ltmain.sh"
5942
5943 # Make sure we can run config.sub.
5944 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5945   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5948 $as_echo_n "checking build system type... " >&6; }
5949 if ${ac_cv_build+:} false; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   ac_build_alias=$build_alias
5953 test "x$ac_build_alias" = x &&
5954   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5955 test "x$ac_build_alias" = x &&
5956   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5957 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5958   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5959
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5962 $as_echo "$ac_cv_build" >&6; }
5963 case $ac_cv_build in
5964 *-*-*) ;;
5965 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5966 esac
5967 build=$ac_cv_build
5968 ac_save_IFS=$IFS; IFS='-'
5969 set x $ac_cv_build
5970 shift
5971 build_cpu=$1
5972 build_vendor=$2
5973 shift; shift
5974 # Remember, the first character of IFS is used to create $*,
5975 # except with old shells:
5976 build_os=$*
5977 IFS=$ac_save_IFS
5978 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5982 $as_echo_n "checking host system type... " >&6; }
5983 if ${ac_cv_host+:} false; then :
5984   $as_echo_n "(cached) " >&6
5985 else
5986   if test "x$host_alias" = x; then
5987   ac_cv_host=$ac_cv_build
5988 else
5989   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5990     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5991 fi
5992
5993 fi
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5995 $as_echo "$ac_cv_host" >&6; }
5996 case $ac_cv_host in
5997 *-*-*) ;;
5998 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5999 esac
6000 host=$ac_cv_host
6001 ac_save_IFS=$IFS; IFS='-'
6002 set x $ac_cv_host
6003 shift
6004 host_cpu=$1
6005 host_vendor=$2
6006 shift; shift
6007 # Remember, the first character of IFS is used to create $*,
6008 # except with old shells:
6009 host_os=$*
6010 IFS=$ac_save_IFS
6011 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6012
6013
6014 # Backslashify metacharacters that are still active within
6015 # double-quoted strings.
6016 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6017
6018 # Same as above, but do not quote variable references.
6019 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6020
6021 # Sed substitution to delay expansion of an escaped shell variable in a
6022 # double_quote_subst'ed string.
6023 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6024
6025 # Sed substitution to delay expansion of an escaped single quote.
6026 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6027
6028 # Sed substitution to avoid accidental globbing in evaled expressions
6029 no_glob_subst='s/\*/\\\*/g'
6030
6031 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6034
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6036 $as_echo_n "checking how to print strings... " >&6; }
6037 # Test print first, because it will be a builtin if present.
6038 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6039    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6040   ECHO='print -r --'
6041 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6042   ECHO='printf %s\n'
6043 else
6044   # Use this function as a fallback that always works.
6045   func_fallback_echo ()
6046   {
6047     eval 'cat <<_LTECHO_EOF
6048 $1
6049 _LTECHO_EOF'
6050   }
6051   ECHO='func_fallback_echo'
6052 fi
6053
6054 # func_echo_all arg...
6055 # Invoke $ECHO with all args, space-separated.
6056 func_echo_all ()
6057 {
6058     $ECHO ""
6059 }
6060
6061 case "$ECHO" in
6062   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6063 $as_echo "printf" >&6; } ;;
6064   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6065 $as_echo "print -r" >&6; } ;;
6066   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6067 $as_echo "cat" >&6; } ;;
6068 esac
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6084 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6085 if ${ac_cv_path_SED+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6089      for ac_i in 1 2 3 4 5 6 7; do
6090        ac_script="$ac_script$as_nl$ac_script"
6091      done
6092      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6093      { ac_script=; unset ac_script;}
6094      if test -z "$SED"; then
6095   ac_path_SED_found=false
6096   # Loop through the user's path and test for each of PROGNAME-LIST
6097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_prog in sed gsed; do
6103     for ac_exec_ext in '' $ac_executable_extensions; do
6104       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6105       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6106 # Check for GNU ac_path_SED and select it if it is found.
6107   # Check for GNU $ac_path_SED
6108 case `"$ac_path_SED" --version 2>&1` in
6109 *GNU*)
6110   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6111 *)
6112   ac_count=0
6113   $as_echo_n 0123456789 >"conftest.in"
6114   while :
6115   do
6116     cat "conftest.in" "conftest.in" >"conftest.tmp"
6117     mv "conftest.tmp" "conftest.in"
6118     cp "conftest.in" "conftest.nl"
6119     $as_echo '' >> "conftest.nl"
6120     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6121     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6122     as_fn_arith $ac_count + 1 && ac_count=$as_val
6123     if test $ac_count -gt ${ac_path_SED_max-0}; then
6124       # Best one so far, save it but keep looking for a better one
6125       ac_cv_path_SED="$ac_path_SED"
6126       ac_path_SED_max=$ac_count
6127     fi
6128     # 10*(2^10) chars as input seems more than enough
6129     test $ac_count -gt 10 && break
6130   done
6131   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6132 esac
6133
6134       $ac_path_SED_found && break 3
6135     done
6136   done
6137   done
6138 IFS=$as_save_IFS
6139   if test -z "$ac_cv_path_SED"; then
6140     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6141   fi
6142 else
6143   ac_cv_path_SED=$SED
6144 fi
6145
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6148 $as_echo "$ac_cv_path_SED" >&6; }
6149  SED="$ac_cv_path_SED"
6150   rm -f conftest.sed
6151
6152 test -z "$SED" && SED=sed
6153 Xsed="$SED -e 1s/^X//"
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6166 $as_echo_n "checking for fgrep... " >&6; }
6167 if ${ac_cv_path_FGREP+:} false; then :
6168   $as_echo_n "(cached) " >&6
6169 else
6170   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6171    then ac_cv_path_FGREP="$GREP -F"
6172    else
6173      if test -z "$FGREP"; then
6174   ac_path_FGREP_found=false
6175   # Loop through the user's path and test for each of PROGNAME-LIST
6176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_prog in fgrep; do
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6184       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6185 # Check for GNU ac_path_FGREP and select it if it is found.
6186   # Check for GNU $ac_path_FGREP
6187 case `"$ac_path_FGREP" --version 2>&1` in
6188 *GNU*)
6189   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6190 *)
6191   ac_count=0
6192   $as_echo_n 0123456789 >"conftest.in"
6193   while :
6194   do
6195     cat "conftest.in" "conftest.in" >"conftest.tmp"
6196     mv "conftest.tmp" "conftest.in"
6197     cp "conftest.in" "conftest.nl"
6198     $as_echo 'FGREP' >> "conftest.nl"
6199     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201     as_fn_arith $ac_count + 1 && ac_count=$as_val
6202     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6203       # Best one so far, save it but keep looking for a better one
6204       ac_cv_path_FGREP="$ac_path_FGREP"
6205       ac_path_FGREP_max=$ac_count
6206     fi
6207     # 10*(2^10) chars as input seems more than enough
6208     test $ac_count -gt 10 && break
6209   done
6210   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 esac
6212
6213       $ac_path_FGREP_found && break 3
6214     done
6215   done
6216   done
6217 IFS=$as_save_IFS
6218   if test -z "$ac_cv_path_FGREP"; then
6219     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6220   fi
6221 else
6222   ac_cv_path_FGREP=$FGREP
6223 fi
6224
6225    fi
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6228 $as_echo "$ac_cv_path_FGREP" >&6; }
6229  FGREP="$ac_cv_path_FGREP"
6230
6231
6232 test -z "$GREP" && GREP=grep
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252 # Check whether --with-gnu-ld was given.
6253 if test "${with_gnu_ld+set}" = set; then :
6254   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6255 else
6256   with_gnu_ld=no
6257 fi
6258
6259 ac_prog=ld
6260 if test "$GCC" = yes; then
6261   # Check if gcc -print-prog-name=ld gives a path.
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6263 $as_echo_n "checking for ld used by $CC... " >&6; }
6264   case $host in
6265   *-*-mingw*)
6266     # gcc leaves a trailing carriage return which upsets mingw
6267     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6268   *)
6269     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6270   esac
6271   case $ac_prog in
6272     # Accept absolute paths.
6273     [\\/]* | ?:[\\/]*)
6274       re_direlt='/[^/][^/]*/\.\./'
6275       # Canonicalize the pathname of ld
6276       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6277       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6278         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6279       done
6280       test -z "$LD" && LD="$ac_prog"
6281       ;;
6282   "")
6283     # If it fails, then pretend we aren't using GCC.
6284     ac_prog=ld
6285     ;;
6286   *)
6287     # If it is relative, then search for the first ld in PATH.
6288     with_gnu_ld=unknown
6289     ;;
6290   esac
6291 elif test "$with_gnu_ld" = yes; then
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6293 $as_echo_n "checking for GNU ld... " >&6; }
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6296 $as_echo_n "checking for non-GNU ld... " >&6; }
6297 fi
6298 if ${lt_cv_path_LD+:} false; then :
6299   $as_echo_n "(cached) " >&6
6300 else
6301   if test -z "$LD"; then
6302   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303   for ac_dir in $PATH; do
6304     IFS="$lt_save_ifs"
6305     test -z "$ac_dir" && ac_dir=.
6306     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6307       lt_cv_path_LD="$ac_dir/$ac_prog"
6308       # Check to see if the program is GNU ld.  I'd rather use --version,
6309       # but apparently some variants of GNU ld only accept -v.
6310       # Break only if it was the GNU/non-GNU ld that we prefer.
6311       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6312       *GNU* | *'with BFD'*)
6313         test "$with_gnu_ld" != no && break
6314         ;;
6315       *)
6316         test "$with_gnu_ld" != yes && break
6317         ;;
6318       esac
6319     fi
6320   done
6321   IFS="$lt_save_ifs"
6322 else
6323   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6324 fi
6325 fi
6326
6327 LD="$lt_cv_path_LD"
6328 if test -n "$LD"; then
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6330 $as_echo "$LD" >&6; }
6331 else
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6337 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6338 if ${lt_cv_prog_gnu_ld+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6342 case `$LD -v 2>&1 </dev/null` in
6343 *GNU* | *'with BFD'*)
6344   lt_cv_prog_gnu_ld=yes
6345   ;;
6346 *)
6347   lt_cv_prog_gnu_ld=no
6348   ;;
6349 esac
6350 fi
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6352 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6353 with_gnu_ld=$lt_cv_prog_gnu_ld
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6364 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6365 if ${lt_cv_path_NM+:} false; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368   if test -n "$NM"; then
6369   # Let the user override the test.
6370   lt_cv_path_NM="$NM"
6371 else
6372   lt_nm_to_check="${ac_tool_prefix}nm"
6373   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6374     lt_nm_to_check="$lt_nm_to_check nm"
6375   fi
6376   for lt_tmp_nm in $lt_nm_to_check; do
6377     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6378     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6379       IFS="$lt_save_ifs"
6380       test -z "$ac_dir" && ac_dir=.
6381       tmp_nm="$ac_dir/$lt_tmp_nm"
6382       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6383         # Check to see if the nm accepts a BSD-compat flag.
6384         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6385         #   nm: unknown option "B" ignored
6386         # Tru64's nm complains that /dev/null is an invalid object file
6387         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6388         */dev/null* | *'Invalid file or object type'*)
6389           lt_cv_path_NM="$tmp_nm -B"
6390           break
6391           ;;
6392         *)
6393           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6394           */dev/null*)
6395             lt_cv_path_NM="$tmp_nm -p"
6396             break
6397             ;;
6398           *)
6399             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6400             continue # so that we can try to find one that supports BSD flags
6401             ;;
6402           esac
6403           ;;
6404         esac
6405       fi
6406     done
6407     IFS="$lt_save_ifs"
6408   done
6409   : ${lt_cv_path_NM=no}
6410 fi
6411 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6413 $as_echo "$lt_cv_path_NM" >&6; }
6414 if test "$lt_cv_path_NM" != "no"; then
6415   NM="$lt_cv_path_NM"
6416 else
6417   # Didn't find any BSD compatible name lister, look for dumpbin.
6418   if test -n "$DUMPBIN"; then :
6419     # Let the user override the test.
6420   else
6421     if test -n "$ac_tool_prefix"; then
6422   for ac_prog in dumpbin "link -dump"
6423   do
6424     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_DUMPBIN+:} false; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431   if test -n "$DUMPBIN"; then
6432   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439     for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446   done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 DUMPBIN=$ac_cv_prog_DUMPBIN
6452 if test -n "$DUMPBIN"; then
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6454 $as_echo "$DUMPBIN" >&6; }
6455 else
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460
6461     test -n "$DUMPBIN" && break
6462   done
6463 fi
6464 if test -z "$DUMPBIN"; then
6465   ac_ct_DUMPBIN=$DUMPBIN
6466   for ac_prog in dumpbin "link -dump"
6467 do
6468   # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy $ac_prog; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   if test -n "$ac_ct_DUMPBIN"; then
6476   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483     for ac_exec_ext in '' $ac_executable_extensions; do
6484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490   done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6496 if test -n "$ac_ct_DUMPBIN"; then
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6498 $as_echo "$ac_ct_DUMPBIN" >&6; }
6499 else
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504
6505   test -n "$ac_ct_DUMPBIN" && break
6506 done
6507
6508   if test "x$ac_ct_DUMPBIN" = x; then
6509     DUMPBIN=":"
6510   else
6511     case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517     DUMPBIN=$ac_ct_DUMPBIN
6518   fi
6519 fi
6520
6521     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6522     *COFF*)
6523       DUMPBIN="$DUMPBIN -symbols"
6524       ;;
6525     *)
6526       DUMPBIN=:
6527       ;;
6528     esac
6529   fi
6530
6531   if test "$DUMPBIN" != ":"; then
6532     NM="$DUMPBIN"
6533   fi
6534 fi
6535 test -z "$NM" && NM=nm
6536
6537
6538
6539
6540
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6544 if ${lt_cv_nm_interface+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   lt_cv_nm_interface="BSD nm"
6548   echo "int some_variable = 0;" > conftest.$ac_ext
6549   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6550   (eval "$ac_compile" 2>conftest.err)
6551   cat conftest.err >&5
6552   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6553   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6554   cat conftest.err >&5
6555   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6556   cat conftest.out >&5
6557   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6558     lt_cv_nm_interface="MS dumpbin"
6559   fi
6560   rm -f conftest*
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6563 $as_echo "$lt_cv_nm_interface" >&6; }
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6566 $as_echo_n "checking whether ln -s works... " >&6; }
6567 LN_S=$as_ln_s
6568 if test "$LN_S" = "ln -s"; then
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6570 $as_echo "yes" >&6; }
6571 else
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6573 $as_echo "no, using $LN_S" >&6; }
6574 fi
6575
6576 # find the maximum length of command line arguments
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6579 if ${lt_cv_sys_max_cmd_len+:} false; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582     i=0
6583   teststring="ABCD"
6584
6585   case $build_os in
6586   msdosdjgpp*)
6587     # On DJGPP, this test can blow up pretty badly due to problems in libc
6588     # (any single argument exceeding 2000 bytes causes a buffer overrun
6589     # during glob expansion).  Even if it were fixed, the result of this
6590     # check would be larger than it should be.
6591     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6592     ;;
6593
6594   gnu*)
6595     # Under GNU Hurd, this test is not required because there is
6596     # no limit to the length of command line arguments.
6597     # Libtool will interpret -1 as no limit whatsoever
6598     lt_cv_sys_max_cmd_len=-1;
6599     ;;
6600
6601   cygwin* | mingw* | cegcc*)
6602     # On Win9x/ME, this test blows up -- it succeeds, but takes
6603     # about 5 minutes as the teststring grows exponentially.
6604     # Worse, since 9x/ME are not pre-emptively multitasking,
6605     # you end up with a "frozen" computer, even though with patience
6606     # the test eventually succeeds (with a max line length of 256k).
6607     # Instead, let's just punt: use the minimum linelength reported by
6608     # all of the supported platforms: 8192 (on NT/2K/XP).
6609     lt_cv_sys_max_cmd_len=8192;
6610     ;;
6611
6612   mint*)
6613     # On MiNT this can take a long time and run out of memory.
6614     lt_cv_sys_max_cmd_len=8192;
6615     ;;
6616
6617   amigaos*)
6618     # On AmigaOS with pdksh, this test takes hours, literally.
6619     # So we just punt and use a minimum line length of 8192.
6620     lt_cv_sys_max_cmd_len=8192;
6621     ;;
6622
6623   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6624     # This has been around since 386BSD, at least.  Likely further.
6625     if test -x /sbin/sysctl; then
6626       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6627     elif test -x /usr/sbin/sysctl; then
6628       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6629     else
6630       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6631     fi
6632     # And add a safety zone
6633     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6634     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6635     ;;
6636
6637   interix*)
6638     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6639     lt_cv_sys_max_cmd_len=196608
6640     ;;
6641
6642   osf*)
6643     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6644     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6645     # nice to cause kernel panics so lets avoid the loop below.
6646     # First set a reasonable default.
6647     lt_cv_sys_max_cmd_len=16384
6648     #
6649     if test -x /sbin/sysconfig; then
6650       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6651         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6652       esac
6653     fi
6654     ;;
6655   sco3.2v5*)
6656     lt_cv_sys_max_cmd_len=102400
6657     ;;
6658   sysv5* | sco5v6* | sysv4.2uw2*)
6659     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6660     if test -n "$kargmax"; then
6661       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6662     else
6663       lt_cv_sys_max_cmd_len=32768
6664     fi
6665     ;;
6666   *)
6667     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6668     if test -n "$lt_cv_sys_max_cmd_len"; then
6669       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6670       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6671     else
6672       # Make teststring a little bigger before we do anything with it.
6673       # a 1K string should be a reasonable start.
6674       for i in 1 2 3 4 5 6 7 8 ; do
6675         teststring=$teststring$teststring
6676       done
6677       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6678       # If test is not a shell built-in, we'll probably end up computing a
6679       # maximum length that is only half of the actual maximum length, but
6680       # we can't tell.
6681       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6682                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6683               test $i != 17 # 1/2 MB should be enough
6684       do
6685         i=`expr $i + 1`
6686         teststring=$teststring$teststring
6687       done
6688       # Only check the string length outside the loop.
6689       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6690       teststring=
6691       # Add a significant safety factor because C++ compilers can tack on
6692       # massive amounts of additional arguments before passing them to the
6693       # linker.  It appears as though 1/2 is a usable value.
6694       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6695     fi
6696     ;;
6697   esac
6698
6699 fi
6700
6701 if test -n $lt_cv_sys_max_cmd_len ; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6703 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6706 $as_echo "none" >&6; }
6707 fi
6708 max_cmd_len=$lt_cv_sys_max_cmd_len
6709
6710
6711
6712
6713
6714
6715 : ${CP="cp -f"}
6716 : ${MV="mv -f"}
6717 : ${RM="rm -f"}
6718
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6720 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6721 # Try some XSI features
6722 xsi_shell=no
6723 ( _lt_dummy="a/b/c"
6724   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6725       = c,a/b,b/c, \
6726     && eval 'test $(( 1 + 1 )) -eq 2 \
6727     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6728   && xsi_shell=yes
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6730 $as_echo "$xsi_shell" >&6; }
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6734 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6735 lt_shell_append=no
6736 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6737     >/dev/null 2>&1 \
6738   && lt_shell_append=yes
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6740 $as_echo "$lt_shell_append" >&6; }
6741
6742
6743 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6744   lt_unset=unset
6745 else
6746   lt_unset=false
6747 fi
6748
6749
6750
6751
6752
6753 # test EBCDIC or ASCII
6754 case `echo X|tr X '\101'` in
6755  A) # ASCII based system
6756     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6757   lt_SP2NL='tr \040 \012'
6758   lt_NL2SP='tr \015\012 \040\040'
6759   ;;
6760  *) # EBCDIC based system
6761   lt_SP2NL='tr \100 \n'
6762   lt_NL2SP='tr \r\n \100\100'
6763   ;;
6764 esac
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6775 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6776 if ${lt_cv_to_host_file_cmd+:} false; then :
6777   $as_echo_n "(cached) " >&6
6778 else
6779   case $host in
6780   *-*-mingw* )
6781     case $build in
6782       *-*-mingw* ) # actually msys
6783         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6784         ;;
6785       *-*-cygwin* )
6786         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6787         ;;
6788       * ) # otherwise, assume *nix
6789         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6790         ;;
6791     esac
6792     ;;
6793   *-*-cygwin* )
6794     case $build in
6795       *-*-mingw* ) # actually msys
6796         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6797         ;;
6798       *-*-cygwin* )
6799         lt_cv_to_host_file_cmd=func_convert_file_noop
6800         ;;
6801       * ) # otherwise, assume *nix
6802         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6803         ;;
6804     esac
6805     ;;
6806   * ) # unhandled hosts (and "normal" native builds)
6807     lt_cv_to_host_file_cmd=func_convert_file_noop
6808     ;;
6809 esac
6810
6811 fi
6812
6813 to_host_file_cmd=$lt_cv_to_host_file_cmd
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6815 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6816
6817
6818
6819
6820
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6822 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6823 if ${lt_cv_to_tool_file_cmd+:} false; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   #assume ordinary cross tools, or native build.
6827 lt_cv_to_tool_file_cmd=func_convert_file_noop
6828 case $host in
6829   *-*-mingw* )
6830     case $build in
6831       *-*-mingw* ) # actually msys
6832         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6833         ;;
6834     esac
6835     ;;
6836 esac
6837
6838 fi
6839
6840 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6842 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6843
6844
6845
6846
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6849 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6850 if ${lt_cv_ld_reload_flag+:} false; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   lt_cv_ld_reload_flag='-r'
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6856 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6857 reload_flag=$lt_cv_ld_reload_flag
6858 case $reload_flag in
6859 "" | " "*) ;;
6860 *) reload_flag=" $reload_flag" ;;
6861 esac
6862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6863 case $host_os in
6864   cygwin* | mingw* | pw32* | cegcc*)
6865     if test "$GCC" != yes; then
6866       reload_cmds=false
6867     fi
6868     ;;
6869   darwin*)
6870     if test "$GCC" = yes; then
6871       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6872     else
6873       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6874     fi
6875     ;;
6876 esac
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886 if test -n "$ac_tool_prefix"; then
6887   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_OBJDUMP+:} false; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   if test -n "$OBJDUMP"; then
6895   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902     for ac_exec_ext in '' $ac_executable_extensions; do
6903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909   done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 OBJDUMP=$ac_cv_prog_OBJDUMP
6915 if test -n "$OBJDUMP"; then
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6917 $as_echo "$OBJDUMP" >&6; }
6918 else
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923
6924 fi
6925 if test -z "$ac_cv_prog_OBJDUMP"; then
6926   ac_ct_OBJDUMP=$OBJDUMP
6927   # Extract the first word of "objdump", so it can be a program name with args.
6928 set dummy objdump; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6932   $as_echo_n "(cached) " >&6
6933 else
6934   if test -n "$ac_ct_OBJDUMP"; then
6935   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940   IFS=$as_save_IFS
6941   test -z "$as_dir" && as_dir=.
6942     for ac_exec_ext in '' $ac_executable_extensions; do
6943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946     break 2
6947   fi
6948 done
6949   done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6955 if test -n "$ac_ct_OBJDUMP"; then
6956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6957 $as_echo "$ac_ct_OBJDUMP" >&6; }
6958 else
6959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963   if test "x$ac_ct_OBJDUMP" = x; then
6964     OBJDUMP="false"
6965   else
6966     case $cross_compiling:$ac_tool_warned in
6967 yes:)
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970 ac_tool_warned=yes ;;
6971 esac
6972     OBJDUMP=$ac_ct_OBJDUMP
6973   fi
6974 else
6975   OBJDUMP="$ac_cv_prog_OBJDUMP"
6976 fi
6977
6978 test -z "$OBJDUMP" && OBJDUMP=objdump
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6989 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6990 if ${lt_cv_deplibs_check_method+:} false; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   lt_cv_file_magic_cmd='$MAGIC_CMD'
6994 lt_cv_file_magic_test_file=
6995 lt_cv_deplibs_check_method='unknown'
6996 # Need to set the preceding variable on all platforms that support
6997 # interlibrary dependencies.
6998 # 'none' -- dependencies not supported.
6999 # `unknown' -- same as none, but documents that we really don't know.
7000 # 'pass_all' -- all dependencies passed with no checks.
7001 # 'test_compile' -- check by making test program.
7002 # 'file_magic [[regex]]' -- check by looking for files in library path
7003 # which responds to the $file_magic_cmd with a given extended regex.
7004 # If you have `file' or equivalent on your system and you're not sure
7005 # whether `pass_all' will *always* work, you probably want this one.
7006
7007 case $host_os in
7008 aix[4-9]*)
7009   lt_cv_deplibs_check_method=pass_all
7010   ;;
7011
7012 beos*)
7013   lt_cv_deplibs_check_method=pass_all
7014   ;;
7015
7016 bsdi[45]*)
7017   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7018   lt_cv_file_magic_cmd='/usr/bin/file -L'
7019   lt_cv_file_magic_test_file=/shlib/libc.so
7020   ;;
7021
7022 cygwin*)
7023   # func_win32_libid is a shell function defined in ltmain.sh
7024   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7025   lt_cv_file_magic_cmd='func_win32_libid'
7026   ;;
7027
7028 mingw* | pw32*)
7029   # Base MSYS/MinGW do not provide the 'file' command needed by
7030   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7031   # unless we find 'file', for example because we are cross-compiling.
7032   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7033   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7034     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7035     lt_cv_file_magic_cmd='func_win32_libid'
7036   else
7037     # Keep this pattern in sync with the one in func_win32_libid.
7038     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7039     lt_cv_file_magic_cmd='$OBJDUMP -f'
7040   fi
7041   ;;
7042
7043 cegcc*)
7044   # use the weaker test based on 'objdump'. See mingw*.
7045   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7046   lt_cv_file_magic_cmd='$OBJDUMP -f'
7047   ;;
7048
7049 darwin* | rhapsody*)
7050   lt_cv_deplibs_check_method=pass_all
7051   ;;
7052
7053 freebsd* | dragonfly*)
7054   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7055     case $host_cpu in
7056     i*86 )
7057       # Not sure whether the presence of OpenBSD here was a mistake.
7058       # Let's accept both of them until this is cleared up.
7059       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7060       lt_cv_file_magic_cmd=/usr/bin/file
7061       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7062       ;;
7063     esac
7064   else
7065     lt_cv_deplibs_check_method=pass_all
7066   fi
7067   ;;
7068
7069 gnu*)
7070   lt_cv_deplibs_check_method=pass_all
7071   ;;
7072
7073 haiku*)
7074   lt_cv_deplibs_check_method=pass_all
7075   ;;
7076
7077 hpux10.20* | hpux11*)
7078   lt_cv_file_magic_cmd=/usr/bin/file
7079   case $host_cpu in
7080   ia64*)
7081     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7082     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7083     ;;
7084   hppa*64*)
7085     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7086     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7087     ;;
7088   *)
7089     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7090     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7091     ;;
7092   esac
7093   ;;
7094
7095 interix[3-9]*)
7096   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7097   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7098   ;;
7099
7100 irix5* | irix6* | nonstopux*)
7101   case $LD in
7102   *-32|*"-32 ") libmagic=32-bit;;
7103   *-n32|*"-n32 ") libmagic=N32;;
7104   *-64|*"-64 ") libmagic=64-bit;;
7105   *) libmagic=never-match;;
7106   esac
7107   lt_cv_deplibs_check_method=pass_all
7108   ;;
7109
7110 # This must be Linux ELF.
7111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7112   lt_cv_deplibs_check_method=pass_all
7113   ;;
7114
7115 netbsd*)
7116   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7117     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7118   else
7119     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7120   fi
7121   ;;
7122
7123 newos6*)
7124   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7125   lt_cv_file_magic_cmd=/usr/bin/file
7126   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7127   ;;
7128
7129 *nto* | *qnx*)
7130   lt_cv_deplibs_check_method=pass_all
7131   ;;
7132
7133 openbsd*)
7134   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7136   else
7137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7138   fi
7139   ;;
7140
7141 osf3* | osf4* | osf5*)
7142   lt_cv_deplibs_check_method=pass_all
7143   ;;
7144
7145 rdos*)
7146   lt_cv_deplibs_check_method=pass_all
7147   ;;
7148
7149 solaris*)
7150   lt_cv_deplibs_check_method=pass_all
7151   ;;
7152
7153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7154   lt_cv_deplibs_check_method=pass_all
7155   ;;
7156
7157 sysv4 | sysv4.3*)
7158   case $host_vendor in
7159   motorola)
7160     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]'
7161     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7162     ;;
7163   ncr)
7164     lt_cv_deplibs_check_method=pass_all
7165     ;;
7166   sequent)
7167     lt_cv_file_magic_cmd='/bin/file'
7168     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7169     ;;
7170   sni)
7171     lt_cv_file_magic_cmd='/bin/file'
7172     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7173     lt_cv_file_magic_test_file=/lib/libc.so
7174     ;;
7175   siemens)
7176     lt_cv_deplibs_check_method=pass_all
7177     ;;
7178   pc)
7179     lt_cv_deplibs_check_method=pass_all
7180     ;;
7181   esac
7182   ;;
7183
7184 tpf*)
7185   lt_cv_deplibs_check_method=pass_all
7186   ;;
7187 esac
7188
7189 fi
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7191 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7192
7193 file_magic_glob=
7194 want_nocaseglob=no
7195 if test "$build" = "$host"; then
7196   case $host_os in
7197   mingw* | pw32*)
7198     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7199       want_nocaseglob=yes
7200     else
7201       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7202     fi
7203     ;;
7204   esac
7205 fi
7206
7207 file_magic_cmd=$lt_cv_file_magic_cmd
7208 deplibs_check_method=$lt_cv_deplibs_check_method
7209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232 if test -n "$ac_tool_prefix"; then
7233   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_DLLTOOL+:} false; then :
7238   $as_echo_n "(cached) " >&6
7239 else
7240   if test -n "$DLLTOOL"; then
7241   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248     for ac_exec_ext in '' $ac_executable_extensions; do
7249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255   done
7256 IFS=$as_save_IFS
7257
7258 fi
7259 fi
7260 DLLTOOL=$ac_cv_prog_DLLTOOL
7261 if test -n "$DLLTOOL"; then
7262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7263 $as_echo "$DLLTOOL" >&6; }
7264 else
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7267 fi
7268
7269
7270 fi
7271 if test -z "$ac_cv_prog_DLLTOOL"; then
7272   ac_ct_DLLTOOL=$DLLTOOL
7273   # Extract the first word of "dlltool", so it can be a program name with args.
7274 set dummy dlltool; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   if test -n "$ac_ct_DLLTOOL"; then
7281   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288     for ac_exec_ext in '' $ac_executable_extensions; do
7289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295   done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7301 if test -n "$ac_ct_DLLTOOL"; then
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7303 $as_echo "$ac_ct_DLLTOOL" >&6; }
7304 else
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309   if test "x$ac_ct_DLLTOOL" = x; then
7310     DLLTOOL="false"
7311   else
7312     case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318     DLLTOOL=$ac_ct_DLLTOOL
7319   fi
7320 else
7321   DLLTOOL="$ac_cv_prog_DLLTOOL"
7322 fi
7323
7324 test -z "$DLLTOOL" && DLLTOOL=dlltool
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7336 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7337 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   lt_cv_sharedlib_from_linklib_cmd='unknown'
7341
7342 case $host_os in
7343 cygwin* | mingw* | pw32* | cegcc*)
7344   # two different shell functions defined in ltmain.sh
7345   # decide which to use based on capabilities of $DLLTOOL
7346   case `$DLLTOOL --help 2>&1` in
7347   *--identify-strict*)
7348     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7349     ;;
7350   *)
7351     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7352     ;;
7353   esac
7354   ;;
7355 *)
7356   # fallback: assume linklib IS sharedlib
7357   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7358   ;;
7359 esac
7360
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7363 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7364 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7365 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7366
7367
7368
7369
7370
7371
7372
7373 if test -n "$ac_tool_prefix"; then
7374   for ac_prog in ar
7375   do
7376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_AR+:} false; then :
7381   $as_echo_n "(cached) " >&6
7382 else
7383   if test -n "$AR"; then
7384   ac_cv_prog_AR="$AR" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391     for ac_exec_ext in '' $ac_executable_extensions; do
7392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398   done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 AR=$ac_cv_prog_AR
7404 if test -n "$AR"; then
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7406 $as_echo "$AR" >&6; }
7407 else
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412
7413     test -n "$AR" && break
7414   done
7415 fi
7416 if test -z "$AR"; then
7417   ac_ct_AR=$AR
7418   for ac_prog in ar
7419 do
7420   # Extract the first word of "$ac_prog", so it can be a program name with args.
7421 set dummy $ac_prog; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7425   $as_echo_n "(cached) " >&6
7426 else
7427   if test -n "$ac_ct_AR"; then
7428   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435     for ac_exec_ext in '' $ac_executable_extensions; do
7436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437     ac_cv_prog_ac_ct_AR="$ac_prog"
7438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442   done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7448 if test -n "$ac_ct_AR"; then
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7450 $as_echo "$ac_ct_AR" >&6; }
7451 else
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456
7457   test -n "$ac_ct_AR" && break
7458 done
7459
7460   if test "x$ac_ct_AR" = x; then
7461     AR="false"
7462   else
7463     case $cross_compiling:$ac_tool_warned in
7464 yes:)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7468 esac
7469     AR=$ac_ct_AR
7470   fi
7471 fi
7472
7473 : ${AR=ar}
7474 : ${AR_FLAGS=cru}
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7487 $as_echo_n "checking for archiver @FILE support... " >&6; }
7488 if ${lt_cv_ar_at_file+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   lt_cv_ar_at_file=no
7492    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h.  */
7494
7495 int
7496 main ()
7497 {
7498
7499   ;
7500   return 0;
7501 }
7502 _ACEOF
7503 if ac_fn_c_try_compile "$LINENO"; then :
7504   echo conftest.$ac_objext > conftest.lst
7505       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7506       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7507   (eval $lt_ar_try) 2>&5
7508   ac_status=$?
7509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510   test $ac_status = 0; }
7511       if test "$ac_status" -eq 0; then
7512         # Ensure the archiver fails upon bogus file names.
7513         rm -f conftest.$ac_objext libconftest.a
7514         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7515   (eval $lt_ar_try) 2>&5
7516   ac_status=$?
7517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518   test $ac_status = 0; }
7519         if test "$ac_status" -ne 0; then
7520           lt_cv_ar_at_file=@
7521         fi
7522       fi
7523       rm -f conftest.* libconftest.a
7524
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527
7528 fi
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7530 $as_echo "$lt_cv_ar_at_file" >&6; }
7531
7532 if test "x$lt_cv_ar_at_file" = xno; then
7533   archiver_list_spec=
7534 else
7535   archiver_list_spec=$lt_cv_ar_at_file
7536 fi
7537
7538
7539
7540
7541
7542
7543
7544 if test -n "$ac_tool_prefix"; then
7545   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}strip; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_STRIP+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   if test -n "$STRIP"; then
7553   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 STRIP=$ac_cv_prog_STRIP
7573 if test -n "$STRIP"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7575 $as_echo "$STRIP" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581
7582 fi
7583 if test -z "$ac_cv_prog_STRIP"; then
7584   ac_ct_STRIP=$STRIP
7585   # Extract the first word of "strip", so it can be a program name with args.
7586 set dummy strip; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$ac_ct_STRIP"; then
7593   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_prog_ac_ct_STRIP="strip"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7613 if test -n "$ac_ct_STRIP"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7615 $as_echo "$ac_ct_STRIP" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621   if test "x$ac_ct_STRIP" = x; then
7622     STRIP=":"
7623   else
7624     case $cross_compiling:$ac_tool_warned in
7625 yes:)
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7629 esac
7630     STRIP=$ac_ct_STRIP
7631   fi
7632 else
7633   STRIP="$ac_cv_prog_STRIP"
7634 fi
7635
7636 test -z "$STRIP" && STRIP=:
7637
7638
7639
7640
7641
7642
7643 if test -n "$ac_tool_prefix"; then
7644   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_RANLIB+:} false; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   if test -n "$RANLIB"; then
7652   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659     for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666   done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 RANLIB=$ac_cv_prog_RANLIB
7672 if test -n "$RANLIB"; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7674 $as_echo "$RANLIB" >&6; }
7675 else
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680
7681 fi
7682 if test -z "$ac_cv_prog_RANLIB"; then
7683   ac_ct_RANLIB=$RANLIB
7684   # Extract the first word of "ranlib", so it can be a program name with args.
7685 set dummy ranlib; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7689   $as_echo_n "(cached) " >&6
7690 else
7691   if test -n "$ac_ct_RANLIB"; then
7692   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699     for ac_exec_ext in '' $ac_executable_extensions; do
7700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701     ac_cv_prog_ac_ct_RANLIB="ranlib"
7702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706   done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7712 if test -n "$ac_ct_RANLIB"; then
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7714 $as_echo "$ac_ct_RANLIB" >&6; }
7715 else
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720   if test "x$ac_ct_RANLIB" = x; then
7721     RANLIB=":"
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727 ac_tool_warned=yes ;;
7728 esac
7729     RANLIB=$ac_ct_RANLIB
7730   fi
7731 else
7732   RANLIB="$ac_cv_prog_RANLIB"
7733 fi
7734
7735 test -z "$RANLIB" && RANLIB=:
7736
7737
7738
7739
7740
7741
7742 # Determine commands to create old-style static archives.
7743 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7744 old_postinstall_cmds='chmod 644 $oldlib'
7745 old_postuninstall_cmds=
7746
7747 if test -n "$RANLIB"; then
7748   case $host_os in
7749   openbsd*)
7750     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7751     ;;
7752   *)
7753     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7754     ;;
7755   esac
7756   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7757 fi
7758
7759 case $host_os in
7760   darwin*)
7761     lock_old_archive_extraction=yes ;;
7762   *)
7763     lock_old_archive_extraction=no ;;
7764 esac
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 # If no C compiler was specified, use CC.
7805 LTCC=${LTCC-"$CC"}
7806
7807 # If no C compiler flags were specified, use CFLAGS.
7808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7809
7810 # Allow CC to be a program name with arguments.
7811 compiler=$CC
7812
7813
7814 # Check for command to grab the raw symbol name followed by C symbol from nm.
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7816 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7817 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820
7821 # These are sane defaults that work on at least a few old systems.
7822 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7823
7824 # Character class describing NM global symbol codes.
7825 symcode='[BCDEGRST]'
7826
7827 # Regexp to match symbols that can be accessed directly from C.
7828 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7829
7830 # Define system-specific variables.
7831 case $host_os in
7832 aix*)
7833   symcode='[BCDT]'
7834   ;;
7835 cygwin* | mingw* | pw32* | cegcc*)
7836   symcode='[ABCDGISTW]'
7837   ;;
7838 hpux*)
7839   if test "$host_cpu" = ia64; then
7840     symcode='[ABCDEGRST]'
7841   fi
7842   ;;
7843 irix* | nonstopux*)
7844   symcode='[BCDEGRST]'
7845   ;;
7846 osf*)
7847   symcode='[BCDEGQRST]'
7848   ;;
7849 solaris*)
7850   symcode='[BDRT]'
7851   ;;
7852 sco3.2v5*)
7853   symcode='[DT]'
7854   ;;
7855 sysv4.2uw2*)
7856   symcode='[DT]'
7857   ;;
7858 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7859   symcode='[ABDT]'
7860   ;;
7861 sysv4)
7862   symcode='[DFNSTU]'
7863   ;;
7864 esac
7865
7866 # If we're using GNU nm, then use its standard symbol codes.
7867 case `$NM -V 2>&1` in
7868 *GNU* | *'with BFD'*)
7869   symcode='[ABCDGIRSTW]' ;;
7870 esac
7871
7872 # Transform an extracted symbol line into a proper C declaration.
7873 # Some systems (esp. on ia64) link data and code symbols differently,
7874 # so use this general approach.
7875 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7876
7877 # Transform an extracted symbol line into symbol name and symbol address
7878 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7879 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'"
7880
7881 # Handle CRLF in mingw tool chain
7882 opt_cr=
7883 case $build_os in
7884 mingw*)
7885   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7886   ;;
7887 esac
7888
7889 # Try without a prefix underscore, then with it.
7890 for ac_symprfx in "" "_"; do
7891
7892   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7893   symxfrm="\\1 $ac_symprfx\\2 \\2"
7894
7895   # Write the raw and C identifiers.
7896   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7897     # Fake it for dumpbin and say T for any non-static function
7898     # and D for any global variable.
7899     # Also find C++ and __fastcall symbols from MSVC++,
7900     # which start with @ or ?.
7901     lt_cv_sys_global_symbol_pipe="$AWK '"\
7902 "     {last_section=section; section=\$ 3};"\
7903 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7904 "     \$ 0!~/External *\|/{next};"\
7905 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7906 "     {if(hide[section]) next};"\
7907 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7908 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7909 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7910 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7911 "     ' prfx=^$ac_symprfx"
7912   else
7913     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7914   fi
7915   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7916
7917   # Check to see that the pipe works correctly.
7918   pipe_works=no
7919
7920   rm -f conftest*
7921   cat > conftest.$ac_ext <<_LT_EOF
7922 #ifdef __cplusplus
7923 extern "C" {
7924 #endif
7925 char nm_test_var;
7926 void nm_test_func(void);
7927 void nm_test_func(void){}
7928 #ifdef __cplusplus
7929 }
7930 #endif
7931 int main(){nm_test_var='a';nm_test_func();return(0);}
7932 _LT_EOF
7933
7934   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7935   (eval $ac_compile) 2>&5
7936   ac_status=$?
7937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938   test $ac_status = 0; }; then
7939     # Now try to grab the symbols.
7940     nlist=conftest.nm
7941     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7942   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7943   ac_status=$?
7944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7945   test $ac_status = 0; } && test -s "$nlist"; then
7946       # Try sorting and uniquifying the output.
7947       if sort "$nlist" | uniq > "$nlist"T; then
7948         mv -f "$nlist"T "$nlist"
7949       else
7950         rm -f "$nlist"T
7951       fi
7952
7953       # Make sure that we snagged all the symbols we need.
7954       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7955         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7956           cat <<_LT_EOF > conftest.$ac_ext
7957 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7958 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7959 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7960    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7961 # define LT_DLSYM_CONST
7962 #elif defined(__osf__)
7963 /* This system does not cope well with relocations in const data.  */
7964 # define LT_DLSYM_CONST
7965 #else
7966 # define LT_DLSYM_CONST const
7967 #endif
7968
7969 #ifdef __cplusplus
7970 extern "C" {
7971 #endif
7972
7973 _LT_EOF
7974           # Now generate the symbol file.
7975           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7976
7977           cat <<_LT_EOF >> conftest.$ac_ext
7978
7979 /* The mapping between symbol names and symbols.  */
7980 LT_DLSYM_CONST struct {
7981   const char *name;
7982   void       *address;
7983 }
7984 lt__PROGRAM__LTX_preloaded_symbols[] =
7985 {
7986   { "@PROGRAM@", (void *) 0 },
7987 _LT_EOF
7988           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7989           cat <<\_LT_EOF >> conftest.$ac_ext
7990   {0, (void *) 0}
7991 };
7992
7993 /* This works around a problem in FreeBSD linker */
7994 #ifdef FREEBSD_WORKAROUND
7995 static const void *lt_preloaded_setup() {
7996   return lt__PROGRAM__LTX_preloaded_symbols;
7997 }
7998 #endif
7999
8000 #ifdef __cplusplus
8001 }
8002 #endif
8003 _LT_EOF
8004           # Now try linking the two files.
8005           mv conftest.$ac_objext conftstm.$ac_objext
8006           lt_globsym_save_LIBS=$LIBS
8007           lt_globsym_save_CFLAGS=$CFLAGS
8008           LIBS="conftstm.$ac_objext"
8009           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8010           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8011   (eval $ac_link) 2>&5
8012   ac_status=$?
8013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8014   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8015             pipe_works=yes
8016           fi
8017           LIBS=$lt_globsym_save_LIBS
8018           CFLAGS=$lt_globsym_save_CFLAGS
8019         else
8020           echo "cannot find nm_test_func in $nlist" >&5
8021         fi
8022       else
8023         echo "cannot find nm_test_var in $nlist" >&5
8024       fi
8025     else
8026       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8027     fi
8028   else
8029     echo "$progname: failed program was:" >&5
8030     cat conftest.$ac_ext >&5
8031   fi
8032   rm -rf conftest* conftst*
8033
8034   # Do not use the global_symbol_pipe unless it works.
8035   if test "$pipe_works" = yes; then
8036     break
8037   else
8038     lt_cv_sys_global_symbol_pipe=
8039   fi
8040 done
8041
8042 fi
8043
8044 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8045   lt_cv_sys_global_symbol_to_cdecl=
8046 fi
8047 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8049 $as_echo "failed" >&6; }
8050 else
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8052 $as_echo "ok" >&6; }
8053 fi
8054
8055 # Response file support.
8056 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8057   nm_file_list_spec='@'
8058 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8059   nm_file_list_spec='@'
8060 fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8089 $as_echo_n "checking for sysroot... " >&6; }
8090
8091 # Check whether --with-sysroot was given.
8092 if test "${with_sysroot+set}" = set; then :
8093   withval=$with_sysroot;
8094 else
8095   with_sysroot=no
8096 fi
8097
8098
8099 lt_sysroot=
8100 case ${with_sysroot} in #(
8101  yes)
8102    if test "$GCC" = yes; then
8103      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8104    fi
8105    ;; #(
8106  /*)
8107    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8108    ;; #(
8109  no|'')
8110    ;; #(
8111  *)
8112    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8113 $as_echo "${with_sysroot}" >&6; }
8114    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8115    ;;
8116 esac
8117
8118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8119 $as_echo "${lt_sysroot:-no}" >&6; }
8120
8121
8122
8123
8124
8125 # Check whether --enable-libtool-lock was given.
8126 if test "${enable_libtool_lock+set}" = set; then :
8127   enableval=$enable_libtool_lock;
8128 fi
8129
8130 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8131
8132 # Some flags need to be propagated to the compiler or linker for good
8133 # libtool support.
8134 case $host in
8135 ia64-*-hpux*)
8136   # Find out which ABI we are using.
8137   echo 'int i;' > conftest.$ac_ext
8138   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8139   (eval $ac_compile) 2>&5
8140   ac_status=$?
8141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8142   test $ac_status = 0; }; then
8143     case `/usr/bin/file conftest.$ac_objext` in
8144       *ELF-32*)
8145         HPUX_IA64_MODE="32"
8146         ;;
8147       *ELF-64*)
8148         HPUX_IA64_MODE="64"
8149         ;;
8150     esac
8151   fi
8152   rm -rf conftest*
8153   ;;
8154 *-*-irix6*)
8155   # Find out which ABI we are using.
8156   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8157   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8158   (eval $ac_compile) 2>&5
8159   ac_status=$?
8160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8161   test $ac_status = 0; }; then
8162     if test "$lt_cv_prog_gnu_ld" = yes; then
8163       case `/usr/bin/file conftest.$ac_objext` in
8164         *32-bit*)
8165           LD="${LD-ld} -melf32bsmip"
8166           ;;
8167         *N32*)
8168           LD="${LD-ld} -melf32bmipn32"
8169           ;;
8170         *64-bit*)
8171           LD="${LD-ld} -melf64bmip"
8172         ;;
8173       esac
8174     else
8175       case `/usr/bin/file conftest.$ac_objext` in
8176         *32-bit*)
8177           LD="${LD-ld} -32"
8178           ;;
8179         *N32*)
8180           LD="${LD-ld} -n32"
8181           ;;
8182         *64-bit*)
8183           LD="${LD-ld} -64"
8184           ;;
8185       esac
8186     fi
8187   fi
8188   rm -rf conftest*
8189   ;;
8190
8191 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8192 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8193   # Find out which ABI we are using.
8194   echo 'int i;' > conftest.$ac_ext
8195   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8196   (eval $ac_compile) 2>&5
8197   ac_status=$?
8198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8199   test $ac_status = 0; }; then
8200     case `/usr/bin/file conftest.o` in
8201       *32-bit*)
8202         case $host in
8203           x86_64-*kfreebsd*-gnu)
8204             LD="${LD-ld} -m elf_i386_fbsd"
8205             ;;
8206           x86_64-*linux*)
8207             LD="${LD-ld} -m elf_i386"
8208             ;;
8209           ppc64-*linux*|powerpc64-*linux*)
8210             LD="${LD-ld} -m elf32ppclinux"
8211             ;;
8212           s390x-*linux*)
8213             LD="${LD-ld} -m elf_s390"
8214             ;;
8215           sparc64-*linux*)
8216             LD="${LD-ld} -m elf32_sparc"
8217             ;;
8218         esac
8219         ;;
8220       *64-bit*)
8221         case $host in
8222           x86_64-*kfreebsd*-gnu)
8223             LD="${LD-ld} -m elf_x86_64_fbsd"
8224             ;;
8225           x86_64-*linux*)
8226             LD="${LD-ld} -m elf_x86_64"
8227             ;;
8228           ppc*-*linux*|powerpc*-*linux*)
8229             LD="${LD-ld} -m elf64ppc"
8230             ;;
8231           s390*-*linux*|s390*-*tpf*)
8232             LD="${LD-ld} -m elf64_s390"
8233             ;;
8234           sparc*-*linux*)
8235             LD="${LD-ld} -m elf64_sparc"
8236             ;;
8237         esac
8238         ;;
8239     esac
8240   fi
8241   rm -rf conftest*
8242   ;;
8243
8244 *-*-sco3.2v5*)
8245   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8246   SAVE_CFLAGS="$CFLAGS"
8247   CFLAGS="$CFLAGS -belf"
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8249 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8250 if ${lt_cv_cc_needs_belf+:} false; then :
8251   $as_echo_n "(cached) " >&6
8252 else
8253   ac_ext=c
8254 ac_cpp='$CPP $CPPFLAGS'
8255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8258
8259      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h.  */
8261
8262 int
8263 main ()
8264 {
8265
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_link "$LINENO"; then :
8271   lt_cv_cc_needs_belf=yes
8272 else
8273   lt_cv_cc_needs_belf=no
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext \
8276     conftest$ac_exeext conftest.$ac_ext
8277      ac_ext=c
8278 ac_cpp='$CPP $CPPFLAGS'
8279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283 fi
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8285 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8286   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8287     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8288     CFLAGS="$SAVE_CFLAGS"
8289   fi
8290   ;;
8291 sparc*-*solaris*)
8292   # Find out which ABI we are using.
8293   echo 'int i;' > conftest.$ac_ext
8294   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8295   (eval $ac_compile) 2>&5
8296   ac_status=$?
8297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8298   test $ac_status = 0; }; then
8299     case `/usr/bin/file conftest.o` in
8300     *64-bit*)
8301       case $lt_cv_prog_gnu_ld in
8302       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8303       *)
8304         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8305           LD="${LD-ld} -64"
8306         fi
8307         ;;
8308       esac
8309       ;;
8310     esac
8311   fi
8312   rm -rf conftest*
8313   ;;
8314 esac
8315
8316 need_locks="$enable_libtool_lock"
8317
8318 if test -n "$ac_tool_prefix"; then
8319   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8320 set dummy ${ac_tool_prefix}mt; ac_word=$2
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 $as_echo_n "checking for $ac_word... " >&6; }
8323 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8324   $as_echo_n "(cached) " >&6
8325 else
8326   if test -n "$MANIFEST_TOOL"; then
8327   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332   IFS=$as_save_IFS
8333   test -z "$as_dir" && as_dir=.
8334     for ac_exec_ext in '' $ac_executable_extensions; do
8335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338     break 2
8339   fi
8340 done
8341   done
8342 IFS=$as_save_IFS
8343
8344 fi
8345 fi
8346 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8347 if test -n "$MANIFEST_TOOL"; then
8348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8349 $as_echo "$MANIFEST_TOOL" >&6; }
8350 else
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8353 fi
8354
8355
8356 fi
8357 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8358   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8359   # Extract the first word of "mt", so it can be a program name with args.
8360 set dummy mt; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   if test -n "$ac_ct_MANIFEST_TOOL"; then
8367   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8368 else
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8371 do
8372   IFS=$as_save_IFS
8373   test -z "$as_dir" && as_dir=.
8374     for ac_exec_ext in '' $ac_executable_extensions; do
8375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378     break 2
8379   fi
8380 done
8381   done
8382 IFS=$as_save_IFS
8383
8384 fi
8385 fi
8386 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8387 if test -n "$ac_ct_MANIFEST_TOOL"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8389 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8396     MANIFEST_TOOL=":"
8397   else
8398     case $cross_compiling:$ac_tool_warned in
8399 yes:)
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8402 ac_tool_warned=yes ;;
8403 esac
8404     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8405   fi
8406 else
8407   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8408 fi
8409
8410 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8412 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8413 if ${lt_cv_path_mainfest_tool+:} false; then :
8414   $as_echo_n "(cached) " >&6
8415 else
8416   lt_cv_path_mainfest_tool=no
8417   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8418   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8419   cat conftest.err >&5
8420   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8421     lt_cv_path_mainfest_tool=yes
8422   fi
8423   rm -f conftest*
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8426 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8427 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8428   MANIFEST_TOOL=:
8429 fi
8430
8431
8432
8433
8434
8435
8436   case $host_os in
8437     rhapsody* | darwin*)
8438     if test -n "$ac_tool_prefix"; then
8439   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8440 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   if test -n "$DSYMUTIL"; then
8447   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452   IFS=$as_save_IFS
8453   test -z "$as_dir" && as_dir=.
8454     for ac_exec_ext in '' $ac_executable_extensions; do
8455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458     break 2
8459   fi
8460 done
8461   done
8462 IFS=$as_save_IFS
8463
8464 fi
8465 fi
8466 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8467 if test -n "$DSYMUTIL"; then
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8469 $as_echo "$DSYMUTIL" >&6; }
8470 else
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475
8476 fi
8477 if test -z "$ac_cv_prog_DSYMUTIL"; then
8478   ac_ct_DSYMUTIL=$DSYMUTIL
8479   # Extract the first word of "dsymutil", so it can be a program name with args.
8480 set dummy dsymutil; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8484   $as_echo_n "(cached) " >&6
8485 else
8486   if test -n "$ac_ct_DSYMUTIL"; then
8487   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492   IFS=$as_save_IFS
8493   test -z "$as_dir" && as_dir=.
8494     for ac_exec_ext in '' $ac_executable_extensions; do
8495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498     break 2
8499   fi
8500 done
8501   done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8507 if test -n "$ac_ct_DSYMUTIL"; then
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8509 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8510 else
8511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8513 fi
8514
8515   if test "x$ac_ct_DSYMUTIL" = x; then
8516     DSYMUTIL=":"
8517   else
8518     case $cross_compiling:$ac_tool_warned in
8519 yes:)
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522 ac_tool_warned=yes ;;
8523 esac
8524     DSYMUTIL=$ac_ct_DSYMUTIL
8525   fi
8526 else
8527   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8528 fi
8529
8530     if test -n "$ac_tool_prefix"; then
8531   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8532 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_NMEDIT+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   if test -n "$NMEDIT"; then
8539   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8543 do
8544   IFS=$as_save_IFS
8545   test -z "$as_dir" && as_dir=.
8546     for ac_exec_ext in '' $ac_executable_extensions; do
8547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8548     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550     break 2
8551   fi
8552 done
8553   done
8554 IFS=$as_save_IFS
8555
8556 fi
8557 fi
8558 NMEDIT=$ac_cv_prog_NMEDIT
8559 if test -n "$NMEDIT"; then
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8561 $as_echo "$NMEDIT" >&6; }
8562 else
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 fi
8566
8567
8568 fi
8569 if test -z "$ac_cv_prog_NMEDIT"; then
8570   ac_ct_NMEDIT=$NMEDIT
8571   # Extract the first word of "nmedit", so it can be a program name with args.
8572 set dummy nmedit; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8576   $as_echo_n "(cached) " >&6
8577 else
8578   if test -n "$ac_ct_NMEDIT"; then
8579   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584   IFS=$as_save_IFS
8585   test -z "$as_dir" && as_dir=.
8586     for ac_exec_ext in '' $ac_executable_extensions; do
8587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590     break 2
8591   fi
8592 done
8593   done
8594 IFS=$as_save_IFS
8595
8596 fi
8597 fi
8598 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8599 if test -n "$ac_ct_NMEDIT"; then
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8601 $as_echo "$ac_ct_NMEDIT" >&6; }
8602 else
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8605 fi
8606
8607   if test "x$ac_ct_NMEDIT" = x; then
8608     NMEDIT=":"
8609   else
8610     case $cross_compiling:$ac_tool_warned in
8611 yes:)
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8614 ac_tool_warned=yes ;;
8615 esac
8616     NMEDIT=$ac_ct_NMEDIT
8617   fi
8618 else
8619   NMEDIT="$ac_cv_prog_NMEDIT"
8620 fi
8621
8622     if test -n "$ac_tool_prefix"; then
8623   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8624 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_LIPO+:} false; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630   if test -n "$LIPO"; then
8631   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636   IFS=$as_save_IFS
8637   test -z "$as_dir" && as_dir=.
8638     for ac_exec_ext in '' $ac_executable_extensions; do
8639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642     break 2
8643   fi
8644 done
8645   done
8646 IFS=$as_save_IFS
8647
8648 fi
8649 fi
8650 LIPO=$ac_cv_prog_LIPO
8651 if test -n "$LIPO"; then
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8653 $as_echo "$LIPO" >&6; }
8654 else
8655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8657 fi
8658
8659
8660 fi
8661 if test -z "$ac_cv_prog_LIPO"; then
8662   ac_ct_LIPO=$LIPO
8663   # Extract the first word of "lipo", so it can be a program name with args.
8664 set dummy lipo; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8668   $as_echo_n "(cached) " >&6
8669 else
8670   if test -n "$ac_ct_LIPO"; then
8671   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8675 do
8676   IFS=$as_save_IFS
8677   test -z "$as_dir" && as_dir=.
8678     for ac_exec_ext in '' $ac_executable_extensions; do
8679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680     ac_cv_prog_ac_ct_LIPO="lipo"
8681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682     break 2
8683   fi
8684 done
8685   done
8686 IFS=$as_save_IFS
8687
8688 fi
8689 fi
8690 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8691 if test -n "$ac_ct_LIPO"; then
8692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8693 $as_echo "$ac_ct_LIPO" >&6; }
8694 else
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8697 fi
8698
8699   if test "x$ac_ct_LIPO" = x; then
8700     LIPO=":"
8701   else
8702     case $cross_compiling:$ac_tool_warned in
8703 yes:)
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8706 ac_tool_warned=yes ;;
8707 esac
8708     LIPO=$ac_ct_LIPO
8709   fi
8710 else
8711   LIPO="$ac_cv_prog_LIPO"
8712 fi
8713
8714     if test -n "$ac_tool_prefix"; then
8715   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8716 set dummy ${ac_tool_prefix}otool; ac_word=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if ${ac_cv_prog_OTOOL+:} false; then :
8720   $as_echo_n "(cached) " >&6
8721 else
8722   if test -n "$OTOOL"; then
8723   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8724 else
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8727 do
8728   IFS=$as_save_IFS
8729   test -z "$as_dir" && as_dir=.
8730     for ac_exec_ext in '' $ac_executable_extensions; do
8731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8732     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734     break 2
8735   fi
8736 done
8737   done
8738 IFS=$as_save_IFS
8739
8740 fi
8741 fi
8742 OTOOL=$ac_cv_prog_OTOOL
8743 if test -n "$OTOOL"; then
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8745 $as_echo "$OTOOL" >&6; }
8746 else
8747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8749 fi
8750
8751
8752 fi
8753 if test -z "$ac_cv_prog_OTOOL"; then
8754   ac_ct_OTOOL=$OTOOL
8755   # Extract the first word of "otool", so it can be a program name with args.
8756 set dummy otool; ac_word=$2
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758 $as_echo_n "checking for $ac_word... " >&6; }
8759 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8760   $as_echo_n "(cached) " >&6
8761 else
8762   if test -n "$ac_ct_OTOOL"; then
8763   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8764 else
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768   IFS=$as_save_IFS
8769   test -z "$as_dir" && as_dir=.
8770     for ac_exec_ext in '' $ac_executable_extensions; do
8771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772     ac_cv_prog_ac_ct_OTOOL="otool"
8773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774     break 2
8775   fi
8776 done
8777   done
8778 IFS=$as_save_IFS
8779
8780 fi
8781 fi
8782 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8783 if test -n "$ac_ct_OTOOL"; then
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8785 $as_echo "$ac_ct_OTOOL" >&6; }
8786 else
8787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8789 fi
8790
8791   if test "x$ac_ct_OTOOL" = x; then
8792     OTOOL=":"
8793   else
8794     case $cross_compiling:$ac_tool_warned in
8795 yes:)
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8798 ac_tool_warned=yes ;;
8799 esac
8800     OTOOL=$ac_ct_OTOOL
8801   fi
8802 else
8803   OTOOL="$ac_cv_prog_OTOOL"
8804 fi
8805
8806     if test -n "$ac_tool_prefix"; then
8807   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8808 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if ${ac_cv_prog_OTOOL64+:} false; then :
8812   $as_echo_n "(cached) " >&6
8813 else
8814   if test -n "$OTOOL64"; then
8815   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8816 else
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in $PATH
8819 do
8820   IFS=$as_save_IFS
8821   test -z "$as_dir" && as_dir=.
8822     for ac_exec_ext in '' $ac_executable_extensions; do
8823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826     break 2
8827   fi
8828 done
8829   done
8830 IFS=$as_save_IFS
8831
8832 fi
8833 fi
8834 OTOOL64=$ac_cv_prog_OTOOL64
8835 if test -n "$OTOOL64"; then
8836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8837 $as_echo "$OTOOL64" >&6; }
8838 else
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8841 fi
8842
8843
8844 fi
8845 if test -z "$ac_cv_prog_OTOOL64"; then
8846   ac_ct_OTOOL64=$OTOOL64
8847   # Extract the first word of "otool64", so it can be a program name with args.
8848 set dummy otool64; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8852   $as_echo_n "(cached) " >&6
8853 else
8854   if test -n "$ac_ct_OTOOL64"; then
8855   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8856 else
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 for as_dir in $PATH
8859 do
8860   IFS=$as_save_IFS
8861   test -z "$as_dir" && as_dir=.
8862     for ac_exec_ext in '' $ac_executable_extensions; do
8863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8864     ac_cv_prog_ac_ct_OTOOL64="otool64"
8865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8866     break 2
8867   fi
8868 done
8869   done
8870 IFS=$as_save_IFS
8871
8872 fi
8873 fi
8874 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8875 if test -n "$ac_ct_OTOOL64"; then
8876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8877 $as_echo "$ac_ct_OTOOL64" >&6; }
8878 else
8879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8881 fi
8882
8883   if test "x$ac_ct_OTOOL64" = x; then
8884     OTOOL64=":"
8885   else
8886     case $cross_compiling:$ac_tool_warned in
8887 yes:)
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8890 ac_tool_warned=yes ;;
8891 esac
8892     OTOOL64=$ac_ct_OTOOL64
8893   fi
8894 else
8895   OTOOL64="$ac_cv_prog_OTOOL64"
8896 fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8925 $as_echo_n "checking for -single_module linker flag... " >&6; }
8926 if ${lt_cv_apple_cc_single_mod+:} false; then :
8927   $as_echo_n "(cached) " >&6
8928 else
8929   lt_cv_apple_cc_single_mod=no
8930       if test -z "${LT_MULTI_MODULE}"; then
8931         # By default we will add the -single_module flag. You can override
8932         # by either setting the environment variable LT_MULTI_MODULE
8933         # non-empty at configure time, or by adding -multi_module to the
8934         # link flags.
8935         rm -rf libconftest.dylib*
8936         echo "int foo(void){return 1;}" > conftest.c
8937         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8938 -dynamiclib -Wl,-single_module conftest.c" >&5
8939         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8940           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8941         _lt_result=$?
8942         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8943           lt_cv_apple_cc_single_mod=yes
8944         else
8945           cat conftest.err >&5
8946         fi
8947         rm -rf libconftest.dylib*
8948         rm -f conftest.*
8949       fi
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8952 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8954 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8955 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   lt_cv_ld_exported_symbols_list=no
8959       save_LDFLAGS=$LDFLAGS
8960       echo "_main" > conftest.sym
8961       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8962       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h.  */
8964
8965 int
8966 main ()
8967 {
8968
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 if ac_fn_c_try_link "$LINENO"; then :
8974   lt_cv_ld_exported_symbols_list=yes
8975 else
8976   lt_cv_ld_exported_symbols_list=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext \
8979     conftest$ac_exeext conftest.$ac_ext
8980         LDFLAGS="$save_LDFLAGS"
8981
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8984 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8986 $as_echo_n "checking for -force_load linker flag... " >&6; }
8987 if ${lt_cv_ld_force_load+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   lt_cv_ld_force_load=no
8991       cat > conftest.c << _LT_EOF
8992 int forced_loaded() { return 2;}
8993 _LT_EOF
8994       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8995       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8996       echo "$AR cru libconftest.a conftest.o" >&5
8997       $AR cru libconftest.a conftest.o 2>&5
8998       echo "$RANLIB libconftest.a" >&5
8999       $RANLIB libconftest.a 2>&5
9000       cat > conftest.c << _LT_EOF
9001 int main() { return 0;}
9002 _LT_EOF
9003       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9004       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9005       _lt_result=$?
9006       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9007         lt_cv_ld_force_load=yes
9008       else
9009         cat conftest.err >&5
9010       fi
9011         rm -f conftest.err libconftest.a conftest conftest.c
9012         rm -rf conftest.dSYM
9013
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9016 $as_echo "$lt_cv_ld_force_load" >&6; }
9017     case $host_os in
9018     rhapsody* | darwin1.[012])
9019       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9020     darwin1.*)
9021       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9022     darwin*) # darwin 5.x on
9023       # if running on 10.5 or later, the deployment target defaults
9024       # to the OS version, if on x86, and 10.4, the deployment
9025       # target defaults to 10.4. Don't you love it?
9026       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9027         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9028           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9029         10.[012]*)
9030           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9031         10.*)
9032           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9033       esac
9034     ;;
9035   esac
9036     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9037       _lt_dar_single_mod='$single_module'
9038     fi
9039     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9040       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9041     else
9042       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9043     fi
9044     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9045       _lt_dsymutil='~$DSYMUTIL $lib || :'
9046     else
9047       _lt_dsymutil=
9048     fi
9049     ;;
9050   esac
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9053 $as_echo_n "checking for ANSI C header files... " >&6; }
9054 if ${ac_cv_header_stdc+:} false; then :
9055   $as_echo_n "(cached) " >&6
9056 else
9057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h.  */
9059 #include <stdlib.h>
9060 #include <stdarg.h>
9061 #include <string.h>
9062 #include <float.h>
9063
9064 int
9065 main ()
9066 {
9067
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 if ac_fn_c_try_compile "$LINENO"; then :
9073   ac_cv_header_stdc=yes
9074 else
9075   ac_cv_header_stdc=no
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078
9079 if test $ac_cv_header_stdc = yes; then
9080   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h.  */
9083 #include <string.h>
9084
9085 _ACEOF
9086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9087   $EGREP "memchr" >/dev/null 2>&1; then :
9088
9089 else
9090   ac_cv_header_stdc=no
9091 fi
9092 rm -f conftest*
9093
9094 fi
9095
9096 if test $ac_cv_header_stdc = yes; then
9097   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h.  */
9100 #include <stdlib.h>
9101
9102 _ACEOF
9103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104   $EGREP "free" >/dev/null 2>&1; then :
9105
9106 else
9107   ac_cv_header_stdc=no
9108 fi
9109 rm -f conftest*
9110
9111 fi
9112
9113 if test $ac_cv_header_stdc = yes; then
9114   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9115   if test "$cross_compiling" = yes; then :
9116   :
9117 else
9118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h.  */
9120 #include <ctype.h>
9121 #include <stdlib.h>
9122 #if ((' ' & 0x0FF) == 0x020)
9123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9125 #else
9126 # define ISLOWER(c) \
9127                    (('a' <= (c) && (c) <= 'i') \
9128                      || ('j' <= (c) && (c) <= 'r') \
9129                      || ('s' <= (c) && (c) <= 'z'))
9130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9131 #endif
9132
9133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9134 int
9135 main ()
9136 {
9137   int i;
9138   for (i = 0; i < 256; i++)
9139     if (XOR (islower (i), ISLOWER (i))
9140         || toupper (i) != TOUPPER (i))
9141       return 2;
9142   return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_run "$LINENO"; then :
9146
9147 else
9148   ac_cv_header_stdc=no
9149 fi
9150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9151   conftest.$ac_objext conftest.beam conftest.$ac_ext
9152 fi
9153
9154 fi
9155 fi
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9157 $as_echo "$ac_cv_header_stdc" >&6; }
9158 if test $ac_cv_header_stdc = yes; then
9159
9160 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9161
9162 fi
9163
9164 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9166                   inttypes.h stdint.h unistd.h
9167 do :
9168   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9170 "
9171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9172   cat >>confdefs.h <<_ACEOF
9173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174 _ACEOF
9175
9176 fi
9177
9178 done
9179
9180
9181 for ac_header in dlfcn.h
9182 do :
9183   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9184 "
9185 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9186   cat >>confdefs.h <<_ACEOF
9187 #define HAVE_DLFCN_H 1
9188 _ACEOF
9189
9190 fi
9191
9192 done
9193
9194
9195
9196
9197 func_stripname_cnf ()
9198 {
9199   case ${2} in
9200   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9201   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9202   esac
9203 } # func_stripname_cnf
9204
9205
9206
9207
9208
9209 # Set options
9210 # Check whether --enable-shared was given.
9211 if test "${enable_shared+set}" = set; then :
9212   enableval=$enable_shared; p=${PACKAGE-default}
9213     case $enableval in
9214     yes) enable_shared=yes ;;
9215     no) enable_shared=no ;;
9216     *)
9217       enable_shared=no
9218       # Look at the argument we got.  We use all the common list separators.
9219       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9220       for pkg in $enableval; do
9221         IFS="$lt_save_ifs"
9222         if test "X$pkg" = "X$p"; then
9223           enable_shared=yes
9224         fi
9225       done
9226       IFS="$lt_save_ifs"
9227       ;;
9228     esac
9229 else
9230   enable_shared=yes
9231 fi
9232
9233
9234
9235
9236
9237
9238
9239 # Check whether --enable-static was given.
9240 if test "${enable_static+set}" = set; then :
9241   enableval=$enable_static; p=${PACKAGE-default}
9242     case $enableval in
9243     yes) enable_static=yes ;;
9244     no) enable_static=no ;;
9245     *)
9246      enable_static=no
9247       # Look at the argument we got.  We use all the common list separators.
9248       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9249       for pkg in $enableval; do
9250         IFS="$lt_save_ifs"
9251         if test "X$pkg" = "X$p"; then
9252           enable_static=yes
9253         fi
9254       done
9255       IFS="$lt_save_ifs"
9256       ;;
9257     esac
9258 else
9259   enable_static=no
9260 fi
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271         enable_dlopen=no
9272
9273
9274   enable_win32_dll=no
9275
9276
9277
9278
9279
9280 # Check whether --with-pic was given.
9281 if test "${with_pic+set}" = set; then :
9282   withval=$with_pic; pic_mode="$withval"
9283 else
9284   pic_mode=default
9285 fi
9286
9287
9288 test -z "$pic_mode" && pic_mode=default
9289
9290
9291
9292
9293
9294
9295
9296   # Check whether --enable-fast-install was given.
9297 if test "${enable_fast_install+set}" = set; then :
9298   enableval=$enable_fast_install; p=${PACKAGE-default}
9299     case $enableval in
9300     yes) enable_fast_install=yes ;;
9301     no) enable_fast_install=no ;;
9302     *)
9303       enable_fast_install=no
9304       # Look at the argument we got.  We use all the common list separators.
9305       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9306       for pkg in $enableval; do
9307         IFS="$lt_save_ifs"
9308         if test "X$pkg" = "X$p"; then
9309           enable_fast_install=yes
9310         fi
9311       done
9312       IFS="$lt_save_ifs"
9313       ;;
9314     esac
9315 else
9316   enable_fast_install=yes
9317 fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 # This can be used to rebuild libtool when needed
9330 LIBTOOL_DEPS="$ltmain"
9331
9332 # Always use our own libtool.
9333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360 test -z "$LN_S" && LN_S="ln -s"
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375 if test -n "${ZSH_VERSION+set}" ; then
9376    setopt NO_GLOB_SUBST
9377 fi
9378
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9380 $as_echo_n "checking for objdir... " >&6; }
9381 if ${lt_cv_objdir+:} false; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   rm -f .libs 2>/dev/null
9385 mkdir .libs 2>/dev/null
9386 if test -d .libs; then
9387   lt_cv_objdir=.libs
9388 else
9389   # MS-DOS does not allow filenames that begin with a dot.
9390   lt_cv_objdir=_libs
9391 fi
9392 rmdir .libs 2>/dev/null
9393 fi
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9395 $as_echo "$lt_cv_objdir" >&6; }
9396 objdir=$lt_cv_objdir
9397
9398
9399
9400
9401
9402 cat >>confdefs.h <<_ACEOF
9403 #define LT_OBJDIR "$lt_cv_objdir/"
9404 _ACEOF
9405
9406
9407
9408
9409 case $host_os in
9410 aix3*)
9411   # AIX sometimes has problems with the GCC collect2 program.  For some
9412   # reason, if we set the COLLECT_NAMES environment variable, the problems
9413   # vanish in a puff of smoke.
9414   if test "X${COLLECT_NAMES+set}" != Xset; then
9415     COLLECT_NAMES=
9416     export COLLECT_NAMES
9417   fi
9418   ;;
9419 esac
9420
9421 # Global variables:
9422 ofile=libtool
9423 can_build_shared=yes
9424
9425 # All known linkers require a `.a' archive for static linking (except MSVC,
9426 # which needs '.lib').
9427 libext=a
9428
9429 with_gnu_ld="$lt_cv_prog_gnu_ld"
9430
9431 old_CC="$CC"
9432 old_CFLAGS="$CFLAGS"
9433
9434 # Set sane defaults for various variables
9435 test -z "$CC" && CC=cc
9436 test -z "$LTCC" && LTCC=$CC
9437 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9438 test -z "$LD" && LD=ld
9439 test -z "$ac_objext" && ac_objext=o
9440
9441 for cc_temp in $compiler""; do
9442   case $cc_temp in
9443     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9444     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9445     \-*) ;;
9446     *) break;;
9447   esac
9448 done
9449 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9450
9451
9452 # Only perform the check for file, if the check method requires it
9453 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9454 case $deplibs_check_method in
9455 file_magic*)
9456   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9458 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9459 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9460   $as_echo_n "(cached) " >&6
9461 else
9462   case $MAGIC_CMD in
9463 [\\/*] |  ?:[\\/]*)
9464   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9465   ;;
9466 *)
9467   lt_save_MAGIC_CMD="$MAGIC_CMD"
9468   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9469   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9470   for ac_dir in $ac_dummy; do
9471     IFS="$lt_save_ifs"
9472     test -z "$ac_dir" && ac_dir=.
9473     if test -f $ac_dir/${ac_tool_prefix}file; then
9474       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9475       if test -n "$file_magic_test_file"; then
9476         case $deplibs_check_method in
9477         "file_magic "*)
9478           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9479           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9480           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9481             $EGREP "$file_magic_regex" > /dev/null; then
9482             :
9483           else
9484             cat <<_LT_EOF 1>&2
9485
9486 *** Warning: the command libtool uses to detect shared libraries,
9487 *** $file_magic_cmd, produces output that libtool cannot recognize.
9488 *** The result is that libtool may fail to recognize shared libraries
9489 *** as such.  This will affect the creation of libtool libraries that
9490 *** depend on shared libraries, but programs linked with such libtool
9491 *** libraries will work regardless of this problem.  Nevertheless, you
9492 *** may want to report the problem to your system manager and/or to
9493 *** bug-libtool@gnu.org
9494
9495 _LT_EOF
9496           fi ;;
9497         esac
9498       fi
9499       break
9500     fi
9501   done
9502   IFS="$lt_save_ifs"
9503   MAGIC_CMD="$lt_save_MAGIC_CMD"
9504   ;;
9505 esac
9506 fi
9507
9508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9509 if test -n "$MAGIC_CMD"; then
9510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9511 $as_echo "$MAGIC_CMD" >&6; }
9512 else
9513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9515 fi
9516
9517
9518
9519
9520
9521 if test -z "$lt_cv_path_MAGIC_CMD"; then
9522   if test -n "$ac_tool_prefix"; then
9523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9524 $as_echo_n "checking for file... " >&6; }
9525 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9526   $as_echo_n "(cached) " >&6
9527 else
9528   case $MAGIC_CMD in
9529 [\\/*] |  ?:[\\/]*)
9530   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9531   ;;
9532 *)
9533   lt_save_MAGIC_CMD="$MAGIC_CMD"
9534   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9535   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9536   for ac_dir in $ac_dummy; do
9537     IFS="$lt_save_ifs"
9538     test -z "$ac_dir" && ac_dir=.
9539     if test -f $ac_dir/file; then
9540       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9541       if test -n "$file_magic_test_file"; then
9542         case $deplibs_check_method in
9543         "file_magic "*)
9544           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9545           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9546           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9547             $EGREP "$file_magic_regex" > /dev/null; then
9548             :
9549           else
9550             cat <<_LT_EOF 1>&2
9551
9552 *** Warning: the command libtool uses to detect shared libraries,
9553 *** $file_magic_cmd, produces output that libtool cannot recognize.
9554 *** The result is that libtool may fail to recognize shared libraries
9555 *** as such.  This will affect the creation of libtool libraries that
9556 *** depend on shared libraries, but programs linked with such libtool
9557 *** libraries will work regardless of this problem.  Nevertheless, you
9558 *** may want to report the problem to your system manager and/or to
9559 *** bug-libtool@gnu.org
9560
9561 _LT_EOF
9562           fi ;;
9563         esac
9564       fi
9565       break
9566     fi
9567   done
9568   IFS="$lt_save_ifs"
9569   MAGIC_CMD="$lt_save_MAGIC_CMD"
9570   ;;
9571 esac
9572 fi
9573
9574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9575 if test -n "$MAGIC_CMD"; then
9576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9577 $as_echo "$MAGIC_CMD" >&6; }
9578 else
9579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9581 fi
9582
9583
9584   else
9585     MAGIC_CMD=:
9586   fi
9587 fi
9588
9589   fi
9590   ;;
9591 esac
9592
9593 # Use C for the default configuration in the libtool script
9594
9595 lt_save_CC="$CC"
9596 ac_ext=c
9597 ac_cpp='$CPP $CPPFLAGS'
9598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9601
9602
9603 # Source file extension for C test sources.
9604 ac_ext=c
9605
9606 # Object file extension for compiled C test sources.
9607 objext=o
9608 objext=$objext
9609
9610 # Code to be used in simple compile tests
9611 lt_simple_compile_test_code="int some_variable = 0;"
9612
9613 # Code to be used in simple link tests
9614 lt_simple_link_test_code='int main(){return(0);}'
9615
9616
9617
9618
9619
9620
9621
9622 # If no C compiler was specified, use CC.
9623 LTCC=${LTCC-"$CC"}
9624
9625 # If no C compiler flags were specified, use CFLAGS.
9626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9627
9628 # Allow CC to be a program name with arguments.
9629 compiler=$CC
9630
9631 # Save the default compiler, since it gets overwritten when the other
9632 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9633 compiler_DEFAULT=$CC
9634
9635 # save warnings/boilerplate of simple test code
9636 ac_outfile=conftest.$ac_objext
9637 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9638 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9639 _lt_compiler_boilerplate=`cat conftest.err`
9640 $RM conftest*
9641
9642 ac_outfile=conftest.$ac_objext
9643 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9644 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9645 _lt_linker_boilerplate=`cat conftest.err`
9646 $RM -r conftest*
9647
9648
9649 ## CAVEAT EMPTOR:
9650 ## There is no encapsulation within the following macros, do not change
9651 ## the running order or otherwise move them around unless you know exactly
9652 ## what you are doing...
9653 if test -n "$compiler"; then
9654
9655 lt_prog_compiler_no_builtin_flag=
9656
9657 if test "$GCC" = yes; then
9658   case $cc_basename in
9659   nvcc*)
9660     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9661   *)
9662     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9663   esac
9664
9665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9666 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9667 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9668   $as_echo_n "(cached) " >&6
9669 else
9670   lt_cv_prog_compiler_rtti_exceptions=no
9671    ac_outfile=conftest.$ac_objext
9672    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9673    lt_compiler_flag="-fno-rtti -fno-exceptions"
9674    # Insert the option either (1) after the last *FLAGS variable, or
9675    # (2) before a word containing "conftest.", or (3) at the end.
9676    # Note that $ac_compile itself does not contain backslashes and begins
9677    # with a dollar sign (not a hyphen), so the echo should work correctly.
9678    # The option is referenced via a variable to avoid confusing sed.
9679    lt_compile=`echo "$ac_compile" | $SED \
9680    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9682    -e 's:$: $lt_compiler_flag:'`
9683    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9684    (eval "$lt_compile" 2>conftest.err)
9685    ac_status=$?
9686    cat conftest.err >&5
9687    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688    if (exit $ac_status) && test -s "$ac_outfile"; then
9689      # The compiler can only warn and ignore the option if not recognized
9690      # So say no if there are warnings other than the usual output.
9691      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9692      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9693      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9694        lt_cv_prog_compiler_rtti_exceptions=yes
9695      fi
9696    fi
9697    $RM conftest*
9698
9699 fi
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9701 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9702
9703 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9704     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9705 else
9706     :
9707 fi
9708
9709 fi
9710
9711
9712
9713
9714
9715
9716   lt_prog_compiler_wl=
9717 lt_prog_compiler_pic=
9718 lt_prog_compiler_static=
9719
9720
9721   if test "$GCC" = yes; then
9722     lt_prog_compiler_wl='-Wl,'
9723     lt_prog_compiler_static='-static'
9724
9725     case $host_os in
9726       aix*)
9727       # All AIX code is PIC.
9728       if test "$host_cpu" = ia64; then
9729         # AIX 5 now supports IA64 processor
9730         lt_prog_compiler_static='-Bstatic'
9731       fi
9732       ;;
9733
9734     amigaos*)
9735       case $host_cpu in
9736       powerpc)
9737             # see comment about AmigaOS4 .so support
9738             lt_prog_compiler_pic='-fPIC'
9739         ;;
9740       m68k)
9741             # FIXME: we need at least 68020 code to build shared libraries, but
9742             # adding the `-m68020' flag to GCC prevents building anything better,
9743             # like `-m68040'.
9744             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9745         ;;
9746       esac
9747       ;;
9748
9749     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9750       # PIC is the default for these OSes.
9751       ;;
9752
9753     mingw* | cygwin* | pw32* | os2* | cegcc*)
9754       # This hack is so that the source file can tell whether it is being
9755       # built for inclusion in a dll (and should export symbols for example).
9756       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9757       # (--disable-auto-import) libraries
9758       lt_prog_compiler_pic='-DDLL_EXPORT'
9759       ;;
9760
9761     darwin* | rhapsody*)
9762       # PIC is the default on this platform
9763       # Common symbols not allowed in MH_DYLIB files
9764       lt_prog_compiler_pic='-fno-common'
9765       ;;
9766
9767     haiku*)
9768       # PIC is the default for Haiku.
9769       # The "-static" flag exists, but is broken.
9770       lt_prog_compiler_static=
9771       ;;
9772
9773     hpux*)
9774       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9775       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9776       # sets the default TLS model and affects inlining.
9777       case $host_cpu in
9778       hppa*64*)
9779         # +Z the default
9780         ;;
9781       *)
9782         lt_prog_compiler_pic='-fPIC'
9783         ;;
9784       esac
9785       ;;
9786
9787     interix[3-9]*)
9788       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9789       # Instead, we relocate shared libraries at runtime.
9790       ;;
9791
9792     msdosdjgpp*)
9793       # Just because we use GCC doesn't mean we suddenly get shared libraries
9794       # on systems that don't support them.
9795       lt_prog_compiler_can_build_shared=no
9796       enable_shared=no
9797       ;;
9798
9799     *nto* | *qnx*)
9800       # QNX uses GNU C++, but need to define -shared option too, otherwise
9801       # it will coredump.
9802       lt_prog_compiler_pic='-fPIC -shared'
9803       ;;
9804
9805     sysv4*MP*)
9806       if test -d /usr/nec; then
9807         lt_prog_compiler_pic=-Kconform_pic
9808       fi
9809       ;;
9810
9811     *)
9812       lt_prog_compiler_pic='-fPIC'
9813       ;;
9814     esac
9815
9816     case $cc_basename in
9817     nvcc*) # Cuda Compiler Driver 2.2
9818       lt_prog_compiler_wl='-Xlinker '
9819       lt_prog_compiler_pic='-Xcompiler -fPIC'
9820       ;;
9821     esac
9822   else
9823     # PORTME Check for flag to pass linker flags through the system compiler.
9824     case $host_os in
9825     aix*)
9826       lt_prog_compiler_wl='-Wl,'
9827       if test "$host_cpu" = ia64; then
9828         # AIX 5 now supports IA64 processor
9829         lt_prog_compiler_static='-Bstatic'
9830       else
9831         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9832       fi
9833       ;;
9834
9835     mingw* | cygwin* | pw32* | os2* | cegcc*)
9836       # This hack is so that the source file can tell whether it is being
9837       # built for inclusion in a dll (and should export symbols for example).
9838       lt_prog_compiler_pic='-DDLL_EXPORT'
9839       ;;
9840
9841     hpux9* | hpux10* | hpux11*)
9842       lt_prog_compiler_wl='-Wl,'
9843       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9844       # not for PA HP-UX.
9845       case $host_cpu in
9846       hppa*64*|ia64*)
9847         # +Z the default
9848         ;;
9849       *)
9850         lt_prog_compiler_pic='+Z'
9851         ;;
9852       esac
9853       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9854       lt_prog_compiler_static='${wl}-a ${wl}archive'
9855       ;;
9856
9857     irix5* | irix6* | nonstopux*)
9858       lt_prog_compiler_wl='-Wl,'
9859       # PIC (with -KPIC) is the default.
9860       lt_prog_compiler_static='-non_shared'
9861       ;;
9862
9863     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9864       case $cc_basename in
9865       # old Intel for x86_64 which still supported -KPIC.
9866       ecc*)
9867         lt_prog_compiler_wl='-Wl,'
9868         lt_prog_compiler_pic='-KPIC'
9869         lt_prog_compiler_static='-static'
9870         ;;
9871       # icc used to be incompatible with GCC.
9872       # ICC 10 doesn't accept -KPIC any more.
9873       icc* | ifort*)
9874         lt_prog_compiler_wl='-Wl,'
9875         lt_prog_compiler_pic='-fPIC'
9876         lt_prog_compiler_static='-static'
9877         ;;
9878       # Lahey Fortran 8.1.
9879       lf95*)
9880         lt_prog_compiler_wl='-Wl,'
9881         lt_prog_compiler_pic='--shared'
9882         lt_prog_compiler_static='--static'
9883         ;;
9884       nagfor*)
9885         # NAG Fortran compiler
9886         lt_prog_compiler_wl='-Wl,-Wl,,'
9887         lt_prog_compiler_pic='-PIC'
9888         lt_prog_compiler_static='-Bstatic'
9889         ;;
9890       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9891         # Portland Group compilers (*not* the Pentium gcc compiler,
9892         # which looks to be a dead project)
9893         lt_prog_compiler_wl='-Wl,'
9894         lt_prog_compiler_pic='-fpic'
9895         lt_prog_compiler_static='-Bstatic'
9896         ;;
9897       ccc*)
9898         lt_prog_compiler_wl='-Wl,'
9899         # All Alpha code is PIC.
9900         lt_prog_compiler_static='-non_shared'
9901         ;;
9902       xl* | bgxl* | bgf* | mpixl*)
9903         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9904         lt_prog_compiler_wl='-Wl,'
9905         lt_prog_compiler_pic='-qpic'
9906         lt_prog_compiler_static='-qstaticlink'
9907         ;;
9908       *)
9909         case `$CC -V 2>&1 | sed 5q` in
9910         *Sun\ F* | *Sun*Fortran*)
9911           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9912           lt_prog_compiler_pic='-KPIC'
9913           lt_prog_compiler_static='-Bstatic'
9914           lt_prog_compiler_wl=''
9915           ;;
9916         *Sun\ C*)
9917           # Sun C 5.9
9918           lt_prog_compiler_pic='-KPIC'
9919           lt_prog_compiler_static='-Bstatic'
9920           lt_prog_compiler_wl='-Wl,'
9921           ;;
9922         esac
9923         ;;
9924       esac
9925       ;;
9926
9927     newsos6)
9928       lt_prog_compiler_pic='-KPIC'
9929       lt_prog_compiler_static='-Bstatic'
9930       ;;
9931
9932     *nto* | *qnx*)
9933       # QNX uses GNU C++, but need to define -shared option too, otherwise
9934       # it will coredump.
9935       lt_prog_compiler_pic='-fPIC -shared'
9936       ;;
9937
9938     osf3* | osf4* | osf5*)
9939       lt_prog_compiler_wl='-Wl,'
9940       # All OSF/1 code is PIC.
9941       lt_prog_compiler_static='-non_shared'
9942       ;;
9943
9944     rdos*)
9945       lt_prog_compiler_static='-non_shared'
9946       ;;
9947
9948     solaris*)
9949       lt_prog_compiler_pic='-KPIC'
9950       lt_prog_compiler_static='-Bstatic'
9951       case $cc_basename in
9952       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9953         lt_prog_compiler_wl='-Qoption ld ';;
9954       *)
9955         lt_prog_compiler_wl='-Wl,';;
9956       esac
9957       ;;
9958
9959     sunos4*)
9960       lt_prog_compiler_wl='-Qoption ld '
9961       lt_prog_compiler_pic='-PIC'
9962       lt_prog_compiler_static='-Bstatic'
9963       ;;
9964
9965     sysv4 | sysv4.2uw2* | sysv4.3*)
9966       lt_prog_compiler_wl='-Wl,'
9967       lt_prog_compiler_pic='-KPIC'
9968       lt_prog_compiler_static='-Bstatic'
9969       ;;
9970
9971     sysv4*MP*)
9972       if test -d /usr/nec ;then
9973         lt_prog_compiler_pic='-Kconform_pic'
9974         lt_prog_compiler_static='-Bstatic'
9975       fi
9976       ;;
9977
9978     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9979       lt_prog_compiler_wl='-Wl,'
9980       lt_prog_compiler_pic='-KPIC'
9981       lt_prog_compiler_static='-Bstatic'
9982       ;;
9983
9984     unicos*)
9985       lt_prog_compiler_wl='-Wl,'
9986       lt_prog_compiler_can_build_shared=no
9987       ;;
9988
9989     uts4*)
9990       lt_prog_compiler_pic='-pic'
9991       lt_prog_compiler_static='-Bstatic'
9992       ;;
9993
9994     *)
9995       lt_prog_compiler_can_build_shared=no
9996       ;;
9997     esac
9998   fi
9999
10000 case $host_os in
10001   # For platforms which do not support PIC, -DPIC is meaningless:
10002   *djgpp*)
10003     lt_prog_compiler_pic=
10004     ;;
10005   *)
10006     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10007     ;;
10008 esac
10009
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10012 if ${lt_cv_prog_compiler_pic+:} false; then :
10013   $as_echo_n "(cached) " >&6
10014 else
10015   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10016 fi
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10018 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10019 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10020
10021 #
10022 # Check to make sure the PIC flag actually works.
10023 #
10024 if test -n "$lt_prog_compiler_pic"; then
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10026 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10027 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   lt_cv_prog_compiler_pic_works=no
10031    ac_outfile=conftest.$ac_objext
10032    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10033    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10034    # Insert the option either (1) after the last *FLAGS variable, or
10035    # (2) before a word containing "conftest.", or (3) at the end.
10036    # Note that $ac_compile itself does not contain backslashes and begins
10037    # with a dollar sign (not a hyphen), so the echo should work correctly.
10038    # The option is referenced via a variable to avoid confusing sed.
10039    lt_compile=`echo "$ac_compile" | $SED \
10040    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10042    -e 's:$: $lt_compiler_flag:'`
10043    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10044    (eval "$lt_compile" 2>conftest.err)
10045    ac_status=$?
10046    cat conftest.err >&5
10047    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048    if (exit $ac_status) && test -s "$ac_outfile"; then
10049      # The compiler can only warn and ignore the option if not recognized
10050      # So say no if there are warnings other than the usual output.
10051      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10052      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10054        lt_cv_prog_compiler_pic_works=yes
10055      fi
10056    fi
10057    $RM conftest*
10058
10059 fi
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10061 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10062
10063 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10064     case $lt_prog_compiler_pic in
10065      "" | " "*) ;;
10066      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10067      esac
10068 else
10069     lt_prog_compiler_pic=
10070      lt_prog_compiler_can_build_shared=no
10071 fi
10072
10073 fi
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 #
10086 # Check to make sure the static flag actually works.
10087 #
10088 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10090 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10091 if ${lt_cv_prog_compiler_static_works+:} false; then :
10092   $as_echo_n "(cached) " >&6
10093 else
10094   lt_cv_prog_compiler_static_works=no
10095    save_LDFLAGS="$LDFLAGS"
10096    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10097    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10098    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10099      # The linker can only warn and ignore the option if not recognized
10100      # So say no if there are warnings
10101      if test -s conftest.err; then
10102        # Append any errors to the config.log.
10103        cat conftest.err 1>&5
10104        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10105        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106        if diff conftest.exp conftest.er2 >/dev/null; then
10107          lt_cv_prog_compiler_static_works=yes
10108        fi
10109      else
10110        lt_cv_prog_compiler_static_works=yes
10111      fi
10112    fi
10113    $RM -r conftest*
10114    LDFLAGS="$save_LDFLAGS"
10115
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10118 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10119
10120 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10121     :
10122 else
10123     lt_prog_compiler_static=
10124 fi
10125
10126
10127
10128
10129
10130
10131
10132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10134 if ${lt_cv_prog_compiler_c_o+:} false; then :
10135   $as_echo_n "(cached) " >&6
10136 else
10137   lt_cv_prog_compiler_c_o=no
10138    $RM -r conftest 2>/dev/null
10139    mkdir conftest
10140    cd conftest
10141    mkdir out
10142    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143
10144    lt_compiler_flag="-o out/conftest2.$ac_objext"
10145    # Insert the option either (1) after the last *FLAGS variable, or
10146    # (2) before a word containing "conftest.", or (3) at the end.
10147    # Note that $ac_compile itself does not contain backslashes and begins
10148    # with a dollar sign (not a hyphen), so the echo should work correctly.
10149    lt_compile=`echo "$ac_compile" | $SED \
10150    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10151    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10152    -e 's:$: $lt_compiler_flag:'`
10153    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10154    (eval "$lt_compile" 2>out/conftest.err)
10155    ac_status=$?
10156    cat out/conftest.err >&5
10157    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10159    then
10160      # The compiler can only warn and ignore the option if not recognized
10161      # So say no if there are warnings
10162      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10163      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10164      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10165        lt_cv_prog_compiler_c_o=yes
10166      fi
10167    fi
10168    chmod u+w . 2>&5
10169    $RM conftest*
10170    # SGI C++ compiler will create directory out/ii_files/ for
10171    # template instantiation
10172    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10173    $RM out/* && rmdir out
10174    cd ..
10175    $RM -r conftest
10176    $RM conftest*
10177
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10181
10182
10183
10184
10185
10186
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189 if ${lt_cv_prog_compiler_c_o+:} false; then :
10190   $as_echo_n "(cached) " >&6
10191 else
10192   lt_cv_prog_compiler_c_o=no
10193    $RM -r conftest 2>/dev/null
10194    mkdir conftest
10195    cd conftest
10196    mkdir out
10197    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10198
10199    lt_compiler_flag="-o out/conftest2.$ac_objext"
10200    # Insert the option either (1) after the last *FLAGS variable, or
10201    # (2) before a word containing "conftest.", or (3) at the end.
10202    # Note that $ac_compile itself does not contain backslashes and begins
10203    # with a dollar sign (not a hyphen), so the echo should work correctly.
10204    lt_compile=`echo "$ac_compile" | $SED \
10205    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207    -e 's:$: $lt_compiler_flag:'`
10208    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10209    (eval "$lt_compile" 2>out/conftest.err)
10210    ac_status=$?
10211    cat out/conftest.err >&5
10212    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10214    then
10215      # The compiler can only warn and ignore the option if not recognized
10216      # So say no if there are warnings
10217      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10218      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220        lt_cv_prog_compiler_c_o=yes
10221      fi
10222    fi
10223    chmod u+w . 2>&5
10224    $RM conftest*
10225    # SGI C++ compiler will create directory out/ii_files/ for
10226    # template instantiation
10227    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228    $RM out/* && rmdir out
10229    cd ..
10230    $RM -r conftest
10231    $RM conftest*
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10236
10237
10238
10239
10240 hard_links="nottested"
10241 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10242   # do not overwrite the value of need_locks provided by the user
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10244 $as_echo_n "checking if we can lock with hard links... " >&6; }
10245   hard_links=yes
10246   $RM conftest*
10247   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10248   touch conftest.a
10249   ln conftest.a conftest.b 2>&5 || hard_links=no
10250   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10252 $as_echo "$hard_links" >&6; }
10253   if test "$hard_links" = no; then
10254     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10255 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10256     need_locks=warn
10257   fi
10258 else
10259   need_locks=no
10260 fi
10261
10262
10263
10264
10265
10266
10267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10269
10270   runpath_var=
10271   allow_undefined_flag=
10272   always_export_symbols=no
10273   archive_cmds=
10274   archive_expsym_cmds=
10275   compiler_needs_object=no
10276   enable_shared_with_static_runtimes=no
10277   export_dynamic_flag_spec=
10278   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10279   hardcode_automatic=no
10280   hardcode_direct=no
10281   hardcode_direct_absolute=no
10282   hardcode_libdir_flag_spec=
10283   hardcode_libdir_flag_spec_ld=
10284   hardcode_libdir_separator=
10285   hardcode_minus_L=no
10286   hardcode_shlibpath_var=unsupported
10287   inherit_rpath=no
10288   link_all_deplibs=unknown
10289   module_cmds=
10290   module_expsym_cmds=
10291   old_archive_from_new_cmds=
10292   old_archive_from_expsyms_cmds=
10293   thread_safe_flag_spec=
10294   whole_archive_flag_spec=
10295   # include_expsyms should be a list of space-separated symbols to be *always*
10296   # included in the symbol list
10297   include_expsyms=
10298   # exclude_expsyms can be an extended regexp of symbols to exclude
10299   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10300   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10301   # as well as any symbol that contains `d'.
10302   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10303   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10304   # platforms (ab)use it in PIC code, but their linkers get confused if
10305   # the symbol is explicitly referenced.  Since portable code cannot
10306   # rely on this symbol name, it's probably fine to never include it in
10307   # preloaded symbol tables.
10308   # Exclude shared library initialization/finalization symbols.
10309   extract_expsyms_cmds=
10310
10311   case $host_os in
10312   cygwin* | mingw* | pw32* | cegcc*)
10313     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10314     # When not using gcc, we currently assume that we are using
10315     # Microsoft Visual C++.
10316     if test "$GCC" != yes; then
10317       with_gnu_ld=no
10318     fi
10319     ;;
10320   interix*)
10321     # we just hope/assume this is gcc and not c89 (= MSVC++)
10322     with_gnu_ld=yes
10323     ;;
10324   openbsd*)
10325     with_gnu_ld=no
10326     ;;
10327   esac
10328
10329   ld_shlibs=yes
10330
10331   # On some targets, GNU ld is compatible enough with the native linker
10332   # that we're better off using the native interface for both.
10333   lt_use_gnu_ld_interface=no
10334   if test "$with_gnu_ld" = yes; then
10335     case $host_os in
10336       aix*)
10337         # The AIX port of GNU ld has always aspired to compatibility
10338         # with the native linker.  However, as the warning in the GNU ld
10339         # block says, versions before 2.19.5* couldn't really create working
10340         # shared libraries, regardless of the interface used.
10341         case `$LD -v 2>&1` in
10342           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10343           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10344           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10345           *)
10346             lt_use_gnu_ld_interface=yes
10347             ;;
10348         esac
10349         ;;
10350       *)
10351         lt_use_gnu_ld_interface=yes
10352         ;;
10353     esac
10354   fi
10355
10356   if test "$lt_use_gnu_ld_interface" = yes; then
10357     # If archive_cmds runs LD, not CC, wlarc should be empty
10358     wlarc='${wl}'
10359
10360     # Set some defaults for GNU ld with shared library support. These
10361     # are reset later if shared libraries are not supported. Putting them
10362     # here allows them to be overridden if necessary.
10363     runpath_var=LD_RUN_PATH
10364     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365     export_dynamic_flag_spec='${wl}--export-dynamic'
10366     # ancient GNU ld didn't support --whole-archive et. al.
10367     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10368       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10369     else
10370       whole_archive_flag_spec=
10371     fi
10372     supports_anon_versioning=no
10373     case `$LD -v 2>&1` in
10374       *GNU\ gold*) supports_anon_versioning=yes ;;
10375       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10376       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10377       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10378       *\ 2.11.*) ;; # other 2.11 versions
10379       *) supports_anon_versioning=yes ;;
10380     esac
10381
10382     # See if GNU ld supports shared libraries.
10383     case $host_os in
10384     aix[3-9]*)
10385       # On AIX/PPC, the GNU linker is very broken
10386       if test "$host_cpu" != ia64; then
10387         ld_shlibs=no
10388         cat <<_LT_EOF 1>&2
10389
10390 *** Warning: the GNU linker, at least up to release 2.19, is reported
10391 *** to be unable to reliably create shared libraries on AIX.
10392 *** Therefore, libtool is disabling shared libraries support.  If you
10393 *** really care for shared libraries, you may want to install binutils
10394 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10395 *** You will then need to restart the configuration process.
10396
10397 _LT_EOF
10398       fi
10399       ;;
10400
10401     amigaos*)
10402       case $host_cpu in
10403       powerpc)
10404             # see comment about AmigaOS4 .so support
10405             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10406             archive_expsym_cmds=''
10407         ;;
10408       m68k)
10409             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)'
10410             hardcode_libdir_flag_spec='-L$libdir'
10411             hardcode_minus_L=yes
10412         ;;
10413       esac
10414       ;;
10415
10416     beos*)
10417       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10418         allow_undefined_flag=unsupported
10419         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10420         # support --undefined.  This deserves some investigation.  FIXME
10421         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422       else
10423         ld_shlibs=no
10424       fi
10425       ;;
10426
10427     cygwin* | mingw* | pw32* | cegcc*)
10428       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10429       # as there is no search path for DLLs.
10430       hardcode_libdir_flag_spec='-L$libdir'
10431       export_dynamic_flag_spec='${wl}--export-all-symbols'
10432       allow_undefined_flag=unsupported
10433       always_export_symbols=no
10434       enable_shared_with_static_runtimes=yes
10435       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10436       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10437
10438       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10439         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10440         # If the export-symbols file already is a .def file (1st line
10441         # is EXPORTS), use it as is; otherwise, prepend...
10442         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10443           cp $export_symbols $output_objdir/$soname.def;
10444         else
10445           echo EXPORTS > $output_objdir/$soname.def;
10446           cat $export_symbols >> $output_objdir/$soname.def;
10447         fi~
10448         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10449       else
10450         ld_shlibs=no
10451       fi
10452       ;;
10453
10454     haiku*)
10455       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456       link_all_deplibs=yes
10457       ;;
10458
10459     interix[3-9]*)
10460       hardcode_direct=no
10461       hardcode_shlibpath_var=no
10462       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10463       export_dynamic_flag_spec='${wl}-E'
10464       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10465       # Instead, shared libraries are loaded at an image base (0x10000000 by
10466       # default) and relocated if they conflict, which is a slow very memory
10467       # consuming and fragmenting process.  To avoid this, we pick a random,
10468       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10469       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10470       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10471       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'
10472       ;;
10473
10474     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10475       tmp_diet=no
10476       if test "$host_os" = linux-dietlibc; then
10477         case $cc_basename in
10478           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10479         esac
10480       fi
10481       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10482          && test "$tmp_diet" = no
10483       then
10484         tmp_addflag=' $pic_flag'
10485         tmp_sharedflag='-shared'
10486         case $cc_basename,$host_cpu in
10487         pgcc*)                          # Portland Group C compiler
10488           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10489           tmp_addflag=' $pic_flag'
10490           ;;
10491         pgf77* | pgf90* | pgf95* | pgfortran*)
10492                                         # Portland Group f77 and f90 compilers
10493           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10494           tmp_addflag=' $pic_flag -Mnomain' ;;
10495         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10496           tmp_addflag=' -i_dynamic' ;;
10497         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10498           tmp_addflag=' -i_dynamic -nofor_main' ;;
10499         ifc* | ifort*)                  # Intel Fortran compiler
10500           tmp_addflag=' -nofor_main' ;;
10501         lf95*)                          # Lahey Fortran 8.1
10502           whole_archive_flag_spec=
10503           tmp_sharedflag='--shared' ;;
10504         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10505           tmp_sharedflag='-qmkshrobj'
10506           tmp_addflag= ;;
10507         nvcc*)  # Cuda Compiler Driver 2.2
10508           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10509           compiler_needs_object=yes
10510           ;;
10511         esac
10512         case `$CC -V 2>&1 | sed 5q` in
10513         *Sun\ C*)                       # Sun C 5.9
10514           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10515           compiler_needs_object=yes
10516           tmp_sharedflag='-G' ;;
10517         *Sun\ F*)                       # Sun Fortran 8.3
10518           tmp_sharedflag='-G' ;;
10519         esac
10520         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521
10522         if test "x$supports_anon_versioning" = xyes; then
10523           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10524             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10525             echo "local: *; };" >> $output_objdir/$libname.ver~
10526             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10527         fi
10528
10529         case $cc_basename in
10530         xlf* | bgf* | bgxlf* | mpixlf*)
10531           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10532           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10533           hardcode_libdir_flag_spec=
10534           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10535           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10536           if test "x$supports_anon_versioning" = xyes; then
10537             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10538               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10539               echo "local: *; };" >> $output_objdir/$libname.ver~
10540               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10541           fi
10542           ;;
10543         esac
10544       else
10545         ld_shlibs=no
10546       fi
10547       ;;
10548
10549     netbsd*)
10550       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10551         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10552         wlarc=
10553       else
10554         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10555         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10556       fi
10557       ;;
10558
10559     solaris*)
10560       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10561         ld_shlibs=no
10562         cat <<_LT_EOF 1>&2
10563
10564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10565 *** create shared libraries on Solaris systems.  Therefore, libtool
10566 *** is disabling shared libraries support.  We urge you to upgrade GNU
10567 *** binutils to release 2.9.1 or newer.  Another option is to modify
10568 *** your PATH or compiler configuration so that the native linker is
10569 *** used, and then restart.
10570
10571 _LT_EOF
10572       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10573         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10574         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10575       else
10576         ld_shlibs=no
10577       fi
10578       ;;
10579
10580     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10581       case `$LD -v 2>&1` in
10582         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10583         ld_shlibs=no
10584         cat <<_LT_EOF 1>&2
10585
10586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10587 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10588 *** is disabling shared libraries support.  We urge you to upgrade GNU
10589 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10590 *** your PATH or compiler configuration so that the native linker is
10591 *** used, and then restart.
10592
10593 _LT_EOF
10594         ;;
10595         *)
10596           # For security reasons, it is highly recommended that you always
10597           # use absolute paths for naming shared libraries, and exclude the
10598           # DT_RUNPATH tag from executables and libraries.  But doing so
10599           # requires that you compile everything twice, which is a pain.
10600           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10601             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10602             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10604           else
10605             ld_shlibs=no
10606           fi
10607         ;;
10608       esac
10609       ;;
10610
10611     sunos4*)
10612       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10613       wlarc=
10614       hardcode_direct=yes
10615       hardcode_shlibpath_var=no
10616       ;;
10617
10618     *)
10619       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10620         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10621         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10622       else
10623         ld_shlibs=no
10624       fi
10625       ;;
10626     esac
10627
10628     if test "$ld_shlibs" = no; then
10629       runpath_var=
10630       hardcode_libdir_flag_spec=
10631       export_dynamic_flag_spec=
10632       whole_archive_flag_spec=
10633     fi
10634   else
10635     # PORTME fill in a description of your system's linker (not GNU ld)
10636     case $host_os in
10637     aix3*)
10638       allow_undefined_flag=unsupported
10639       always_export_symbols=yes
10640       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'
10641       # Note: this linker hardcodes the directories in LIBPATH if there
10642       # are no directories specified by -L.
10643       hardcode_minus_L=yes
10644       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10645         # Neither direct hardcoding nor static linking is supported with a
10646         # broken collect2.
10647         hardcode_direct=unsupported
10648       fi
10649       ;;
10650
10651     aix[4-9]*)
10652       if test "$host_cpu" = ia64; then
10653         # On IA64, the linker does run time linking by default, so we don't
10654         # have to do anything special.
10655         aix_use_runtimelinking=no
10656         exp_sym_flag='-Bexport'
10657         no_entry_flag=""
10658       else
10659         # If we're using GNU nm, then we don't want the "-C" option.
10660         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10661         # Also, AIX nm treats weak defined symbols like other global
10662         # defined symbols, whereas GNU nm marks them as "W".
10663         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10664           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10665         else
10666           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'
10667         fi
10668         aix_use_runtimelinking=no
10669
10670         # Test if we are trying to use run time linking or normal
10671         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10672         # need to do runtime linking.
10673         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10674           for ld_flag in $LDFLAGS; do
10675           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10676             aix_use_runtimelinking=yes
10677             break
10678           fi
10679           done
10680           ;;
10681         esac
10682
10683         exp_sym_flag='-bexport'
10684         no_entry_flag='-bnoentry'
10685       fi
10686
10687       # When large executables or shared objects are built, AIX ld can
10688       # have problems creating the table of contents.  If linking a library
10689       # or program results in "error TOC overflow" add -mminimal-toc to
10690       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10691       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10692
10693       archive_cmds=''
10694       hardcode_direct=yes
10695       hardcode_direct_absolute=yes
10696       hardcode_libdir_separator=':'
10697       link_all_deplibs=yes
10698       file_list_spec='${wl}-f,'
10699
10700       if test "$GCC" = yes; then
10701         case $host_os in aix4.[012]|aix4.[012].*)
10702         # We only want to do this on AIX 4.2 and lower, the check
10703         # below for broken collect2 doesn't work under 4.3+
10704           collect2name=`${CC} -print-prog-name=collect2`
10705           if test -f "$collect2name" &&
10706            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10707           then
10708           # We have reworked collect2
10709           :
10710           else
10711           # We have old collect2
10712           hardcode_direct=unsupported
10713           # It fails to find uninstalled libraries when the uninstalled
10714           # path is not listed in the libpath.  Setting hardcode_minus_L
10715           # to unsupported forces relinking
10716           hardcode_minus_L=yes
10717           hardcode_libdir_flag_spec='-L$libdir'
10718           hardcode_libdir_separator=
10719           fi
10720           ;;
10721         esac
10722         shared_flag='-shared'
10723         if test "$aix_use_runtimelinking" = yes; then
10724           shared_flag="$shared_flag "'${wl}-G'
10725         fi
10726       else
10727         # not using gcc
10728         if test "$host_cpu" = ia64; then
10729         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10730         # chokes on -Wl,-G. The following line is correct:
10731           shared_flag='-G'
10732         else
10733           if test "$aix_use_runtimelinking" = yes; then
10734             shared_flag='${wl}-G'
10735           else
10736             shared_flag='${wl}-bM:SRE'
10737           fi
10738         fi
10739       fi
10740
10741       export_dynamic_flag_spec='${wl}-bexpall'
10742       # It seems that -bexpall does not export symbols beginning with
10743       # underscore (_), so it is better to generate a list of symbols to export.
10744       always_export_symbols=yes
10745       if test "$aix_use_runtimelinking" = yes; then
10746         # Warning - without using the other runtime loading flags (-brtl),
10747         # -berok will link without error, but may produce a broken library.
10748         allow_undefined_flag='-berok'
10749         # Determine the default libpath from the value encoded in an
10750         # empty executable.
10751         if test "${lt_cv_aix_libpath+set}" = set; then
10752   aix_libpath=$lt_cv_aix_libpath
10753 else
10754   if ${lt_cv_aix_libpath_+:} false; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h.  */
10759
10760 int
10761 main ()
10762 {
10763
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769
10770   lt_aix_libpath_sed='
10771       /Import File Strings/,/^$/ {
10772           /^0/ {
10773               s/^0  *\([^ ]*\) *$/\1/
10774               p
10775           }
10776       }'
10777   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10778   # Check for a 64-bit object if we didn't find anything.
10779   if test -z "$lt_cv_aix_libpath_"; then
10780     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10781   fi
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext conftest.$ac_ext
10785   if test -z "$lt_cv_aix_libpath_"; then
10786     lt_cv_aix_libpath_="/usr/lib:/lib"
10787   fi
10788
10789 fi
10790
10791   aix_libpath=$lt_cv_aix_libpath_
10792 fi
10793
10794         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10795         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10796       else
10797         if test "$host_cpu" = ia64; then
10798           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10799           allow_undefined_flag="-z nodefs"
10800           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"
10801         else
10802          # Determine the default libpath from the value encoded in an
10803          # empty executable.
10804          if test "${lt_cv_aix_libpath+set}" = set; then
10805   aix_libpath=$lt_cv_aix_libpath
10806 else
10807   if ${lt_cv_aix_libpath_+:} false; then :
10808   $as_echo_n "(cached) " >&6
10809 else
10810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h.  */
10812
10813 int
10814 main ()
10815 {
10816
10817   ;
10818   return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_c_try_link "$LINENO"; then :
10822
10823   lt_aix_libpath_sed='
10824       /Import File Strings/,/^$/ {
10825           /^0/ {
10826               s/^0  *\([^ ]*\) *$/\1/
10827               p
10828           }
10829       }'
10830   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10831   # Check for a 64-bit object if we didn't find anything.
10832   if test -z "$lt_cv_aix_libpath_"; then
10833     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10834   fi
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837     conftest$ac_exeext conftest.$ac_ext
10838   if test -z "$lt_cv_aix_libpath_"; then
10839     lt_cv_aix_libpath_="/usr/lib:/lib"
10840   fi
10841
10842 fi
10843
10844   aix_libpath=$lt_cv_aix_libpath_
10845 fi
10846
10847          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10848           # Warning - without using the other run time loading flags,
10849           # -berok will link without error, but may produce a broken library.
10850           no_undefined_flag=' ${wl}-bernotok'
10851           allow_undefined_flag=' ${wl}-berok'
10852           if test "$with_gnu_ld" = yes; then
10853             # We only use this code for GNU lds that support --whole-archive.
10854             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10855           else
10856             # Exported symbols can be pulled into shared objects from archives
10857             whole_archive_flag_spec='$convenience'
10858           fi
10859           archive_cmds_need_lc=yes
10860           # This is similar to how AIX traditionally builds its shared libraries.
10861           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'
10862         fi
10863       fi
10864       ;;
10865
10866     amigaos*)
10867       case $host_cpu in
10868       powerpc)
10869             # see comment about AmigaOS4 .so support
10870             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10871             archive_expsym_cmds=''
10872         ;;
10873       m68k)
10874             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)'
10875             hardcode_libdir_flag_spec='-L$libdir'
10876             hardcode_minus_L=yes
10877         ;;
10878       esac
10879       ;;
10880
10881     bsdi[45]*)
10882       export_dynamic_flag_spec=-rdynamic
10883       ;;
10884
10885     cygwin* | mingw* | pw32* | cegcc*)
10886       # When not using gcc, we currently assume that we are using
10887       # Microsoft Visual C++.
10888       # hardcode_libdir_flag_spec is actually meaningless, as there is
10889       # no search path for DLLs.
10890       case $cc_basename in
10891       cl*)
10892         # Native MSVC
10893         hardcode_libdir_flag_spec=' '
10894         allow_undefined_flag=unsupported
10895         always_export_symbols=yes
10896         file_list_spec='@'
10897         # Tell ltmain to make .lib files, not .a files.
10898         libext=lib
10899         # Tell ltmain to make .dll files, not .so files.
10900         shrext_cmds=".dll"
10901         # FIXME: Setting linknames here is a bad hack.
10902         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10903         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10904             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10905           else
10906             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10907           fi~
10908           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10909           linknames='
10910         # The linker will not automatically build a static lib if we build a DLL.
10911         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10912         enable_shared_with_static_runtimes=yes
10913         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10914         # Don't use ranlib
10915         old_postinstall_cmds='chmod 644 $oldlib'
10916         postlink_cmds='lt_outputfile="@OUTPUT@"~
10917           lt_tool_outputfile="@TOOL_OUTPUT@"~
10918           case $lt_outputfile in
10919             *.exe|*.EXE) ;;
10920             *)
10921               lt_outputfile="$lt_outputfile.exe"
10922               lt_tool_outputfile="$lt_tool_outputfile.exe"
10923               ;;
10924           esac~
10925           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10926             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10927             $RM "$lt_outputfile.manifest";
10928           fi'
10929         ;;
10930       *)
10931         # Assume MSVC wrapper
10932         hardcode_libdir_flag_spec=' '
10933         allow_undefined_flag=unsupported
10934         # Tell ltmain to make .lib files, not .a files.
10935         libext=lib
10936         # Tell ltmain to make .dll files, not .so files.
10937         shrext_cmds=".dll"
10938         # FIXME: Setting linknames here is a bad hack.
10939         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10940         # The linker will automatically build a .lib file if we build a DLL.
10941         old_archive_from_new_cmds='true'
10942         # FIXME: Should let the user specify the lib program.
10943         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10944         enable_shared_with_static_runtimes=yes
10945         ;;
10946       esac
10947       ;;
10948
10949     darwin* | rhapsody*)
10950
10951
10952   archive_cmds_need_lc=no
10953   hardcode_direct=no
10954   hardcode_automatic=yes
10955   hardcode_shlibpath_var=unsupported
10956   if test "$lt_cv_ld_force_load" = "yes"; then
10957     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10958   else
10959     whole_archive_flag_spec=''
10960   fi
10961   link_all_deplibs=yes
10962   allow_undefined_flag="$_lt_dar_allow_undefined"
10963   case $cc_basename in
10964      ifort*) _lt_dar_can_shared=yes ;;
10965      *) _lt_dar_can_shared=$GCC ;;
10966   esac
10967   if test "$_lt_dar_can_shared" = "yes"; then
10968     output_verbose_link_cmd=func_echo_all
10969     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10970     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10971     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}"
10972     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}"
10973
10974   else
10975   ld_shlibs=no
10976   fi
10977
10978       ;;
10979
10980     dgux*)
10981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982       hardcode_libdir_flag_spec='-L$libdir'
10983       hardcode_shlibpath_var=no
10984       ;;
10985
10986     freebsd1*)
10987       ld_shlibs=no
10988       ;;
10989
10990     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10991     # support.  Future versions do this automatically, but an explicit c++rt0.o
10992     # does not break anything, and helps significantly (at the cost of a little
10993     # extra space).
10994     freebsd2.2*)
10995       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10996       hardcode_libdir_flag_spec='-R$libdir'
10997       hardcode_direct=yes
10998       hardcode_shlibpath_var=no
10999       ;;
11000
11001     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11002     freebsd2*)
11003       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11004       hardcode_direct=yes
11005       hardcode_minus_L=yes
11006       hardcode_shlibpath_var=no
11007       ;;
11008
11009     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11010     freebsd* | dragonfly*)
11011       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11012       hardcode_libdir_flag_spec='-R$libdir'
11013       hardcode_direct=yes
11014       hardcode_shlibpath_var=no
11015       ;;
11016
11017     hpux9*)
11018       if test "$GCC" = yes; then
11019         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11020       else
11021         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'
11022       fi
11023       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11024       hardcode_libdir_separator=:
11025       hardcode_direct=yes
11026
11027       # hardcode_minus_L: Not really in the search PATH,
11028       # but as the default location of the library.
11029       hardcode_minus_L=yes
11030       export_dynamic_flag_spec='${wl}-E'
11031       ;;
11032
11033     hpux10*)
11034       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11035         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11036       else
11037         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11038       fi
11039       if test "$with_gnu_ld" = no; then
11040         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11041         hardcode_libdir_flag_spec_ld='+b $libdir'
11042         hardcode_libdir_separator=:
11043         hardcode_direct=yes
11044         hardcode_direct_absolute=yes
11045         export_dynamic_flag_spec='${wl}-E'
11046         # hardcode_minus_L: Not really in the search PATH,
11047         # but as the default location of the library.
11048         hardcode_minus_L=yes
11049       fi
11050       ;;
11051
11052     hpux11*)
11053       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11054         case $host_cpu in
11055         hppa*64*)
11056           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11057           ;;
11058         ia64*)
11059           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11060           ;;
11061         *)
11062           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11063           ;;
11064         esac
11065       else
11066         case $host_cpu in
11067         hppa*64*)
11068           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11069           ;;
11070         ia64*)
11071           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11072           ;;
11073         *)
11074
11075           # Older versions of the 11.00 compiler do not understand -b yet
11076           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11077           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11078 $as_echo_n "checking if $CC understands -b... " >&6; }
11079 if ${lt_cv_prog_compiler__b+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   lt_cv_prog_compiler__b=no
11083    save_LDFLAGS="$LDFLAGS"
11084    LDFLAGS="$LDFLAGS -b"
11085    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11086    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11087      # The linker can only warn and ignore the option if not recognized
11088      # So say no if there are warnings
11089      if test -s conftest.err; then
11090        # Append any errors to the config.log.
11091        cat conftest.err 1>&5
11092        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11093        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11094        if diff conftest.exp conftest.er2 >/dev/null; then
11095          lt_cv_prog_compiler__b=yes
11096        fi
11097      else
11098        lt_cv_prog_compiler__b=yes
11099      fi
11100    fi
11101    $RM -r conftest*
11102    LDFLAGS="$save_LDFLAGS"
11103
11104 fi
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11106 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11107
11108 if test x"$lt_cv_prog_compiler__b" = xyes; then
11109     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11110 else
11111     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11112 fi
11113
11114           ;;
11115         esac
11116       fi
11117       if test "$with_gnu_ld" = no; then
11118         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11119         hardcode_libdir_separator=:
11120
11121         case $host_cpu in
11122         hppa*64*|ia64*)
11123           hardcode_direct=no
11124           hardcode_shlibpath_var=no
11125           ;;
11126         *)
11127           hardcode_direct=yes
11128           hardcode_direct_absolute=yes
11129           export_dynamic_flag_spec='${wl}-E'
11130
11131           # hardcode_minus_L: Not really in the search PATH,
11132           # but as the default location of the library.
11133           hardcode_minus_L=yes
11134           ;;
11135         esac
11136       fi
11137       ;;
11138
11139     irix5* | irix6* | nonstopux*)
11140       if test "$GCC" = yes; then
11141         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11142         # Try to use the -exported_symbol ld option, if it does not
11143         # work, assume that -exports_file does not work either and
11144         # implicitly export all symbols.
11145         # This should be the same for all languages, so no per-tag cache variable.
11146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11147 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11148 if ${lt_cv_irix_exported_symbol+:} false; then :
11149   $as_echo_n "(cached) " >&6
11150 else
11151   save_LDFLAGS="$LDFLAGS"
11152            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11153            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h.  */
11155 int foo (void) { return 0; }
11156 _ACEOF
11157 if ac_fn_c_try_link "$LINENO"; then :
11158   lt_cv_irix_exported_symbol=yes
11159 else
11160   lt_cv_irix_exported_symbol=no
11161 fi
11162 rm -f core conftest.err conftest.$ac_objext \
11163     conftest$ac_exeext conftest.$ac_ext
11164            LDFLAGS="$save_LDFLAGS"
11165 fi
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11167 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11168         if test "$lt_cv_irix_exported_symbol" = yes; then
11169           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11170         fi
11171       else
11172         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11173         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11174       fi
11175       archive_cmds_need_lc='no'
11176       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11177       hardcode_libdir_separator=:
11178       inherit_rpath=yes
11179       link_all_deplibs=yes
11180       ;;
11181
11182     netbsd*)
11183       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11184         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11185       else
11186         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11187       fi
11188       hardcode_libdir_flag_spec='-R$libdir'
11189       hardcode_direct=yes
11190       hardcode_shlibpath_var=no
11191       ;;
11192
11193     newsos6)
11194       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11195       hardcode_direct=yes
11196       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11197       hardcode_libdir_separator=:
11198       hardcode_shlibpath_var=no
11199       ;;
11200
11201     *nto* | *qnx*)
11202       ;;
11203
11204     openbsd*)
11205       if test -f /usr/libexec/ld.so; then
11206         hardcode_direct=yes
11207         hardcode_shlibpath_var=no
11208         hardcode_direct_absolute=yes
11209         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11210           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11211           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11212           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11213           export_dynamic_flag_spec='${wl}-E'
11214         else
11215           case $host_os in
11216            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11217              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11218              hardcode_libdir_flag_spec='-R$libdir'
11219              ;;
11220            *)
11221              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11222              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11223              ;;
11224           esac
11225         fi
11226       else
11227         ld_shlibs=no
11228       fi
11229       ;;
11230
11231     os2*)
11232       hardcode_libdir_flag_spec='-L$libdir'
11233       hardcode_minus_L=yes
11234       allow_undefined_flag=unsupported
11235       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'
11236       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11237       ;;
11238
11239     osf3*)
11240       if test "$GCC" = yes; then
11241         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11242         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11243       else
11244         allow_undefined_flag=' -expect_unresolved \*'
11245         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11246       fi
11247       archive_cmds_need_lc='no'
11248       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11249       hardcode_libdir_separator=:
11250       ;;
11251
11252     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11253       if test "$GCC" = yes; then
11254         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11255         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11256         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11257       else
11258         allow_undefined_flag=' -expect_unresolved \*'
11259         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11260         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~
11261         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11262
11263         # Both c and cxx compiler support -rpath directly
11264         hardcode_libdir_flag_spec='-rpath $libdir'
11265       fi
11266       archive_cmds_need_lc='no'
11267       hardcode_libdir_separator=:
11268       ;;
11269
11270     solaris*)
11271       no_undefined_flag=' -z defs'
11272       if test "$GCC" = yes; then
11273         wlarc='${wl}'
11274         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11275         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11276           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11277       else
11278         case `$CC -V 2>&1` in
11279         *"Compilers 5.0"*)
11280           wlarc=''
11281           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11283           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11284           ;;
11285         *)
11286           wlarc='${wl}'
11287           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11288           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11289           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11290           ;;
11291         esac
11292       fi
11293       hardcode_libdir_flag_spec='-R$libdir'
11294       hardcode_shlibpath_var=no
11295       case $host_os in
11296       solaris2.[0-5] | solaris2.[0-5].*) ;;
11297       *)
11298         # The compiler driver will combine and reorder linker options,
11299         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11300         # but is careful enough not to reorder.
11301         # Supported since Solaris 2.6 (maybe 2.5.1?)
11302         if test "$GCC" = yes; then
11303           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11304         else
11305           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11306         fi
11307         ;;
11308       esac
11309       link_all_deplibs=yes
11310       ;;
11311
11312     sunos4*)
11313       if test "x$host_vendor" = xsequent; then
11314         # Use $CC to link under sequent, because it throws in some extra .o
11315         # files that make .init and .fini sections work.
11316         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11317       else
11318         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11319       fi
11320       hardcode_libdir_flag_spec='-L$libdir'
11321       hardcode_direct=yes
11322       hardcode_minus_L=yes
11323       hardcode_shlibpath_var=no
11324       ;;
11325
11326     sysv4)
11327       case $host_vendor in
11328         sni)
11329           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11330           hardcode_direct=yes # is this really true???
11331         ;;
11332         siemens)
11333           ## LD is ld it makes a PLAMLIB
11334           ## CC just makes a GrossModule.
11335           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11336           reload_cmds='$CC -r -o $output$reload_objs'
11337           hardcode_direct=no
11338         ;;
11339         motorola)
11340           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11341           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11342         ;;
11343       esac
11344       runpath_var='LD_RUN_PATH'
11345       hardcode_shlibpath_var=no
11346       ;;
11347
11348     sysv4.3*)
11349       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11350       hardcode_shlibpath_var=no
11351       export_dynamic_flag_spec='-Bexport'
11352       ;;
11353
11354     sysv4*MP*)
11355       if test -d /usr/nec; then
11356         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11357         hardcode_shlibpath_var=no
11358         runpath_var=LD_RUN_PATH
11359         hardcode_runpath_var=yes
11360         ld_shlibs=yes
11361       fi
11362       ;;
11363
11364     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11365       no_undefined_flag='${wl}-z,text'
11366       archive_cmds_need_lc=no
11367       hardcode_shlibpath_var=no
11368       runpath_var='LD_RUN_PATH'
11369
11370       if test "$GCC" = yes; then
11371         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11373       else
11374         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376       fi
11377       ;;
11378
11379     sysv5* | sco3.2v5* | sco5v6*)
11380       # Note: We can NOT use -z defs as we might desire, because we do not
11381       # link with -lc, and that would cause any symbols used from libc to
11382       # always be unresolved, which means just about no library would
11383       # ever link correctly.  If we're not using GNU ld we use -z text
11384       # though, which does catch some bad symbols but isn't as heavy-handed
11385       # as -z defs.
11386       no_undefined_flag='${wl}-z,text'
11387       allow_undefined_flag='${wl}-z,nodefs'
11388       archive_cmds_need_lc=no
11389       hardcode_shlibpath_var=no
11390       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11391       hardcode_libdir_separator=':'
11392       link_all_deplibs=yes
11393       export_dynamic_flag_spec='${wl}-Bexport'
11394       runpath_var='LD_RUN_PATH'
11395
11396       if test "$GCC" = yes; then
11397         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399       else
11400         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402       fi
11403       ;;
11404
11405     uts4*)
11406       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11407       hardcode_libdir_flag_spec='-L$libdir'
11408       hardcode_shlibpath_var=no
11409       ;;
11410
11411     *)
11412       ld_shlibs=no
11413       ;;
11414     esac
11415
11416     if test x$host_vendor = xsni; then
11417       case $host in
11418       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11419         export_dynamic_flag_spec='${wl}-Blargedynsym'
11420         ;;
11421       esac
11422     fi
11423   fi
11424
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11426 $as_echo "$ld_shlibs" >&6; }
11427 test "$ld_shlibs" = no && can_build_shared=no
11428
11429 with_gnu_ld=$with_gnu_ld
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445 #
11446 # Do we need to explicitly link libc?
11447 #
11448 case "x$archive_cmds_need_lc" in
11449 x|xyes)
11450   # Assume -lc should be added
11451   archive_cmds_need_lc=yes
11452
11453   if test "$enable_shared" = yes && test "$GCC" = yes; then
11454     case $archive_cmds in
11455     *'~'*)
11456       # FIXME: we may have to deal with multi-command sequences.
11457       ;;
11458     '$CC '*)
11459       # Test whether the compiler implicitly links with -lc since on some
11460       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11461       # to ld, don't add -lc before -lgcc.
11462       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11463 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11464 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11465   $as_echo_n "(cached) " >&6
11466 else
11467   $RM conftest*
11468         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11469
11470         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11471   (eval $ac_compile) 2>&5
11472   ac_status=$?
11473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474   test $ac_status = 0; } 2>conftest.err; then
11475           soname=conftest
11476           lib=conftest
11477           libobjs=conftest.$ac_objext
11478           deplibs=
11479           wl=$lt_prog_compiler_wl
11480           pic_flag=$lt_prog_compiler_pic
11481           compiler_flags=-v
11482           linker_flags=-v
11483           verstring=
11484           output_objdir=.
11485           libname=conftest
11486           lt_save_allow_undefined_flag=$allow_undefined_flag
11487           allow_undefined_flag=
11488           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11489   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11490   ac_status=$?
11491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11492   test $ac_status = 0; }
11493           then
11494             lt_cv_archive_cmds_need_lc=no
11495           else
11496             lt_cv_archive_cmds_need_lc=yes
11497           fi
11498           allow_undefined_flag=$lt_save_allow_undefined_flag
11499         else
11500           cat conftest.err 1>&5
11501         fi
11502         $RM conftest*
11503
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11506 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11507       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11508       ;;
11509     esac
11510   fi
11511   ;;
11512 esac
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11671 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11672
11673 if test "$GCC" = yes; then
11674   case $host_os in
11675     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11676     *) lt_awk_arg="/^libraries:/" ;;
11677   esac
11678   case $host_os in
11679     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11680     *) lt_sed_strip_eq="s,=/,/,g" ;;
11681   esac
11682   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11683   case $lt_search_path_spec in
11684   *\;*)
11685     # if the path contains ";" then we assume it to be the separator
11686     # otherwise default to the standard path separator (i.e. ":") - it is
11687     # assumed that no part of a normal pathname contains ";" but that should
11688     # okay in the real world where ";" in dirpaths is itself problematic.
11689     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11690     ;;
11691   *)
11692     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11693     ;;
11694   esac
11695   # Ok, now we have the path, separated by spaces, we can step through it
11696   # and add multilib dir if necessary.
11697   lt_tmp_lt_search_path_spec=
11698   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11699   for lt_sys_path in $lt_search_path_spec; do
11700     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11701       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11702     else
11703       test -d "$lt_sys_path" && \
11704         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11705     fi
11706   done
11707   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11708 BEGIN {RS=" "; FS="/|\n";} {
11709   lt_foo="";
11710   lt_count=0;
11711   for (lt_i = NF; lt_i > 0; lt_i--) {
11712     if ($lt_i != "" && $lt_i != ".") {
11713       if ($lt_i == "..") {
11714         lt_count++;
11715       } else {
11716         if (lt_count == 0) {
11717           lt_foo="/" $lt_i lt_foo;
11718         } else {
11719           lt_count--;
11720         }
11721       }
11722     }
11723   }
11724   if (lt_foo != "") { lt_freq[lt_foo]++; }
11725   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11726 }'`
11727   # AWK program above erroneously prepends '/' to C:/dos/paths
11728   # for these hosts.
11729   case $host_os in
11730     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11731       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11732   esac
11733   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11734 else
11735   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11736 fi
11737 library_names_spec=
11738 libname_spec='lib$name'
11739 soname_spec=
11740 shrext_cmds=".so"
11741 postinstall_cmds=
11742 postuninstall_cmds=
11743 finish_cmds=
11744 finish_eval=
11745 shlibpath_var=
11746 shlibpath_overrides_runpath=unknown
11747 version_type=none
11748 dynamic_linker="$host_os ld.so"
11749 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11750 need_lib_prefix=unknown
11751 hardcode_into_libs=no
11752
11753 # when you set need_version to no, make sure it does not cause -set_version
11754 # flags to be left without arguments
11755 need_version=unknown
11756
11757 case $host_os in
11758 aix3*)
11759   version_type=linux
11760   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11761   shlibpath_var=LIBPATH
11762
11763   # AIX 3 has no versioning support, so we append a major version to the name.
11764   soname_spec='${libname}${release}${shared_ext}$major'
11765   ;;
11766
11767 aix[4-9]*)
11768   version_type=linux
11769   need_lib_prefix=no
11770   need_version=no
11771   hardcode_into_libs=yes
11772   if test "$host_cpu" = ia64; then
11773     # AIX 5 supports IA64
11774     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11775     shlibpath_var=LD_LIBRARY_PATH
11776   else
11777     # With GCC up to 2.95.x, collect2 would create an import file
11778     # for dependence libraries.  The import file would start with
11779     # the line `#! .'.  This would cause the generated library to
11780     # depend on `.', always an invalid library.  This was fixed in
11781     # development snapshots of GCC prior to 3.0.
11782     case $host_os in
11783       aix4 | aix4.[01] | aix4.[01].*)
11784       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11785            echo ' yes '
11786            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11787         :
11788       else
11789         can_build_shared=no
11790       fi
11791       ;;
11792     esac
11793     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11794     # soname into executable. Probably we can add versioning support to
11795     # collect2, so additional links can be useful in future.
11796     if test "$aix_use_runtimelinking" = yes; then
11797       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11798       # instead of lib<name>.a to let people know that these are not
11799       # typical AIX shared libraries.
11800       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801     else
11802       # We preserve .a as extension for shared libraries through AIX4.2
11803       # and later when we are not doing run time linking.
11804       library_names_spec='${libname}${release}.a $libname.a'
11805       soname_spec='${libname}${release}${shared_ext}$major'
11806     fi
11807     shlibpath_var=LIBPATH
11808   fi
11809   ;;
11810
11811 amigaos*)
11812   case $host_cpu in
11813   powerpc)
11814     # Since July 2007 AmigaOS4 officially supports .so libraries.
11815     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817     ;;
11818   m68k)
11819     library_names_spec='$libname.ixlibrary $libname.a'
11820     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11821     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11822     ;;
11823   esac
11824   ;;
11825
11826 beos*)
11827   library_names_spec='${libname}${shared_ext}'
11828   dynamic_linker="$host_os ld.so"
11829   shlibpath_var=LIBRARY_PATH
11830   ;;
11831
11832 bsdi[45]*)
11833   version_type=linux
11834   need_version=no
11835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836   soname_spec='${libname}${release}${shared_ext}$major'
11837   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11838   shlibpath_var=LD_LIBRARY_PATH
11839   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11840   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11841   # the default ld.so.conf also contains /usr/contrib/lib and
11842   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11843   # libtool to hard-code these into programs
11844   ;;
11845
11846 cygwin* | mingw* | pw32* | cegcc*)
11847   version_type=windows
11848   shrext_cmds=".dll"
11849   need_version=no
11850   need_lib_prefix=no
11851
11852   case $GCC,$cc_basename in
11853   yes,*)
11854     # gcc
11855     library_names_spec='$libname.dll.a'
11856     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11857     postinstall_cmds='base_file=`basename \${file}`~
11858       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11859       dldir=$destdir/`dirname \$dlpath`~
11860       test -d \$dldir || mkdir -p \$dldir~
11861       $install_prog $dir/$dlname \$dldir/$dlname~
11862       chmod a+x \$dldir/$dlname~
11863       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11864         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11865       fi'
11866     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11867       dlpath=$dir/\$dldll~
11868        $RM \$dlpath'
11869     shlibpath_overrides_runpath=yes
11870
11871     case $host_os in
11872     cygwin*)
11873       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11874       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11875
11876       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11877       ;;
11878     mingw* | cegcc*)
11879       # MinGW DLLs use traditional 'lib' prefix
11880       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11881       ;;
11882     pw32*)
11883       # pw32 DLLs use 'pw' prefix rather than 'lib'
11884       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11885       ;;
11886     esac
11887     dynamic_linker='Win32 ld.exe'
11888     ;;
11889
11890   *,cl*)
11891     # Native MSVC
11892     libname_spec='$name'
11893     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11894     library_names_spec='${libname}.dll.lib'
11895
11896     case $build_os in
11897     mingw*)
11898       sys_lib_search_path_spec=
11899       lt_save_ifs=$IFS
11900       IFS=';'
11901       for lt_path in $LIB
11902       do
11903         IFS=$lt_save_ifs
11904         # Let DOS variable expansion print the short 8.3 style file name.
11905         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11906         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11907       done
11908       IFS=$lt_save_ifs
11909       # Convert to MSYS style.
11910       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11911       ;;
11912     cygwin*)
11913       # Convert to unix form, then to dos form, then back to unix form
11914       # but this time dos style (no spaces!) so that the unix form looks
11915       # like /cygdrive/c/PROGRA~1:/cygdr...
11916       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11917       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11918       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11919       ;;
11920     *)
11921       sys_lib_search_path_spec="$LIB"
11922       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11923         # It is most probably a Windows format PATH.
11924         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11925       else
11926         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11927       fi
11928       # FIXME: find the short name or the path components, as spaces are
11929       # common. (e.g. "Program Files" -> "PROGRA~1")
11930       ;;
11931     esac
11932
11933     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11934     postinstall_cmds='base_file=`basename \${file}`~
11935       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11936       dldir=$destdir/`dirname \$dlpath`~
11937       test -d \$dldir || mkdir -p \$dldir~
11938       $install_prog $dir/$dlname \$dldir/$dlname'
11939     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11940       dlpath=$dir/\$dldll~
11941        $RM \$dlpath'
11942     shlibpath_overrides_runpath=yes
11943     dynamic_linker='Win32 link.exe'
11944     ;;
11945
11946   *)
11947     # Assume MSVC wrapper
11948     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11949     dynamic_linker='Win32 ld.exe'
11950     ;;
11951   esac
11952   # FIXME: first we should search . and the directory the executable is in
11953   shlibpath_var=PATH
11954   ;;
11955
11956 darwin* | rhapsody*)
11957   dynamic_linker="$host_os dyld"
11958   version_type=darwin
11959   need_lib_prefix=no
11960   need_version=no
11961   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11962   soname_spec='${libname}${release}${major}$shared_ext'
11963   shlibpath_overrides_runpath=yes
11964   shlibpath_var=DYLD_LIBRARY_PATH
11965   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11966
11967   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11968   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11969   ;;
11970
11971 dgux*)
11972   version_type=linux
11973   need_lib_prefix=no
11974   need_version=no
11975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11976   soname_spec='${libname}${release}${shared_ext}$major'
11977   shlibpath_var=LD_LIBRARY_PATH
11978   ;;
11979
11980 freebsd1*)
11981   dynamic_linker=no
11982   ;;
11983
11984 freebsd* | dragonfly*)
11985   # DragonFly does not have aout.  When/if they implement a new
11986   # versioning mechanism, adjust this.
11987   if test -x /usr/bin/objformat; then
11988     objformat=`/usr/bin/objformat`
11989   else
11990     case $host_os in
11991     freebsd[123]*) objformat=aout ;;
11992     *) objformat=elf ;;
11993     esac
11994   fi
11995   version_type=freebsd-$objformat
11996   case $version_type in
11997     freebsd-elf*)
11998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11999       need_version=no
12000       need_lib_prefix=no
12001       ;;
12002     freebsd-*)
12003       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12004       need_version=yes
12005       ;;
12006   esac
12007   shlibpath_var=LD_LIBRARY_PATH
12008   case $host_os in
12009   freebsd2*)
12010     shlibpath_overrides_runpath=yes
12011     ;;
12012   freebsd3.[01]* | freebsdelf3.[01]*)
12013     shlibpath_overrides_runpath=yes
12014     hardcode_into_libs=yes
12015     ;;
12016   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12017   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12018     shlibpath_overrides_runpath=no
12019     hardcode_into_libs=yes
12020     ;;
12021   *) # from 4.6 on, and DragonFly
12022     shlibpath_overrides_runpath=yes
12023     hardcode_into_libs=yes
12024     ;;
12025   esac
12026   ;;
12027
12028 gnu*)
12029   version_type=linux
12030   need_lib_prefix=no
12031   need_version=no
12032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12033   soname_spec='${libname}${release}${shared_ext}$major'
12034   shlibpath_var=LD_LIBRARY_PATH
12035   hardcode_into_libs=yes
12036   ;;
12037
12038 haiku*)
12039   version_type=linux
12040   need_lib_prefix=no
12041   need_version=no
12042   dynamic_linker="$host_os runtime_loader"
12043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12044   soname_spec='${libname}${release}${shared_ext}$major'
12045   shlibpath_var=LIBRARY_PATH
12046   shlibpath_overrides_runpath=yes
12047   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12048   hardcode_into_libs=yes
12049   ;;
12050
12051 hpux9* | hpux10* | hpux11*)
12052   # Give a soname corresponding to the major version so that dld.sl refuses to
12053   # link against other versions.
12054   version_type=sunos
12055   need_lib_prefix=no
12056   need_version=no
12057   case $host_cpu in
12058   ia64*)
12059     shrext_cmds='.so'
12060     hardcode_into_libs=yes
12061     dynamic_linker="$host_os dld.so"
12062     shlibpath_var=LD_LIBRARY_PATH
12063     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065     soname_spec='${libname}${release}${shared_ext}$major'
12066     if test "X$HPUX_IA64_MODE" = X32; then
12067       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12068     else
12069       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12070     fi
12071     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12072     ;;
12073   hppa*64*)
12074     shrext_cmds='.sl'
12075     hardcode_into_libs=yes
12076     dynamic_linker="$host_os dld.sl"
12077     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12078     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080     soname_spec='${libname}${release}${shared_ext}$major'
12081     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12082     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12083     ;;
12084   *)
12085     shrext_cmds='.sl'
12086     dynamic_linker="$host_os dld.sl"
12087     shlibpath_var=SHLIB_PATH
12088     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12090     soname_spec='${libname}${release}${shared_ext}$major'
12091     ;;
12092   esac
12093   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12094   postinstall_cmds='chmod 555 $lib'
12095   # or fails outright, so override atomically:
12096   install_override_mode=555
12097   ;;
12098
12099 interix[3-9]*)
12100   version_type=linux
12101   need_lib_prefix=no
12102   need_version=no
12103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12104   soname_spec='${libname}${release}${shared_ext}$major'
12105   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12106   shlibpath_var=LD_LIBRARY_PATH
12107   shlibpath_overrides_runpath=no
12108   hardcode_into_libs=yes
12109   ;;
12110
12111 irix5* | irix6* | nonstopux*)
12112   case $host_os in
12113     nonstopux*) version_type=nonstopux ;;
12114     *)
12115         if test "$lt_cv_prog_gnu_ld" = yes; then
12116                 version_type=linux
12117         else
12118                 version_type=irix
12119         fi ;;
12120   esac
12121   need_lib_prefix=no
12122   need_version=no
12123   soname_spec='${libname}${release}${shared_ext}$major'
12124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12125   case $host_os in
12126   irix5* | nonstopux*)
12127     libsuff= shlibsuff=
12128     ;;
12129   *)
12130     case $LD in # libtool.m4 will add one of these switches to LD
12131     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12132       libsuff= shlibsuff= libmagic=32-bit;;
12133     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12134       libsuff=32 shlibsuff=N32 libmagic=N32;;
12135     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12136       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12137     *) libsuff= shlibsuff= libmagic=never-match;;
12138     esac
12139     ;;
12140   esac
12141   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12142   shlibpath_overrides_runpath=no
12143   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12144   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12145   hardcode_into_libs=yes
12146   ;;
12147
12148 # No shared lib support for Linux oldld, aout, or coff.
12149 linux*oldld* | linux*aout* | linux*coff*)
12150   dynamic_linker=no
12151   ;;
12152
12153 # This must be Linux ELF.
12154 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12155   version_type=linux
12156   need_lib_prefix=no
12157   need_version=no
12158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159   soname_spec='${libname}${release}${shared_ext}$major'
12160   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12161   shlibpath_var=LD_LIBRARY_PATH
12162   shlibpath_overrides_runpath=no
12163
12164   # Some binutils ld are patched to set DT_RUNPATH
12165   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12166   $as_echo_n "(cached) " >&6
12167 else
12168   lt_cv_shlibpath_overrides_runpath=no
12169     save_LDFLAGS=$LDFLAGS
12170     save_libdir=$libdir
12171     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12172          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h.  */
12175
12176 int
12177 main ()
12178 {
12179
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 if ac_fn_c_try_link "$LINENO"; then :
12185   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12186   lt_cv_shlibpath_overrides_runpath=yes
12187 fi
12188 fi
12189 rm -f core conftest.err conftest.$ac_objext \
12190     conftest$ac_exeext conftest.$ac_ext
12191     LDFLAGS=$save_LDFLAGS
12192     libdir=$save_libdir
12193
12194 fi
12195
12196   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12197
12198   # This implies no fast_install, which is unacceptable.
12199   # Some rework will be needed to allow for fast_install
12200   # before this can be enabled.
12201   hardcode_into_libs=yes
12202
12203   # Append ld.so.conf contents to the search path
12204   if test -f /etc/ld.so.conf; then
12205     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;s/"//g;/^$/d' | tr '\n' ' '`
12206     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12207   fi
12208
12209   # We used to test for /lib/ld.so.1 and disable shared libraries on
12210   # powerpc, because MkLinux only supported shared libraries with the
12211   # GNU dynamic linker.  Since this was broken with cross compilers,
12212   # most powerpc-linux boxes support dynamic linking these days and
12213   # people can always --disable-shared, the test was removed, and we
12214   # assume the GNU/Linux dynamic linker is in use.
12215   dynamic_linker='GNU/Linux ld.so'
12216   ;;
12217
12218 netbsd*)
12219   version_type=sunos
12220   need_lib_prefix=no
12221   need_version=no
12222   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12224     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12225     dynamic_linker='NetBSD (a.out) ld.so'
12226   else
12227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12228     soname_spec='${libname}${release}${shared_ext}$major'
12229     dynamic_linker='NetBSD ld.elf_so'
12230   fi
12231   shlibpath_var=LD_LIBRARY_PATH
12232   shlibpath_overrides_runpath=yes
12233   hardcode_into_libs=yes
12234   ;;
12235
12236 newsos6)
12237   version_type=linux
12238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239   shlibpath_var=LD_LIBRARY_PATH
12240   shlibpath_overrides_runpath=yes
12241   ;;
12242
12243 *nto* | *qnx*)
12244   version_type=qnx
12245   need_lib_prefix=no
12246   need_version=no
12247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12248   soname_spec='${libname}${release}${shared_ext}$major'
12249   shlibpath_var=LD_LIBRARY_PATH
12250   shlibpath_overrides_runpath=no
12251   hardcode_into_libs=yes
12252   dynamic_linker='ldqnx.so'
12253   ;;
12254
12255 openbsd*)
12256   version_type=sunos
12257   sys_lib_dlsearch_path_spec="/usr/lib"
12258   need_lib_prefix=no
12259   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12260   case $host_os in
12261     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12262     *)                          need_version=no  ;;
12263   esac
12264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12266   shlibpath_var=LD_LIBRARY_PATH
12267   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12268     case $host_os in
12269       openbsd2.[89] | openbsd2.[89].*)
12270         shlibpath_overrides_runpath=no
12271         ;;
12272       *)
12273         shlibpath_overrides_runpath=yes
12274         ;;
12275       esac
12276   else
12277     shlibpath_overrides_runpath=yes
12278   fi
12279   ;;
12280
12281 os2*)
12282   libname_spec='$name'
12283   shrext_cmds=".dll"
12284   need_lib_prefix=no
12285   library_names_spec='$libname${shared_ext} $libname.a'
12286   dynamic_linker='OS/2 ld.exe'
12287   shlibpath_var=LIBPATH
12288   ;;
12289
12290 osf3* | osf4* | osf5*)
12291   version_type=osf
12292   need_lib_prefix=no
12293   need_version=no
12294   soname_spec='${libname}${release}${shared_ext}$major'
12295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296   shlibpath_var=LD_LIBRARY_PATH
12297   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12298   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12299   ;;
12300
12301 rdos*)
12302   dynamic_linker=no
12303   ;;
12304
12305 solaris*)
12306   version_type=linux
12307   need_lib_prefix=no
12308   need_version=no
12309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12310   soname_spec='${libname}${release}${shared_ext}$major'
12311   shlibpath_var=LD_LIBRARY_PATH
12312   shlibpath_overrides_runpath=yes
12313   hardcode_into_libs=yes
12314   # ldd complains unless libraries are executable
12315   postinstall_cmds='chmod +x $lib'
12316   ;;
12317
12318 sunos4*)
12319   version_type=sunos
12320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12321   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12322   shlibpath_var=LD_LIBRARY_PATH
12323   shlibpath_overrides_runpath=yes
12324   if test "$with_gnu_ld" = yes; then
12325     need_lib_prefix=no
12326   fi
12327   need_version=yes
12328   ;;
12329
12330 sysv4 | sysv4.3*)
12331   version_type=linux
12332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333   soname_spec='${libname}${release}${shared_ext}$major'
12334   shlibpath_var=LD_LIBRARY_PATH
12335   case $host_vendor in
12336     sni)
12337       shlibpath_overrides_runpath=no
12338       need_lib_prefix=no
12339       runpath_var=LD_RUN_PATH
12340       ;;
12341     siemens)
12342       need_lib_prefix=no
12343       ;;
12344     motorola)
12345       need_lib_prefix=no
12346       need_version=no
12347       shlibpath_overrides_runpath=no
12348       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12349       ;;
12350   esac
12351   ;;
12352
12353 sysv4*MP*)
12354   if test -d /usr/nec ;then
12355     version_type=linux
12356     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12357     soname_spec='$libname${shared_ext}.$major'
12358     shlibpath_var=LD_LIBRARY_PATH
12359   fi
12360   ;;
12361
12362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12363   version_type=freebsd-elf
12364   need_lib_prefix=no
12365   need_version=no
12366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12367   soname_spec='${libname}${release}${shared_ext}$major'
12368   shlibpath_var=LD_LIBRARY_PATH
12369   shlibpath_overrides_runpath=yes
12370   hardcode_into_libs=yes
12371   if test "$with_gnu_ld" = yes; then
12372     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12373   else
12374     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12375     case $host_os in
12376       sco3.2v5*)
12377         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12378         ;;
12379     esac
12380   fi
12381   sys_lib_dlsearch_path_spec='/usr/lib'
12382   ;;
12383
12384 tpf*)
12385   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12386   version_type=linux
12387   need_lib_prefix=no
12388   need_version=no
12389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390   shlibpath_var=LD_LIBRARY_PATH
12391   shlibpath_overrides_runpath=no
12392   hardcode_into_libs=yes
12393   ;;
12394
12395 uts4*)
12396   version_type=linux
12397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12398   soname_spec='${libname}${release}${shared_ext}$major'
12399   shlibpath_var=LD_LIBRARY_PATH
12400   ;;
12401
12402 *)
12403   dynamic_linker=no
12404   ;;
12405 esac
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12407 $as_echo "$dynamic_linker" >&6; }
12408 test "$dynamic_linker" = no && can_build_shared=no
12409
12410 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12411 if test "$GCC" = yes; then
12412   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12413 fi
12414
12415 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12416   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12417 fi
12418 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12419   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12420 fi
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12514 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12515 hardcode_action=
12516 if test -n "$hardcode_libdir_flag_spec" ||
12517    test -n "$runpath_var" ||
12518    test "X$hardcode_automatic" = "Xyes" ; then
12519
12520   # We can hardcode non-existent directories.
12521   if test "$hardcode_direct" != no &&
12522      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12523      # have to relink, otherwise we might link with an installed library
12524      # when we should be linking with a yet-to-be-installed one
12525      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12526      test "$hardcode_minus_L" != no; then
12527     # Linking always hardcodes the temporary library directory.
12528     hardcode_action=relink
12529   else
12530     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12531     hardcode_action=immediate
12532   fi
12533 else
12534   # We cannot hardcode anything, or else we can only hardcode existing
12535   # directories.
12536   hardcode_action=unsupported
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12539 $as_echo "$hardcode_action" >&6; }
12540
12541 if test "$hardcode_action" = relink ||
12542    test "$inherit_rpath" = yes; then
12543   # Fast installation is not supported
12544   enable_fast_install=no
12545 elif test "$shlibpath_overrides_runpath" = yes ||
12546      test "$enable_shared" = no; then
12547   # Fast installation is not necessary
12548   enable_fast_install=needless
12549 fi
12550
12551
12552
12553
12554
12555
12556   if test "x$enable_dlopen" != xyes; then
12557   enable_dlopen=unknown
12558   enable_dlopen_self=unknown
12559   enable_dlopen_self_static=unknown
12560 else
12561   lt_cv_dlopen=no
12562   lt_cv_dlopen_libs=
12563
12564   case $host_os in
12565   beos*)
12566     lt_cv_dlopen="load_add_on"
12567     lt_cv_dlopen_libs=
12568     lt_cv_dlopen_self=yes
12569     ;;
12570
12571   mingw* | pw32* | cegcc*)
12572     lt_cv_dlopen="LoadLibrary"
12573     lt_cv_dlopen_libs=
12574     ;;
12575
12576   cygwin*)
12577     lt_cv_dlopen="dlopen"
12578     lt_cv_dlopen_libs=
12579     ;;
12580
12581   darwin*)
12582   # if libdl is installed we need to link against it
12583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12584 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12585 if ${ac_cv_lib_dl_dlopen+:} false; then :
12586   $as_echo_n "(cached) " >&6
12587 else
12588   ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-ldl  $LIBS"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h.  */
12592
12593 /* Override any GCC internal prototype to avoid an error.
12594    Use char because int might match the return type of a GCC
12595    builtin and then its argument prototype would still apply.  */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char dlopen ();
12600 int
12601 main ()
12602 {
12603 return dlopen ();
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12609   ac_cv_lib_dl_dlopen=yes
12610 else
12611   ac_cv_lib_dl_dlopen=no
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext \
12614     conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12618 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12619 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12620   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12621 else
12622
12623     lt_cv_dlopen="dyld"
12624     lt_cv_dlopen_libs=
12625     lt_cv_dlopen_self=yes
12626
12627 fi
12628
12629     ;;
12630
12631   *)
12632     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12633 if test "x$ac_cv_func_shl_load" = xyes; then :
12634   lt_cv_dlopen="shl_load"
12635 else
12636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12637 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12638 if ${ac_cv_lib_dld_shl_load+:} false; then :
12639   $as_echo_n "(cached) " >&6
12640 else
12641   ac_check_lib_save_LIBS=$LIBS
12642 LIBS="-ldld  $LIBS"
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h.  */
12645
12646 /* Override any GCC internal prototype to avoid an error.
12647    Use char because int might match the return type of a GCC
12648    builtin and then its argument prototype would still apply.  */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char shl_load ();
12653 int
12654 main ()
12655 {
12656 return shl_load ();
12657   ;
12658   return 0;
12659 }
12660 _ACEOF
12661 if ac_fn_c_try_link "$LINENO"; then :
12662   ac_cv_lib_dld_shl_load=yes
12663 else
12664   ac_cv_lib_dld_shl_load=no
12665 fi
12666 rm -f core conftest.err conftest.$ac_objext \
12667     conftest$ac_exeext conftest.$ac_ext
12668 LIBS=$ac_check_lib_save_LIBS
12669 fi
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12671 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12672 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12673   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12674 else
12675   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12676 if test "x$ac_cv_func_dlopen" = xyes; then :
12677   lt_cv_dlopen="dlopen"
12678 else
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12680 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12681 if ${ac_cv_lib_dl_dlopen+:} false; then :
12682   $as_echo_n "(cached) " >&6
12683 else
12684   ac_check_lib_save_LIBS=$LIBS
12685 LIBS="-ldl  $LIBS"
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h.  */
12688
12689 /* Override any GCC internal prototype to avoid an error.
12690    Use char because int might match the return type of a GCC
12691    builtin and then its argument prototype would still apply.  */
12692 #ifdef __cplusplus
12693 extern "C"
12694 #endif
12695 char dlopen ();
12696 int
12697 main ()
12698 {
12699 return dlopen ();
12700   ;
12701   return 0;
12702 }
12703 _ACEOF
12704 if ac_fn_c_try_link "$LINENO"; then :
12705   ac_cv_lib_dl_dlopen=yes
12706 else
12707   ac_cv_lib_dl_dlopen=no
12708 fi
12709 rm -f core conftest.err conftest.$ac_objext \
12710     conftest$ac_exeext conftest.$ac_ext
12711 LIBS=$ac_check_lib_save_LIBS
12712 fi
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12714 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12715 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12716   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12717 else
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12719 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12720 if ${ac_cv_lib_svld_dlopen+:} false; then :
12721   $as_echo_n "(cached) " >&6
12722 else
12723   ac_check_lib_save_LIBS=$LIBS
12724 LIBS="-lsvld  $LIBS"
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h.  */
12727
12728 /* Override any GCC internal prototype to avoid an error.
12729    Use char because int might match the return type of a GCC
12730    builtin and then its argument prototype would still apply.  */
12731 #ifdef __cplusplus
12732 extern "C"
12733 #endif
12734 char dlopen ();
12735 int
12736 main ()
12737 {
12738 return dlopen ();
12739   ;
12740   return 0;
12741 }
12742 _ACEOF
12743 if ac_fn_c_try_link "$LINENO"; then :
12744   ac_cv_lib_svld_dlopen=yes
12745 else
12746   ac_cv_lib_svld_dlopen=no
12747 fi
12748 rm -f core conftest.err conftest.$ac_objext \
12749     conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12751 fi
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12753 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12754 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12755   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12756 else
12757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12758 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12759 if ${ac_cv_lib_dld_dld_link+:} false; then :
12760   $as_echo_n "(cached) " >&6
12761 else
12762   ac_check_lib_save_LIBS=$LIBS
12763 LIBS="-ldld  $LIBS"
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h.  */
12766
12767 /* Override any GCC internal prototype to avoid an error.
12768    Use char because int might match the return type of a GCC
12769    builtin and then its argument prototype would still apply.  */
12770 #ifdef __cplusplus
12771 extern "C"
12772 #endif
12773 char dld_link ();
12774 int
12775 main ()
12776 {
12777 return dld_link ();
12778   ;
12779   return 0;
12780 }
12781 _ACEOF
12782 if ac_fn_c_try_link "$LINENO"; then :
12783   ac_cv_lib_dld_dld_link=yes
12784 else
12785   ac_cv_lib_dld_dld_link=no
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext \
12788     conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12790 fi
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12792 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12793 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12794   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12795 fi
12796
12797
12798 fi
12799
12800
12801 fi
12802
12803
12804 fi
12805
12806
12807 fi
12808
12809
12810 fi
12811
12812     ;;
12813   esac
12814
12815   if test "x$lt_cv_dlopen" != xno; then
12816     enable_dlopen=yes
12817   else
12818     enable_dlopen=no
12819   fi
12820
12821   case $lt_cv_dlopen in
12822   dlopen)
12823     save_CPPFLAGS="$CPPFLAGS"
12824     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12825
12826     save_LDFLAGS="$LDFLAGS"
12827     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12828
12829     save_LIBS="$LIBS"
12830     LIBS="$lt_cv_dlopen_libs $LIBS"
12831
12832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12833 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12834 if ${lt_cv_dlopen_self+:} false; then :
12835   $as_echo_n "(cached) " >&6
12836 else
12837           if test "$cross_compiling" = yes; then :
12838   lt_cv_dlopen_self=cross
12839 else
12840   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12841   lt_status=$lt_dlunknown
12842   cat > conftest.$ac_ext <<_LT_EOF
12843 #line $LINENO "configure"
12844 #include "confdefs.h"
12845
12846 #if HAVE_DLFCN_H
12847 #include <dlfcn.h>
12848 #endif
12849
12850 #include <stdio.h>
12851
12852 #ifdef RTLD_GLOBAL
12853 #  define LT_DLGLOBAL           RTLD_GLOBAL
12854 #else
12855 #  ifdef DL_GLOBAL
12856 #    define LT_DLGLOBAL         DL_GLOBAL
12857 #  else
12858 #    define LT_DLGLOBAL         0
12859 #  endif
12860 #endif
12861
12862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12863    find out it does not work in some platform. */
12864 #ifndef LT_DLLAZY_OR_NOW
12865 #  ifdef RTLD_LAZY
12866 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12867 #  else
12868 #    ifdef DL_LAZY
12869 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12870 #    else
12871 #      ifdef RTLD_NOW
12872 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12873 #      else
12874 #        ifdef DL_NOW
12875 #          define LT_DLLAZY_OR_NOW      DL_NOW
12876 #        else
12877 #          define LT_DLLAZY_OR_NOW      0
12878 #        endif
12879 #      endif
12880 #    endif
12881 #  endif
12882 #endif
12883
12884 /* When -fvisbility=hidden is used, assume the code has been annotated
12885    correspondingly for the symbols needed.  */
12886 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12887 int fnord () __attribute__((visibility("default")));
12888 #endif
12889
12890 int fnord () { return 42; }
12891 int main ()
12892 {
12893   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12894   int status = $lt_dlunknown;
12895
12896   if (self)
12897     {
12898       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12899       else
12900         {
12901           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12902           else puts (dlerror ());
12903         }
12904       /* dlclose (self); */
12905     }
12906   else
12907     puts (dlerror ());
12908
12909   return status;
12910 }
12911 _LT_EOF
12912   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12913   (eval $ac_link) 2>&5
12914   ac_status=$?
12915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12916   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12917     (./conftest; exit; ) >&5 2>/dev/null
12918     lt_status=$?
12919     case x$lt_status in
12920       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12921       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12922       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12923     esac
12924   else :
12925     # compilation failed
12926     lt_cv_dlopen_self=no
12927   fi
12928 fi
12929 rm -fr conftest*
12930
12931
12932 fi
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12934 $as_echo "$lt_cv_dlopen_self" >&6; }
12935
12936     if test "x$lt_cv_dlopen_self" = xyes; then
12937       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12938       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12939 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12940 if ${lt_cv_dlopen_self_static+:} false; then :
12941   $as_echo_n "(cached) " >&6
12942 else
12943           if test "$cross_compiling" = yes; then :
12944   lt_cv_dlopen_self_static=cross
12945 else
12946   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12947   lt_status=$lt_dlunknown
12948   cat > conftest.$ac_ext <<_LT_EOF
12949 #line $LINENO "configure"
12950 #include "confdefs.h"
12951
12952 #if HAVE_DLFCN_H
12953 #include <dlfcn.h>
12954 #endif
12955
12956 #include <stdio.h>
12957
12958 #ifdef RTLD_GLOBAL
12959 #  define LT_DLGLOBAL           RTLD_GLOBAL
12960 #else
12961 #  ifdef DL_GLOBAL
12962 #    define LT_DLGLOBAL         DL_GLOBAL
12963 #  else
12964 #    define LT_DLGLOBAL         0
12965 #  endif
12966 #endif
12967
12968 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12969    find out it does not work in some platform. */
12970 #ifndef LT_DLLAZY_OR_NOW
12971 #  ifdef RTLD_LAZY
12972 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12973 #  else
12974 #    ifdef DL_LAZY
12975 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12976 #    else
12977 #      ifdef RTLD_NOW
12978 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12979 #      else
12980 #        ifdef DL_NOW
12981 #          define LT_DLLAZY_OR_NOW      DL_NOW
12982 #        else
12983 #          define LT_DLLAZY_OR_NOW      0
12984 #        endif
12985 #      endif
12986 #    endif
12987 #  endif
12988 #endif
12989
12990 /* When -fvisbility=hidden is used, assume the code has been annotated
12991    correspondingly for the symbols needed.  */
12992 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12993 int fnord () __attribute__((visibility("default")));
12994 #endif
12995
12996 int fnord () { return 42; }
12997 int main ()
12998 {
12999   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13000   int status = $lt_dlunknown;
13001
13002   if (self)
13003     {
13004       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13005       else
13006         {
13007           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13008           else puts (dlerror ());
13009         }
13010       /* dlclose (self); */
13011     }
13012   else
13013     puts (dlerror ());
13014
13015   return status;
13016 }
13017 _LT_EOF
13018   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13019   (eval $ac_link) 2>&5
13020   ac_status=$?
13021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13022   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13023     (./conftest; exit; ) >&5 2>/dev/null
13024     lt_status=$?
13025     case x$lt_status in
13026       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13027       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13028       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13029     esac
13030   else :
13031     # compilation failed
13032     lt_cv_dlopen_self_static=no
13033   fi
13034 fi
13035 rm -fr conftest*
13036
13037
13038 fi
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13040 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13041     fi
13042
13043     CPPFLAGS="$save_CPPFLAGS"
13044     LDFLAGS="$save_LDFLAGS"
13045     LIBS="$save_LIBS"
13046     ;;
13047   esac
13048
13049   case $lt_cv_dlopen_self in
13050   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13051   *) enable_dlopen_self=unknown ;;
13052   esac
13053
13054   case $lt_cv_dlopen_self_static in
13055   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13056   *) enable_dlopen_self_static=unknown ;;
13057   esac
13058 fi
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076 striplib=
13077 old_striplib=
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13079 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13080 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13081   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13082   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 $as_echo "yes" >&6; }
13085 else
13086 # FIXME - insert some real tests, host_os isn't really good enough
13087   case $host_os in
13088   darwin*)
13089     if test -n "$STRIP" ; then
13090       striplib="$STRIP -x"
13091       old_striplib="$STRIP -S"
13092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13093 $as_echo "yes" >&6; }
13094     else
13095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13097     fi
13098     ;;
13099   *)
13100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13102     ;;
13103   esac
13104 fi
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117   # Report which library types will actually be built
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13119 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13121 $as_echo "$can_build_shared" >&6; }
13122
13123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13124 $as_echo_n "checking whether to build shared libraries... " >&6; }
13125   test "$can_build_shared" = "no" && enable_shared=no
13126
13127   # On AIX, shared libraries and static libraries use the same namespace, and
13128   # are all built from PIC.
13129   case $host_os in
13130   aix3*)
13131     test "$enable_shared" = yes && enable_static=no
13132     if test -n "$RANLIB"; then
13133       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13134       postinstall_cmds='$RANLIB $lib'
13135     fi
13136     ;;
13137
13138   aix[4-9]*)
13139     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13140       test "$enable_shared" = yes && enable_static=no
13141     fi
13142     ;;
13143   esac
13144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13145 $as_echo "$enable_shared" >&6; }
13146
13147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13148 $as_echo_n "checking whether to build static libraries... " >&6; }
13149   # Make sure either enable_shared or enable_static is yes.
13150   test "$enable_shared" = yes || enable_static=yes
13151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13152 $as_echo "$enable_static" >&6; }
13153
13154
13155
13156
13157 fi
13158 ac_ext=c
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13163
13164 CC="$lt_save_CC"
13165
13166       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13167     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13168     (test "X$CXX" != "Xg++"))) ; then
13169   ac_ext=cpp
13170 ac_cpp='$CXXCPP $CPPFLAGS'
13171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13175 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13176 if test -z "$CXXCPP"; then
13177   if ${ac_cv_prog_CXXCPP+:} false; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180       # Double quotes because CXXCPP needs to be expanded
13181     for CXXCPP in "$CXX -E" "/lib/cpp"
13182     do
13183       ac_preproc_ok=false
13184 for ac_cxx_preproc_warn_flag in '' yes
13185 do
13186   # Use a header file that comes with gcc, so configuring glibc
13187   # with a fresh cross-compiler works.
13188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13189   # <limits.h> exists even on freestanding compilers.
13190   # On the NeXT, cc -E runs the code through the compiler's parser,
13191   # not just through cpp. "Syntax error" is here to catch this case.
13192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h.  */
13194 #ifdef __STDC__
13195 # include <limits.h>
13196 #else
13197 # include <assert.h>
13198 #endif
13199                      Syntax error
13200 _ACEOF
13201 if ac_fn_cxx_try_cpp "$LINENO"; then :
13202
13203 else
13204   # Broken: fails on valid input.
13205 continue
13206 fi
13207 rm -f conftest.err conftest.i conftest.$ac_ext
13208
13209   # OK, works on sane cases.  Now check whether nonexistent headers
13210   # can be detected and how.
13211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h.  */
13213 #include <ac_nonexistent.h>
13214 _ACEOF
13215 if ac_fn_cxx_try_cpp "$LINENO"; then :
13216   # Broken: success on invalid input.
13217 continue
13218 else
13219   # Passes both tests.
13220 ac_preproc_ok=:
13221 break
13222 fi
13223 rm -f conftest.err conftest.i conftest.$ac_ext
13224
13225 done
13226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13227 rm -f conftest.i conftest.err conftest.$ac_ext
13228 if $ac_preproc_ok; then :
13229   break
13230 fi
13231
13232     done
13233     ac_cv_prog_CXXCPP=$CXXCPP
13234
13235 fi
13236   CXXCPP=$ac_cv_prog_CXXCPP
13237 else
13238   ac_cv_prog_CXXCPP=$CXXCPP
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13241 $as_echo "$CXXCPP" >&6; }
13242 ac_preproc_ok=false
13243 for ac_cxx_preproc_warn_flag in '' yes
13244 do
13245   # Use a header file that comes with gcc, so configuring glibc
13246   # with a fresh cross-compiler works.
13247   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13248   # <limits.h> exists even on freestanding compilers.
13249   # On the NeXT, cc -E runs the code through the compiler's parser,
13250   # not just through cpp. "Syntax error" is here to catch this case.
13251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h.  */
13253 #ifdef __STDC__
13254 # include <limits.h>
13255 #else
13256 # include <assert.h>
13257 #endif
13258                      Syntax error
13259 _ACEOF
13260 if ac_fn_cxx_try_cpp "$LINENO"; then :
13261
13262 else
13263   # Broken: fails on valid input.
13264 continue
13265 fi
13266 rm -f conftest.err conftest.i conftest.$ac_ext
13267
13268   # OK, works on sane cases.  Now check whether nonexistent headers
13269   # can be detected and how.
13270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h.  */
13272 #include <ac_nonexistent.h>
13273 _ACEOF
13274 if ac_fn_cxx_try_cpp "$LINENO"; then :
13275   # Broken: success on invalid input.
13276 continue
13277 else
13278   # Passes both tests.
13279 ac_preproc_ok=:
13280 break
13281 fi
13282 rm -f conftest.err conftest.i conftest.$ac_ext
13283
13284 done
13285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13286 rm -f conftest.i conftest.err conftest.$ac_ext
13287 if $ac_preproc_ok; then :
13288
13289 else
13290   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13292 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13293 See \`config.log' for more details" "$LINENO" 5; }
13294 fi
13295
13296 ac_ext=c
13297 ac_cpp='$CPP $CPPFLAGS'
13298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13301
13302 else
13303   _lt_caught_CXX_error=yes
13304 fi
13305
13306 ac_ext=cpp
13307 ac_cpp='$CXXCPP $CPPFLAGS'
13308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13311
13312 archive_cmds_need_lc_CXX=no
13313 allow_undefined_flag_CXX=
13314 always_export_symbols_CXX=no
13315 archive_expsym_cmds_CXX=
13316 compiler_needs_object_CXX=no
13317 export_dynamic_flag_spec_CXX=
13318 hardcode_direct_CXX=no
13319 hardcode_direct_absolute_CXX=no
13320 hardcode_libdir_flag_spec_CXX=
13321 hardcode_libdir_flag_spec_ld_CXX=
13322 hardcode_libdir_separator_CXX=
13323 hardcode_minus_L_CXX=no
13324 hardcode_shlibpath_var_CXX=unsupported
13325 hardcode_automatic_CXX=no
13326 inherit_rpath_CXX=no
13327 module_cmds_CXX=
13328 module_expsym_cmds_CXX=
13329 link_all_deplibs_CXX=unknown
13330 old_archive_cmds_CXX=$old_archive_cmds
13331 reload_flag_CXX=$reload_flag
13332 reload_cmds_CXX=$reload_cmds
13333 no_undefined_flag_CXX=
13334 whole_archive_flag_spec_CXX=
13335 enable_shared_with_static_runtimes_CXX=no
13336
13337 # Source file extension for C++ test sources.
13338 ac_ext=cpp
13339
13340 # Object file extension for compiled C++ test sources.
13341 objext=o
13342 objext_CXX=$objext
13343
13344 # No sense in running all these tests if we already determined that
13345 # the CXX compiler isn't working.  Some variables (like enable_shared)
13346 # are currently assumed to apply to all compilers on this platform,
13347 # and will be corrupted by setting them based on a non-working compiler.
13348 if test "$_lt_caught_CXX_error" != yes; then
13349   # Code to be used in simple compile tests
13350   lt_simple_compile_test_code="int some_variable = 0;"
13351
13352   # Code to be used in simple link tests
13353   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13354
13355   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13356
13357
13358
13359
13360
13361
13362 # If no C compiler was specified, use CC.
13363 LTCC=${LTCC-"$CC"}
13364
13365 # If no C compiler flags were specified, use CFLAGS.
13366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13367
13368 # Allow CC to be a program name with arguments.
13369 compiler=$CC
13370
13371
13372   # save warnings/boilerplate of simple test code
13373   ac_outfile=conftest.$ac_objext
13374 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13376 _lt_compiler_boilerplate=`cat conftest.err`
13377 $RM conftest*
13378
13379   ac_outfile=conftest.$ac_objext
13380 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13382 _lt_linker_boilerplate=`cat conftest.err`
13383 $RM -r conftest*
13384
13385
13386   # Allow CC to be a program name with arguments.
13387   lt_save_CC=$CC
13388   lt_save_CFLAGS=$CFLAGS
13389   lt_save_LD=$LD
13390   lt_save_GCC=$GCC
13391   GCC=$GXX
13392   lt_save_with_gnu_ld=$with_gnu_ld
13393   lt_save_path_LD=$lt_cv_path_LD
13394   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13395     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13396   else
13397     $as_unset lt_cv_prog_gnu_ld
13398   fi
13399   if test -n "${lt_cv_path_LDCXX+set}"; then
13400     lt_cv_path_LD=$lt_cv_path_LDCXX
13401   else
13402     $as_unset lt_cv_path_LD
13403   fi
13404   test -z "${LDCXX+set}" || LD=$LDCXX
13405   CC=${CXX-"c++"}
13406   CFLAGS=$CXXFLAGS
13407   compiler=$CC
13408   compiler_CXX=$CC
13409   for cc_temp in $compiler""; do
13410   case $cc_temp in
13411     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13412     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13413     \-*) ;;
13414     *) break;;
13415   esac
13416 done
13417 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13418
13419
13420   if test -n "$compiler"; then
13421     # We don't want -fno-exception when compiling C++ code, so set the
13422     # no_builtin_flag separately
13423     if test "$GXX" = yes; then
13424       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13425     else
13426       lt_prog_compiler_no_builtin_flag_CXX=
13427     fi
13428
13429     if test "$GXX" = yes; then
13430       # Set up default GNU C++ configuration
13431
13432
13433
13434 # Check whether --with-gnu-ld was given.
13435 if test "${with_gnu_ld+set}" = set; then :
13436   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13437 else
13438   with_gnu_ld=no
13439 fi
13440
13441 ac_prog=ld
13442 if test "$GCC" = yes; then
13443   # Check if gcc -print-prog-name=ld gives a path.
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13445 $as_echo_n "checking for ld used by $CC... " >&6; }
13446   case $host in
13447   *-*-mingw*)
13448     # gcc leaves a trailing carriage return which upsets mingw
13449     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13450   *)
13451     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13452   esac
13453   case $ac_prog in
13454     # Accept absolute paths.
13455     [\\/]* | ?:[\\/]*)
13456       re_direlt='/[^/][^/]*/\.\./'
13457       # Canonicalize the pathname of ld
13458       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13459       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13460         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13461       done
13462       test -z "$LD" && LD="$ac_prog"
13463       ;;
13464   "")
13465     # If it fails, then pretend we aren't using GCC.
13466     ac_prog=ld
13467     ;;
13468   *)
13469     # If it is relative, then search for the first ld in PATH.
13470     with_gnu_ld=unknown
13471     ;;
13472   esac
13473 elif test "$with_gnu_ld" = yes; then
13474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13475 $as_echo_n "checking for GNU ld... " >&6; }
13476 else
13477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13478 $as_echo_n "checking for non-GNU ld... " >&6; }
13479 fi
13480 if ${lt_cv_path_LD+:} false; then :
13481   $as_echo_n "(cached) " >&6
13482 else
13483   if test -z "$LD"; then
13484   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13485   for ac_dir in $PATH; do
13486     IFS="$lt_save_ifs"
13487     test -z "$ac_dir" && ac_dir=.
13488     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13489       lt_cv_path_LD="$ac_dir/$ac_prog"
13490       # Check to see if the program is GNU ld.  I'd rather use --version,
13491       # but apparently some variants of GNU ld only accept -v.
13492       # Break only if it was the GNU/non-GNU ld that we prefer.
13493       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13494       *GNU* | *'with BFD'*)
13495         test "$with_gnu_ld" != no && break
13496         ;;
13497       *)
13498         test "$with_gnu_ld" != yes && break
13499         ;;
13500       esac
13501     fi
13502   done
13503   IFS="$lt_save_ifs"
13504 else
13505   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13506 fi
13507 fi
13508
13509 LD="$lt_cv_path_LD"
13510 if test -n "$LD"; then
13511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13512 $as_echo "$LD" >&6; }
13513 else
13514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13515 $as_echo "no" >&6; }
13516 fi
13517 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13519 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13520 if ${lt_cv_prog_gnu_ld+:} false; then :
13521   $as_echo_n "(cached) " >&6
13522 else
13523   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13524 case `$LD -v 2>&1 </dev/null` in
13525 *GNU* | *'with BFD'*)
13526   lt_cv_prog_gnu_ld=yes
13527   ;;
13528 *)
13529   lt_cv_prog_gnu_ld=no
13530   ;;
13531 esac
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13534 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13535 with_gnu_ld=$lt_cv_prog_gnu_ld
13536
13537
13538
13539
13540
13541
13542
13543       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13544       # archiving commands below assume that GNU ld is being used.
13545       if test "$with_gnu_ld" = yes; then
13546         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13547         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13548
13549         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13550         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13551
13552         # If archive_cmds runs LD, not CC, wlarc should be empty
13553         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13554         #     investigate it a little bit more. (MM)
13555         wlarc='${wl}'
13556
13557         # ancient GNU ld didn't support --whole-archive et. al.
13558         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13559           $GREP 'no-whole-archive' > /dev/null; then
13560           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13561         else
13562           whole_archive_flag_spec_CXX=
13563         fi
13564       else
13565         with_gnu_ld=no
13566         wlarc=
13567
13568         # A generic and very simple default shared library creation
13569         # command for GNU C++ for the case where it uses the native
13570         # linker, instead of GNU ld.  If possible, this setting should
13571         # overridden to take advantage of the native linker features on
13572         # the platform it is being used on.
13573         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13574       fi
13575
13576       # Commands to make compiler produce verbose output that lists
13577       # what "hidden" libraries, object files and flags are used when
13578       # linking a shared library.
13579       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13580
13581     else
13582       GXX=no
13583       with_gnu_ld=no
13584       wlarc=
13585     fi
13586
13587     # PORTME: fill in a description of your system's C++ link characteristics
13588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13589 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13590     ld_shlibs_CXX=yes
13591     case $host_os in
13592       aix3*)
13593         # FIXME: insert proper C++ library support
13594         ld_shlibs_CXX=no
13595         ;;
13596       aix[4-9]*)
13597         if test "$host_cpu" = ia64; then
13598           # On IA64, the linker does run time linking by default, so we don't
13599           # have to do anything special.
13600           aix_use_runtimelinking=no
13601           exp_sym_flag='-Bexport'
13602           no_entry_flag=""
13603         else
13604           aix_use_runtimelinking=no
13605
13606           # Test if we are trying to use run time linking or normal
13607           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13608           # need to do runtime linking.
13609           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13610             for ld_flag in $LDFLAGS; do
13611               case $ld_flag in
13612               *-brtl*)
13613                 aix_use_runtimelinking=yes
13614                 break
13615                 ;;
13616               esac
13617             done
13618             ;;
13619           esac
13620
13621           exp_sym_flag='-bexport'
13622           no_entry_flag='-bnoentry'
13623         fi
13624
13625         # When large executables or shared objects are built, AIX ld can
13626         # have problems creating the table of contents.  If linking a library
13627         # or program results in "error TOC overflow" add -mminimal-toc to
13628         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13629         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13630
13631         archive_cmds_CXX=''
13632         hardcode_direct_CXX=yes
13633         hardcode_direct_absolute_CXX=yes
13634         hardcode_libdir_separator_CXX=':'
13635         link_all_deplibs_CXX=yes
13636         file_list_spec_CXX='${wl}-f,'
13637
13638         if test "$GXX" = yes; then
13639           case $host_os in aix4.[012]|aix4.[012].*)
13640           # We only want to do this on AIX 4.2 and lower, the check
13641           # below for broken collect2 doesn't work under 4.3+
13642           collect2name=`${CC} -print-prog-name=collect2`
13643           if test -f "$collect2name" &&
13644              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13645           then
13646             # We have reworked collect2
13647             :
13648           else
13649             # We have old collect2
13650             hardcode_direct_CXX=unsupported
13651             # It fails to find uninstalled libraries when the uninstalled
13652             # path is not listed in the libpath.  Setting hardcode_minus_L
13653             # to unsupported forces relinking
13654             hardcode_minus_L_CXX=yes
13655             hardcode_libdir_flag_spec_CXX='-L$libdir'
13656             hardcode_libdir_separator_CXX=
13657           fi
13658           esac
13659           shared_flag='-shared'
13660           if test "$aix_use_runtimelinking" = yes; then
13661             shared_flag="$shared_flag "'${wl}-G'
13662           fi
13663         else
13664           # not using gcc
13665           if test "$host_cpu" = ia64; then
13666           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13667           # chokes on -Wl,-G. The following line is correct:
13668           shared_flag='-G'
13669           else
13670             if test "$aix_use_runtimelinking" = yes; then
13671               shared_flag='${wl}-G'
13672             else
13673               shared_flag='${wl}-bM:SRE'
13674             fi
13675           fi
13676         fi
13677
13678         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13679         # It seems that -bexpall does not export symbols beginning with
13680         # underscore (_), so it is better to generate a list of symbols to
13681         # export.
13682         always_export_symbols_CXX=yes
13683         if test "$aix_use_runtimelinking" = yes; then
13684           # Warning - without using the other runtime loading flags (-brtl),
13685           # -berok will link without error, but may produce a broken library.
13686           allow_undefined_flag_CXX='-berok'
13687           # Determine the default libpath from the value encoded in an empty
13688           # executable.
13689           if test "${lt_cv_aix_libpath+set}" = set; then
13690   aix_libpath=$lt_cv_aix_libpath
13691 else
13692   if ${lt_cv_aix_libpath__CXX+:} false; then :
13693   $as_echo_n "(cached) " >&6
13694 else
13695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h.  */
13697
13698 int
13699 main ()
13700 {
13701
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 if ac_fn_cxx_try_link "$LINENO"; then :
13707
13708   lt_aix_libpath_sed='
13709       /Import File Strings/,/^$/ {
13710           /^0/ {
13711               s/^0  *\([^ ]*\) *$/\1/
13712               p
13713           }
13714       }'
13715   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13716   # Check for a 64-bit object if we didn't find anything.
13717   if test -z "$lt_cv_aix_libpath__CXX"; then
13718     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13719   fi
13720 fi
13721 rm -f core conftest.err conftest.$ac_objext \
13722     conftest$ac_exeext conftest.$ac_ext
13723   if test -z "$lt_cv_aix_libpath__CXX"; then
13724     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13725   fi
13726
13727 fi
13728
13729   aix_libpath=$lt_cv_aix_libpath__CXX
13730 fi
13731
13732           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13733
13734           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13735         else
13736           if test "$host_cpu" = ia64; then
13737             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13738             allow_undefined_flag_CXX="-z nodefs"
13739             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"
13740           else
13741             # Determine the default libpath from the value encoded in an
13742             # empty executable.
13743             if test "${lt_cv_aix_libpath+set}" = set; then
13744   aix_libpath=$lt_cv_aix_libpath
13745 else
13746   if ${lt_cv_aix_libpath__CXX+:} false; then :
13747   $as_echo_n "(cached) " >&6
13748 else
13749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h.  */
13751
13752 int
13753 main ()
13754 {
13755
13756   ;
13757   return 0;
13758 }
13759 _ACEOF
13760 if ac_fn_cxx_try_link "$LINENO"; then :
13761
13762   lt_aix_libpath_sed='
13763       /Import File Strings/,/^$/ {
13764           /^0/ {
13765               s/^0  *\([^ ]*\) *$/\1/
13766               p
13767           }
13768       }'
13769   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13770   # Check for a 64-bit object if we didn't find anything.
13771   if test -z "$lt_cv_aix_libpath__CXX"; then
13772     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13773   fi
13774 fi
13775 rm -f core conftest.err conftest.$ac_objext \
13776     conftest$ac_exeext conftest.$ac_ext
13777   if test -z "$lt_cv_aix_libpath__CXX"; then
13778     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13779   fi
13780
13781 fi
13782
13783   aix_libpath=$lt_cv_aix_libpath__CXX
13784 fi
13785
13786             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13787             # Warning - without using the other run time loading flags,
13788             # -berok will link without error, but may produce a broken library.
13789             no_undefined_flag_CXX=' ${wl}-bernotok'
13790             allow_undefined_flag_CXX=' ${wl}-berok'
13791             if test "$with_gnu_ld" = yes; then
13792               # We only use this code for GNU lds that support --whole-archive.
13793               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13794             else
13795               # Exported symbols can be pulled into shared objects from archives
13796               whole_archive_flag_spec_CXX='$convenience'
13797             fi
13798             archive_cmds_need_lc_CXX=yes
13799             # This is similar to how AIX traditionally builds its shared
13800             # libraries.
13801             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'
13802           fi
13803         fi
13804         ;;
13805
13806       beos*)
13807         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13808           allow_undefined_flag_CXX=unsupported
13809           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13810           # support --undefined.  This deserves some investigation.  FIXME
13811           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812         else
13813           ld_shlibs_CXX=no
13814         fi
13815         ;;
13816
13817       chorus*)
13818         case $cc_basename in
13819           *)
13820           # FIXME: insert proper C++ library support
13821           ld_shlibs_CXX=no
13822           ;;
13823         esac
13824         ;;
13825
13826       cygwin* | mingw* | pw32* | cegcc*)
13827         case $GXX,$cc_basename in
13828         ,cl* | no,cl*)
13829           # Native MSVC
13830           # hardcode_libdir_flag_spec is actually meaningless, as there is
13831           # no search path for DLLs.
13832           hardcode_libdir_flag_spec_CXX=' '
13833           allow_undefined_flag_CXX=unsupported
13834           always_export_symbols_CXX=yes
13835           file_list_spec_CXX='@'
13836           # Tell ltmain to make .lib files, not .a files.
13837           libext=lib
13838           # Tell ltmain to make .dll files, not .so files.
13839           shrext_cmds=".dll"
13840           # FIXME: Setting linknames here is a bad hack.
13841           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13842           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13843               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13844             else
13845               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13846             fi~
13847             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13848             linknames='
13849           # The linker will not automatically build a static lib if we build a DLL.
13850           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13851           enable_shared_with_static_runtimes_CXX=yes
13852           # Don't use ranlib
13853           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13854           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13855             lt_tool_outputfile="@TOOL_OUTPUT@"~
13856             case $lt_outputfile in
13857               *.exe|*.EXE) ;;
13858               *)
13859                 lt_outputfile="$lt_outputfile.exe"
13860                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13861                 ;;
13862             esac~
13863             func_to_tool_file "$lt_outputfile"~
13864             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13865               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13866               $RM "$lt_outputfile.manifest";
13867             fi'
13868           ;;
13869         *)
13870           # g++
13871           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13872           # as there is no search path for DLLs.
13873           hardcode_libdir_flag_spec_CXX='-L$libdir'
13874           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13875           allow_undefined_flag_CXX=unsupported
13876           always_export_symbols_CXX=no
13877           enable_shared_with_static_runtimes_CXX=yes
13878
13879           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13880             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'
13881             # If the export-symbols file already is a .def file (1st line
13882             # is EXPORTS), use it as is; otherwise, prepend...
13883             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13884               cp $export_symbols $output_objdir/$soname.def;
13885             else
13886               echo EXPORTS > $output_objdir/$soname.def;
13887               cat $export_symbols >> $output_objdir/$soname.def;
13888             fi~
13889             $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'
13890           else
13891             ld_shlibs_CXX=no
13892           fi
13893           ;;
13894         esac
13895         ;;
13896       darwin* | rhapsody*)
13897
13898
13899   archive_cmds_need_lc_CXX=no
13900   hardcode_direct_CXX=no
13901   hardcode_automatic_CXX=yes
13902   hardcode_shlibpath_var_CXX=unsupported
13903   if test "$lt_cv_ld_force_load" = "yes"; then
13904     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13905   else
13906     whole_archive_flag_spec_CXX=''
13907   fi
13908   link_all_deplibs_CXX=yes
13909   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13910   case $cc_basename in
13911      ifort*) _lt_dar_can_shared=yes ;;
13912      *) _lt_dar_can_shared=$GCC ;;
13913   esac
13914   if test "$_lt_dar_can_shared" = "yes"; then
13915     output_verbose_link_cmd=func_echo_all
13916     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}"
13917     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13918     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}"
13919     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}"
13920        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13921       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}"
13922       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}"
13923     fi
13924
13925   else
13926   ld_shlibs_CXX=no
13927   fi
13928
13929         ;;
13930
13931       dgux*)
13932         case $cc_basename in
13933           ec++*)
13934             # FIXME: insert proper C++ library support
13935             ld_shlibs_CXX=no
13936             ;;
13937           ghcx*)
13938             # Green Hills C++ Compiler
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942           *)
13943             # FIXME: insert proper C++ library support
13944             ld_shlibs_CXX=no
13945             ;;
13946         esac
13947         ;;
13948
13949       freebsd[12]*)
13950         # C++ shared libraries reported to be fairly broken before
13951         # switch to ELF
13952         ld_shlibs_CXX=no
13953         ;;
13954
13955       freebsd-elf*)
13956         archive_cmds_need_lc_CXX=no
13957         ;;
13958
13959       freebsd* | dragonfly*)
13960         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13961         # conventions
13962         ld_shlibs_CXX=yes
13963         ;;
13964
13965       gnu*)
13966         ;;
13967
13968       haiku*)
13969         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13970         link_all_deplibs_CXX=yes
13971         ;;
13972
13973       hpux9*)
13974         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13975         hardcode_libdir_separator_CXX=:
13976         export_dynamic_flag_spec_CXX='${wl}-E'
13977         hardcode_direct_CXX=yes
13978         hardcode_minus_L_CXX=yes # Not in the search PATH,
13979                                              # but as the default
13980                                              # location of the library.
13981
13982         case $cc_basename in
13983           CC*)
13984             # FIXME: insert proper C++ library support
13985             ld_shlibs_CXX=no
13986             ;;
13987           aCC*)
13988             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'
13989             # Commands to make compiler produce verbose output that lists
13990             # what "hidden" libraries, object files and flags are used when
13991             # linking a shared library.
13992             #
13993             # There doesn't appear to be a way to prevent this compiler from
13994             # explicitly linking system object files so we need to strip them
13995             # from the output so that they don't get included in the library
13996             # dependencies.
13997             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; func_echo_all "$list"'
13998             ;;
13999           *)
14000             if test "$GXX" = yes; then
14001               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
14002             else
14003               # FIXME: insert proper C++ library support
14004               ld_shlibs_CXX=no
14005             fi
14006             ;;
14007         esac
14008         ;;
14009
14010       hpux10*|hpux11*)
14011         if test $with_gnu_ld = no; then
14012           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14013           hardcode_libdir_separator_CXX=:
14014
14015           case $host_cpu in
14016             hppa*64*|ia64*)
14017               ;;
14018             *)
14019               export_dynamic_flag_spec_CXX='${wl}-E'
14020               ;;
14021           esac
14022         fi
14023         case $host_cpu in
14024           hppa*64*|ia64*)
14025             hardcode_direct_CXX=no
14026             hardcode_shlibpath_var_CXX=no
14027             ;;
14028           *)
14029             hardcode_direct_CXX=yes
14030             hardcode_direct_absolute_CXX=yes
14031             hardcode_minus_L_CXX=yes # Not in the search PATH,
14032                                                  # but as the default
14033                                                  # location of the library.
14034             ;;
14035         esac
14036
14037         case $cc_basename in
14038           CC*)
14039             # FIXME: insert proper C++ library support
14040             ld_shlibs_CXX=no
14041             ;;
14042           aCC*)
14043             case $host_cpu in
14044               hppa*64*)
14045                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14046                 ;;
14047               ia64*)
14048                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14049                 ;;
14050               *)
14051                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14052                 ;;
14053             esac
14054             # Commands to make compiler produce verbose output that lists
14055             # what "hidden" libraries, object files and flags are used when
14056             # linking a shared library.
14057             #
14058             # There doesn't appear to be a way to prevent this compiler from
14059             # explicitly linking system object files so we need to strip them
14060             # from the output so that they don't get included in the library
14061             # dependencies.
14062             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; func_echo_all "$list"'
14063             ;;
14064           *)
14065             if test "$GXX" = yes; then
14066               if test $with_gnu_ld = no; then
14067                 case $host_cpu in
14068                   hppa*64*)
14069                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14070                     ;;
14071                   ia64*)
14072                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14073                     ;;
14074                   *)
14075                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14076                     ;;
14077                 esac
14078               fi
14079             else
14080               # FIXME: insert proper C++ library support
14081               ld_shlibs_CXX=no
14082             fi
14083             ;;
14084         esac
14085         ;;
14086
14087       interix[3-9]*)
14088         hardcode_direct_CXX=no
14089         hardcode_shlibpath_var_CXX=no
14090         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14091         export_dynamic_flag_spec_CXX='${wl}-E'
14092         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14093         # Instead, shared libraries are loaded at an image base (0x10000000 by
14094         # default) and relocated if they conflict, which is a slow very memory
14095         # consuming and fragmenting process.  To avoid this, we pick a random,
14096         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14097         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14098         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'
14099         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'
14100         ;;
14101       irix5* | irix6*)
14102         case $cc_basename in
14103           CC*)
14104             # SGI C++
14105             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14106
14107             # Archives containing C++ object files must be created using
14108             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14109             # necessary to make sure instantiated templates are included
14110             # in the archive.
14111             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14112             ;;
14113           *)
14114             if test "$GXX" = yes; then
14115               if test "$with_gnu_ld" = no; then
14116                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14117               else
14118                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14119               fi
14120             fi
14121             link_all_deplibs_CXX=yes
14122             ;;
14123         esac
14124         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14125         hardcode_libdir_separator_CXX=:
14126         inherit_rpath_CXX=yes
14127         ;;
14128
14129       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14130         case $cc_basename in
14131           KCC*)
14132             # Kuck and Associates, Inc. (KAI) C++ Compiler
14133
14134             # KCC will only create a shared library if the output file
14135             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14136             # to its proper name (with version) after linking.
14137             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'
14138             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'
14139             # Commands to make compiler produce verbose output that lists
14140             # what "hidden" libraries, object files and flags are used when
14141             # linking a shared library.
14142             #
14143             # There doesn't appear to be a way to prevent this compiler from
14144             # explicitly linking system object files so we need to strip them
14145             # from the output so that they don't get included in the library
14146             # dependencies.
14147             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; func_echo_all "$list"'
14148
14149             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14150             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14151
14152             # Archives containing C++ object files must be created using
14153             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14154             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14155             ;;
14156           icpc* | ecpc* )
14157             # Intel C++
14158             with_gnu_ld=yes
14159             # version 8.0 and above of icpc choke on multiply defined symbols
14160             # if we add $predep_objects and $postdep_objects, however 7.1 and
14161             # earlier do not add the objects themselves.
14162             case `$CC -V 2>&1` in
14163               *"Version 7."*)
14164                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165                 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'
14166                 ;;
14167               *)  # Version 8.0 or newer
14168                 tmp_idyn=
14169                 case $host_cpu in
14170                   ia64*) tmp_idyn=' -i_dynamic';;
14171                 esac
14172                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14173                 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'
14174                 ;;
14175             esac
14176             archive_cmds_need_lc_CXX=no
14177             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14178             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14179             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14180             ;;
14181           pgCC* | pgcpp*)
14182             # Portland Group C++ compiler
14183             case `$CC -V` in
14184             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14185               prelink_cmds_CXX='tpldir=Template.dir~
14186                 rm -rf $tpldir~
14187                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14188                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14189               old_archive_cmds_CXX='tpldir=Template.dir~
14190                 rm -rf $tpldir~
14191                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14192                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14193                 $RANLIB $oldlib'
14194               archive_cmds_CXX='tpldir=Template.dir~
14195                 rm -rf $tpldir~
14196                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14197                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14198               archive_expsym_cmds_CXX='tpldir=Template.dir~
14199                 rm -rf $tpldir~
14200                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14201                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14202               ;;
14203             *) # Version 6 and above use weak symbols
14204               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14205               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'
14206               ;;
14207             esac
14208
14209             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14210             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14211             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14212             ;;
14213           cxx*)
14214             # Compaq C++
14215             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14216             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'
14217
14218             runpath_var=LD_RUN_PATH
14219             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14220             hardcode_libdir_separator_CXX=:
14221
14222             # Commands to make compiler produce verbose output that lists
14223             # what "hidden" libraries, object files and flags are used when
14224             # linking a shared library.
14225             #
14226             # There doesn't appear to be a way to prevent this compiler from
14227             # explicitly linking system object files so we need to strip them
14228             # from the output so that they don't get included in the library
14229             # dependencies.
14230             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14231             ;;
14232           xl* | mpixl* | bgxl*)
14233             # IBM XL 8.0 on PPC, with GNU ld
14234             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14235             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14236             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14237             if test "x$supports_anon_versioning" = xyes; then
14238               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14239                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14240                 echo "local: *; };" >> $output_objdir/$libname.ver~
14241                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14242             fi
14243             ;;
14244           *)
14245             case `$CC -V 2>&1 | sed 5q` in
14246             *Sun\ C*)
14247               # Sun C++ 5.9
14248               no_undefined_flag_CXX=' -zdefs'
14249               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14250               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'
14251               hardcode_libdir_flag_spec_CXX='-R$libdir'
14252               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14253               compiler_needs_object_CXX=yes
14254
14255               # Not sure whether something based on
14256               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14257               # would be better.
14258               output_verbose_link_cmd='func_echo_all'
14259
14260               # Archives containing C++ object files must be created using
14261               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14262               # necessary to make sure instantiated templates are included
14263               # in the archive.
14264               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14265               ;;
14266             esac
14267             ;;
14268         esac
14269         ;;
14270
14271       lynxos*)
14272         # FIXME: insert proper C++ library support
14273         ld_shlibs_CXX=no
14274         ;;
14275
14276       m88k*)
14277         # FIXME: insert proper C++ library support
14278         ld_shlibs_CXX=no
14279         ;;
14280
14281       mvs*)
14282         case $cc_basename in
14283           cxx*)
14284             # FIXME: insert proper C++ library support
14285             ld_shlibs_CXX=no
14286             ;;
14287           *)
14288             # FIXME: insert proper C++ library support
14289             ld_shlibs_CXX=no
14290             ;;
14291         esac
14292         ;;
14293
14294       netbsd*)
14295         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14296           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14297           wlarc=
14298           hardcode_libdir_flag_spec_CXX='-R$libdir'
14299           hardcode_direct_CXX=yes
14300           hardcode_shlibpath_var_CXX=no
14301         fi
14302         # Workaround some broken pre-1.5 toolchains
14303         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14304         ;;
14305
14306       *nto* | *qnx*)
14307         ld_shlibs_CXX=yes
14308         ;;
14309
14310       openbsd2*)
14311         # C++ shared libraries are fairly broken
14312         ld_shlibs_CXX=no
14313         ;;
14314
14315       openbsd*)
14316         if test -f /usr/libexec/ld.so; then
14317           hardcode_direct_CXX=yes
14318           hardcode_shlibpath_var_CXX=no
14319           hardcode_direct_absolute_CXX=yes
14320           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14321           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14322           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14323             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14324             export_dynamic_flag_spec_CXX='${wl}-E'
14325             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14326           fi
14327           output_verbose_link_cmd=func_echo_all
14328         else
14329           ld_shlibs_CXX=no
14330         fi
14331         ;;
14332
14333       osf3* | osf4* | osf5*)
14334         case $cc_basename in
14335           KCC*)
14336             # Kuck and Associates, Inc. (KAI) C++ Compiler
14337
14338             # KCC will only create a shared library if the output file
14339             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14340             # to its proper name (with version) after linking.
14341             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'
14342
14343             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14344             hardcode_libdir_separator_CXX=:
14345
14346             # Archives containing C++ object files must be created using
14347             # the KAI C++ compiler.
14348             case $host in
14349               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14350               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14351             esac
14352             ;;
14353           RCC*)
14354             # Rational C++ 2.4.1
14355             # FIXME: insert proper C++ library support
14356             ld_shlibs_CXX=no
14357             ;;
14358           cxx*)
14359             case $host in
14360               osf3*)
14361                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14362                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14363                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14364                 ;;
14365               *)
14366                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14367                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14368                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14369                   echo "-hidden">> $lib.exp~
14370                   $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14371                   $RM $lib.exp'
14372                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14373                 ;;
14374             esac
14375
14376             hardcode_libdir_separator_CXX=:
14377
14378             # Commands to make compiler produce verbose output that lists
14379             # what "hidden" libraries, object files and flags are used when
14380             # linking a shared library.
14381             #
14382             # There doesn't appear to be a way to prevent this compiler from
14383             # explicitly linking system object files so we need to strip them
14384             # from the output so that they don't get included in the library
14385             # dependencies.
14386             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14387             ;;
14388           *)
14389             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14390               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14391               case $host in
14392                 osf3*)
14393                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14394                   ;;
14395                 *)
14396                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14397                   ;;
14398               esac
14399
14400               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14401               hardcode_libdir_separator_CXX=:
14402
14403               # Commands to make compiler produce verbose output that lists
14404               # what "hidden" libraries, object files and flags are used when
14405               # linking a shared library.
14406               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14407
14408             else
14409               # FIXME: insert proper C++ library support
14410               ld_shlibs_CXX=no
14411             fi
14412             ;;
14413         esac
14414         ;;
14415
14416       psos*)
14417         # FIXME: insert proper C++ library support
14418         ld_shlibs_CXX=no
14419         ;;
14420
14421       sunos4*)
14422         case $cc_basename in
14423           CC*)
14424             # Sun C++ 4.x
14425             # FIXME: insert proper C++ library support
14426             ld_shlibs_CXX=no
14427             ;;
14428           lcc*)
14429             # Lucid
14430             # FIXME: insert proper C++ library support
14431             ld_shlibs_CXX=no
14432             ;;
14433           *)
14434             # FIXME: insert proper C++ library support
14435             ld_shlibs_CXX=no
14436             ;;
14437         esac
14438         ;;
14439
14440       solaris*)
14441         case $cc_basename in
14442           CC* | sunCC*)
14443             # Sun C++ 4.2, 5.x and Centerline C++
14444             archive_cmds_need_lc_CXX=yes
14445             no_undefined_flag_CXX=' -zdefs'
14446             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14447             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14448               $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'
14449
14450             hardcode_libdir_flag_spec_CXX='-R$libdir'
14451             hardcode_shlibpath_var_CXX=no
14452             case $host_os in
14453               solaris2.[0-5] | solaris2.[0-5].*) ;;
14454               *)
14455                 # The compiler driver will combine and reorder linker options,
14456                 # but understands `-z linker_flag'.
14457                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14458                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14459                 ;;
14460             esac
14461             link_all_deplibs_CXX=yes
14462
14463             output_verbose_link_cmd='func_echo_all'
14464
14465             # Archives containing C++ object files must be created using
14466             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14467             # necessary to make sure instantiated templates are included
14468             # in the archive.
14469             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14470             ;;
14471           gcx*)
14472             # Green Hills C++ Compiler
14473             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14474
14475             # The C++ compiler must be used to create the archive.
14476             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14477             ;;
14478           *)
14479             # GNU C++ compiler with Solaris linker
14480             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14481               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14482               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14483                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14484                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14485                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14486
14487                 # Commands to make compiler produce verbose output that lists
14488                 # what "hidden" libraries, object files and flags are used when
14489                 # linking a shared library.
14490                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14491               else
14492                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14493                 # platform.
14494                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14495                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14496                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14497
14498                 # Commands to make compiler produce verbose output that lists
14499                 # what "hidden" libraries, object files and flags are used when
14500                 # linking a shared library.
14501                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14502               fi
14503
14504               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14505               case $host_os in
14506                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14507                 *)
14508                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14509                   ;;
14510               esac
14511             fi
14512             ;;
14513         esac
14514         ;;
14515
14516     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14517       no_undefined_flag_CXX='${wl}-z,text'
14518       archive_cmds_need_lc_CXX=no
14519       hardcode_shlibpath_var_CXX=no
14520       runpath_var='LD_RUN_PATH'
14521
14522       case $cc_basename in
14523         CC*)
14524           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14526           ;;
14527         *)
14528           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14529           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14530           ;;
14531       esac
14532       ;;
14533
14534       sysv5* | sco3.2v5* | sco5v6*)
14535         # Note: We can NOT use -z defs as we might desire, because we do not
14536         # link with -lc, and that would cause any symbols used from libc to
14537         # always be unresolved, which means just about no library would
14538         # ever link correctly.  If we're not using GNU ld we use -z text
14539         # though, which does catch some bad symbols but isn't as heavy-handed
14540         # as -z defs.
14541         no_undefined_flag_CXX='${wl}-z,text'
14542         allow_undefined_flag_CXX='${wl}-z,nodefs'
14543         archive_cmds_need_lc_CXX=no
14544         hardcode_shlibpath_var_CXX=no
14545         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14546         hardcode_libdir_separator_CXX=':'
14547         link_all_deplibs_CXX=yes
14548         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14549         runpath_var='LD_RUN_PATH'
14550
14551         case $cc_basename in
14552           CC*)
14553             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14556               '"$old_archive_cmds_CXX"
14557             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14558               '"$reload_cmds_CXX"
14559             ;;
14560           *)
14561             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14562             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563             ;;
14564         esac
14565       ;;
14566
14567       tandem*)
14568         case $cc_basename in
14569           NCC*)
14570             # NonStop-UX NCC 3.20
14571             # FIXME: insert proper C++ library support
14572             ld_shlibs_CXX=no
14573             ;;
14574           *)
14575             # FIXME: insert proper C++ library support
14576             ld_shlibs_CXX=no
14577             ;;
14578         esac
14579         ;;
14580
14581       vxworks*)
14582         # FIXME: insert proper C++ library support
14583         ld_shlibs_CXX=no
14584         ;;
14585
14586       *)
14587         # FIXME: insert proper C++ library support
14588         ld_shlibs_CXX=no
14589         ;;
14590     esac
14591
14592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14593 $as_echo "$ld_shlibs_CXX" >&6; }
14594     test "$ld_shlibs_CXX" = no && can_build_shared=no
14595
14596     GCC_CXX="$GXX"
14597     LD_CXX="$LD"
14598
14599     ## CAVEAT EMPTOR:
14600     ## There is no encapsulation within the following macros, do not change
14601     ## the running order or otherwise move them around unless you know exactly
14602     ## what you are doing...
14603     # Dependencies to place before and after the object being linked:
14604 predep_objects_CXX=
14605 postdep_objects_CXX=
14606 predeps_CXX=
14607 postdeps_CXX=
14608 compiler_lib_search_path_CXX=
14609
14610 cat > conftest.$ac_ext <<_LT_EOF
14611 class Foo
14612 {
14613 public:
14614   Foo (void) { a = 0; }
14615 private:
14616   int a;
14617 };
14618 _LT_EOF
14619
14620
14621 _lt_libdeps_save_CFLAGS=$CFLAGS
14622 case "$CC $CFLAGS " in #(
14623 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14624 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14625 esac
14626
14627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14628   (eval $ac_compile) 2>&5
14629   ac_status=$?
14630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14631   test $ac_status = 0; }; then
14632   # Parse the compiler output and extract the necessary
14633   # objects, libraries and library flags.
14634
14635   # Sentinel used to keep track of whether or not we are before
14636   # the conftest object file.
14637   pre_test_object_deps_done=no
14638
14639   for p in `eval "$output_verbose_link_cmd"`; do
14640     case ${prev}${p} in
14641
14642     -L* | -R* | -l*)
14643        # Some compilers place space between "-{L,R}" and the path.
14644        # Remove the space.
14645        if test $p = "-L" ||
14646           test $p = "-R"; then
14647          prev=$p
14648          continue
14649        fi
14650
14651        # Expand the sysroot to ease extracting the directories later.
14652        if test -z "$prev"; then
14653          case $p in
14654          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14655          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14656          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14657          esac
14658        fi
14659        case $p in
14660        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14661        esac
14662        if test "$pre_test_object_deps_done" = no; then
14663          case ${prev} in
14664          -L | -R)
14665            # Internal compiler library paths should come after those
14666            # provided the user.  The postdeps already come after the
14667            # user supplied libs so there is no need to process them.
14668            if test -z "$compiler_lib_search_path_CXX"; then
14669              compiler_lib_search_path_CXX="${prev}${p}"
14670            else
14671              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14672            fi
14673            ;;
14674          # The "-l" case would never come before the object being
14675          # linked, so don't bother handling this case.
14676          esac
14677        else
14678          if test -z "$postdeps_CXX"; then
14679            postdeps_CXX="${prev}${p}"
14680          else
14681            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14682          fi
14683        fi
14684        prev=
14685        ;;
14686
14687     *.lto.$objext) ;; # Ignore GCC LTO objects
14688     *.$objext)
14689        # This assumes that the test object file only shows up
14690        # once in the compiler output.
14691        if test "$p" = "conftest.$objext"; then
14692          pre_test_object_deps_done=yes
14693          continue
14694        fi
14695
14696        if test "$pre_test_object_deps_done" = no; then
14697          if test -z "$predep_objects_CXX"; then
14698            predep_objects_CXX="$p"
14699          else
14700            predep_objects_CXX="$predep_objects_CXX $p"
14701          fi
14702        else
14703          if test -z "$postdep_objects_CXX"; then
14704            postdep_objects_CXX="$p"
14705          else
14706            postdep_objects_CXX="$postdep_objects_CXX $p"
14707          fi
14708        fi
14709        ;;
14710
14711     *) ;; # Ignore the rest.
14712
14713     esac
14714   done
14715
14716   # Clean up.
14717   rm -f a.out a.exe
14718 else
14719   echo "libtool.m4: error: problem compiling CXX test program"
14720 fi
14721
14722 $RM -f confest.$objext
14723 CFLAGS=$_lt_libdeps_save_CFLAGS
14724
14725 # PORTME: override above test on systems where it is broken
14726 case $host_os in
14727 interix[3-9]*)
14728   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14729   # hack all around it, let's just trust "g++" to DTRT.
14730   predep_objects_CXX=
14731   postdep_objects_CXX=
14732   postdeps_CXX=
14733   ;;
14734
14735 linux*)
14736   case `$CC -V 2>&1 | sed 5q` in
14737   *Sun\ C*)
14738     # Sun C++ 5.9
14739
14740     # The more standards-conforming stlport4 library is
14741     # incompatible with the Cstd library. Avoid specifying
14742     # it if it's in CXXFLAGS. Ignore libCrun as
14743     # -library=stlport4 depends on it.
14744     case " $CXX $CXXFLAGS " in
14745     *" -library=stlport4 "*)
14746       solaris_use_stlport4=yes
14747       ;;
14748     esac
14749
14750     if test "$solaris_use_stlport4" != yes; then
14751       postdeps_CXX='-library=Cstd -library=Crun'
14752     fi
14753     ;;
14754   esac
14755   ;;
14756
14757 solaris*)
14758   case $cc_basename in
14759   CC* | sunCC*)
14760     # The more standards-conforming stlport4 library is
14761     # incompatible with the Cstd library. Avoid specifying
14762     # it if it's in CXXFLAGS. Ignore libCrun as
14763     # -library=stlport4 depends on it.
14764     case " $CXX $CXXFLAGS " in
14765     *" -library=stlport4 "*)
14766       solaris_use_stlport4=yes
14767       ;;
14768     esac
14769
14770     # Adding this requires a known-good setup of shared libraries for
14771     # Sun compiler versions before 5.6, else PIC objects from an old
14772     # archive will be linked into the output, leading to subtle bugs.
14773     if test "$solaris_use_stlport4" != yes; then
14774       postdeps_CXX='-library=Cstd -library=Crun'
14775     fi
14776     ;;
14777   esac
14778   ;;
14779 esac
14780
14781
14782 case " $postdeps_CXX " in
14783 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14784 esac
14785  compiler_lib_search_dirs_CXX=
14786 if test -n "${compiler_lib_search_path_CXX}"; then
14787  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14788 fi
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820     lt_prog_compiler_wl_CXX=
14821 lt_prog_compiler_pic_CXX=
14822 lt_prog_compiler_static_CXX=
14823
14824
14825   # C++ specific cases for pic, static, wl, etc.
14826   if test "$GXX" = yes; then
14827     lt_prog_compiler_wl_CXX='-Wl,'
14828     lt_prog_compiler_static_CXX='-static'
14829
14830     case $host_os in
14831     aix*)
14832       # All AIX code is PIC.
14833       if test "$host_cpu" = ia64; then
14834         # AIX 5 now supports IA64 processor
14835         lt_prog_compiler_static_CXX='-Bstatic'
14836       fi
14837       ;;
14838
14839     amigaos*)
14840       case $host_cpu in
14841       powerpc)
14842             # see comment about AmigaOS4 .so support
14843             lt_prog_compiler_pic_CXX='-fPIC'
14844         ;;
14845       m68k)
14846             # FIXME: we need at least 68020 code to build shared libraries, but
14847             # adding the `-m68020' flag to GCC prevents building anything better,
14848             # like `-m68040'.
14849             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14850         ;;
14851       esac
14852       ;;
14853
14854     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14855       # PIC is the default for these OSes.
14856       ;;
14857     mingw* | cygwin* | os2* | pw32* | cegcc*)
14858       # This hack is so that the source file can tell whether it is being
14859       # built for inclusion in a dll (and should export symbols for example).
14860       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14861       # (--disable-auto-import) libraries
14862       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14863       ;;
14864     darwin* | rhapsody*)
14865       # PIC is the default on this platform
14866       # Common symbols not allowed in MH_DYLIB files
14867       lt_prog_compiler_pic_CXX='-fno-common'
14868       ;;
14869     *djgpp*)
14870       # DJGPP does not support shared libraries at all
14871       lt_prog_compiler_pic_CXX=
14872       ;;
14873     haiku*)
14874       # PIC is the default for Haiku.
14875       # The "-static" flag exists, but is broken.
14876       lt_prog_compiler_static_CXX=
14877       ;;
14878     interix[3-9]*)
14879       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14880       # Instead, we relocate shared libraries at runtime.
14881       ;;
14882     sysv4*MP*)
14883       if test -d /usr/nec; then
14884         lt_prog_compiler_pic_CXX=-Kconform_pic
14885       fi
14886       ;;
14887     hpux*)
14888       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14889       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14890       # sets the default TLS model and affects inlining.
14891       case $host_cpu in
14892       hppa*64*)
14893         ;;
14894       *)
14895         lt_prog_compiler_pic_CXX='-fPIC'
14896         ;;
14897       esac
14898       ;;
14899     *qnx* | *nto*)
14900       # QNX uses GNU C++, but need to define -shared option too, otherwise
14901       # it will coredump.
14902       lt_prog_compiler_pic_CXX='-fPIC -shared'
14903       ;;
14904     *)
14905       lt_prog_compiler_pic_CXX='-fPIC'
14906       ;;
14907     esac
14908   else
14909     case $host_os in
14910       aix[4-9]*)
14911         # All AIX code is PIC.
14912         if test "$host_cpu" = ia64; then
14913           # AIX 5 now supports IA64 processor
14914           lt_prog_compiler_static_CXX='-Bstatic'
14915         else
14916           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14917         fi
14918         ;;
14919       chorus*)
14920         case $cc_basename in
14921         cxch68*)
14922           # Green Hills C++ Compiler
14923           # _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"
14924           ;;
14925         esac
14926         ;;
14927       mingw* | cygwin* | os2* | pw32* | cegcc*)
14928         # This hack is so that the source file can tell whether it is being
14929         # built for inclusion in a dll (and should export symbols for example).
14930         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14931         ;;
14932       dgux*)
14933         case $cc_basename in
14934           ec++*)
14935             lt_prog_compiler_pic_CXX='-KPIC'
14936             ;;
14937           ghcx*)
14938             # Green Hills C++ Compiler
14939             lt_prog_compiler_pic_CXX='-pic'
14940             ;;
14941           *)
14942             ;;
14943         esac
14944         ;;
14945       freebsd* | dragonfly*)
14946         # FreeBSD uses GNU C++
14947         ;;
14948       hpux9* | hpux10* | hpux11*)
14949         case $cc_basename in
14950           CC*)
14951             lt_prog_compiler_wl_CXX='-Wl,'
14952             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14953             if test "$host_cpu" != ia64; then
14954               lt_prog_compiler_pic_CXX='+Z'
14955             fi
14956             ;;
14957           aCC*)
14958             lt_prog_compiler_wl_CXX='-Wl,'
14959             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14960             case $host_cpu in
14961             hppa*64*|ia64*)
14962               # +Z the default
14963               ;;
14964             *)
14965               lt_prog_compiler_pic_CXX='+Z'
14966               ;;
14967             esac
14968             ;;
14969           *)
14970             ;;
14971         esac
14972         ;;
14973       interix*)
14974         # This is c89, which is MS Visual C++ (no shared libs)
14975         # Anyone wants to do a port?
14976         ;;
14977       irix5* | irix6* | nonstopux*)
14978         case $cc_basename in
14979           CC*)
14980             lt_prog_compiler_wl_CXX='-Wl,'
14981             lt_prog_compiler_static_CXX='-non_shared'
14982             # CC pic flag -KPIC is the default.
14983             ;;
14984           *)
14985             ;;
14986         esac
14987         ;;
14988       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14989         case $cc_basename in
14990           KCC*)
14991             # KAI C++ Compiler
14992             lt_prog_compiler_wl_CXX='--backend -Wl,'
14993             lt_prog_compiler_pic_CXX='-fPIC'
14994             ;;
14995           ecpc* )
14996             # old Intel C++ for x86_64 which still supported -KPIC.
14997             lt_prog_compiler_wl_CXX='-Wl,'
14998             lt_prog_compiler_pic_CXX='-KPIC'
14999             lt_prog_compiler_static_CXX='-static'
15000             ;;
15001           icpc* )
15002             # Intel C++, used to be incompatible with GCC.
15003             # ICC 10 doesn't accept -KPIC any more.
15004             lt_prog_compiler_wl_CXX='-Wl,'
15005             lt_prog_compiler_pic_CXX='-fPIC'
15006             lt_prog_compiler_static_CXX='-static'
15007             ;;
15008           pgCC* | pgcpp*)
15009             # Portland Group C++ compiler
15010             lt_prog_compiler_wl_CXX='-Wl,'
15011             lt_prog_compiler_pic_CXX='-fpic'
15012             lt_prog_compiler_static_CXX='-Bstatic'
15013             ;;
15014           cxx*)
15015             # Compaq C++
15016             # Make sure the PIC flag is empty.  It appears that all Alpha
15017             # Linux and Compaq Tru64 Unix objects are PIC.
15018             lt_prog_compiler_pic_CXX=
15019             lt_prog_compiler_static_CXX='-non_shared'
15020             ;;
15021           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15022             # IBM XL 8.0, 9.0 on PPC and BlueGene
15023             lt_prog_compiler_wl_CXX='-Wl,'
15024             lt_prog_compiler_pic_CXX='-qpic'
15025             lt_prog_compiler_static_CXX='-qstaticlink'
15026             ;;
15027           *)
15028             case `$CC -V 2>&1 | sed 5q` in
15029             *Sun\ C*)
15030               # Sun C++ 5.9
15031               lt_prog_compiler_pic_CXX='-KPIC'
15032               lt_prog_compiler_static_CXX='-Bstatic'
15033               lt_prog_compiler_wl_CXX='-Qoption ld '
15034               ;;
15035             esac
15036             ;;
15037         esac
15038         ;;
15039       lynxos*)
15040         ;;
15041       m88k*)
15042         ;;
15043       mvs*)
15044         case $cc_basename in
15045           cxx*)
15046             lt_prog_compiler_pic_CXX='-W c,exportall'
15047             ;;
15048           *)
15049             ;;
15050         esac
15051         ;;
15052       netbsd*)
15053         ;;
15054       *qnx* | *nto*)
15055         # QNX uses GNU C++, but need to define -shared option too, otherwise
15056         # it will coredump.
15057         lt_prog_compiler_pic_CXX='-fPIC -shared'
15058         ;;
15059       osf3* | osf4* | osf5*)
15060         case $cc_basename in
15061           KCC*)
15062             lt_prog_compiler_wl_CXX='--backend -Wl,'
15063             ;;
15064           RCC*)
15065             # Rational C++ 2.4.1
15066             lt_prog_compiler_pic_CXX='-pic'
15067             ;;
15068           cxx*)
15069             # Digital/Compaq C++
15070             lt_prog_compiler_wl_CXX='-Wl,'
15071             # Make sure the PIC flag is empty.  It appears that all Alpha
15072             # Linux and Compaq Tru64 Unix objects are PIC.
15073             lt_prog_compiler_pic_CXX=
15074             lt_prog_compiler_static_CXX='-non_shared'
15075             ;;
15076           *)
15077             ;;
15078         esac
15079         ;;
15080       psos*)
15081         ;;
15082       solaris*)
15083         case $cc_basename in
15084           CC* | sunCC*)
15085             # Sun C++ 4.2, 5.x and Centerline C++
15086             lt_prog_compiler_pic_CXX='-KPIC'
15087             lt_prog_compiler_static_CXX='-Bstatic'
15088             lt_prog_compiler_wl_CXX='-Qoption ld '
15089             ;;
15090           gcx*)
15091             # Green Hills C++ Compiler
15092             lt_prog_compiler_pic_CXX='-PIC'
15093             ;;
15094           *)
15095             ;;
15096         esac
15097         ;;
15098       sunos4*)
15099         case $cc_basename in
15100           CC*)
15101             # Sun C++ 4.x
15102             lt_prog_compiler_pic_CXX='-pic'
15103             lt_prog_compiler_static_CXX='-Bstatic'
15104             ;;
15105           lcc*)
15106             # Lucid
15107             lt_prog_compiler_pic_CXX='-pic'
15108             ;;
15109           *)
15110             ;;
15111         esac
15112         ;;
15113       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15114         case $cc_basename in
15115           CC*)
15116             lt_prog_compiler_wl_CXX='-Wl,'
15117             lt_prog_compiler_pic_CXX='-KPIC'
15118             lt_prog_compiler_static_CXX='-Bstatic'
15119             ;;
15120         esac
15121         ;;
15122       tandem*)
15123         case $cc_basename in
15124           NCC*)
15125             # NonStop-UX NCC 3.20
15126             lt_prog_compiler_pic_CXX='-KPIC'
15127             ;;
15128           *)
15129             ;;
15130         esac
15131         ;;
15132       vxworks*)
15133         ;;
15134       *)
15135         lt_prog_compiler_can_build_shared_CXX=no
15136         ;;
15137     esac
15138   fi
15139
15140 case $host_os in
15141   # For platforms which do not support PIC, -DPIC is meaningless:
15142   *djgpp*)
15143     lt_prog_compiler_pic_CXX=
15144     ;;
15145   *)
15146     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15147     ;;
15148 esac
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15151 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15152 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15153   $as_echo_n "(cached) " >&6
15154 else
15155   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15156 fi
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15158 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15159 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15160
15161 #
15162 # Check to make sure the PIC flag actually works.
15163 #
15164 if test -n "$lt_prog_compiler_pic_CXX"; then
15165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15166 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15167 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15168   $as_echo_n "(cached) " >&6
15169 else
15170   lt_cv_prog_compiler_pic_works_CXX=no
15171    ac_outfile=conftest.$ac_objext
15172    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15173    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15174    # Insert the option either (1) after the last *FLAGS variable, or
15175    # (2) before a word containing "conftest.", or (3) at the end.
15176    # Note that $ac_compile itself does not contain backslashes and begins
15177    # with a dollar sign (not a hyphen), so the echo should work correctly.
15178    # The option is referenced via a variable to avoid confusing sed.
15179    lt_compile=`echo "$ac_compile" | $SED \
15180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15182    -e 's:$: $lt_compiler_flag:'`
15183    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15184    (eval "$lt_compile" 2>conftest.err)
15185    ac_status=$?
15186    cat conftest.err >&5
15187    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188    if (exit $ac_status) && test -s "$ac_outfile"; then
15189      # The compiler can only warn and ignore the option if not recognized
15190      # So say no if there are warnings other than the usual output.
15191      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15192      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15193      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15194        lt_cv_prog_compiler_pic_works_CXX=yes
15195      fi
15196    fi
15197    $RM conftest*
15198
15199 fi
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15201 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15202
15203 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15204     case $lt_prog_compiler_pic_CXX in
15205      "" | " "*) ;;
15206      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15207      esac
15208 else
15209     lt_prog_compiler_pic_CXX=
15210      lt_prog_compiler_can_build_shared_CXX=no
15211 fi
15212
15213 fi
15214
15215
15216
15217
15218
15219 #
15220 # Check to make sure the static flag actually works.
15221 #
15222 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15224 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15225 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15226   $as_echo_n "(cached) " >&6
15227 else
15228   lt_cv_prog_compiler_static_works_CXX=no
15229    save_LDFLAGS="$LDFLAGS"
15230    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15231    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15232    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15233      # The linker can only warn and ignore the option if not recognized
15234      # So say no if there are warnings
15235      if test -s conftest.err; then
15236        # Append any errors to the config.log.
15237        cat conftest.err 1>&5
15238        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15239        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15240        if diff conftest.exp conftest.er2 >/dev/null; then
15241          lt_cv_prog_compiler_static_works_CXX=yes
15242        fi
15243      else
15244        lt_cv_prog_compiler_static_works_CXX=yes
15245      fi
15246    fi
15247    $RM -r conftest*
15248    LDFLAGS="$save_LDFLAGS"
15249
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15252 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15253
15254 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15255     :
15256 else
15257     lt_prog_compiler_static_CXX=
15258 fi
15259
15260
15261
15262
15263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15265 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15266   $as_echo_n "(cached) " >&6
15267 else
15268   lt_cv_prog_compiler_c_o_CXX=no
15269    $RM -r conftest 2>/dev/null
15270    mkdir conftest
15271    cd conftest
15272    mkdir out
15273    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15274
15275    lt_compiler_flag="-o out/conftest2.$ac_objext"
15276    # Insert the option either (1) after the last *FLAGS variable, or
15277    # (2) before a word containing "conftest.", or (3) at the end.
15278    # Note that $ac_compile itself does not contain backslashes and begins
15279    # with a dollar sign (not a hyphen), so the echo should work correctly.
15280    lt_compile=`echo "$ac_compile" | $SED \
15281    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15283    -e 's:$: $lt_compiler_flag:'`
15284    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15285    (eval "$lt_compile" 2>out/conftest.err)
15286    ac_status=$?
15287    cat out/conftest.err >&5
15288    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15290    then
15291      # The compiler can only warn and ignore the option if not recognized
15292      # So say no if there are warnings
15293      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15294      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15295      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15296        lt_cv_prog_compiler_c_o_CXX=yes
15297      fi
15298    fi
15299    chmod u+w . 2>&5
15300    $RM conftest*
15301    # SGI C++ compiler will create directory out/ii_files/ for
15302    # template instantiation
15303    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15304    $RM out/* && rmdir out
15305    cd ..
15306    $RM -r conftest
15307    $RM conftest*
15308
15309 fi
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15311 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15312
15313
15314
15315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15316 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15317 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15318   $as_echo_n "(cached) " >&6
15319 else
15320   lt_cv_prog_compiler_c_o_CXX=no
15321    $RM -r conftest 2>/dev/null
15322    mkdir conftest
15323    cd conftest
15324    mkdir out
15325    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15326
15327    lt_compiler_flag="-o out/conftest2.$ac_objext"
15328    # Insert the option either (1) after the last *FLAGS variable, or
15329    # (2) before a word containing "conftest.", or (3) at the end.
15330    # Note that $ac_compile itself does not contain backslashes and begins
15331    # with a dollar sign (not a hyphen), so the echo should work correctly.
15332    lt_compile=`echo "$ac_compile" | $SED \
15333    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15335    -e 's:$: $lt_compiler_flag:'`
15336    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15337    (eval "$lt_compile" 2>out/conftest.err)
15338    ac_status=$?
15339    cat out/conftest.err >&5
15340    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15342    then
15343      # The compiler can only warn and ignore the option if not recognized
15344      # So say no if there are warnings
15345      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15346      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15347      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15348        lt_cv_prog_compiler_c_o_CXX=yes
15349      fi
15350    fi
15351    chmod u+w . 2>&5
15352    $RM conftest*
15353    # SGI C++ compiler will create directory out/ii_files/ for
15354    # template instantiation
15355    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15356    $RM out/* && rmdir out
15357    cd ..
15358    $RM -r conftest
15359    $RM conftest*
15360
15361 fi
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15363 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15364
15365
15366
15367
15368 hard_links="nottested"
15369 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15370   # do not overwrite the value of need_locks provided by the user
15371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15372 $as_echo_n "checking if we can lock with hard links... " >&6; }
15373   hard_links=yes
15374   $RM conftest*
15375   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15376   touch conftest.a
15377   ln conftest.a conftest.b 2>&5 || hard_links=no
15378   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15380 $as_echo "$hard_links" >&6; }
15381   if test "$hard_links" = no; then
15382     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15383 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15384     need_locks=warn
15385   fi
15386 else
15387   need_locks=no
15388 fi
15389
15390
15391
15392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15394
15395   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15397   case $host_os in
15398   aix[4-9]*)
15399     # If we're using GNU nm, then we don't want the "-C" option.
15400     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15401     # Also, AIX nm treats weak defined symbols like other global defined
15402     # symbols, whereas GNU nm marks them as "W".
15403     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15404       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15405     else
15406       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'
15407     fi
15408     ;;
15409   pw32*)
15410     export_symbols_cmds_CXX="$ltdll_cmds"
15411     ;;
15412   cygwin* | mingw* | cegcc*)
15413     case $cc_basename in
15414     cl*) ;;
15415     *)
15416       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15417       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15418       ;;
15419     esac
15420     ;;
15421   *)
15422     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15423     ;;
15424   esac
15425
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15427 $as_echo "$ld_shlibs_CXX" >&6; }
15428 test "$ld_shlibs_CXX" = no && can_build_shared=no
15429
15430 with_gnu_ld_CXX=$with_gnu_ld
15431
15432
15433
15434
15435
15436
15437 #
15438 # Do we need to explicitly link libc?
15439 #
15440 case "x$archive_cmds_need_lc_CXX" in
15441 x|xyes)
15442   # Assume -lc should be added
15443   archive_cmds_need_lc_CXX=yes
15444
15445   if test "$enable_shared" = yes && test "$GCC" = yes; then
15446     case $archive_cmds_CXX in
15447     *'~'*)
15448       # FIXME: we may have to deal with multi-command sequences.
15449       ;;
15450     '$CC '*)
15451       # Test whether the compiler implicitly links with -lc since on some
15452       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15453       # to ld, don't add -lc before -lgcc.
15454       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15455 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15456 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15457   $as_echo_n "(cached) " >&6
15458 else
15459   $RM conftest*
15460         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15461
15462         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15463   (eval $ac_compile) 2>&5
15464   ac_status=$?
15465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15466   test $ac_status = 0; } 2>conftest.err; then
15467           soname=conftest
15468           lib=conftest
15469           libobjs=conftest.$ac_objext
15470           deplibs=
15471           wl=$lt_prog_compiler_wl_CXX
15472           pic_flag=$lt_prog_compiler_pic_CXX
15473           compiler_flags=-v
15474           linker_flags=-v
15475           verstring=
15476           output_objdir=.
15477           libname=conftest
15478           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15479           allow_undefined_flag_CXX=
15480           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15481   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15482   ac_status=$?
15483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15484   test $ac_status = 0; }
15485           then
15486             lt_cv_archive_cmds_need_lc_CXX=no
15487           else
15488             lt_cv_archive_cmds_need_lc_CXX=yes
15489           fi
15490           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15491         else
15492           cat conftest.err 1>&5
15493         fi
15494         $RM conftest*
15495
15496 fi
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15498 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15499       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15500       ;;
15501     esac
15502   fi
15503   ;;
15504 esac
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15570 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15571
15572 library_names_spec=
15573 libname_spec='lib$name'
15574 soname_spec=
15575 shrext_cmds=".so"
15576 postinstall_cmds=
15577 postuninstall_cmds=
15578 finish_cmds=
15579 finish_eval=
15580 shlibpath_var=
15581 shlibpath_overrides_runpath=unknown
15582 version_type=none
15583 dynamic_linker="$host_os ld.so"
15584 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15585 need_lib_prefix=unknown
15586 hardcode_into_libs=no
15587
15588 # when you set need_version to no, make sure it does not cause -set_version
15589 # flags to be left without arguments
15590 need_version=unknown
15591
15592 case $host_os in
15593 aix3*)
15594   version_type=linux
15595   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15596   shlibpath_var=LIBPATH
15597
15598   # AIX 3 has no versioning support, so we append a major version to the name.
15599   soname_spec='${libname}${release}${shared_ext}$major'
15600   ;;
15601
15602 aix[4-9]*)
15603   version_type=linux
15604   need_lib_prefix=no
15605   need_version=no
15606   hardcode_into_libs=yes
15607   if test "$host_cpu" = ia64; then
15608     # AIX 5 supports IA64
15609     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15610     shlibpath_var=LD_LIBRARY_PATH
15611   else
15612     # With GCC up to 2.95.x, collect2 would create an import file
15613     # for dependence libraries.  The import file would start with
15614     # the line `#! .'.  This would cause the generated library to
15615     # depend on `.', always an invalid library.  This was fixed in
15616     # development snapshots of GCC prior to 3.0.
15617     case $host_os in
15618       aix4 | aix4.[01] | aix4.[01].*)
15619       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15620            echo ' yes '
15621            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15622         :
15623       else
15624         can_build_shared=no
15625       fi
15626       ;;
15627     esac
15628     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15629     # soname into executable. Probably we can add versioning support to
15630     # collect2, so additional links can be useful in future.
15631     if test "$aix_use_runtimelinking" = yes; then
15632       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15633       # instead of lib<name>.a to let people know that these are not
15634       # typical AIX shared libraries.
15635       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636     else
15637       # We preserve .a as extension for shared libraries through AIX4.2
15638       # and later when we are not doing run time linking.
15639       library_names_spec='${libname}${release}.a $libname.a'
15640       soname_spec='${libname}${release}${shared_ext}$major'
15641     fi
15642     shlibpath_var=LIBPATH
15643   fi
15644   ;;
15645
15646 amigaos*)
15647   case $host_cpu in
15648   powerpc)
15649     # Since July 2007 AmigaOS4 officially supports .so libraries.
15650     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652     ;;
15653   m68k)
15654     library_names_spec='$libname.ixlibrary $libname.a'
15655     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15656     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15657     ;;
15658   esac
15659   ;;
15660
15661 beos*)
15662   library_names_spec='${libname}${shared_ext}'
15663   dynamic_linker="$host_os ld.so"
15664   shlibpath_var=LIBRARY_PATH
15665   ;;
15666
15667 bsdi[45]*)
15668   version_type=linux
15669   need_version=no
15670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671   soname_spec='${libname}${release}${shared_ext}$major'
15672   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15673   shlibpath_var=LD_LIBRARY_PATH
15674   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15675   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15676   # the default ld.so.conf also contains /usr/contrib/lib and
15677   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15678   # libtool to hard-code these into programs
15679   ;;
15680
15681 cygwin* | mingw* | pw32* | cegcc*)
15682   version_type=windows
15683   shrext_cmds=".dll"
15684   need_version=no
15685   need_lib_prefix=no
15686
15687   case $GCC,$cc_basename in
15688   yes,*)
15689     # gcc
15690     library_names_spec='$libname.dll.a'
15691     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15692     postinstall_cmds='base_file=`basename \${file}`~
15693       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15694       dldir=$destdir/`dirname \$dlpath`~
15695       test -d \$dldir || mkdir -p \$dldir~
15696       $install_prog $dir/$dlname \$dldir/$dlname~
15697       chmod a+x \$dldir/$dlname~
15698       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15699         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15700       fi'
15701     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15702       dlpath=$dir/\$dldll~
15703        $RM \$dlpath'
15704     shlibpath_overrides_runpath=yes
15705
15706     case $host_os in
15707     cygwin*)
15708       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15709       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710
15711       ;;
15712     mingw* | cegcc*)
15713       # MinGW DLLs use traditional 'lib' prefix
15714       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15715       ;;
15716     pw32*)
15717       # pw32 DLLs use 'pw' prefix rather than 'lib'
15718       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15719       ;;
15720     esac
15721     dynamic_linker='Win32 ld.exe'
15722     ;;
15723
15724   *,cl*)
15725     # Native MSVC
15726     libname_spec='$name'
15727     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15728     library_names_spec='${libname}.dll.lib'
15729
15730     case $build_os in
15731     mingw*)
15732       sys_lib_search_path_spec=
15733       lt_save_ifs=$IFS
15734       IFS=';'
15735       for lt_path in $LIB
15736       do
15737         IFS=$lt_save_ifs
15738         # Let DOS variable expansion print the short 8.3 style file name.
15739         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15740         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15741       done
15742       IFS=$lt_save_ifs
15743       # Convert to MSYS style.
15744       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15745       ;;
15746     cygwin*)
15747       # Convert to unix form, then to dos form, then back to unix form
15748       # but this time dos style (no spaces!) so that the unix form looks
15749       # like /cygdrive/c/PROGRA~1:/cygdr...
15750       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15751       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15752       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15753       ;;
15754     *)
15755       sys_lib_search_path_spec="$LIB"
15756       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15757         # It is most probably a Windows format PATH.
15758         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15759       else
15760         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15761       fi
15762       # FIXME: find the short name or the path components, as spaces are
15763       # common. (e.g. "Program Files" -> "PROGRA~1")
15764       ;;
15765     esac
15766
15767     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15768     postinstall_cmds='base_file=`basename \${file}`~
15769       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15770       dldir=$destdir/`dirname \$dlpath`~
15771       test -d \$dldir || mkdir -p \$dldir~
15772       $install_prog $dir/$dlname \$dldir/$dlname'
15773     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15774       dlpath=$dir/\$dldll~
15775        $RM \$dlpath'
15776     shlibpath_overrides_runpath=yes
15777     dynamic_linker='Win32 link.exe'
15778     ;;
15779
15780   *)
15781     # Assume MSVC wrapper
15782     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15783     dynamic_linker='Win32 ld.exe'
15784     ;;
15785   esac
15786   # FIXME: first we should search . and the directory the executable is in
15787   shlibpath_var=PATH
15788   ;;
15789
15790 darwin* | rhapsody*)
15791   dynamic_linker="$host_os dyld"
15792   version_type=darwin
15793   need_lib_prefix=no
15794   need_version=no
15795   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15796   soname_spec='${libname}${release}${major}$shared_ext'
15797   shlibpath_overrides_runpath=yes
15798   shlibpath_var=DYLD_LIBRARY_PATH
15799   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15800
15801   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15802   ;;
15803
15804 dgux*)
15805   version_type=linux
15806   need_lib_prefix=no
15807   need_version=no
15808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15809   soname_spec='${libname}${release}${shared_ext}$major'
15810   shlibpath_var=LD_LIBRARY_PATH
15811   ;;
15812
15813 freebsd1*)
15814   dynamic_linker=no
15815   ;;
15816
15817 freebsd* | dragonfly*)
15818   # DragonFly does not have aout.  When/if they implement a new
15819   # versioning mechanism, adjust this.
15820   if test -x /usr/bin/objformat; then
15821     objformat=`/usr/bin/objformat`
15822   else
15823     case $host_os in
15824     freebsd[123]*) objformat=aout ;;
15825     *) objformat=elf ;;
15826     esac
15827   fi
15828   version_type=freebsd-$objformat
15829   case $version_type in
15830     freebsd-elf*)
15831       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15832       need_version=no
15833       need_lib_prefix=no
15834       ;;
15835     freebsd-*)
15836       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15837       need_version=yes
15838       ;;
15839   esac
15840   shlibpath_var=LD_LIBRARY_PATH
15841   case $host_os in
15842   freebsd2*)
15843     shlibpath_overrides_runpath=yes
15844     ;;
15845   freebsd3.[01]* | freebsdelf3.[01]*)
15846     shlibpath_overrides_runpath=yes
15847     hardcode_into_libs=yes
15848     ;;
15849   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15850   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15851     shlibpath_overrides_runpath=no
15852     hardcode_into_libs=yes
15853     ;;
15854   *) # from 4.6 on, and DragonFly
15855     shlibpath_overrides_runpath=yes
15856     hardcode_into_libs=yes
15857     ;;
15858   esac
15859   ;;
15860
15861 gnu*)
15862   version_type=linux
15863   need_lib_prefix=no
15864   need_version=no
15865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15866   soname_spec='${libname}${release}${shared_ext}$major'
15867   shlibpath_var=LD_LIBRARY_PATH
15868   hardcode_into_libs=yes
15869   ;;
15870
15871 haiku*)
15872   version_type=linux
15873   need_lib_prefix=no
15874   need_version=no
15875   dynamic_linker="$host_os runtime_loader"
15876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15877   soname_spec='${libname}${release}${shared_ext}$major'
15878   shlibpath_var=LIBRARY_PATH
15879   shlibpath_overrides_runpath=yes
15880   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15881   hardcode_into_libs=yes
15882   ;;
15883
15884 hpux9* | hpux10* | hpux11*)
15885   # Give a soname corresponding to the major version so that dld.sl refuses to
15886   # link against other versions.
15887   version_type=sunos
15888   need_lib_prefix=no
15889   need_version=no
15890   case $host_cpu in
15891   ia64*)
15892     shrext_cmds='.so'
15893     hardcode_into_libs=yes
15894     dynamic_linker="$host_os dld.so"
15895     shlibpath_var=LD_LIBRARY_PATH
15896     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898     soname_spec='${libname}${release}${shared_ext}$major'
15899     if test "X$HPUX_IA64_MODE" = X32; then
15900       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15901     else
15902       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15903     fi
15904     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15905     ;;
15906   hppa*64*)
15907     shrext_cmds='.sl'
15908     hardcode_into_libs=yes
15909     dynamic_linker="$host_os dld.sl"
15910     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913     soname_spec='${libname}${release}${shared_ext}$major'
15914     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15916     ;;
15917   *)
15918     shrext_cmds='.sl'
15919     dynamic_linker="$host_os dld.sl"
15920     shlibpath_var=SHLIB_PATH
15921     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923     soname_spec='${libname}${release}${shared_ext}$major'
15924     ;;
15925   esac
15926   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15927   postinstall_cmds='chmod 555 $lib'
15928   # or fails outright, so override atomically:
15929   install_override_mode=555
15930   ;;
15931
15932 interix[3-9]*)
15933   version_type=linux
15934   need_lib_prefix=no
15935   need_version=no
15936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15937   soname_spec='${libname}${release}${shared_ext}$major'
15938   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15939   shlibpath_var=LD_LIBRARY_PATH
15940   shlibpath_overrides_runpath=no
15941   hardcode_into_libs=yes
15942   ;;
15943
15944 irix5* | irix6* | nonstopux*)
15945   case $host_os in
15946     nonstopux*) version_type=nonstopux ;;
15947     *)
15948         if test "$lt_cv_prog_gnu_ld" = yes; then
15949                 version_type=linux
15950         else
15951                 version_type=irix
15952         fi ;;
15953   esac
15954   need_lib_prefix=no
15955   need_version=no
15956   soname_spec='${libname}${release}${shared_ext}$major'
15957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15958   case $host_os in
15959   irix5* | nonstopux*)
15960     libsuff= shlibsuff=
15961     ;;
15962   *)
15963     case $LD in # libtool.m4 will add one of these switches to LD
15964     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15965       libsuff= shlibsuff= libmagic=32-bit;;
15966     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15967       libsuff=32 shlibsuff=N32 libmagic=N32;;
15968     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15969       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15970     *) libsuff= shlibsuff= libmagic=never-match;;
15971     esac
15972     ;;
15973   esac
15974   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15975   shlibpath_overrides_runpath=no
15976   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15977   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15978   hardcode_into_libs=yes
15979   ;;
15980
15981 # No shared lib support for Linux oldld, aout, or coff.
15982 linux*oldld* | linux*aout* | linux*coff*)
15983   dynamic_linker=no
15984   ;;
15985
15986 # This must be Linux ELF.
15987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15988   version_type=linux
15989   need_lib_prefix=no
15990   need_version=no
15991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992   soname_spec='${libname}${release}${shared_ext}$major'
15993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15994   shlibpath_var=LD_LIBRARY_PATH
15995   shlibpath_overrides_runpath=no
15996
15997   # Some binutils ld are patched to set DT_RUNPATH
15998   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15999   $as_echo_n "(cached) " >&6
16000 else
16001   lt_cv_shlibpath_overrides_runpath=no
16002     save_LDFLAGS=$LDFLAGS
16003     save_libdir=$libdir
16004     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16005          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h.  */
16008
16009 int
16010 main ()
16011 {
16012
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 if ac_fn_cxx_try_link "$LINENO"; then :
16018   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16019   lt_cv_shlibpath_overrides_runpath=yes
16020 fi
16021 fi
16022 rm -f core conftest.err conftest.$ac_objext \
16023     conftest$ac_exeext conftest.$ac_ext
16024     LDFLAGS=$save_LDFLAGS
16025     libdir=$save_libdir
16026
16027 fi
16028
16029   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16030
16031   # This implies no fast_install, which is unacceptable.
16032   # Some rework will be needed to allow for fast_install
16033   # before this can be enabled.
16034   hardcode_into_libs=yes
16035
16036   # Append ld.so.conf contents to the search path
16037   if test -f /etc/ld.so.conf; then
16038     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;s/"//g;/^$/d' | tr '\n' ' '`
16039     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16040   fi
16041
16042   # We used to test for /lib/ld.so.1 and disable shared libraries on
16043   # powerpc, because MkLinux only supported shared libraries with the
16044   # GNU dynamic linker.  Since this was broken with cross compilers,
16045   # most powerpc-linux boxes support dynamic linking these days and
16046   # people can always --disable-shared, the test was removed, and we
16047   # assume the GNU/Linux dynamic linker is in use.
16048   dynamic_linker='GNU/Linux ld.so'
16049   ;;
16050
16051 netbsd*)
16052   version_type=sunos
16053   need_lib_prefix=no
16054   need_version=no
16055   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16057     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16058     dynamic_linker='NetBSD (a.out) ld.so'
16059   else
16060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16061     soname_spec='${libname}${release}${shared_ext}$major'
16062     dynamic_linker='NetBSD ld.elf_so'
16063   fi
16064   shlibpath_var=LD_LIBRARY_PATH
16065   shlibpath_overrides_runpath=yes
16066   hardcode_into_libs=yes
16067   ;;
16068
16069 newsos6)
16070   version_type=linux
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072   shlibpath_var=LD_LIBRARY_PATH
16073   shlibpath_overrides_runpath=yes
16074   ;;
16075
16076 *nto* | *qnx*)
16077   version_type=qnx
16078   need_lib_prefix=no
16079   need_version=no
16080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081   soname_spec='${libname}${release}${shared_ext}$major'
16082   shlibpath_var=LD_LIBRARY_PATH
16083   shlibpath_overrides_runpath=no
16084   hardcode_into_libs=yes
16085   dynamic_linker='ldqnx.so'
16086   ;;
16087
16088 openbsd*)
16089   version_type=sunos
16090   sys_lib_dlsearch_path_spec="/usr/lib"
16091   need_lib_prefix=no
16092   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16093   case $host_os in
16094     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16095     *)                          need_version=no  ;;
16096   esac
16097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16098   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16099   shlibpath_var=LD_LIBRARY_PATH
16100   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16101     case $host_os in
16102       openbsd2.[89] | openbsd2.[89].*)
16103         shlibpath_overrides_runpath=no
16104         ;;
16105       *)
16106         shlibpath_overrides_runpath=yes
16107         ;;
16108       esac
16109   else
16110     shlibpath_overrides_runpath=yes
16111   fi
16112   ;;
16113
16114 os2*)
16115   libname_spec='$name'
16116   shrext_cmds=".dll"
16117   need_lib_prefix=no
16118   library_names_spec='$libname${shared_ext} $libname.a'
16119   dynamic_linker='OS/2 ld.exe'
16120   shlibpath_var=LIBPATH
16121   ;;
16122
16123 osf3* | osf4* | osf5*)
16124   version_type=osf
16125   need_lib_prefix=no
16126   need_version=no
16127   soname_spec='${libname}${release}${shared_ext}$major'
16128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16131   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16132   ;;
16133
16134 rdos*)
16135   dynamic_linker=no
16136   ;;
16137
16138 solaris*)
16139   version_type=linux
16140   need_lib_prefix=no
16141   need_version=no
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   shlibpath_overrides_runpath=yes
16146   hardcode_into_libs=yes
16147   # ldd complains unless libraries are executable
16148   postinstall_cmds='chmod +x $lib'
16149   ;;
16150
16151 sunos4*)
16152   version_type=sunos
16153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16154   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16155   shlibpath_var=LD_LIBRARY_PATH
16156   shlibpath_overrides_runpath=yes
16157   if test "$with_gnu_ld" = yes; then
16158     need_lib_prefix=no
16159   fi
16160   need_version=yes
16161   ;;
16162
16163 sysv4 | sysv4.3*)
16164   version_type=linux
16165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166   soname_spec='${libname}${release}${shared_ext}$major'
16167   shlibpath_var=LD_LIBRARY_PATH
16168   case $host_vendor in
16169     sni)
16170       shlibpath_overrides_runpath=no
16171       need_lib_prefix=no
16172       runpath_var=LD_RUN_PATH
16173       ;;
16174     siemens)
16175       need_lib_prefix=no
16176       ;;
16177     motorola)
16178       need_lib_prefix=no
16179       need_version=no
16180       shlibpath_overrides_runpath=no
16181       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16182       ;;
16183   esac
16184   ;;
16185
16186 sysv4*MP*)
16187   if test -d /usr/nec ;then
16188     version_type=linux
16189     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16190     soname_spec='$libname${shared_ext}.$major'
16191     shlibpath_var=LD_LIBRARY_PATH
16192   fi
16193   ;;
16194
16195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16196   version_type=freebsd-elf
16197   need_lib_prefix=no
16198   need_version=no
16199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16200   soname_spec='${libname}${release}${shared_ext}$major'
16201   shlibpath_var=LD_LIBRARY_PATH
16202   shlibpath_overrides_runpath=yes
16203   hardcode_into_libs=yes
16204   if test "$with_gnu_ld" = yes; then
16205     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16206   else
16207     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16208     case $host_os in
16209       sco3.2v5*)
16210         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16211         ;;
16212     esac
16213   fi
16214   sys_lib_dlsearch_path_spec='/usr/lib'
16215   ;;
16216
16217 tpf*)
16218   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16219   version_type=linux
16220   need_lib_prefix=no
16221   need_version=no
16222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223   shlibpath_var=LD_LIBRARY_PATH
16224   shlibpath_overrides_runpath=no
16225   hardcode_into_libs=yes
16226   ;;
16227
16228 uts4*)
16229   version_type=linux
16230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231   soname_spec='${libname}${release}${shared_ext}$major'
16232   shlibpath_var=LD_LIBRARY_PATH
16233   ;;
16234
16235 *)
16236   dynamic_linker=no
16237   ;;
16238 esac
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16240 $as_echo "$dynamic_linker" >&6; }
16241 test "$dynamic_linker" = no && can_build_shared=no
16242
16243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16244 if test "$GCC" = yes; then
16245   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16246 fi
16247
16248 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16249   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16250 fi
16251 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16252   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16253 fi
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16294 hardcode_action_CXX=
16295 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16296    test -n "$runpath_var_CXX" ||
16297    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16298
16299   # We can hardcode non-existent directories.
16300   if test "$hardcode_direct_CXX" != no &&
16301      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16302      # have to relink, otherwise we might link with an installed library
16303      # when we should be linking with a yet-to-be-installed one
16304      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16305      test "$hardcode_minus_L_CXX" != no; then
16306     # Linking always hardcodes the temporary library directory.
16307     hardcode_action_CXX=relink
16308   else
16309     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16310     hardcode_action_CXX=immediate
16311   fi
16312 else
16313   # We cannot hardcode anything, or else we can only hardcode existing
16314   # directories.
16315   hardcode_action_CXX=unsupported
16316 fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16318 $as_echo "$hardcode_action_CXX" >&6; }
16319
16320 if test "$hardcode_action_CXX" = relink ||
16321    test "$inherit_rpath_CXX" = yes; then
16322   # Fast installation is not supported
16323   enable_fast_install=no
16324 elif test "$shlibpath_overrides_runpath" = yes ||
16325      test "$enable_shared" = no; then
16326   # Fast installation is not necessary
16327   enable_fast_install=needless
16328 fi
16329
16330
16331
16332
16333
16334
16335
16336   fi # test -n "$compiler"
16337
16338   CC=$lt_save_CC
16339   CFLAGS=$lt_save_CFLAGS
16340   LDCXX=$LD
16341   LD=$lt_save_LD
16342   GCC=$lt_save_GCC
16343   with_gnu_ld=$lt_save_with_gnu_ld
16344   lt_cv_path_LDCXX=$lt_cv_path_LD
16345   lt_cv_path_LD=$lt_save_path_LD
16346   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16347   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16348 fi # test "$_lt_caught_CXX_error" != yes
16349
16350 ac_ext=c
16351 ac_cpp='$CPP $CPPFLAGS'
16352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368         ac_config_commands="$ac_config_commands libtool"
16369
16370
16371
16372
16373 # Only expand once:
16374
16375
16376
16377
16378 if test x$use_libtool != xno; then
16379    DEFAULT_OBJECT_TYPE=".lo"
16380    DEFAULT_ARCHIVE_TYPE=".la"
16381    DEFAULT_SHARED_OBJECT_TYPE=".la"
16382    LIBTOOL="\$(LIBTOOL)"
16383    LIBTOOL_INSTALL_TARGET="libtool-install"
16384    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16385    LIBTOOL_CLEAN_TARGET="libtool-clean"
16386    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16387    FD_PLUGIN_DIR="src/plugins/fd"
16388    have_plugins=yes
16389 else
16390    DEFAULT_OBJECT_TYPE=".o"
16391    DEFAULT_ARCHIVE_TYPE=".a"
16392    DEFAULT_SHARED_OBJECT_TYPE=".so"
16393    LIBTOOL="# \$(LIBTOOL)"
16394    LIBTOOL_INSTALL_TARGET=""
16395    LIBTOOL_UNINSTALL_TARGET=""
16396    LIBTOOL_CLEAN_TARGET=""
16397    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16398    FD_PLUGIN_DIR=""
16399    have_plugins=no
16400 fi
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412 # Check whether --enable-includes was given.
16413 if test "${enable_includes+set}" = set; then :
16414   enableval=$enable_includes;
16415        if test x$enableval = xyes; then
16416           install_includes=yes
16417        fi
16418
16419
16420 fi
16421
16422
16423
16424 if test x$use_libtool != xno -a x$install_includes = xyes; then
16425    INCLUDE_INSTALL_TARGET="install-includes"
16426    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16427 else
16428    INCLUDE_INSTALL_TARGET=""
16429    INCLUDE_UNINSTALL_TARGET=""
16430 fi
16431
16432
16433
16434
16435
16436 case $host_os in
16437   *cygwin* ) CYGWIN=yes;;
16438          * ) CYGWIN=no;;
16439 esac
16440
16441 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16442 then
16443
16444
16445 if $TRUEPRG; then
16446   HAVE_SUN_OS_TRUE=
16447   HAVE_SUN_OS_FALSE='#'
16448 else
16449   HAVE_SUN_OS_TRUE='#'
16450   HAVE_SUN_OS_FALSE=
16451 fi
16452         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16453
16454 else
16455
16456
16457 if $FALSEPRG; then
16458   HAVE_SUN_OS_TRUE=
16459   HAVE_SUN_OS_FALSE='#'
16460 else
16461   HAVE_SUN_OS_TRUE='#'
16462   HAVE_SUN_OS_FALSE=
16463 fi
16464 fi
16465
16466 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16467 then
16468
16469
16470 if $TRUEPRG; then
16471   HAVE_OSF1_OS_TRUE=
16472   HAVE_OSF1_OS_FALSE='#'
16473 else
16474   HAVE_OSF1_OS_TRUE='#'
16475   HAVE_OSF1_OS_FALSE=
16476 fi
16477         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16478
16479 else
16480
16481
16482 if $FALSEPRG; then
16483   HAVE_OSF1_OS_TRUE=
16484   HAVE_OSF1_OS_FALSE='#'
16485 else
16486   HAVE_OSF1_OS_TRUE='#'
16487   HAVE_OSF1_OS_FALSE=
16488 fi
16489 fi
16490
16491 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16492 then
16493
16494
16495 if $TRUEPRG; then
16496   HAVE_AIX_OS_TRUE=
16497   HAVE_AIX_OS_FALSE='#'
16498 else
16499   HAVE_AIX_OS_TRUE='#'
16500   HAVE_AIX_OS_FALSE=
16501 fi
16502         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16503
16504 else
16505
16506
16507 if $FALSEPRG; then
16508   HAVE_AIX_OS_TRUE=
16509   HAVE_AIX_OS_FALSE='#'
16510 else
16511   HAVE_AIX_OS_TRUE='#'
16512   HAVE_AIX_OS_FALSE=
16513 fi
16514 fi
16515
16516 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16517 then
16518
16519
16520 if $TRUEPRG; then
16521   HAVE_HPUX_OS_TRUE=
16522   HAVE_HPUX_OS_FALSE='#'
16523 else
16524   HAVE_HPUX_OS_TRUE='#'
16525   HAVE_HPUX_OS_FALSE=
16526 fi
16527         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16528
16529 else
16530
16531
16532 if $FALSEPRG; then
16533   HAVE_HPUX_OS_TRUE=
16534   HAVE_HPUX_OS_FALSE='#'
16535 else
16536   HAVE_HPUX_OS_TRUE='#'
16537   HAVE_HPUX_OS_FALSE=
16538 fi
16539 fi
16540
16541 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16542 then
16543
16544
16545 if $TRUEPRG; then
16546   HAVE_LINUX_OS_TRUE=
16547   HAVE_LINUX_OS_FALSE='#'
16548 else
16549   HAVE_LINUX_OS_TRUE='#'
16550   HAVE_LINUX_OS_FALSE=
16551 fi
16552         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16553
16554 else
16555
16556
16557 if $FALSEPRG; then
16558   HAVE_LINUX_OS_TRUE=
16559   HAVE_LINUX_OS_FALSE='#'
16560 else
16561   HAVE_LINUX_OS_TRUE='#'
16562   HAVE_LINUX_OS_FALSE=
16563 fi
16564 fi
16565
16566 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16567 then
16568
16569
16570 if $TRUEPRG; then
16571   HAVE_FREEBSD_OS_TRUE=
16572   HAVE_FREEBSD_OS_FALSE='#'
16573 else
16574   HAVE_FREEBSD_OS_TRUE='#'
16575   HAVE_FREEBSD_OS_FALSE=
16576 fi
16577         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16578
16579 else
16580
16581
16582 if $FALSEPRG; then
16583   HAVE_FREEBSD_OS_TRUE=
16584   HAVE_FREEBSD_OS_FALSE='#'
16585 else
16586   HAVE_FREEBSD_OS_TRUE='#'
16587   HAVE_FREEBSD_OS_FALSE=
16588 fi
16589 fi
16590
16591 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16592 then
16593
16594
16595 if $TRUEPRG; then
16596   HAVE_NETBSD_OS_TRUE=
16597   HAVE_NETBSD_OS_FALSE='#'
16598 else
16599   HAVE_NETBSD_OS_TRUE='#'
16600   HAVE_NETBSD_OS_FALSE=
16601 fi
16602         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16603
16604 else
16605
16606
16607 if $FALSEPRG; then
16608   HAVE_NETBSD_OS_TRUE=
16609   HAVE_NETBSD_OS_FALSE='#'
16610 else
16611   HAVE_NETBSD_OS_TRUE='#'
16612   HAVE_NETBSD_OS_FALSE=
16613 fi
16614 fi
16615
16616 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16617 then
16618
16619
16620 if $TRUEPRG; then
16621   HAVE_OPENBSD_OS_TRUE=
16622   HAVE_OPENBSD_OS_FALSE='#'
16623 else
16624   HAVE_OPENBSD_OS_TRUE='#'
16625   HAVE_OPENBSD_OS_FALSE=
16626 fi
16627         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16628
16629 else
16630
16631
16632 if $FALSEPRG; then
16633   HAVE_OPENBSD_OS_TRUE=
16634   HAVE_OPENBSD_OS_FALSE='#'
16635 else
16636   HAVE_OPENBSD_OS_TRUE='#'
16637   HAVE_OPENBSD_OS_FALSE=
16638 fi
16639 fi
16640
16641 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16642 then
16643
16644
16645 if $TRUEPRG; then
16646   HAVE_BSDI_OS_TRUE=
16647   HAVE_BSDI_OS_FALSE='#'
16648 else
16649   HAVE_BSDI_OS_TRUE='#'
16650   HAVE_BSDI_OS_FALSE=
16651 fi
16652         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16653
16654 else
16655
16656
16657 if $FALSEPRG; then
16658   HAVE_BSDI_OS_TRUE=
16659   HAVE_BSDI_OS_FALSE='#'
16660 else
16661   HAVE_BSDI_OS_TRUE='#'
16662   HAVE_BSDI_OS_FALSE=
16663 fi
16664 fi
16665
16666 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16667 then
16668
16669
16670 if $TRUEPRG; then
16671   HAVE_SGI_OS_TRUE=
16672   HAVE_SGI_OS_FALSE='#'
16673 else
16674   HAVE_SGI_OS_TRUE='#'
16675   HAVE_SGI_OS_FALSE=
16676 fi
16677         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16678
16679 else
16680
16681
16682 if $FALSEPRG; then
16683   HAVE_SGI_OS_TRUE=
16684   HAVE_SGI_OS_FALSE='#'
16685 else
16686   HAVE_SGI_OS_TRUE='#'
16687   HAVE_SGI_OS_FALSE=
16688 fi
16689 fi
16690
16691 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16692 then
16693
16694
16695 if $TRUEPRG; then
16696   HAVE_IRIX_OS_TRUE=
16697   HAVE_IRIX_OS_FALSE='#'
16698 else
16699   HAVE_IRIX_OS_TRUE='#'
16700   HAVE_IRIX_OS_FALSE=
16701 fi
16702         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16703
16704 else
16705
16706
16707 if $FALSEPRG; then
16708   HAVE_IRIX_OS_TRUE=
16709   HAVE_IRIX_OS_FALSE='#'
16710 else
16711   HAVE_IRIX_OS_TRUE='#'
16712   HAVE_IRIX_OS_FALSE=
16713 fi
16714 fi
16715
16716 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16717 then
16718
16719
16720 if $TRUEPRG; then
16721   HAVE_DARWIN_OS_TRUE=
16722   HAVE_DARWIN_OS_FALSE='#'
16723 else
16724   HAVE_DARWIN_OS_TRUE='#'
16725   HAVE_DARWIN_OS_FALSE=
16726 fi
16727     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16728
16729 else
16730
16731
16732 if $FALSEPRG; then
16733   HAVE_DARWIN_OS_TRUE=
16734   HAVE_DARWIN_OS_FALSE='#'
16735 else
16736   HAVE_DARWIN_OS_TRUE='#'
16737   HAVE_DARWIN_OS_FALSE=
16738 fi
16739 fi
16740
16741
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16743 $as_echo_n "checking for Operating System Distribution... " >&6; }
16744 if test "x$DISTNAME" != "x"
16745 then
16746         echo "distname set to $DISTNAME"
16747 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16748 then
16749         DISTNAME=alpha
16750 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16751 then
16752         DISTNAME=aix
16753 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16754 then
16755         DISTNAME=hpux
16756 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16757 then
16758         DISTNAME=solaris
16759 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16760 then
16761         DISTNAME=freebsd
16762 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16763 then
16764         DISTNAME=netbsd
16765 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16766 then
16767         DISTNAME=openbsd
16768 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16769 then
16770         DISTNAME=irix
16771 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16772 then
16773         DISTNAME=bsdi
16774 elif test -f /etc/SuSE-release
16775 then
16776         DISTNAME=suse
16777 elif test -d /etc/SuSEconfig
16778 then
16779         DISTNAME=suse5
16780 elif test -f /etc/mandrake-release
16781 then
16782         DISTNAME=mandrake
16783 elif test -f /etc/whitebox-release
16784 then
16785        DISTNAME=redhat
16786 elif test -f /etc/redhat-release
16787 then
16788         DISTNAME=redhat
16789 elif test -f /etc/gentoo-release
16790 then
16791         DISTNAME=gentoo
16792 elif test -f /etc/debian_version
16793 then
16794         DISTNAME=debian
16795 elif test -f /etc/slackware-version
16796 then
16797         DISTNAME=slackware
16798 elif test x$host_vendor = xapple
16799 then
16800     DISTNAME=osx
16801 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16802 then
16803     DISTNAME=darwin
16804 elif test -f /etc/engarde-version
16805 then
16806         DISTNAME=engarde
16807 elif test -f /etc/arch-release
16808 then
16809         DISTNAME=archlinux
16810 elif test "$CYGWIN" = yes
16811 then
16812         DISTNAME=cygwin
16813         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16814
16815 else
16816         DISTNAME=unknown
16817 fi
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16819 $as_echo "done" >&6; }
16820
16821
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16824 set x ${MAKE-make}
16825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16827   $as_echo_n "(cached) " >&6
16828 else
16829   cat >conftest.make <<\_ACEOF
16830 SHELL = /bin/sh
16831 all:
16832         @echo '@@@%%%=$(MAKE)=@@@%%%'
16833 _ACEOF
16834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16836   *@@@%%%=?*=@@@%%%*)
16837     eval ac_cv_prog_make_${ac_make}_set=yes;;
16838   *)
16839     eval ac_cv_prog_make_${ac_make}_set=no;;
16840 esac
16841 rm -f conftest.make
16842 fi
16843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16845 $as_echo "yes" >&6; }
16846   SET_MAKE=
16847 else
16848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16849 $as_echo "no" >&6; }
16850   SET_MAKE="MAKE=${MAKE-make}"
16851 fi
16852
16853
16854
16855         MKINSTALLDIRS=
16856   if test -n "$ac_aux_dir"; then
16857     case "$ac_aux_dir" in
16858       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16859       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16860     esac
16861   fi
16862   if test -z "$MKINSTALLDIRS"; then
16863     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16864   fi
16865
16866
16867
16868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16869 $as_echo_n "checking whether NLS is requested... " >&6; }
16870     # Check whether --enable-nls was given.
16871 if test "${enable_nls+set}" = set; then :
16872   enableval=$enable_nls; USE_NLS=$enableval
16873 else
16874   USE_NLS=yes
16875 fi
16876
16877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16878 $as_echo "$USE_NLS" >&6; }
16879
16880
16881
16882
16883
16884
16885 # Prepare PATH_SEPARATOR.
16886 # The user is always right.
16887 if test "${PATH_SEPARATOR+set}" != set; then
16888   echo "#! /bin/sh" >conf$$.sh
16889   echo  "exit 0"   >>conf$$.sh
16890   chmod +x conf$$.sh
16891   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16892     PATH_SEPARATOR=';'
16893   else
16894     PATH_SEPARATOR=:
16895   fi
16896   rm -f conf$$.sh
16897 fi
16898
16899 # Find out how to test for executable files. Don't use a zero-byte file,
16900 # as systems may use methods other than mode bits to determine executability.
16901 cat >conf$$.file <<_ASEOF
16902 #! /bin/sh
16903 exit 0
16904 _ASEOF
16905 chmod +x conf$$.file
16906 if test -x conf$$.file >/dev/null 2>&1; then
16907   ac_executable_p="test -x"
16908 else
16909   ac_executable_p="test -f"
16910 fi
16911 rm -f conf$$.file
16912
16913 # Extract the first word of "msgfmt", so it can be a program name with args.
16914 set dummy msgfmt; ac_word=$2
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16916 $as_echo_n "checking for $ac_word... " >&6; }
16917 if ${ac_cv_path_MSGFMT+:} false; then :
16918   $as_echo_n "(cached) " >&6
16919 else
16920   case "$MSGFMT" in
16921   [\\/]* | ?:[\\/]*)
16922     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16923     ;;
16924   *)
16925     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16926     for ac_dir in $PATH; do
16927       IFS="$ac_save_IFS"
16928       test -z "$ac_dir" && ac_dir=.
16929       for ac_exec_ext in '' $ac_executable_extensions; do
16930         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16931           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16932           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16933      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16934             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16935             break 2
16936           fi
16937         fi
16938       done
16939     done
16940     IFS="$ac_save_IFS"
16941   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16942     ;;
16943 esac
16944 fi
16945 MSGFMT="$ac_cv_path_MSGFMT"
16946 if test "$MSGFMT" != ":"; then
16947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16948 $as_echo "$MSGFMT" >&6; }
16949 else
16950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16951 $as_echo "no" >&6; }
16952 fi
16953
16954   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16955 set dummy gmsgfmt; ac_word=$2
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16957 $as_echo_n "checking for $ac_word... " >&6; }
16958 if ${ac_cv_path_GMSGFMT+:} false; then :
16959   $as_echo_n "(cached) " >&6
16960 else
16961   case $GMSGFMT in
16962   [\\/]* | ?:[\\/]*)
16963   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16964   ;;
16965   *)
16966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16967 for as_dir in $PATH
16968 do
16969   IFS=$as_save_IFS
16970   test -z "$as_dir" && as_dir=.
16971     for ac_exec_ext in '' $ac_executable_extensions; do
16972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16973     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16975     break 2
16976   fi
16977 done
16978   done
16979 IFS=$as_save_IFS
16980
16981   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16982   ;;
16983 esac
16984 fi
16985 GMSGFMT=$ac_cv_path_GMSGFMT
16986 if test -n "$GMSGFMT"; then
16987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16988 $as_echo "$GMSGFMT" >&6; }
16989 else
16990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16992 fi
16993
16994
16995
16996
16997 # Prepare PATH_SEPARATOR.
16998 # The user is always right.
16999 if test "${PATH_SEPARATOR+set}" != set; then
17000   echo "#! /bin/sh" >conf$$.sh
17001   echo  "exit 0"   >>conf$$.sh
17002   chmod +x conf$$.sh
17003   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17004     PATH_SEPARATOR=';'
17005   else
17006     PATH_SEPARATOR=:
17007   fi
17008   rm -f conf$$.sh
17009 fi
17010
17011 # Find out how to test for executable files. Don't use a zero-byte file,
17012 # as systems may use methods other than mode bits to determine executability.
17013 cat >conf$$.file <<_ASEOF
17014 #! /bin/sh
17015 exit 0
17016 _ASEOF
17017 chmod +x conf$$.file
17018 if test -x conf$$.file >/dev/null 2>&1; then
17019   ac_executable_p="test -x"
17020 else
17021   ac_executable_p="test -f"
17022 fi
17023 rm -f conf$$.file
17024
17025 # Extract the first word of "xgettext", so it can be a program name with args.
17026 set dummy xgettext; ac_word=$2
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17028 $as_echo_n "checking for $ac_word... " >&6; }
17029 if ${ac_cv_path_XGETTEXT+:} false; then :
17030   $as_echo_n "(cached) " >&6
17031 else
17032   case "$XGETTEXT" in
17033   [\\/]* | ?:[\\/]*)
17034     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17035     ;;
17036   *)
17037     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17038     for ac_dir in $PATH; do
17039       IFS="$ac_save_IFS"
17040       test -z "$ac_dir" && ac_dir=.
17041       for ac_exec_ext in '' $ac_executable_extensions; do
17042         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17043           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17044           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17045      (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
17046             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17047             break 2
17048           fi
17049         fi
17050       done
17051     done
17052     IFS="$ac_save_IFS"
17053   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17054     ;;
17055 esac
17056 fi
17057 XGETTEXT="$ac_cv_path_XGETTEXT"
17058 if test "$XGETTEXT" != ":"; then
17059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17060 $as_echo "$XGETTEXT" >&6; }
17061 else
17062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17064 fi
17065
17066     rm -f messages.po
17067
17068
17069 # Prepare PATH_SEPARATOR.
17070 # The user is always right.
17071 if test "${PATH_SEPARATOR+set}" != set; then
17072   echo "#! /bin/sh" >conf$$.sh
17073   echo  "exit 0"   >>conf$$.sh
17074   chmod +x conf$$.sh
17075   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17076     PATH_SEPARATOR=';'
17077   else
17078     PATH_SEPARATOR=:
17079   fi
17080   rm -f conf$$.sh
17081 fi
17082
17083 # Find out how to test for executable files. Don't use a zero-byte file,
17084 # as systems may use methods other than mode bits to determine executability.
17085 cat >conf$$.file <<_ASEOF
17086 #! /bin/sh
17087 exit 0
17088 _ASEOF
17089 chmod +x conf$$.file
17090 if test -x conf$$.file >/dev/null 2>&1; then
17091   ac_executable_p="test -x"
17092 else
17093   ac_executable_p="test -f"
17094 fi
17095 rm -f conf$$.file
17096
17097 # Extract the first word of "msgmerge", so it can be a program name with args.
17098 set dummy msgmerge; ac_word=$2
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17100 $as_echo_n "checking for $ac_word... " >&6; }
17101 if ${ac_cv_path_MSGMERGE+:} false; then :
17102   $as_echo_n "(cached) " >&6
17103 else
17104   case "$MSGMERGE" in
17105   [\\/]* | ?:[\\/]*)
17106     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17107     ;;
17108   *)
17109     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17110     for ac_dir in $PATH; do
17111       IFS="$ac_save_IFS"
17112       test -z "$ac_dir" && ac_dir=.
17113       for ac_exec_ext in '' $ac_executable_extensions; do
17114         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17115           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17116           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17117             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17118             break 2
17119           fi
17120         fi
17121       done
17122     done
17123     IFS="$ac_save_IFS"
17124   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17125     ;;
17126 esac
17127 fi
17128 MSGMERGE="$ac_cv_path_MSGMERGE"
17129 if test "$MSGMERGE" != ":"; then
17130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17131 $as_echo "$MSGMERGE" >&6; }
17132 else
17133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17134 $as_echo "no" >&6; }
17135 fi
17136
17137
17138       if test "$GMSGFMT" != ":"; then
17139             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17140        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17141       : ;
17142     else
17143       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17145 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17146       GMSGFMT=":"
17147     fi
17148   fi
17149
17150       if test "$XGETTEXT" != ":"; then
17151             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17152        (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
17153       : ;
17154     else
17155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17156 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17157       XGETTEXT=":"
17158     fi
17159         rm -f messages.po
17160   fi
17161
17162   ac_config_commands="$ac_config_commands default-1"
17163
17164
17165
17166       if test "X$prefix" = "XNONE"; then
17167     acl_final_prefix="$ac_default_prefix"
17168   else
17169     acl_final_prefix="$prefix"
17170   fi
17171   if test "X$exec_prefix" = "XNONE"; then
17172     acl_final_exec_prefix='${prefix}'
17173   else
17174     acl_final_exec_prefix="$exec_prefix"
17175   fi
17176   acl_save_prefix="$prefix"
17177   prefix="$acl_final_prefix"
17178   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17179   prefix="$acl_save_prefix"
17180
17181
17182 # Check whether --with-gnu-ld was given.
17183 if test "${with_gnu_ld+set}" = set; then :
17184   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17185 else
17186   with_gnu_ld=no
17187 fi
17188
17189 # Prepare PATH_SEPARATOR.
17190 # The user is always right.
17191 if test "${PATH_SEPARATOR+set}" != set; then
17192   echo "#! /bin/sh" >conf$$.sh
17193   echo  "exit 0"   >>conf$$.sh
17194   chmod +x conf$$.sh
17195   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17196     PATH_SEPARATOR=';'
17197   else
17198     PATH_SEPARATOR=:
17199   fi
17200   rm -f conf$$.sh
17201 fi
17202 ac_prog=ld
17203 if test "$GCC" = yes; then
17204   # Check if gcc -print-prog-name=ld gives a path.
17205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17206 $as_echo_n "checking for ld used by GCC... " >&6; }
17207   case $host in
17208   *-*-mingw*)
17209     # gcc leaves a trailing carriage return which upsets mingw
17210     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17211   *)
17212     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17213   esac
17214   case $ac_prog in
17215     # Accept absolute paths.
17216     [\\/]* | [A-Za-z]:[\\/]*)
17217       re_direlt='/[^/][^/]*/\.\./'
17218       # Canonicalize the path of ld
17219       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17220       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17221         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17222       done
17223       test -z "$LD" && LD="$ac_prog"
17224       ;;
17225   "")
17226     # If it fails, then pretend we aren't using GCC.
17227     ac_prog=ld
17228     ;;
17229   *)
17230     # If it is relative, then search for the first ld in PATH.
17231     with_gnu_ld=unknown
17232     ;;
17233   esac
17234 elif test "$with_gnu_ld" = yes; then
17235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17236 $as_echo_n "checking for GNU ld... " >&6; }
17237 else
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17239 $as_echo_n "checking for non-GNU ld... " >&6; }
17240 fi
17241 if ${acl_cv_path_LD+:} false; then :
17242   $as_echo_n "(cached) " >&6
17243 else
17244   if test -z "$LD"; then
17245   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17246   for ac_dir in $PATH; do
17247     test -z "$ac_dir" && ac_dir=.
17248     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17249       acl_cv_path_LD="$ac_dir/$ac_prog"
17250       # Check to see if the program is GNU ld.  I'd rather use --version,
17251       # but apparently some GNU ld's only accept -v.
17252       # Break only if it was the GNU/non-GNU ld that we prefer.
17253       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17254       *GNU* | *'with BFD'*)
17255         test "$with_gnu_ld" != no && break ;;
17256       *)
17257         test "$with_gnu_ld" != yes && break ;;
17258       esac
17259     fi
17260   done
17261   IFS="$ac_save_ifs"
17262 else
17263   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17264 fi
17265 fi
17266
17267 LD="$acl_cv_path_LD"
17268 if test -n "$LD"; then
17269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17270 $as_echo "$LD" >&6; }
17271 else
17272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17273 $as_echo "no" >&6; }
17274 fi
17275 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17277 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17278 if ${acl_cv_prog_gnu_ld+:} false; then :
17279   $as_echo_n "(cached) " >&6
17280 else
17281   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17282 case `$LD -v 2>&1 </dev/null` in
17283 *GNU* | *'with BFD'*)
17284   acl_cv_prog_gnu_ld=yes ;;
17285 *)
17286   acl_cv_prog_gnu_ld=no ;;
17287 esac
17288 fi
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17290 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17291 with_gnu_ld=$acl_cv_prog_gnu_ld
17292
17293
17294
17295
17296                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17297 $as_echo_n "checking for shared library run path origin... " >&6; }
17298 if ${acl_cv_rpath+:} false; then :
17299   $as_echo_n "(cached) " >&6
17300 else
17301
17302     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17303     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17304     . ./conftest.sh
17305     rm -f ./conftest.sh
17306     acl_cv_rpath=done
17307
17308 fi
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17310 $as_echo "$acl_cv_rpath" >&6; }
17311   wl="$acl_cv_wl"
17312   libext="$acl_cv_libext"
17313   shlibext="$acl_cv_shlibext"
17314   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17315   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17316   hardcode_direct="$acl_cv_hardcode_direct"
17317   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17318     # Check whether --enable-rpath was given.
17319 if test "${enable_rpath+set}" = set; then :
17320   enableval=$enable_rpath; :
17321 else
17322   enable_rpath=yes
17323 fi
17324
17325
17326
17327
17328
17329
17330
17331
17332     use_additional=yes
17333
17334   acl_save_prefix="$prefix"
17335   prefix="$acl_final_prefix"
17336   acl_save_exec_prefix="$exec_prefix"
17337   exec_prefix="$acl_final_exec_prefix"
17338
17339     eval additional_includedir=\"$includedir\"
17340     eval additional_libdir=\"$libdir\"
17341
17342   exec_prefix="$acl_save_exec_prefix"
17343   prefix="$acl_save_prefix"
17344
17345
17346 # Check whether --with-libiconv-prefix was given.
17347 if test "${with_libiconv_prefix+set}" = set; then :
17348   withval=$with_libiconv_prefix;
17349     if test "X$withval" = "Xno"; then
17350       use_additional=no
17351     else
17352       if test "X$withval" = "X"; then
17353
17354   acl_save_prefix="$prefix"
17355   prefix="$acl_final_prefix"
17356   acl_save_exec_prefix="$exec_prefix"
17357   exec_prefix="$acl_final_exec_prefix"
17358
17359           eval additional_includedir=\"$includedir\"
17360           eval additional_libdir=\"$libdir\"
17361
17362   exec_prefix="$acl_save_exec_prefix"
17363   prefix="$acl_save_prefix"
17364
17365       else
17366         additional_includedir="$withval/include"
17367         additional_libdir="$withval/lib"
17368       fi
17369     fi
17370
17371 fi
17372
17373       LIBICONV=
17374   LTLIBICONV=
17375   INCICONV=
17376   rpathdirs=
17377   ltrpathdirs=
17378   names_already_handled=
17379   names_next_round='iconv '
17380   while test -n "$names_next_round"; do
17381     names_this_round="$names_next_round"
17382     names_next_round=
17383     for name in $names_this_round; do
17384       already_handled=
17385       for n in $names_already_handled; do
17386         if test "$n" = "$name"; then
17387           already_handled=yes
17388           break
17389         fi
17390       done
17391       if test -z "$already_handled"; then
17392         names_already_handled="$names_already_handled $name"
17393                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17394         eval value=\"\$HAVE_LIB$uppername\"
17395         if test -n "$value"; then
17396           if test "$value" = yes; then
17397             eval value=\"\$LIB$uppername\"
17398             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17399             eval value=\"\$LTLIB$uppername\"
17400             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17401           else
17402                                     :
17403           fi
17404         else
17405                               found_dir=
17406           found_la=
17407           found_so=
17408           found_a=
17409           if test $use_additional = yes; then
17410             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17411               found_dir="$additional_libdir"
17412               found_so="$additional_libdir/lib$name.$shlibext"
17413               if test -f "$additional_libdir/lib$name.la"; then
17414                 found_la="$additional_libdir/lib$name.la"
17415               fi
17416             else
17417               if test -f "$additional_libdir/lib$name.$libext"; then
17418                 found_dir="$additional_libdir"
17419                 found_a="$additional_libdir/lib$name.$libext"
17420                 if test -f "$additional_libdir/lib$name.la"; then
17421                   found_la="$additional_libdir/lib$name.la"
17422                 fi
17423               fi
17424             fi
17425           fi
17426           if test "X$found_dir" = "X"; then
17427             for x in $LDFLAGS $LTLIBICONV; do
17428
17429   acl_save_prefix="$prefix"
17430   prefix="$acl_final_prefix"
17431   acl_save_exec_prefix="$exec_prefix"
17432   exec_prefix="$acl_final_exec_prefix"
17433   eval x=\"$x\"
17434   exec_prefix="$acl_save_exec_prefix"
17435   prefix="$acl_save_prefix"
17436
17437               case "$x" in
17438                 -L*)
17439                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17440                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17441                     found_dir="$dir"
17442                     found_so="$dir/lib$name.$shlibext"
17443                     if test -f "$dir/lib$name.la"; then
17444                       found_la="$dir/lib$name.la"
17445                     fi
17446                   else
17447                     if test -f "$dir/lib$name.$libext"; then
17448                       found_dir="$dir"
17449                       found_a="$dir/lib$name.$libext"
17450                       if test -f "$dir/lib$name.la"; then
17451                         found_la="$dir/lib$name.la"
17452                       fi
17453                     fi
17454                   fi
17455                   ;;
17456               esac
17457               if test "X$found_dir" != "X"; then
17458                 break
17459               fi
17460             done
17461           fi
17462           if test "X$found_dir" != "X"; then
17463                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17464             if test "X$found_so" != "X"; then
17465                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17466                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17467               else
17468                                                                                 haveit=
17469                 for x in $ltrpathdirs; do
17470                   if test "X$x" = "X$found_dir"; then
17471                     haveit=yes
17472                     break
17473                   fi
17474                 done
17475                 if test -z "$haveit"; then
17476                   ltrpathdirs="$ltrpathdirs $found_dir"
17477                 fi
17478                                 if test "$hardcode_direct" = yes; then
17479                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17480                 else
17481                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17482                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17483                                                             haveit=
17484                     for x in $rpathdirs; do
17485                       if test "X$x" = "X$found_dir"; then
17486                         haveit=yes
17487                         break
17488                       fi
17489                     done
17490                     if test -z "$haveit"; then
17491                       rpathdirs="$rpathdirs $found_dir"
17492                     fi
17493                   else
17494                                                                                 haveit=
17495                     for x in $LDFLAGS $LIBICONV; do
17496
17497   acl_save_prefix="$prefix"
17498   prefix="$acl_final_prefix"
17499   acl_save_exec_prefix="$exec_prefix"
17500   exec_prefix="$acl_final_exec_prefix"
17501   eval x=\"$x\"
17502   exec_prefix="$acl_save_exec_prefix"
17503   prefix="$acl_save_prefix"
17504
17505                       if test "X$x" = "X-L$found_dir"; then
17506                         haveit=yes
17507                         break
17508                       fi
17509                     done
17510                     if test -z "$haveit"; then
17511                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17512                     fi
17513                     if test "$hardcode_minus_L" != no; then
17514                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17515                     else
17516                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17517                     fi
17518                   fi
17519                 fi
17520               fi
17521             else
17522               if test "X$found_a" != "X"; then
17523                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17524               else
17525                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17526               fi
17527             fi
17528                         additional_includedir=
17529             case "$found_dir" in
17530               */lib | */lib/)
17531                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17532                 additional_includedir="$basedir/include"
17533                 ;;
17534             esac
17535             if test "X$additional_includedir" != "X"; then
17536                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17537                 haveit=
17538                 if test "X$additional_includedir" = "X/usr/local/include"; then
17539                   if test -n "$GCC"; then
17540                     case $host_os in
17541                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17542                     esac
17543                   fi
17544                 fi
17545                 if test -z "$haveit"; then
17546                   for x in $CPPFLAGS $INCICONV; do
17547
17548   acl_save_prefix="$prefix"
17549   prefix="$acl_final_prefix"
17550   acl_save_exec_prefix="$exec_prefix"
17551   exec_prefix="$acl_final_exec_prefix"
17552   eval x=\"$x\"
17553   exec_prefix="$acl_save_exec_prefix"
17554   prefix="$acl_save_prefix"
17555
17556                     if test "X$x" = "X-I$additional_includedir"; then
17557                       haveit=yes
17558                       break
17559                     fi
17560                   done
17561                   if test -z "$haveit"; then
17562                     if test -d "$additional_includedir"; then
17563                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17564                     fi
17565                   fi
17566                 fi
17567               fi
17568             fi
17569                         if test -n "$found_la"; then
17570                                                         save_libdir="$libdir"
17571               case "$found_la" in
17572                 */* | *\\*) . "$found_la" ;;
17573                 *) . "./$found_la" ;;
17574               esac
17575               libdir="$save_libdir"
17576                             for dep in $dependency_libs; do
17577                 case "$dep" in
17578                   -L*)
17579                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17580                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17581                       haveit=
17582                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17583                         if test -n "$GCC"; then
17584                           case $host_os in
17585                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17586                           esac
17587                         fi
17588                       fi
17589                       if test -z "$haveit"; then
17590                         haveit=
17591                         for x in $LDFLAGS $LIBICONV; do
17592
17593   acl_save_prefix="$prefix"
17594   prefix="$acl_final_prefix"
17595   acl_save_exec_prefix="$exec_prefix"
17596   exec_prefix="$acl_final_exec_prefix"
17597   eval x=\"$x\"
17598   exec_prefix="$acl_save_exec_prefix"
17599   prefix="$acl_save_prefix"
17600
17601                           if test "X$x" = "X-L$additional_libdir"; then
17602                             haveit=yes
17603                             break
17604                           fi
17605                         done
17606                         if test -z "$haveit"; then
17607                           if test -d "$additional_libdir"; then
17608                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17609                           fi
17610                         fi
17611                         haveit=
17612                         for x in $LDFLAGS $LTLIBICONV; do
17613
17614   acl_save_prefix="$prefix"
17615   prefix="$acl_final_prefix"
17616   acl_save_exec_prefix="$exec_prefix"
17617   exec_prefix="$acl_final_exec_prefix"
17618   eval x=\"$x\"
17619   exec_prefix="$acl_save_exec_prefix"
17620   prefix="$acl_save_prefix"
17621
17622                           if test "X$x" = "X-L$additional_libdir"; then
17623                             haveit=yes
17624                             break
17625                           fi
17626                         done
17627                         if test -z "$haveit"; then
17628                           if test -d "$additional_libdir"; then
17629                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17630                           fi
17631                         fi
17632                       fi
17633                     fi
17634                     ;;
17635                   -R*)
17636                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17637                     if test "$enable_rpath" != no; then
17638                                                                   haveit=
17639                       for x in $rpathdirs; do
17640                         if test "X$x" = "X$dir"; then
17641                           haveit=yes
17642                           break
17643                         fi
17644                       done
17645                       if test -z "$haveit"; then
17646                         rpathdirs="$rpathdirs $dir"
17647                       fi
17648                                                                   haveit=
17649                       for x in $ltrpathdirs; do
17650                         if test "X$x" = "X$dir"; then
17651                           haveit=yes
17652                           break
17653                         fi
17654                       done
17655                       if test -z "$haveit"; then
17656                         ltrpathdirs="$ltrpathdirs $dir"
17657                       fi
17658                     fi
17659                     ;;
17660                   -l*)
17661                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17662                     ;;
17663                   *.la)
17664                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17665                     ;;
17666                   *)
17667                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17668                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17669                     ;;
17670                 esac
17671               done
17672             fi
17673           else
17674                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17675             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17676           fi
17677         fi
17678       fi
17679     done
17680   done
17681   if test "X$rpathdirs" != "X"; then
17682     if test -n "$hardcode_libdir_separator"; then
17683                         alldirs=
17684       for found_dir in $rpathdirs; do
17685         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17686       done
17687             acl_save_libdir="$libdir"
17688       libdir="$alldirs"
17689       eval flag=\"$hardcode_libdir_flag_spec\"
17690       libdir="$acl_save_libdir"
17691       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17692     else
17693             for found_dir in $rpathdirs; do
17694         acl_save_libdir="$libdir"
17695         libdir="$found_dir"
17696         eval flag=\"$hardcode_libdir_flag_spec\"
17697         libdir="$acl_save_libdir"
17698         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17699       done
17700     fi
17701   fi
17702   if test "X$ltrpathdirs" != "X"; then
17703             for found_dir in $ltrpathdirs; do
17704       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17705     done
17706   fi
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17726 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17727 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17728   $as_echo_n "(cached) " >&6
17729 else
17730   gt_save_CPPFLAGS="$CPPFLAGS"
17731      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17732      gt_save_LIBS="$LIBS"
17733      LIBS="$LIBS -framework CoreFoundation"
17734      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h.  */
17736 #include <CFPreferences.h>
17737 int
17738 main ()
17739 {
17740 CFPreferencesCopyAppValue(NULL, NULL)
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 if ac_fn_c_try_link "$LINENO"; then :
17746   gt_cv_func_CFPreferencesCopyAppValue=yes
17747 else
17748   gt_cv_func_CFPreferencesCopyAppValue=no
17749 fi
17750 rm -f core conftest.err conftest.$ac_objext \
17751     conftest$ac_exeext conftest.$ac_ext
17752      CPPFLAGS="$gt_save_CPPFLAGS"
17753      LIBS="$gt_save_LIBS"
17754 fi
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17756 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17757   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17758
17759 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17760
17761   fi
17762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17763 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17764 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17765   $as_echo_n "(cached) " >&6
17766 else
17767   gt_save_CPPFLAGS="$CPPFLAGS"
17768      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17769      gt_save_LIBS="$LIBS"
17770      LIBS="$LIBS -framework CoreFoundation"
17771      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h.  */
17773 #include <CFLocale.h>
17774 int
17775 main ()
17776 {
17777 CFLocaleCopyCurrent();
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 if ac_fn_c_try_link "$LINENO"; then :
17783   gt_cv_func_CFLocaleCopyCurrent=yes
17784 else
17785   gt_cv_func_CFLocaleCopyCurrent=no
17786 fi
17787 rm -f core conftest.err conftest.$ac_objext \
17788     conftest$ac_exeext conftest.$ac_ext
17789      CPPFLAGS="$gt_save_CPPFLAGS"
17790      LIBS="$gt_save_LIBS"
17791 fi
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17793 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17794   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17795
17796 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17797
17798   fi
17799   INTL_MACOSX_LIBS=
17800   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17801     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17802   fi
17803
17804
17805
17806
17807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17808 $as_echo_n "checking whether NLS is requested... " >&6; }
17809     # Check whether --enable-nls was given.
17810 if test "${enable_nls+set}" = set; then :
17811   enableval=$enable_nls; USE_NLS=$enableval
17812 else
17813   USE_NLS=yes
17814 fi
17815
17816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17817 $as_echo "$USE_NLS" >&6; }
17818
17819
17820
17821
17822   LIBINTL=
17823   LTLIBINTL=
17824   POSUB=
17825
17826     if test "$USE_NLS" = "yes"; then
17827     gt_use_preinstalled_gnugettext=no
17828
17829
17830
17831
17832
17833
17834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17835 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17836 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17837   $as_echo_n "(cached) " >&6
17838 else
17839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h.  */
17841 #include <libintl.h>
17842 extern int _nl_msg_cat_cntr;
17843 extern int *_nl_domain_bindings;
17844 int
17845 main ()
17846 {
17847 bindtextdomain ("", "");
17848 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17849   ;
17850   return 0;
17851 }
17852 _ACEOF
17853 if ac_fn_c_try_link "$LINENO"; then :
17854   gt_cv_func_gnugettext1_libc=yes
17855 else
17856   gt_cv_func_gnugettext1_libc=no
17857 fi
17858 rm -f core conftest.err conftest.$ac_objext \
17859     conftest$ac_exeext conftest.$ac_ext
17860 fi
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17862 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17863
17864         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17865
17866
17867
17868
17869
17870           am_save_CPPFLAGS="$CPPFLAGS"
17871
17872   for element in $INCICONV; do
17873     haveit=
17874     for x in $CPPFLAGS; do
17875
17876   acl_save_prefix="$prefix"
17877   prefix="$acl_final_prefix"
17878   acl_save_exec_prefix="$exec_prefix"
17879   exec_prefix="$acl_final_exec_prefix"
17880   eval x=\"$x\"
17881   exec_prefix="$acl_save_exec_prefix"
17882   prefix="$acl_save_prefix"
17883
17884       if test "X$x" = "X$element"; then
17885         haveit=yes
17886         break
17887       fi
17888     done
17889     if test -z "$haveit"; then
17890       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17891     fi
17892   done
17893
17894
17895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17896 $as_echo_n "checking for iconv... " >&6; }
17897 if ${am_cv_func_iconv+:} false; then :
17898   $as_echo_n "(cached) " >&6
17899 else
17900
17901     am_cv_func_iconv="no, consider installing GNU libiconv"
17902     am_cv_lib_iconv=no
17903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h.  */
17905 #include <stdlib.h>
17906 #include <iconv.h>
17907 int
17908 main ()
17909 {
17910 iconv_t cd = iconv_open("","");
17911        iconv(cd,NULL,NULL,NULL,NULL);
17912        iconv_close(cd);
17913   ;
17914   return 0;
17915 }
17916 _ACEOF
17917 if ac_fn_c_try_link "$LINENO"; then :
17918   am_cv_func_iconv=yes
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext \
17921     conftest$ac_exeext conftest.$ac_ext
17922     if test "$am_cv_func_iconv" != yes; then
17923       am_save_LIBS="$LIBS"
17924       LIBS="$LIBS $LIBICONV"
17925       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h.  */
17927 #include <stdlib.h>
17928 #include <iconv.h>
17929 int
17930 main ()
17931 {
17932 iconv_t cd = iconv_open("","");
17933          iconv(cd,NULL,NULL,NULL,NULL);
17934          iconv_close(cd);
17935   ;
17936   return 0;
17937 }
17938 _ACEOF
17939 if ac_fn_c_try_link "$LINENO"; then :
17940   am_cv_lib_iconv=yes
17941         am_cv_func_iconv=yes
17942 fi
17943 rm -f core conftest.err conftest.$ac_objext \
17944     conftest$ac_exeext conftest.$ac_ext
17945       LIBS="$am_save_LIBS"
17946     fi
17947
17948 fi
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17950 $as_echo "$am_cv_func_iconv" >&6; }
17951   if test "$am_cv_func_iconv" = yes; then
17952
17953 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17954
17955   fi
17956   if test "$am_cv_lib_iconv" = yes; then
17957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17958 $as_echo_n "checking how to link with libiconv... " >&6; }
17959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17960 $as_echo "$LIBICONV" >&6; }
17961   else
17962             CPPFLAGS="$am_save_CPPFLAGS"
17963     LIBICONV=
17964     LTLIBICONV=
17965   fi
17966
17967
17968
17969
17970
17971
17972     use_additional=yes
17973
17974   acl_save_prefix="$prefix"
17975   prefix="$acl_final_prefix"
17976   acl_save_exec_prefix="$exec_prefix"
17977   exec_prefix="$acl_final_exec_prefix"
17978
17979     eval additional_includedir=\"$includedir\"
17980     eval additional_libdir=\"$libdir\"
17981
17982   exec_prefix="$acl_save_exec_prefix"
17983   prefix="$acl_save_prefix"
17984
17985
17986 # Check whether --with-libintl-prefix was given.
17987 if test "${with_libintl_prefix+set}" = set; then :
17988   withval=$with_libintl_prefix;
17989     if test "X$withval" = "Xno"; then
17990       use_additional=no
17991     else
17992       if test "X$withval" = "X"; then
17993
17994   acl_save_prefix="$prefix"
17995   prefix="$acl_final_prefix"
17996   acl_save_exec_prefix="$exec_prefix"
17997   exec_prefix="$acl_final_exec_prefix"
17998
17999           eval additional_includedir=\"$includedir\"
18000           eval additional_libdir=\"$libdir\"
18001
18002   exec_prefix="$acl_save_exec_prefix"
18003   prefix="$acl_save_prefix"
18004
18005       else
18006         additional_includedir="$withval/include"
18007         additional_libdir="$withval/lib"
18008       fi
18009     fi
18010
18011 fi
18012
18013       LIBINTL=
18014   LTLIBINTL=
18015   INCINTL=
18016   rpathdirs=
18017   ltrpathdirs=
18018   names_already_handled=
18019   names_next_round='intl '
18020   while test -n "$names_next_round"; do
18021     names_this_round="$names_next_round"
18022     names_next_round=
18023     for name in $names_this_round; do
18024       already_handled=
18025       for n in $names_already_handled; do
18026         if test "$n" = "$name"; then
18027           already_handled=yes
18028           break
18029         fi
18030       done
18031       if test -z "$already_handled"; then
18032         names_already_handled="$names_already_handled $name"
18033                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18034         eval value=\"\$HAVE_LIB$uppername\"
18035         if test -n "$value"; then
18036           if test "$value" = yes; then
18037             eval value=\"\$LIB$uppername\"
18038             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18039             eval value=\"\$LTLIB$uppername\"
18040             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18041           else
18042                                     :
18043           fi
18044         else
18045                               found_dir=
18046           found_la=
18047           found_so=
18048           found_a=
18049           if test $use_additional = yes; then
18050             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18051               found_dir="$additional_libdir"
18052               found_so="$additional_libdir/lib$name.$shlibext"
18053               if test -f "$additional_libdir/lib$name.la"; then
18054                 found_la="$additional_libdir/lib$name.la"
18055               fi
18056             else
18057               if test -f "$additional_libdir/lib$name.$libext"; then
18058                 found_dir="$additional_libdir"
18059                 found_a="$additional_libdir/lib$name.$libext"
18060                 if test -f "$additional_libdir/lib$name.la"; then
18061                   found_la="$additional_libdir/lib$name.la"
18062                 fi
18063               fi
18064             fi
18065           fi
18066           if test "X$found_dir" = "X"; then
18067             for x in $LDFLAGS $LTLIBINTL; do
18068
18069   acl_save_prefix="$prefix"
18070   prefix="$acl_final_prefix"
18071   acl_save_exec_prefix="$exec_prefix"
18072   exec_prefix="$acl_final_exec_prefix"
18073   eval x=\"$x\"
18074   exec_prefix="$acl_save_exec_prefix"
18075   prefix="$acl_save_prefix"
18076
18077               case "$x" in
18078                 -L*)
18079                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18080                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18081                     found_dir="$dir"
18082                     found_so="$dir/lib$name.$shlibext"
18083                     if test -f "$dir/lib$name.la"; then
18084                       found_la="$dir/lib$name.la"
18085                     fi
18086                   else
18087                     if test -f "$dir/lib$name.$libext"; then
18088                       found_dir="$dir"
18089                       found_a="$dir/lib$name.$libext"
18090                       if test -f "$dir/lib$name.la"; then
18091                         found_la="$dir/lib$name.la"
18092                       fi
18093                     fi
18094                   fi
18095                   ;;
18096               esac
18097               if test "X$found_dir" != "X"; then
18098                 break
18099               fi
18100             done
18101           fi
18102           if test "X$found_dir" != "X"; then
18103                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18104             if test "X$found_so" != "X"; then
18105                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18106                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18107               else
18108                                                                                 haveit=
18109                 for x in $ltrpathdirs; do
18110                   if test "X$x" = "X$found_dir"; then
18111                     haveit=yes
18112                     break
18113                   fi
18114                 done
18115                 if test -z "$haveit"; then
18116                   ltrpathdirs="$ltrpathdirs $found_dir"
18117                 fi
18118                                 if test "$hardcode_direct" = yes; then
18119                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18120                 else
18121                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18122                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18123                                                             haveit=
18124                     for x in $rpathdirs; do
18125                       if test "X$x" = "X$found_dir"; then
18126                         haveit=yes
18127                         break
18128                       fi
18129                     done
18130                     if test -z "$haveit"; then
18131                       rpathdirs="$rpathdirs $found_dir"
18132                     fi
18133                   else
18134                                                                                 haveit=
18135                     for x in $LDFLAGS $LIBINTL; do
18136
18137   acl_save_prefix="$prefix"
18138   prefix="$acl_final_prefix"
18139   acl_save_exec_prefix="$exec_prefix"
18140   exec_prefix="$acl_final_exec_prefix"
18141   eval x=\"$x\"
18142   exec_prefix="$acl_save_exec_prefix"
18143   prefix="$acl_save_prefix"
18144
18145                       if test "X$x" = "X-L$found_dir"; then
18146                         haveit=yes
18147                         break
18148                       fi
18149                     done
18150                     if test -z "$haveit"; then
18151                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18152                     fi
18153                     if test "$hardcode_minus_L" != no; then
18154                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18155                     else
18156                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18157                     fi
18158                   fi
18159                 fi
18160               fi
18161             else
18162               if test "X$found_a" != "X"; then
18163                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18164               else
18165                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18166               fi
18167             fi
18168                         additional_includedir=
18169             case "$found_dir" in
18170               */lib | */lib/)
18171                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18172                 additional_includedir="$basedir/include"
18173                 ;;
18174             esac
18175             if test "X$additional_includedir" != "X"; then
18176                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18177                 haveit=
18178                 if test "X$additional_includedir" = "X/usr/local/include"; then
18179                   if test -n "$GCC"; then
18180                     case $host_os in
18181                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18182                     esac
18183                   fi
18184                 fi
18185                 if test -z "$haveit"; then
18186                   for x in $CPPFLAGS $INCINTL; do
18187
18188   acl_save_prefix="$prefix"
18189   prefix="$acl_final_prefix"
18190   acl_save_exec_prefix="$exec_prefix"
18191   exec_prefix="$acl_final_exec_prefix"
18192   eval x=\"$x\"
18193   exec_prefix="$acl_save_exec_prefix"
18194   prefix="$acl_save_prefix"
18195
18196                     if test "X$x" = "X-I$additional_includedir"; then
18197                       haveit=yes
18198                       break
18199                     fi
18200                   done
18201                   if test -z "$haveit"; then
18202                     if test -d "$additional_includedir"; then
18203                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18204                     fi
18205                   fi
18206                 fi
18207               fi
18208             fi
18209                         if test -n "$found_la"; then
18210                                                         save_libdir="$libdir"
18211               case "$found_la" in
18212                 */* | *\\*) . "$found_la" ;;
18213                 *) . "./$found_la" ;;
18214               esac
18215               libdir="$save_libdir"
18216                             for dep in $dependency_libs; do
18217                 case "$dep" in
18218                   -L*)
18219                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18220                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18221                       haveit=
18222                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18223                         if test -n "$GCC"; then
18224                           case $host_os in
18225                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18226                           esac
18227                         fi
18228                       fi
18229                       if test -z "$haveit"; then
18230                         haveit=
18231                         for x in $LDFLAGS $LIBINTL; do
18232
18233   acl_save_prefix="$prefix"
18234   prefix="$acl_final_prefix"
18235   acl_save_exec_prefix="$exec_prefix"
18236   exec_prefix="$acl_final_exec_prefix"
18237   eval x=\"$x\"
18238   exec_prefix="$acl_save_exec_prefix"
18239   prefix="$acl_save_prefix"
18240
18241                           if test "X$x" = "X-L$additional_libdir"; then
18242                             haveit=yes
18243                             break
18244                           fi
18245                         done
18246                         if test -z "$haveit"; then
18247                           if test -d "$additional_libdir"; then
18248                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18249                           fi
18250                         fi
18251                         haveit=
18252                         for x in $LDFLAGS $LTLIBINTL; do
18253
18254   acl_save_prefix="$prefix"
18255   prefix="$acl_final_prefix"
18256   acl_save_exec_prefix="$exec_prefix"
18257   exec_prefix="$acl_final_exec_prefix"
18258   eval x=\"$x\"
18259   exec_prefix="$acl_save_exec_prefix"
18260   prefix="$acl_save_prefix"
18261
18262                           if test "X$x" = "X-L$additional_libdir"; then
18263                             haveit=yes
18264                             break
18265                           fi
18266                         done
18267                         if test -z "$haveit"; then
18268                           if test -d "$additional_libdir"; then
18269                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18270                           fi
18271                         fi
18272                       fi
18273                     fi
18274                     ;;
18275                   -R*)
18276                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18277                     if test "$enable_rpath" != no; then
18278                                                                   haveit=
18279                       for x in $rpathdirs; do
18280                         if test "X$x" = "X$dir"; then
18281                           haveit=yes
18282                           break
18283                         fi
18284                       done
18285                       if test -z "$haveit"; then
18286                         rpathdirs="$rpathdirs $dir"
18287                       fi
18288                                                                   haveit=
18289                       for x in $ltrpathdirs; do
18290                         if test "X$x" = "X$dir"; then
18291                           haveit=yes
18292                           break
18293                         fi
18294                       done
18295                       if test -z "$haveit"; then
18296                         ltrpathdirs="$ltrpathdirs $dir"
18297                       fi
18298                     fi
18299                     ;;
18300                   -l*)
18301                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18302                     ;;
18303                   *.la)
18304                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18305                     ;;
18306                   *)
18307                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18308                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18309                     ;;
18310                 esac
18311               done
18312             fi
18313           else
18314                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18315             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18316           fi
18317         fi
18318       fi
18319     done
18320   done
18321   if test "X$rpathdirs" != "X"; then
18322     if test -n "$hardcode_libdir_separator"; then
18323                         alldirs=
18324       for found_dir in $rpathdirs; do
18325         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18326       done
18327             acl_save_libdir="$libdir"
18328       libdir="$alldirs"
18329       eval flag=\"$hardcode_libdir_flag_spec\"
18330       libdir="$acl_save_libdir"
18331       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18332     else
18333             for found_dir in $rpathdirs; do
18334         acl_save_libdir="$libdir"
18335         libdir="$found_dir"
18336         eval flag=\"$hardcode_libdir_flag_spec\"
18337         libdir="$acl_save_libdir"
18338         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18339       done
18340     fi
18341   fi
18342   if test "X$ltrpathdirs" != "X"; then
18343             for found_dir in $ltrpathdirs; do
18344       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18345     done
18346   fi
18347
18348           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18349 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18350 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18351   $as_echo_n "(cached) " >&6
18352 else
18353   gt_save_CPPFLAGS="$CPPFLAGS"
18354             CPPFLAGS="$CPPFLAGS $INCINTL"
18355             gt_save_LIBS="$LIBS"
18356             LIBS="$LIBS $LIBINTL"
18357                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h.  */
18359 #include <libintl.h>
18360 extern int _nl_msg_cat_cntr;
18361 extern
18362 #ifdef __cplusplus
18363 "C"
18364 #endif
18365 const char *_nl_expand_alias (const char *);
18366 int
18367 main ()
18368 {
18369 bindtextdomain ("", "");
18370 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18371   ;
18372   return 0;
18373 }
18374 _ACEOF
18375 if ac_fn_c_try_link "$LINENO"; then :
18376   gt_cv_func_gnugettext1_libintl=yes
18377 else
18378   gt_cv_func_gnugettext1_libintl=no
18379 fi
18380 rm -f core conftest.err conftest.$ac_objext \
18381     conftest$ac_exeext conftest.$ac_ext
18382                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18383               LIBS="$LIBS $LIBICONV"
18384               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h.  */
18386 #include <libintl.h>
18387 extern int _nl_msg_cat_cntr;
18388 extern
18389 #ifdef __cplusplus
18390 "C"
18391 #endif
18392 const char *_nl_expand_alias (const char *);
18393 int
18394 main ()
18395 {
18396 bindtextdomain ("", "");
18397 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18398   ;
18399   return 0;
18400 }
18401 _ACEOF
18402 if ac_fn_c_try_link "$LINENO"; then :
18403   LIBINTL="$LIBINTL $LIBICONV"
18404                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18405                 gt_cv_func_gnugettext1_libintl=yes
18406
18407 fi
18408 rm -f core conftest.err conftest.$ac_objext \
18409     conftest$ac_exeext conftest.$ac_ext
18410             fi
18411             CPPFLAGS="$gt_save_CPPFLAGS"
18412             LIBS="$gt_save_LIBS"
18413 fi
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18415 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18416         fi
18417
18418                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18419            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18420                 && test "$PACKAGE" != gettext-runtime \
18421                 && test "$PACKAGE" != gettext-tools; }; then
18422           gt_use_preinstalled_gnugettext=yes
18423         else
18424                     LIBINTL=
18425           LTLIBINTL=
18426           INCINTL=
18427         fi
18428
18429
18430
18431     if test -n "$INTL_MACOSX_LIBS"; then
18432       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18433          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18434                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18435         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18436       fi
18437     fi
18438
18439     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18440        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18441
18442 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18443
18444     else
18445       USE_NLS=no
18446     fi
18447   fi
18448
18449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18450 $as_echo_n "checking whether to use NLS... " >&6; }
18451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18452 $as_echo "$USE_NLS" >&6; }
18453   if test "$USE_NLS" = "yes"; then
18454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18455 $as_echo_n "checking where the gettext function comes from... " >&6; }
18456     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18457       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18458         gt_source="external libintl"
18459       else
18460         gt_source="libc"
18461       fi
18462     else
18463       gt_source="included intl directory"
18464     fi
18465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18466 $as_echo "$gt_source" >&6; }
18467   fi
18468
18469   if test "$USE_NLS" = "yes"; then
18470
18471     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18472       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18474 $as_echo_n "checking how to link with libintl... " >&6; }
18475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18476 $as_echo "$LIBINTL" >&6; }
18477
18478   for element in $INCINTL; do
18479     haveit=
18480     for x in $CPPFLAGS; do
18481
18482   acl_save_prefix="$prefix"
18483   prefix="$acl_final_prefix"
18484   acl_save_exec_prefix="$exec_prefix"
18485   exec_prefix="$acl_final_exec_prefix"
18486   eval x=\"$x\"
18487   exec_prefix="$acl_save_exec_prefix"
18488   prefix="$acl_save_prefix"
18489
18490       if test "X$x" = "X$element"; then
18491         haveit=yes
18492         break
18493       fi
18494     done
18495     if test -z "$haveit"; then
18496       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18497     fi
18498   done
18499
18500       fi
18501
18502
18503 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18504
18505
18506 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18507
18508     fi
18509
18510         POSUB=po
18511   fi
18512
18513
18514
18515     INTLLIBS="$LIBINTL"
18516
18517
18518
18519
18520
18521
18522
18523 os_name=`uname -s 2>/dev/null`
18524 if test x${prefix} = xNONE ; then
18525    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18526       sysconfdir=/etc/bacula
18527    fi
18528
18529    if test `eval echo ${libdir}` = NONE/lib ; then
18530       case ${os_name} in
18531       Linux)
18532          os_processor=`uname -p 2>/dev/null`
18533          case ${os_processor} in
18534          x86_64)
18535             libdir=/usr/lib64
18536             ;;
18537          *)
18538             libdir=/usr/lib
18539             ;;
18540          esac
18541          ;;
18542       *)
18543          libdir=/usr/lib
18544          ;;
18545       esac
18546    fi
18547
18548    if test `eval echo ${includedir}` = NONE/include ; then
18549       includedir=/usr/include
18550    fi
18551
18552    if test `eval echo ${datarootdir}` = NONE/share ; then
18553       datarootdir=/usr/share
18554    fi
18555    prefix=
18556 fi
18557
18558 if test x${exec_prefix} = xNONE ; then
18559    exec_prefix=${prefix}
18560 fi
18561
18562 sysconfdir=`eval echo ${sysconfdir}`
18563 datarootdir=`eval echo ${datarootdir}`
18564 docdir=`eval echo ${docdir}`
18565 htmldir=`eval echo ${htmldir}`
18566 libdir=`eval echo ${libdir}`
18567 includedir=`eval echo ${includedir}`
18568 localedir=`eval echo ${datarootdir}/locale`
18569 cat >>confdefs.h <<_ACEOF
18570 #define SYSCONFDIR "$sysconfdir"
18571 _ACEOF
18572
18573 cat >>confdefs.h <<_ACEOF
18574 #define LOCALEDIR "$localedir"
18575 _ACEOF
18576
18577
18578 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18579    sbindir=${exec_prefix}/sbin
18580 fi
18581 sbindir=`eval echo ${sbindir}`
18582
18583 if test x$mandir = x'${prefix}/man' ; then
18584    mandir=/usr/share/man
18585 fi
18586
18587 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18588    htmldir=`eval echo ${docdir}html`
18589 fi
18590
18591 if test x$docdir = x'/usr/share/doc/' ; then
18592    docdir=`eval echo ${docdir}bacula`
18593 fi
18594
18595
18596 for ac_prog in msgfmt
18597 do
18598   # Extract the first word of "$ac_prog", so it can be a program name with args.
18599 set dummy $ac_prog; ac_word=$2
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18601 $as_echo_n "checking for $ac_word... " >&6; }
18602 if ${ac_cv_path_MSGFMT+:} false; then :
18603   $as_echo_n "(cached) " >&6
18604 else
18605   case $MSGFMT in
18606   [\\/]* | ?:[\\/]*)
18607   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18608   ;;
18609   *)
18610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18611 for as_dir in $PATH
18612 do
18613   IFS=$as_save_IFS
18614   test -z "$as_dir" && as_dir=.
18615     for ac_exec_ext in '' $ac_executable_extensions; do
18616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18617     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18619     break 2
18620   fi
18621 done
18622   done
18623 IFS=$as_save_IFS
18624
18625   ;;
18626 esac
18627 fi
18628 MSGFMT=$ac_cv_path_MSGFMT
18629 if test -n "$MSGFMT"; then
18630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18631 $as_echo "$MSGFMT" >&6; }
18632 else
18633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634 $as_echo "no" >&6; }
18635 fi
18636
18637
18638   test -n "$MSGFMT" && break
18639 done
18640 test -n "$MSGFMT" || MSGFMT="no"
18641
18642 if test "$MSGFMT" = "no"
18643 then
18644    echo 'msgfmt program not found, disabling NLS !'
18645    USE_NLS=no
18646    USE_INCLUDED_LIBINTL=no
18647 #else
18648
18649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18650 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18651 if ${ac_cv_gnu_library_2+:} false; then :
18652   $as_echo_n "(cached) " >&6
18653 else
18654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h.  */
18656
18657 #include <features.h>
18658 #ifdef __GNU_LIBRARY__
18659  #if (__GLIBC__ >= 2)
18660   Lucky GNU user
18661  #endif
18662 #endif
18663
18664 _ACEOF
18665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18666   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18667   ac_cv_gnu_library_2=yes
18668 else
18669   ac_cv_gnu_library_2=no
18670 fi
18671 rm -f conftest*
18672
18673
18674
18675 fi
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18677 $as_echo "$ac_cv_gnu_library_2" >&6; }
18678
18679     GLIBC2="$ac_cv_gnu_library_2"
18680
18681
18682 if test -n "$ac_tool_prefix"; then
18683   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18686 $as_echo_n "checking for $ac_word... " >&6; }
18687 if ${ac_cv_prog_RANLIB+:} false; then :
18688   $as_echo_n "(cached) " >&6
18689 else
18690   if test -n "$RANLIB"; then
18691   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18692 else
18693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18694 for as_dir in $PATH
18695 do
18696   IFS=$as_save_IFS
18697   test -z "$as_dir" && as_dir=.
18698     for ac_exec_ext in '' $ac_executable_extensions; do
18699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18700     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18702     break 2
18703   fi
18704 done
18705   done
18706 IFS=$as_save_IFS
18707
18708 fi
18709 fi
18710 RANLIB=$ac_cv_prog_RANLIB
18711 if test -n "$RANLIB"; then
18712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18713 $as_echo "$RANLIB" >&6; }
18714 else
18715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18717 fi
18718
18719
18720 fi
18721 if test -z "$ac_cv_prog_RANLIB"; then
18722   ac_ct_RANLIB=$RANLIB
18723   # Extract the first word of "ranlib", so it can be a program name with args.
18724 set dummy ranlib; ac_word=$2
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18726 $as_echo_n "checking for $ac_word... " >&6; }
18727 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18728   $as_echo_n "(cached) " >&6
18729 else
18730   if test -n "$ac_ct_RANLIB"; then
18731   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18732 else
18733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18734 for as_dir in $PATH
18735 do
18736   IFS=$as_save_IFS
18737   test -z "$as_dir" && as_dir=.
18738     for ac_exec_ext in '' $ac_executable_extensions; do
18739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18740     ac_cv_prog_ac_ct_RANLIB="ranlib"
18741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18742     break 2
18743   fi
18744 done
18745   done
18746 IFS=$as_save_IFS
18747
18748 fi
18749 fi
18750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18751 if test -n "$ac_ct_RANLIB"; then
18752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18753 $as_echo "$ac_ct_RANLIB" >&6; }
18754 else
18755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18757 fi
18758
18759   if test "x$ac_ct_RANLIB" = x; then
18760     RANLIB=":"
18761   else
18762     case $cross_compiling:$ac_tool_warned in
18763 yes:)
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18766 ac_tool_warned=yes ;;
18767 esac
18768     RANLIB=$ac_ct_RANLIB
18769   fi
18770 else
18771   RANLIB="$ac_cv_prog_RANLIB"
18772 fi
18773
18774
18775         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18776 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18777 if ${ac_cv_lib_cposix_strerror+:} false; then :
18778   $as_echo_n "(cached) " >&6
18779 else
18780   ac_check_lib_save_LIBS=$LIBS
18781 LIBS="-lcposix  $LIBS"
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h.  */
18784
18785 /* Override any GCC internal prototype to avoid an error.
18786    Use char because int might match the return type of a GCC
18787    builtin and then its argument prototype would still apply.  */
18788 #ifdef __cplusplus
18789 extern "C"
18790 #endif
18791 char strerror ();
18792 int
18793 main ()
18794 {
18795 return strerror ();
18796   ;
18797   return 0;
18798 }
18799 _ACEOF
18800 if ac_fn_c_try_link "$LINENO"; then :
18801   ac_cv_lib_cposix_strerror=yes
18802 else
18803   ac_cv_lib_cposix_strerror=no
18804 fi
18805 rm -f core conftest.err conftest.$ac_objext \
18806     conftest$ac_exeext conftest.$ac_ext
18807 LIBS=$ac_check_lib_save_LIBS
18808 fi
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18810 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18811 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18812   LIBS="$LIBS -lcposix"
18813 fi
18814
18815
18816
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18818 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18819 if ${ac_cv_c_const+:} false; then :
18820   $as_echo_n "(cached) " >&6
18821 else
18822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h.  */
18824
18825 int
18826 main ()
18827 {
18828 /* FIXME: Include the comments suggested by Paul. */
18829 #ifndef __cplusplus
18830   /* Ultrix mips cc rejects this.  */
18831   typedef int charset[2];
18832   const charset cs;
18833   /* SunOS 4.1.1 cc rejects this.  */
18834   char const *const *pcpcc;
18835   char **ppc;
18836   /* NEC SVR4.0.2 mips cc rejects this.  */
18837   struct point {int x, y;};
18838   static struct point const zero = {0,0};
18839   /* AIX XL C 1.02.0.0 rejects this.
18840      It does not let you subtract one const X* pointer from another in
18841      an arm of an if-expression whose if-part is not a constant
18842      expression */
18843   const char *g = "string";
18844   pcpcc = &g + (g ? g-g : 0);
18845   /* HPUX 7.0 cc rejects these. */
18846   ++pcpcc;
18847   ppc = (char**) pcpcc;
18848   pcpcc = (char const *const *) ppc;
18849   { /* SCO 3.2v4 cc rejects this.  */
18850     char *t;
18851     char const *s = 0 ? (char *) 0 : (char const *) 0;
18852
18853     *t++ = 0;
18854     if (s) return 0;
18855   }
18856   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18857     int x[] = {25, 17};
18858     const int *foo = &x[0];
18859     ++foo;
18860   }
18861   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18862     typedef const int *iptr;
18863     iptr p = 0;
18864     ++p;
18865   }
18866   { /* AIX XL C 1.02.0.0 rejects this saying
18867        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18868     struct s { int j; const int *ap[3]; };
18869     struct s *b; b->j = 5;
18870   }
18871   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18872     const int foo = 10;
18873     if (!foo) return 0;
18874   }
18875   return !cs[0] && !zero.x;
18876 #endif
18877
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 if ac_fn_c_try_compile "$LINENO"; then :
18883   ac_cv_c_const=yes
18884 else
18885   ac_cv_c_const=no
18886 fi
18887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18888 fi
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18890 $as_echo "$ac_cv_c_const" >&6; }
18891 if test $ac_cv_c_const = no; then
18892
18893 $as_echo "#define const /**/" >>confdefs.h
18894
18895 fi
18896
18897
18898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18899 $as_echo_n "checking for signed... " >&6; }
18900 if ${bh_cv_c_signed+:} false; then :
18901   $as_echo_n "(cached) " >&6
18902 else
18903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h.  */
18905
18906 int
18907 main ()
18908 {
18909 signed char x;
18910   ;
18911   return 0;
18912 }
18913 _ACEOF
18914 if ac_fn_c_try_compile "$LINENO"; then :
18915   bh_cv_c_signed=yes
18916 else
18917   bh_cv_c_signed=no
18918 fi
18919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18920 fi
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18922 $as_echo "$bh_cv_c_signed" >&6; }
18923   if test $bh_cv_c_signed = no; then
18924
18925 $as_echo "#define signed /**/" >>confdefs.h
18926
18927   fi
18928
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18930 $as_echo_n "checking for inline... " >&6; }
18931 if ${ac_cv_c_inline+:} false; then :
18932   $as_echo_n "(cached) " >&6
18933 else
18934   ac_cv_c_inline=no
18935 for ac_kw in inline __inline__ __inline; do
18936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h.  */
18938 #ifndef __cplusplus
18939 typedef int foo_t;
18940 static $ac_kw foo_t static_foo () {return 0; }
18941 $ac_kw foo_t foo () {return 0; }
18942 #endif
18943
18944 _ACEOF
18945 if ac_fn_c_try_compile "$LINENO"; then :
18946   ac_cv_c_inline=$ac_kw
18947 fi
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949   test "$ac_cv_c_inline" != no && break
18950 done
18951
18952 fi
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18954 $as_echo "$ac_cv_c_inline" >&6; }
18955
18956 case $ac_cv_c_inline in
18957   inline | yes) ;;
18958   *)
18959     case $ac_cv_c_inline in
18960       no) ac_val=;;
18961       *) ac_val=$ac_cv_c_inline;;
18962     esac
18963     cat >>confdefs.h <<_ACEOF
18964 #ifndef __cplusplus
18965 #define inline $ac_val
18966 #endif
18967 _ACEOF
18968     ;;
18969 esac
18970
18971 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18972 if test "x$ac_cv_type_off_t" = xyes; then :
18973
18974 else
18975
18976 cat >>confdefs.h <<_ACEOF
18977 #define off_t long int
18978 _ACEOF
18979
18980 fi
18981
18982 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18983 if test "x$ac_cv_type_size_t" = xyes; then :
18984
18985 else
18986
18987 cat >>confdefs.h <<_ACEOF
18988 #define size_t unsigned int
18989 _ACEOF
18990
18991 fi
18992
18993
18994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18995 $as_echo_n "checking for long long... " >&6; }
18996 if ${ac_cv_type_long_long+:} false; then :
18997   $as_echo_n "(cached) " >&6
18998 else
18999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h.  */
19001 long long ll = 1LL; int i = 63;
19002 int
19003 main ()
19004 {
19005 long long llmax = (long long) -1;
19006      return ll << i | ll >> i | llmax / ll | llmax % ll;
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_c_try_link "$LINENO"; then :
19012   ac_cv_type_long_long=yes
19013 else
19014   ac_cv_type_long_long=no
19015 fi
19016 rm -f core conftest.err conftest.$ac_objext \
19017     conftest$ac_exeext conftest.$ac_ext
19018 fi
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19020 $as_echo "$ac_cv_type_long_long" >&6; }
19021   if test $ac_cv_type_long_long = yes; then
19022
19023 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19024
19025   fi
19026
19027
19028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19029 $as_echo_n "checking for long double... " >&6; }
19030 if ${gt_cv_c_long_double+:} false; then :
19031   $as_echo_n "(cached) " >&6
19032 else
19033   if test "$GCC" = yes; then
19034        gt_cv_c_long_double=yes
19035      else
19036        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h.  */
19038
19039          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19040          long double foo = 0.0;
19041          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19042          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19043
19044 int
19045 main ()
19046 {
19047
19048   ;
19049   return 0;
19050 }
19051 _ACEOF
19052 if ac_fn_c_try_compile "$LINENO"; then :
19053   gt_cv_c_long_double=yes
19054 else
19055   gt_cv_c_long_double=no
19056 fi
19057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058      fi
19059 fi
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19061 $as_echo "$gt_cv_c_long_double" >&6; }
19062   if test $gt_cv_c_long_double = yes; then
19063
19064 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19065
19066   fi
19067
19068
19069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19070 $as_echo_n "checking for wchar_t... " >&6; }
19071 if ${gt_cv_c_wchar_t+:} false; then :
19072   $as_echo_n "(cached) " >&6
19073 else
19074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h.  */
19076 #include <stddef.h>
19077        wchar_t foo = (wchar_t)'\0';
19078 int
19079 main ()
19080 {
19081
19082   ;
19083   return 0;
19084 }
19085 _ACEOF
19086 if ac_fn_c_try_compile "$LINENO"; then :
19087   gt_cv_c_wchar_t=yes
19088 else
19089   gt_cv_c_wchar_t=no
19090 fi
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092 fi
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19094 $as_echo "$gt_cv_c_wchar_t" >&6; }
19095   if test $gt_cv_c_wchar_t = yes; then
19096
19097 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19098
19099   fi
19100
19101
19102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19103 $as_echo_n "checking for wint_t... " >&6; }
19104 if ${gt_cv_c_wint_t+:} false; then :
19105   $as_echo_n "(cached) " >&6
19106 else
19107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h.  */
19109 #include <wchar.h>
19110        wint_t foo = (wchar_t)'\0';
19111 int
19112 main ()
19113 {
19114
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 if ac_fn_c_try_compile "$LINENO"; then :
19120   gt_cv_c_wint_t=yes
19121 else
19122   gt_cv_c_wint_t=no
19123 fi
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125 fi
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19127 $as_echo "$gt_cv_c_wint_t" >&6; }
19128   if test $gt_cv_c_wint_t = yes; then
19129
19130 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19131
19132   fi
19133
19134
19135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19136 $as_echo_n "checking for inttypes.h... " >&6; }
19137 if ${gl_cv_header_inttypes_h+:} false; then :
19138   $as_echo_n "(cached) " >&6
19139 else
19140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h.  */
19142 #include <sys/types.h>
19143 #include <inttypes.h>
19144 int
19145 main ()
19146 {
19147 uintmax_t i = (uintmax_t) -1;
19148   ;
19149   return 0;
19150 }
19151 _ACEOF
19152 if ac_fn_c_try_compile "$LINENO"; then :
19153   gl_cv_header_inttypes_h=yes
19154 else
19155   gl_cv_header_inttypes_h=no
19156 fi
19157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19158 fi
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19160 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19161   if test $gl_cv_header_inttypes_h = yes; then
19162
19163 cat >>confdefs.h <<_ACEOF
19164 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19165 _ACEOF
19166
19167   fi
19168
19169
19170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19171 $as_echo_n "checking for stdint.h... " >&6; }
19172 if ${gl_cv_header_stdint_h+:} false; then :
19173   $as_echo_n "(cached) " >&6
19174 else
19175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h.  */
19177 #include <sys/types.h>
19178 #include <stdint.h>
19179 int
19180 main ()
19181 {
19182 uintmax_t i = (uintmax_t) -1;
19183   ;
19184   return 0;
19185 }
19186 _ACEOF
19187 if ac_fn_c_try_compile "$LINENO"; then :
19188   gl_cv_header_stdint_h=yes
19189 else
19190   gl_cv_header_stdint_h=no
19191 fi
19192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19193 fi
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19195 $as_echo "$gl_cv_header_stdint_h" >&6; }
19196   if test $gl_cv_header_stdint_h = yes; then
19197
19198 cat >>confdefs.h <<_ACEOF
19199 #define HAVE_STDINT_H_WITH_UINTMAX 1
19200 _ACEOF
19201
19202   fi
19203
19204
19205
19206
19207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19208 $as_echo_n "checking for intmax_t... " >&6; }
19209 if ${gt_cv_c_intmax_t+:} false; then :
19210   $as_echo_n "(cached) " >&6
19211 else
19212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h.  */
19214
19215 #include <stddef.h>
19216 #include <stdlib.h>
19217 #if HAVE_STDINT_H_WITH_UINTMAX
19218 #include <stdint.h>
19219 #endif
19220 #if HAVE_INTTYPES_H_WITH_UINTMAX
19221 #include <inttypes.h>
19222 #endif
19223
19224 int
19225 main ()
19226 {
19227 intmax_t x = -1;
19228   ;
19229   return 0;
19230 }
19231 _ACEOF
19232 if ac_fn_c_try_compile "$LINENO"; then :
19233   gt_cv_c_intmax_t=yes
19234 else
19235   gt_cv_c_intmax_t=no
19236 fi
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19238 fi
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19240 $as_echo "$gt_cv_c_intmax_t" >&6; }
19241   if test $gt_cv_c_intmax_t = yes; then
19242
19243 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19244
19245   fi
19246
19247
19248
19249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19250 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19251 if ${gt_cv_func_printf_posix+:} false; then :
19252   $as_echo_n "(cached) " >&6
19253 else
19254
19255       if test "$cross_compiling" = yes; then :
19256
19257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h.  */
19259
19260 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19261   notposix
19262 #endif
19263
19264 _ACEOF
19265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19266   $EGREP "notposix" >/dev/null 2>&1; then :
19267   gt_cv_func_printf_posix="guessing no"
19268 else
19269   gt_cv_func_printf_posix="guessing yes"
19270 fi
19271 rm -f conftest*
19272
19273
19274 else
19275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h.  */
19277
19278 #include <stdio.h>
19279 #include <string.h>
19280 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19281    dollar expansion (possibly an autoconf bug).  */
19282 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19283 static char buf[100];
19284 int main ()
19285 {
19286   sprintf (buf, format, 33, 55);
19287   return (strcmp (buf, "55 33") != 0);
19288 }
19289 _ACEOF
19290 if ac_fn_c_try_run "$LINENO"; then :
19291   gt_cv_func_printf_posix=yes
19292 else
19293   gt_cv_func_printf_posix=no
19294 fi
19295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19296   conftest.$ac_objext conftest.beam conftest.$ac_ext
19297 fi
19298
19299
19300 fi
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19302 $as_echo "$gt_cv_func_printf_posix" >&6; }
19303   case $gt_cv_func_printf_posix in
19304     *yes)
19305
19306 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19307
19308       ;;
19309   esac
19310
19311 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19312 # for constant arguments.  Useless!
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19314 $as_echo_n "checking for working alloca.h... " >&6; }
19315 if ${ac_cv_working_alloca_h+:} false; then :
19316   $as_echo_n "(cached) " >&6
19317 else
19318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h.  */
19320 #include <alloca.h>
19321 int
19322 main ()
19323 {
19324 char *p = (char *) alloca (2 * sizeof (int));
19325                           if (p) return 0;
19326   ;
19327   return 0;
19328 }
19329 _ACEOF
19330 if ac_fn_c_try_link "$LINENO"; then :
19331   ac_cv_working_alloca_h=yes
19332 else
19333   ac_cv_working_alloca_h=no
19334 fi
19335 rm -f core conftest.err conftest.$ac_objext \
19336     conftest$ac_exeext conftest.$ac_ext
19337 fi
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19339 $as_echo "$ac_cv_working_alloca_h" >&6; }
19340 if test $ac_cv_working_alloca_h = yes; then
19341
19342 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19343
19344 fi
19345
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19347 $as_echo_n "checking for alloca... " >&6; }
19348 if ${ac_cv_func_alloca_works+:} false; then :
19349   $as_echo_n "(cached) " >&6
19350 else
19351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h.  */
19353 #ifdef __GNUC__
19354 # define alloca __builtin_alloca
19355 #else
19356 # ifdef _MSC_VER
19357 #  include <malloc.h>
19358 #  define alloca _alloca
19359 # else
19360 #  ifdef HAVE_ALLOCA_H
19361 #   include <alloca.h>
19362 #  else
19363 #   ifdef _AIX
19364  #pragma alloca
19365 #   else
19366 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19367 void *alloca (size_t);
19368 #    endif
19369 #   endif
19370 #  endif
19371 # endif
19372 #endif
19373
19374 int
19375 main ()
19376 {
19377 char *p = (char *) alloca (1);
19378                                     if (p) return 0;
19379   ;
19380   return 0;
19381 }
19382 _ACEOF
19383 if ac_fn_c_try_link "$LINENO"; then :
19384   ac_cv_func_alloca_works=yes
19385 else
19386   ac_cv_func_alloca_works=no
19387 fi
19388 rm -f core conftest.err conftest.$ac_objext \
19389     conftest$ac_exeext conftest.$ac_ext
19390 fi
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19392 $as_echo "$ac_cv_func_alloca_works" >&6; }
19393
19394 if test $ac_cv_func_alloca_works = yes; then
19395
19396 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19397
19398 else
19399   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19400 # that cause trouble.  Some versions do not even contain alloca or
19401 # contain a buggy version.  If you still want to use their alloca,
19402 # use ar to extract alloca.o from them instead of compiling alloca.c.
19403
19404 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19405
19406 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19407
19408
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19410 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19411 if ${ac_cv_os_cray+:} false; then :
19412   $as_echo_n "(cached) " >&6
19413 else
19414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h.  */
19416 #if defined CRAY && ! defined CRAY2
19417 webecray
19418 #else
19419 wenotbecray
19420 #endif
19421
19422 _ACEOF
19423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19424   $EGREP "webecray" >/dev/null 2>&1; then :
19425   ac_cv_os_cray=yes
19426 else
19427   ac_cv_os_cray=no
19428 fi
19429 rm -f conftest*
19430
19431 fi
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19433 $as_echo "$ac_cv_os_cray" >&6; }
19434 if test $ac_cv_os_cray = yes; then
19435   for ac_func in _getb67 GETB67 getb67; do
19436     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19438 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19439
19440 cat >>confdefs.h <<_ACEOF
19441 #define CRAY_STACKSEG_END $ac_func
19442 _ACEOF
19443
19444     break
19445 fi
19446
19447   done
19448 fi
19449
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19451 $as_echo_n "checking stack direction for C alloca... " >&6; }
19452 if ${ac_cv_c_stack_direction+:} false; then :
19453   $as_echo_n "(cached) " >&6
19454 else
19455   if test "$cross_compiling" = yes; then :
19456   ac_cv_c_stack_direction=0
19457 else
19458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h.  */
19460 $ac_includes_default
19461 int
19462 find_stack_direction ()
19463 {
19464   static char *addr = 0;
19465   auto char dummy;
19466   if (addr == 0)
19467     {
19468       addr = &dummy;
19469       return find_stack_direction ();
19470     }
19471   else
19472     return (&dummy > addr) ? 1 : -1;
19473 }
19474
19475 int
19476 main ()
19477 {
19478   return find_stack_direction () < 0;
19479 }
19480 _ACEOF
19481 if ac_fn_c_try_run "$LINENO"; then :
19482   ac_cv_c_stack_direction=1
19483 else
19484   ac_cv_c_stack_direction=-1
19485 fi
19486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19487   conftest.$ac_objext conftest.beam conftest.$ac_ext
19488 fi
19489
19490 fi
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19492 $as_echo "$ac_cv_c_stack_direction" >&6; }
19493 cat >>confdefs.h <<_ACEOF
19494 #define STACK_DIRECTION $ac_cv_c_stack_direction
19495 _ACEOF
19496
19497
19498 fi
19499
19500
19501
19502
19503   for ac_header in $ac_header_list
19504 do :
19505   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19506 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19507 "
19508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19509   cat >>confdefs.h <<_ACEOF
19510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19511 _ACEOF
19512
19513 fi
19514
19515 done
19516
19517
19518
19519
19520
19521
19522
19523
19524 for ac_func in getpagesize
19525 do :
19526   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19527 if test "x$ac_cv_func_getpagesize" = xyes; then :
19528   cat >>confdefs.h <<_ACEOF
19529 #define HAVE_GETPAGESIZE 1
19530 _ACEOF
19531
19532 fi
19533 done
19534
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19536 $as_echo_n "checking for working mmap... " >&6; }
19537 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19538   $as_echo_n "(cached) " >&6
19539 else
19540   if test "$cross_compiling" = yes; then :
19541   ac_cv_func_mmap_fixed_mapped=no
19542 else
19543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h.  */
19545 $ac_includes_default
19546 /* malloc might have been renamed as rpl_malloc. */
19547 #undef malloc
19548
19549 /* Thanks to Mike Haertel and Jim Avera for this test.
19550    Here is a matrix of mmap possibilities:
19551         mmap private not fixed
19552         mmap private fixed at somewhere currently unmapped
19553         mmap private fixed at somewhere already mapped
19554         mmap shared not fixed
19555         mmap shared fixed at somewhere currently unmapped
19556         mmap shared fixed at somewhere already mapped
19557    For private mappings, we should verify that changes cannot be read()
19558    back from the file, nor mmap's back from the file at a different
19559    address.  (There have been systems where private was not correctly
19560    implemented like the infamous i386 svr4.0, and systems where the
19561    VM page cache was not coherent with the file system buffer cache
19562    like early versions of FreeBSD and possibly contemporary NetBSD.)
19563    For shared mappings, we should conversely verify that changes get
19564    propagated back to all the places they're supposed to be.
19565
19566    Grep wants private fixed already mapped.
19567    The main things grep needs to know about mmap are:
19568    * does it exist and is it safe to write into the mmap'd area
19569    * how to use it (BSD variants)  */
19570
19571 #include <fcntl.h>
19572 #include <sys/mman.h>
19573
19574 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19575 char *malloc ();
19576 #endif
19577
19578 /* This mess was copied from the GNU getpagesize.h.  */
19579 #ifndef HAVE_GETPAGESIZE
19580 # ifdef _SC_PAGESIZE
19581 #  define getpagesize() sysconf(_SC_PAGESIZE)
19582 # else /* no _SC_PAGESIZE */
19583 #  ifdef HAVE_SYS_PARAM_H
19584 #   include <sys/param.h>
19585 #   ifdef EXEC_PAGESIZE
19586 #    define getpagesize() EXEC_PAGESIZE
19587 #   else /* no EXEC_PAGESIZE */
19588 #    ifdef NBPG
19589 #     define getpagesize() NBPG * CLSIZE
19590 #     ifndef CLSIZE
19591 #      define CLSIZE 1
19592 #     endif /* no CLSIZE */
19593 #    else /* no NBPG */
19594 #     ifdef NBPC
19595 #      define getpagesize() NBPC
19596 #     else /* no NBPC */
19597 #      ifdef PAGESIZE
19598 #       define getpagesize() PAGESIZE
19599 #      endif /* PAGESIZE */
19600 #     endif /* no NBPC */
19601 #    endif /* no NBPG */
19602 #   endif /* no EXEC_PAGESIZE */
19603 #  else /* no HAVE_SYS_PARAM_H */
19604 #   define getpagesize() 8192   /* punt totally */
19605 #  endif /* no HAVE_SYS_PARAM_H */
19606 # endif /* no _SC_PAGESIZE */
19607
19608 #endif /* no HAVE_GETPAGESIZE */
19609
19610 int
19611 main ()
19612 {
19613   char *data, *data2, *data3;
19614   const char *cdata2;
19615   int i, pagesize;
19616   int fd, fd2;
19617
19618   pagesize = getpagesize ();
19619
19620   /* First, make a file with some known garbage in it. */
19621   data = (char *) malloc (pagesize);
19622   if (!data)
19623     return 1;
19624   for (i = 0; i < pagesize; ++i)
19625     *(data + i) = rand ();
19626   umask (0);
19627   fd = creat ("conftest.mmap", 0600);
19628   if (fd < 0)
19629     return 2;
19630   if (write (fd, data, pagesize) != pagesize)
19631     return 3;
19632   close (fd);
19633
19634   /* Next, check that the tail of a page is zero-filled.  File must have
19635      non-zero length, otherwise we risk SIGBUS for entire page.  */
19636   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19637   if (fd2 < 0)
19638     return 4;
19639   cdata2 = "";
19640   if (write (fd2, cdata2, 1) != 1)
19641     return 5;
19642   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19643   if (data2 == MAP_FAILED)
19644     return 6;
19645   for (i = 0; i < pagesize; ++i)
19646     if (*(data2 + i))
19647       return 7;
19648   close (fd2);
19649   if (munmap (data2, pagesize))
19650     return 8;
19651
19652   /* Next, try to mmap the file at a fixed address which already has
19653      something else allocated at it.  If we can, also make sure that
19654      we see the same garbage.  */
19655   fd = open ("conftest.mmap", O_RDWR);
19656   if (fd < 0)
19657     return 9;
19658   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19659                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19660     return 10;
19661   for (i = 0; i < pagesize; ++i)
19662     if (*(data + i) != *(data2 + i))
19663       return 11;
19664
19665   /* Finally, make sure that changes to the mapped area do not
19666      percolate back to the file as seen by read().  (This is a bug on
19667      some variants of i386 svr4.0.)  */
19668   for (i = 0; i < pagesize; ++i)
19669     *(data2 + i) = *(data2 + i) + 1;
19670   data3 = (char *) malloc (pagesize);
19671   if (!data3)
19672     return 12;
19673   if (read (fd, data3, pagesize) != pagesize)
19674     return 13;
19675   for (i = 0; i < pagesize; ++i)
19676     if (*(data + i) != *(data3 + i))
19677       return 14;
19678   close (fd);
19679   return 0;
19680 }
19681 _ACEOF
19682 if ac_fn_c_try_run "$LINENO"; then :
19683   ac_cv_func_mmap_fixed_mapped=yes
19684 else
19685   ac_cv_func_mmap_fixed_mapped=no
19686 fi
19687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19688   conftest.$ac_objext conftest.beam conftest.$ac_ext
19689 fi
19690
19691 fi
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19693 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19694 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19695
19696 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19697
19698 fi
19699 rm -f conftest.mmap conftest.txt
19700
19701
19702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19703 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19704 if ${ac_cv_gnu_library_2_1+:} false; then :
19705   $as_echo_n "(cached) " >&6
19706 else
19707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h.  */
19709
19710 #include <features.h>
19711 #ifdef __GNU_LIBRARY__
19712  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19713   Lucky GNU user
19714  #endif
19715 #endif
19716
19717 _ACEOF
19718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19719   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19720   ac_cv_gnu_library_2_1=yes
19721 else
19722   ac_cv_gnu_library_2_1=no
19723 fi
19724 rm -f conftest*
19725
19726
19727
19728 fi
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19730 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19731
19732     GLIBC21="$ac_cv_gnu_library_2_1"
19733
19734
19735
19736
19737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19738 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19739 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19740   $as_echo_n "(cached) " >&6
19741 else
19742
19743       if test "$cross_compiling" = yes; then :
19744
19745           # Guess based on the CPU.
19746           case "$host_cpu" in
19747             alpha* | i3456786 | m68k | s390*)
19748               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19749             *)
19750               gt_cv_int_divbyzero_sigfpe="guessing no";;
19751           esac
19752
19753 else
19754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h.  */
19756
19757 #include <stdlib.h>
19758 #include <signal.h>
19759
19760 static void
19761 #ifdef __cplusplus
19762 sigfpe_handler (int sig)
19763 #else
19764 sigfpe_handler (sig) int sig;
19765 #endif
19766 {
19767   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19768   exit (sig != SIGFPE);
19769 }
19770
19771 int x = 1;
19772 int y = 0;
19773 int z;
19774 int nan;
19775
19776 int main ()
19777 {
19778   signal (SIGFPE, sigfpe_handler);
19779 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19780 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19781   signal (SIGTRAP, sigfpe_handler);
19782 #endif
19783 /* Linux/SPARC yields signal SIGILL.  */
19784 #if defined (__sparc__) && defined (__linux__)
19785   signal (SIGILL, sigfpe_handler);
19786 #endif
19787
19788   z = x / y;
19789   nan = y / y;
19790   exit (1);
19791 }
19792
19793 _ACEOF
19794 if ac_fn_c_try_run "$LINENO"; then :
19795   gt_cv_int_divbyzero_sigfpe=yes
19796 else
19797   gt_cv_int_divbyzero_sigfpe=no
19798 fi
19799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19800   conftest.$ac_objext conftest.beam conftest.$ac_ext
19801 fi
19802
19803
19804 fi
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19806 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19807   case "$gt_cv_int_divbyzero_sigfpe" in
19808     *yes) value=1;;
19809     *) value=0;;
19810   esac
19811
19812 cat >>confdefs.h <<_ACEOF
19813 #define INTDIV0_RAISES_SIGFPE $value
19814 _ACEOF
19815
19816
19817
19818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19819 $as_echo_n "checking for unsigned long long... " >&6; }
19820 if ${ac_cv_type_unsigned_long_long+:} false; then :
19821   $as_echo_n "(cached) " >&6
19822 else
19823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19824 /* end confdefs.h.  */
19825 unsigned long long ull = 1ULL; int i = 63;
19826 int
19827 main ()
19828 {
19829 unsigned long long ullmax = (unsigned long long) -1;
19830      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19831   ;
19832   return 0;
19833 }
19834 _ACEOF
19835 if ac_fn_c_try_link "$LINENO"; then :
19836   ac_cv_type_unsigned_long_long=yes
19837 else
19838   ac_cv_type_unsigned_long_long=no
19839 fi
19840 rm -f core conftest.err conftest.$ac_objext \
19841     conftest$ac_exeext conftest.$ac_ext
19842 fi
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19844 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19845   if test $ac_cv_type_unsigned_long_long = yes; then
19846
19847 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19848
19849   fi
19850
19851
19852
19853
19854   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19855
19856     test $ac_cv_type_unsigned_long_long = yes \
19857       && ac_type='unsigned long long' \
19858       || ac_type='unsigned long'
19859
19860 cat >>confdefs.h <<_ACEOF
19861 #define uintmax_t $ac_type
19862 _ACEOF
19863
19864   else
19865
19866 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19867
19868   fi
19869
19870
19871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19872 $as_echo_n "checking for inttypes.h... " >&6; }
19873 if ${gt_cv_header_inttypes_h+:} false; then :
19874   $as_echo_n "(cached) " >&6
19875 else
19876
19877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h.  */
19879 #include <sys/types.h>
19880 #include <inttypes.h>
19881 int
19882 main ()
19883 {
19884
19885   ;
19886   return 0;
19887 }
19888 _ACEOF
19889 if ac_fn_c_try_compile "$LINENO"; then :
19890   gt_cv_header_inttypes_h=yes
19891 else
19892   gt_cv_header_inttypes_h=no
19893 fi
19894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895
19896 fi
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19898 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19899   if test $gt_cv_header_inttypes_h = yes; then
19900
19901 cat >>confdefs.h <<_ACEOF
19902 #define HAVE_INTTYPES_H 1
19903 _ACEOF
19904
19905   fi
19906
19907
19908
19909   if test $gt_cv_header_inttypes_h = yes; then
19910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19911 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19912 if ${gt_cv_inttypes_pri_broken+:} false; then :
19913   $as_echo_n "(cached) " >&6
19914 else
19915
19916         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917 /* end confdefs.h.  */
19918 #include <inttypes.h>
19919 #ifdef PRId32
19920 char *p = PRId32;
19921 #endif
19922
19923 int
19924 main ()
19925 {
19926
19927   ;
19928   return 0;
19929 }
19930 _ACEOF
19931 if ac_fn_c_try_compile "$LINENO"; then :
19932   gt_cv_inttypes_pri_broken=no
19933 else
19934   gt_cv_inttypes_pri_broken=yes
19935 fi
19936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937
19938 fi
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19940 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19941   fi
19942   if test "$gt_cv_inttypes_pri_broken" = yes; then
19943
19944 cat >>confdefs.h <<_ACEOF
19945 #define PRI_MACROS_BROKEN 1
19946 _ACEOF
19947
19948   fi
19949
19950
19951   for ac_header in stdint.h
19952 do :
19953   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19954 if test "x$ac_cv_header_stdint_h" = xyes; then :
19955   cat >>confdefs.h <<_ACEOF
19956 #define HAVE_STDINT_H 1
19957 _ACEOF
19958
19959 fi
19960
19961 done
19962
19963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19964 $as_echo_n "checking for SIZE_MAX... " >&6; }
19965   result=
19966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19967 /* end confdefs.h.  */
19968
19969 #include <limits.h>
19970 #if HAVE_STDINT_H
19971 #include <stdint.h>
19972 #endif
19973 #ifdef SIZE_MAX
19974 Found it
19975 #endif
19976
19977 _ACEOF
19978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19979   $EGREP "Found it" >/dev/null 2>&1; then :
19980   result=yes
19981 fi
19982 rm -f conftest*
19983
19984   if test -z "$result"; then
19985                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19986
19987 else
19988   result=?
19989 fi
19990
19991
19992     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19993
19994 else
19995   result=?
19996 fi
19997
19998
19999     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20000
20001 else
20002   result=?
20003 fi
20004
20005
20006     if test "$fits_in_uint" = 1; then
20007                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h.  */
20009 #include <stddef.h>
20010         extern size_t foo;
20011         extern unsigned long foo;
20012
20013 int
20014 main ()
20015 {
20016
20017   ;
20018   return 0;
20019 }
20020 _ACEOF
20021 if ac_fn_c_try_compile "$LINENO"; then :
20022   fits_in_uint=0
20023 fi
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025     fi
20026     if test -z "$result"; then
20027       if test "$fits_in_uint" = 1; then
20028         result="$res_hi$res_lo"U
20029       else
20030         result="$res_hi$res_lo"UL
20031       fi
20032     else
20033             result='~(size_t)0'
20034     fi
20035   fi
20036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20037 $as_echo "$result" >&6; }
20038   if test "$result" != yes; then
20039
20040 cat >>confdefs.h <<_ACEOF
20041 #define SIZE_MAX $result
20042 _ACEOF
20043
20044   fi
20045
20046
20047
20048
20049   for ac_header in stdint.h
20050 do :
20051   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20052 if test "x$ac_cv_header_stdint_h" = xyes; then :
20053   cat >>confdefs.h <<_ACEOF
20054 #define HAVE_STDINT_H 1
20055 _ACEOF
20056
20057 fi
20058
20059 done
20060
20061
20062
20063
20064
20065
20066
20067
20068   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20069 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20070
20071 else
20072
20073 $as_echo "#define ptrdiff_t long" >>confdefs.h
20074
20075
20076 fi
20077
20078   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20079 stdlib.h string.h unistd.h sys/param.h
20080 do :
20081   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20084   cat >>confdefs.h <<_ACEOF
20085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20086 _ACEOF
20087
20088 fi
20089
20090 done
20091
20092   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20093 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20094 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20095 __fsetlocking
20096 do :
20097   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20099 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20100   cat >>confdefs.h <<_ACEOF
20101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20102 _ACEOF
20103
20104 fi
20105 done
20106
20107
20108
20109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20110 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20111 if ${ac_cv_have_decl__snprintf+:} false; then :
20112   $as_echo_n "(cached) " >&6
20113 else
20114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20115 /* end confdefs.h.  */
20116 #include <stdio.h>
20117 int
20118 main ()
20119 {
20120
20121 #ifndef _snprintf
20122   char *p = (char *) _snprintf;
20123 #endif
20124
20125   ;
20126   return 0;
20127 }
20128 _ACEOF
20129 if ac_fn_c_try_compile "$LINENO"; then :
20130   ac_cv_have_decl__snprintf=yes
20131 else
20132   ac_cv_have_decl__snprintf=no
20133 fi
20134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20135 fi
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20137 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20138   if test $ac_cv_have_decl__snprintf = yes; then
20139     gt_value=1
20140   else
20141     gt_value=0
20142   fi
20143
20144 cat >>confdefs.h <<_ACEOF
20145 #define HAVE_DECL__SNPRINTF $gt_value
20146 _ACEOF
20147
20148
20149
20150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20151 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20152 if ${ac_cv_have_decl__snwprintf+:} false; then :
20153   $as_echo_n "(cached) " >&6
20154 else
20155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20156 /* end confdefs.h.  */
20157 #include <stdio.h>
20158 int
20159 main ()
20160 {
20161
20162 #ifndef _snwprintf
20163   char *p = (char *) _snwprintf;
20164 #endif
20165
20166   ;
20167   return 0;
20168 }
20169 _ACEOF
20170 if ac_fn_c_try_compile "$LINENO"; then :
20171   ac_cv_have_decl__snwprintf=yes
20172 else
20173   ac_cv_have_decl__snwprintf=no
20174 fi
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176 fi
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20178 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20179   if test $ac_cv_have_decl__snwprintf = yes; then
20180     gt_value=1
20181   else
20182     gt_value=0
20183   fi
20184
20185 cat >>confdefs.h <<_ACEOF
20186 #define HAVE_DECL__SNWPRINTF $gt_value
20187 _ACEOF
20188
20189
20190
20191
20192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20193 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20194 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20195   $as_echo_n "(cached) " >&6
20196 else
20197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h.  */
20199 #include <stdio.h>
20200 int
20201 main ()
20202 {
20203
20204 #ifndef feof_unlocked
20205   char *p = (char *) feof_unlocked;
20206 #endif
20207
20208   ;
20209   return 0;
20210 }
20211 _ACEOF
20212 if ac_fn_c_try_compile "$LINENO"; then :
20213   ac_cv_have_decl_feof_unlocked=yes
20214 else
20215   ac_cv_have_decl_feof_unlocked=no
20216 fi
20217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20218 fi
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20220 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20221   if test $ac_cv_have_decl_feof_unlocked = yes; then
20222     gt_value=1
20223   else
20224     gt_value=0
20225   fi
20226
20227 cat >>confdefs.h <<_ACEOF
20228 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20229 _ACEOF
20230
20231
20232
20233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20234 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20235 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20236   $as_echo_n "(cached) " >&6
20237 else
20238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h.  */
20240 #include <stdio.h>
20241 int
20242 main ()
20243 {
20244
20245 #ifndef fgets_unlocked
20246   char *p = (char *) fgets_unlocked;
20247 #endif
20248
20249   ;
20250   return 0;
20251 }
20252 _ACEOF
20253 if ac_fn_c_try_compile "$LINENO"; then :
20254   ac_cv_have_decl_fgets_unlocked=yes
20255 else
20256   ac_cv_have_decl_fgets_unlocked=no
20257 fi
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 fi
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20261 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20262   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20263     gt_value=1
20264   else
20265     gt_value=0
20266   fi
20267
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20270 _ACEOF
20271
20272
20273
20274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20275 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20276 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20277   $as_echo_n "(cached) " >&6
20278 else
20279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h.  */
20281 #include <stdio.h>
20282 int
20283 main ()
20284 {
20285
20286 #ifndef getc_unlocked
20287   char *p = (char *) getc_unlocked;
20288 #endif
20289
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 if ac_fn_c_try_compile "$LINENO"; then :
20295   ac_cv_have_decl_getc_unlocked=yes
20296 else
20297   ac_cv_have_decl_getc_unlocked=no
20298 fi
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300 fi
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20302 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20303   if test $ac_cv_have_decl_getc_unlocked = yes; then
20304     gt_value=1
20305   else
20306     gt_value=0
20307   fi
20308
20309 cat >>confdefs.h <<_ACEOF
20310 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20311 _ACEOF
20312
20313
20314
20315   case $gt_cv_func_printf_posix in
20316     *yes) HAVE_POSIX_PRINTF=1 ;;
20317     *) HAVE_POSIX_PRINTF=0 ;;
20318   esac
20319
20320   if test "$ac_cv_func_asprintf" = yes; then
20321     HAVE_ASPRINTF=1
20322   else
20323     HAVE_ASPRINTF=0
20324   fi
20325
20326   if test "$ac_cv_func_snprintf" = yes; then
20327     HAVE_SNPRINTF=1
20328   else
20329     HAVE_SNPRINTF=0
20330   fi
20331
20332   if test "$ac_cv_func_wprintf" = yes; then
20333     HAVE_WPRINTF=1
20334   else
20335     HAVE_WPRINTF=0
20336   fi
20337
20338
20339
20340
20341
20342
20343
20344           am_save_CPPFLAGS="$CPPFLAGS"
20345
20346   for element in $INCICONV; do
20347     haveit=
20348     for x in $CPPFLAGS; do
20349
20350   acl_save_prefix="$prefix"
20351   prefix="$acl_final_prefix"
20352   acl_save_exec_prefix="$exec_prefix"
20353   exec_prefix="$acl_final_exec_prefix"
20354   eval x=\"$x\"
20355   exec_prefix="$acl_save_exec_prefix"
20356   prefix="$acl_save_prefix"
20357
20358       if test "X$x" = "X$element"; then
20359         haveit=yes
20360         break
20361       fi
20362     done
20363     if test -z "$haveit"; then
20364       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20365     fi
20366   done
20367
20368
20369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20370 $as_echo_n "checking for iconv... " >&6; }
20371 if ${am_cv_func_iconv+:} false; then :
20372   $as_echo_n "(cached) " >&6
20373 else
20374
20375     am_cv_func_iconv="no, consider installing GNU libiconv"
20376     am_cv_lib_iconv=no
20377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h.  */
20379 #include <stdlib.h>
20380 #include <iconv.h>
20381 int
20382 main ()
20383 {
20384 iconv_t cd = iconv_open("","");
20385        iconv(cd,NULL,NULL,NULL,NULL);
20386        iconv_close(cd);
20387   ;
20388   return 0;
20389 }
20390 _ACEOF
20391 if ac_fn_c_try_link "$LINENO"; then :
20392   am_cv_func_iconv=yes
20393 fi
20394 rm -f core conftest.err conftest.$ac_objext \
20395     conftest$ac_exeext conftest.$ac_ext
20396     if test "$am_cv_func_iconv" != yes; then
20397       am_save_LIBS="$LIBS"
20398       LIBS="$LIBS $LIBICONV"
20399       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h.  */
20401 #include <stdlib.h>
20402 #include <iconv.h>
20403 int
20404 main ()
20405 {
20406 iconv_t cd = iconv_open("","");
20407          iconv(cd,NULL,NULL,NULL,NULL);
20408          iconv_close(cd);
20409   ;
20410   return 0;
20411 }
20412 _ACEOF
20413 if ac_fn_c_try_link "$LINENO"; then :
20414   am_cv_lib_iconv=yes
20415         am_cv_func_iconv=yes
20416 fi
20417 rm -f core conftest.err conftest.$ac_objext \
20418     conftest$ac_exeext conftest.$ac_ext
20419       LIBS="$am_save_LIBS"
20420     fi
20421
20422 fi
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20424 $as_echo "$am_cv_func_iconv" >&6; }
20425   if test "$am_cv_func_iconv" = yes; then
20426
20427 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20428
20429   fi
20430   if test "$am_cv_lib_iconv" = yes; then
20431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20432 $as_echo_n "checking how to link with libiconv... " >&6; }
20433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20434 $as_echo "$LIBICONV" >&6; }
20435   else
20436             CPPFLAGS="$am_save_CPPFLAGS"
20437     LIBICONV=
20438     LTLIBICONV=
20439   fi
20440
20441
20442
20443   if test "$am_cv_func_iconv" = yes; then
20444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20445 $as_echo_n "checking for iconv declaration... " >&6; }
20446     if ${am_cv_proto_iconv+:} false; then :
20447   $as_echo_n "(cached) " >&6
20448 else
20449
20450       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h.  */
20452
20453 #include <stdlib.h>
20454 #include <iconv.h>
20455 extern
20456 #ifdef __cplusplus
20457 "C"
20458 #endif
20459 #if defined(__STDC__) || defined(__cplusplus)
20460 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20461 #else
20462 size_t iconv();
20463 #endif
20464
20465 int
20466 main ()
20467 {
20468
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 if ac_fn_c_try_compile "$LINENO"; then :
20474   am_cv_proto_iconv_arg1=""
20475 else
20476   am_cv_proto_iconv_arg1="const"
20477 fi
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479       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);"
20480 fi
20481
20482     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20484          }$am_cv_proto_iconv" >&5
20485 $as_echo "${ac_t:-
20486          }$am_cv_proto_iconv" >&6; }
20487
20488 cat >>confdefs.h <<_ACEOF
20489 #define ICONV_CONST $am_cv_proto_iconv_arg1
20490 _ACEOF
20491
20492   fi
20493
20494
20495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20496 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20497 if ${am_cv_langinfo_codeset+:} false; then :
20498   $as_echo_n "(cached) " >&6
20499 else
20500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20501 /* end confdefs.h.  */
20502 #include <langinfo.h>
20503 int
20504 main ()
20505 {
20506 char* cs = nl_langinfo(CODESET);
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 if ac_fn_c_try_link "$LINENO"; then :
20512   am_cv_langinfo_codeset=yes
20513 else
20514   am_cv_langinfo_codeset=no
20515 fi
20516 rm -f core conftest.err conftest.$ac_objext \
20517     conftest$ac_exeext conftest.$ac_ext
20518
20519 fi
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20521 $as_echo "$am_cv_langinfo_codeset" >&6; }
20522   if test $am_cv_langinfo_codeset = yes; then
20523
20524 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20525
20526   fi
20527
20528   if test $ac_cv_header_locale_h = yes; then
20529
20530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20531 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20532 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20533   $as_echo_n "(cached) " >&6
20534 else
20535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h.  */
20537 #include <locale.h>
20538 int
20539 main ()
20540 {
20541 return LC_MESSAGES
20542   ;
20543   return 0;
20544 }
20545 _ACEOF
20546 if ac_fn_c_try_link "$LINENO"; then :
20547   gt_cv_val_LC_MESSAGES=yes
20548 else
20549   gt_cv_val_LC_MESSAGES=no
20550 fi
20551 rm -f core conftest.err conftest.$ac_objext \
20552     conftest$ac_exeext conftest.$ac_ext
20553 fi
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20555 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20556   if test $gt_cv_val_LC_MESSAGES = yes; then
20557
20558 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20559
20560   fi
20561
20562   fi
20563
20564   if test -n "$INTL_MACOSX_LIBS"; then
20565     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20566   fi
20567
20568                       for ac_prog in bison
20569 do
20570   # Extract the first word of "$ac_prog", so it can be a program name with args.
20571 set dummy $ac_prog; ac_word=$2
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20573 $as_echo_n "checking for $ac_word... " >&6; }
20574 if ${ac_cv_prog_INTLBISON+:} false; then :
20575   $as_echo_n "(cached) " >&6
20576 else
20577   if test -n "$INTLBISON"; then
20578   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20579 else
20580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20581 for as_dir in $PATH
20582 do
20583   IFS=$as_save_IFS
20584   test -z "$as_dir" && as_dir=.
20585     for ac_exec_ext in '' $ac_executable_extensions; do
20586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20587     ac_cv_prog_INTLBISON="$ac_prog"
20588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20589     break 2
20590   fi
20591 done
20592   done
20593 IFS=$as_save_IFS
20594
20595 fi
20596 fi
20597 INTLBISON=$ac_cv_prog_INTLBISON
20598 if test -n "$INTLBISON"; then
20599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20600 $as_echo "$INTLBISON" >&6; }
20601 else
20602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603 $as_echo "no" >&6; }
20604 fi
20605
20606
20607   test -n "$INTLBISON" && break
20608 done
20609
20610   if test -z "$INTLBISON"; then
20611     ac_verc_fail=yes
20612   else
20613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20614 $as_echo_n "checking version of bison... " >&6; }
20615     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20616     case $ac_prog_version in
20617       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20618       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20619          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20620       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20621     esac
20622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20623 $as_echo "$ac_prog_version" >&6; }
20624   fi
20625   if test $ac_verc_fail = yes; then
20626     INTLBISON=:
20627   fi
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20645 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20646 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20647   $as_echo_n "(cached) " >&6
20648 else
20649   gt_save_CPPFLAGS="$CPPFLAGS"
20650      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20651      gt_save_LIBS="$LIBS"
20652      LIBS="$LIBS -framework CoreFoundation"
20653      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h.  */
20655 #include <CFPreferences.h>
20656 int
20657 main ()
20658 {
20659 CFPreferencesCopyAppValue(NULL, NULL)
20660   ;
20661   return 0;
20662 }
20663 _ACEOF
20664 if ac_fn_c_try_link "$LINENO"; then :
20665   gt_cv_func_CFPreferencesCopyAppValue=yes
20666 else
20667   gt_cv_func_CFPreferencesCopyAppValue=no
20668 fi
20669 rm -f core conftest.err conftest.$ac_objext \
20670     conftest$ac_exeext conftest.$ac_ext
20671      CPPFLAGS="$gt_save_CPPFLAGS"
20672      LIBS="$gt_save_LIBS"
20673 fi
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20675 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20676   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20677
20678 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20679
20680   fi
20681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20682 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20683 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20684   $as_echo_n "(cached) " >&6
20685 else
20686   gt_save_CPPFLAGS="$CPPFLAGS"
20687      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20688      gt_save_LIBS="$LIBS"
20689      LIBS="$LIBS -framework CoreFoundation"
20690      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691 /* end confdefs.h.  */
20692 #include <CFLocale.h>
20693 int
20694 main ()
20695 {
20696 CFLocaleCopyCurrent();
20697   ;
20698   return 0;
20699 }
20700 _ACEOF
20701 if ac_fn_c_try_link "$LINENO"; then :
20702   gt_cv_func_CFLocaleCopyCurrent=yes
20703 else
20704   gt_cv_func_CFLocaleCopyCurrent=no
20705 fi
20706 rm -f core conftest.err conftest.$ac_objext \
20707     conftest$ac_exeext conftest.$ac_ext
20708      CPPFLAGS="$gt_save_CPPFLAGS"
20709      LIBS="$gt_save_LIBS"
20710 fi
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20712 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20713   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20714
20715 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20716
20717   fi
20718   INTL_MACOSX_LIBS=
20719   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20720     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20721   fi
20722
20723
20724
20725
20726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20727 $as_echo_n "checking whether NLS is requested... " >&6; }
20728     # Check whether --enable-nls was given.
20729 if test "${enable_nls+set}" = set; then :
20730   enableval=$enable_nls; USE_NLS=$enableval
20731 else
20732   USE_NLS=yes
20733 fi
20734
20735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20736 $as_echo "$USE_NLS" >&6; }
20737
20738
20739
20740
20741     BUILD_INCLUDED_LIBINTL=no
20742     USE_INCLUDED_LIBINTL=no
20743
20744   LIBINTL=
20745   LTLIBINTL=
20746   POSUB=
20747
20748     if test "$USE_NLS" = "yes"; then
20749     gt_use_preinstalled_gnugettext=no
20750
20751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20752 $as_echo_n "checking whether included gettext is requested... " >&6; }
20753
20754 # Check whether --with-included-gettext was given.
20755 if test "${with_included_gettext+set}" = set; then :
20756   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20757 else
20758   nls_cv_force_use_gnu_gettext=no
20759 fi
20760
20761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20762 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20763
20764       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20765       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20766
20767
20768
20769
20770
20771
20772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20773 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20774 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20775   $as_echo_n "(cached) " >&6
20776 else
20777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h.  */
20779 #include <libintl.h>
20780 extern int _nl_msg_cat_cntr;
20781 extern int *_nl_domain_bindings;
20782 int
20783 main ()
20784 {
20785 bindtextdomain ("", "");
20786 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20787   ;
20788   return 0;
20789 }
20790 _ACEOF
20791 if ac_fn_c_try_link "$LINENO"; then :
20792   gt_cv_func_gnugettext1_libc=yes
20793 else
20794   gt_cv_func_gnugettext1_libc=no
20795 fi
20796 rm -f core conftest.err conftest.$ac_objext \
20797     conftest$ac_exeext conftest.$ac_ext
20798 fi
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20800 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20801
20802         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20803
20804
20805
20806     use_additional=yes
20807
20808   acl_save_prefix="$prefix"
20809   prefix="$acl_final_prefix"
20810   acl_save_exec_prefix="$exec_prefix"
20811   exec_prefix="$acl_final_exec_prefix"
20812
20813     eval additional_includedir=\"$includedir\"
20814     eval additional_libdir=\"$libdir\"
20815
20816   exec_prefix="$acl_save_exec_prefix"
20817   prefix="$acl_save_prefix"
20818
20819
20820 # Check whether --with-libintl-prefix was given.
20821 if test "${with_libintl_prefix+set}" = set; then :
20822   withval=$with_libintl_prefix;
20823     if test "X$withval" = "Xno"; then
20824       use_additional=no
20825     else
20826       if test "X$withval" = "X"; then
20827
20828   acl_save_prefix="$prefix"
20829   prefix="$acl_final_prefix"
20830   acl_save_exec_prefix="$exec_prefix"
20831   exec_prefix="$acl_final_exec_prefix"
20832
20833           eval additional_includedir=\"$includedir\"
20834           eval additional_libdir=\"$libdir\"
20835
20836   exec_prefix="$acl_save_exec_prefix"
20837   prefix="$acl_save_prefix"
20838
20839       else
20840         additional_includedir="$withval/include"
20841         additional_libdir="$withval/lib"
20842       fi
20843     fi
20844
20845 fi
20846
20847       LIBINTL=
20848   LTLIBINTL=
20849   INCINTL=
20850   rpathdirs=
20851   ltrpathdirs=
20852   names_already_handled=
20853   names_next_round='intl '
20854   while test -n "$names_next_round"; do
20855     names_this_round="$names_next_round"
20856     names_next_round=
20857     for name in $names_this_round; do
20858       already_handled=
20859       for n in $names_already_handled; do
20860         if test "$n" = "$name"; then
20861           already_handled=yes
20862           break
20863         fi
20864       done
20865       if test -z "$already_handled"; then
20866         names_already_handled="$names_already_handled $name"
20867                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20868         eval value=\"\$HAVE_LIB$uppername\"
20869         if test -n "$value"; then
20870           if test "$value" = yes; then
20871             eval value=\"\$LIB$uppername\"
20872             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20873             eval value=\"\$LTLIB$uppername\"
20874             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20875           else
20876                                     :
20877           fi
20878         else
20879                               found_dir=
20880           found_la=
20881           found_so=
20882           found_a=
20883           if test $use_additional = yes; then
20884             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20885               found_dir="$additional_libdir"
20886               found_so="$additional_libdir/lib$name.$shlibext"
20887               if test -f "$additional_libdir/lib$name.la"; then
20888                 found_la="$additional_libdir/lib$name.la"
20889               fi
20890             else
20891               if test -f "$additional_libdir/lib$name.$libext"; then
20892                 found_dir="$additional_libdir"
20893                 found_a="$additional_libdir/lib$name.$libext"
20894                 if test -f "$additional_libdir/lib$name.la"; then
20895                   found_la="$additional_libdir/lib$name.la"
20896                 fi
20897               fi
20898             fi
20899           fi
20900           if test "X$found_dir" = "X"; then
20901             for x in $LDFLAGS $LTLIBINTL; do
20902
20903   acl_save_prefix="$prefix"
20904   prefix="$acl_final_prefix"
20905   acl_save_exec_prefix="$exec_prefix"
20906   exec_prefix="$acl_final_exec_prefix"
20907   eval x=\"$x\"
20908   exec_prefix="$acl_save_exec_prefix"
20909   prefix="$acl_save_prefix"
20910
20911               case "$x" in
20912                 -L*)
20913                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20914                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20915                     found_dir="$dir"
20916                     found_so="$dir/lib$name.$shlibext"
20917                     if test -f "$dir/lib$name.la"; then
20918                       found_la="$dir/lib$name.la"
20919                     fi
20920                   else
20921                     if test -f "$dir/lib$name.$libext"; then
20922                       found_dir="$dir"
20923                       found_a="$dir/lib$name.$libext"
20924                       if test -f "$dir/lib$name.la"; then
20925                         found_la="$dir/lib$name.la"
20926                       fi
20927                     fi
20928                   fi
20929                   ;;
20930               esac
20931               if test "X$found_dir" != "X"; then
20932                 break
20933               fi
20934             done
20935           fi
20936           if test "X$found_dir" != "X"; then
20937                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20938             if test "X$found_so" != "X"; then
20939                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20940                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20941               else
20942                                                                                 haveit=
20943                 for x in $ltrpathdirs; do
20944                   if test "X$x" = "X$found_dir"; then
20945                     haveit=yes
20946                     break
20947                   fi
20948                 done
20949                 if test -z "$haveit"; then
20950                   ltrpathdirs="$ltrpathdirs $found_dir"
20951                 fi
20952                                 if test "$hardcode_direct" = yes; then
20953                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20954                 else
20955                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20956                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20957                                                             haveit=
20958                     for x in $rpathdirs; do
20959                       if test "X$x" = "X$found_dir"; then
20960                         haveit=yes
20961                         break
20962                       fi
20963                     done
20964                     if test -z "$haveit"; then
20965                       rpathdirs="$rpathdirs $found_dir"
20966                     fi
20967                   else
20968                                                                                 haveit=
20969                     for x in $LDFLAGS $LIBINTL; do
20970
20971   acl_save_prefix="$prefix"
20972   prefix="$acl_final_prefix"
20973   acl_save_exec_prefix="$exec_prefix"
20974   exec_prefix="$acl_final_exec_prefix"
20975   eval x=\"$x\"
20976   exec_prefix="$acl_save_exec_prefix"
20977   prefix="$acl_save_prefix"
20978
20979                       if test "X$x" = "X-L$found_dir"; then
20980                         haveit=yes
20981                         break
20982                       fi
20983                     done
20984                     if test -z "$haveit"; then
20985                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20986                     fi
20987                     if test "$hardcode_minus_L" != no; then
20988                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20989                     else
20990                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20991                     fi
20992                   fi
20993                 fi
20994               fi
20995             else
20996               if test "X$found_a" != "X"; then
20997                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20998               else
20999                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21000               fi
21001             fi
21002                         additional_includedir=
21003             case "$found_dir" in
21004               */lib | */lib/)
21005                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21006                 additional_includedir="$basedir/include"
21007                 ;;
21008             esac
21009             if test "X$additional_includedir" != "X"; then
21010                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21011                 haveit=
21012                 if test "X$additional_includedir" = "X/usr/local/include"; then
21013                   if test -n "$GCC"; then
21014                     case $host_os in
21015                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21016                     esac
21017                   fi
21018                 fi
21019                 if test -z "$haveit"; then
21020                   for x in $CPPFLAGS $INCINTL; do
21021
21022   acl_save_prefix="$prefix"
21023   prefix="$acl_final_prefix"
21024   acl_save_exec_prefix="$exec_prefix"
21025   exec_prefix="$acl_final_exec_prefix"
21026   eval x=\"$x\"
21027   exec_prefix="$acl_save_exec_prefix"
21028   prefix="$acl_save_prefix"
21029
21030                     if test "X$x" = "X-I$additional_includedir"; then
21031                       haveit=yes
21032                       break
21033                     fi
21034                   done
21035                   if test -z "$haveit"; then
21036                     if test -d "$additional_includedir"; then
21037                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21038                     fi
21039                   fi
21040                 fi
21041               fi
21042             fi
21043                         if test -n "$found_la"; then
21044                                                         save_libdir="$libdir"
21045               case "$found_la" in
21046                 */* | *\\*) . "$found_la" ;;
21047                 *) . "./$found_la" ;;
21048               esac
21049               libdir="$save_libdir"
21050                             for dep in $dependency_libs; do
21051                 case "$dep" in
21052                   -L*)
21053                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21054                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21055                       haveit=
21056                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21057                         if test -n "$GCC"; then
21058                           case $host_os in
21059                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21060                           esac
21061                         fi
21062                       fi
21063                       if test -z "$haveit"; then
21064                         haveit=
21065                         for x in $LDFLAGS $LIBINTL; do
21066
21067   acl_save_prefix="$prefix"
21068   prefix="$acl_final_prefix"
21069   acl_save_exec_prefix="$exec_prefix"
21070   exec_prefix="$acl_final_exec_prefix"
21071   eval x=\"$x\"
21072   exec_prefix="$acl_save_exec_prefix"
21073   prefix="$acl_save_prefix"
21074
21075                           if test "X$x" = "X-L$additional_libdir"; then
21076                             haveit=yes
21077                             break
21078                           fi
21079                         done
21080                         if test -z "$haveit"; then
21081                           if test -d "$additional_libdir"; then
21082                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21083                           fi
21084                         fi
21085                         haveit=
21086                         for x in $LDFLAGS $LTLIBINTL; do
21087
21088   acl_save_prefix="$prefix"
21089   prefix="$acl_final_prefix"
21090   acl_save_exec_prefix="$exec_prefix"
21091   exec_prefix="$acl_final_exec_prefix"
21092   eval x=\"$x\"
21093   exec_prefix="$acl_save_exec_prefix"
21094   prefix="$acl_save_prefix"
21095
21096                           if test "X$x" = "X-L$additional_libdir"; then
21097                             haveit=yes
21098                             break
21099                           fi
21100                         done
21101                         if test -z "$haveit"; then
21102                           if test -d "$additional_libdir"; then
21103                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21104                           fi
21105                         fi
21106                       fi
21107                     fi
21108                     ;;
21109                   -R*)
21110                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21111                     if test "$enable_rpath" != no; then
21112                                                                   haveit=
21113                       for x in $rpathdirs; do
21114                         if test "X$x" = "X$dir"; then
21115                           haveit=yes
21116                           break
21117                         fi
21118                       done
21119                       if test -z "$haveit"; then
21120                         rpathdirs="$rpathdirs $dir"
21121                       fi
21122                                                                   haveit=
21123                       for x in $ltrpathdirs; do
21124                         if test "X$x" = "X$dir"; then
21125                           haveit=yes
21126                           break
21127                         fi
21128                       done
21129                       if test -z "$haveit"; then
21130                         ltrpathdirs="$ltrpathdirs $dir"
21131                       fi
21132                     fi
21133                     ;;
21134                   -l*)
21135                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21136                     ;;
21137                   *.la)
21138                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21139                     ;;
21140                   *)
21141                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21142                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21143                     ;;
21144                 esac
21145               done
21146             fi
21147           else
21148                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21149             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21150           fi
21151         fi
21152       fi
21153     done
21154   done
21155   if test "X$rpathdirs" != "X"; then
21156     if test -n "$hardcode_libdir_separator"; then
21157                         alldirs=
21158       for found_dir in $rpathdirs; do
21159         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21160       done
21161             acl_save_libdir="$libdir"
21162       libdir="$alldirs"
21163       eval flag=\"$hardcode_libdir_flag_spec\"
21164       libdir="$acl_save_libdir"
21165       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21166     else
21167             for found_dir in $rpathdirs; do
21168         acl_save_libdir="$libdir"
21169         libdir="$found_dir"
21170         eval flag=\"$hardcode_libdir_flag_spec\"
21171         libdir="$acl_save_libdir"
21172         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21173       done
21174     fi
21175   fi
21176   if test "X$ltrpathdirs" != "X"; then
21177             for found_dir in $ltrpathdirs; do
21178       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21179     done
21180   fi
21181
21182           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21183 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21184 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21185   $as_echo_n "(cached) " >&6
21186 else
21187   gt_save_CPPFLAGS="$CPPFLAGS"
21188             CPPFLAGS="$CPPFLAGS $INCINTL"
21189             gt_save_LIBS="$LIBS"
21190             LIBS="$LIBS $LIBINTL"
21191                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h.  */
21193 #include <libintl.h>
21194 extern int _nl_msg_cat_cntr;
21195 extern
21196 #ifdef __cplusplus
21197 "C"
21198 #endif
21199 const char *_nl_expand_alias (const char *);
21200 int
21201 main ()
21202 {
21203 bindtextdomain ("", "");
21204 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 if ac_fn_c_try_link "$LINENO"; then :
21210   gt_cv_func_gnugettext1_libintl=yes
21211 else
21212   gt_cv_func_gnugettext1_libintl=no
21213 fi
21214 rm -f core conftest.err conftest.$ac_objext \
21215     conftest$ac_exeext conftest.$ac_ext
21216                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21217               LIBS="$LIBS $LIBICONV"
21218               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21219 /* end confdefs.h.  */
21220 #include <libintl.h>
21221 extern int _nl_msg_cat_cntr;
21222 extern
21223 #ifdef __cplusplus
21224 "C"
21225 #endif
21226 const char *_nl_expand_alias (const char *);
21227 int
21228 main ()
21229 {
21230 bindtextdomain ("", "");
21231 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 if ac_fn_c_try_link "$LINENO"; then :
21237   LIBINTL="$LIBINTL $LIBICONV"
21238                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21239                 gt_cv_func_gnugettext1_libintl=yes
21240
21241 fi
21242 rm -f core conftest.err conftest.$ac_objext \
21243     conftest$ac_exeext conftest.$ac_ext
21244             fi
21245             CPPFLAGS="$gt_save_CPPFLAGS"
21246             LIBS="$gt_save_LIBS"
21247 fi
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21249 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21250         fi
21251
21252                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21253            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21254                 && test "$PACKAGE" != gettext-runtime \
21255                 && test "$PACKAGE" != gettext-tools; }; then
21256           gt_use_preinstalled_gnugettext=yes
21257         else
21258                     LIBINTL=
21259           LTLIBINTL=
21260           INCINTL=
21261         fi
21262
21263
21264         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21265                               nls_cv_use_gnu_gettext=yes
21266         fi
21267       fi
21268
21269       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21270                 BUILD_INCLUDED_LIBINTL=yes
21271         USE_INCLUDED_LIBINTL=yes
21272         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21273         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21274         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21275       fi
21276
21277       CATOBJEXT=
21278       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21279          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21280                 CATOBJEXT=.gmo
21281       fi
21282
21283
21284     if test -n "$INTL_MACOSX_LIBS"; then
21285       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21286          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21287                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21288         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21289       fi
21290     fi
21291
21292     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21293        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21294
21295 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21296
21297     else
21298       USE_NLS=no
21299     fi
21300   fi
21301
21302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21303 $as_echo_n "checking whether to use NLS... " >&6; }
21304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21305 $as_echo "$USE_NLS" >&6; }
21306   if test "$USE_NLS" = "yes"; then
21307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21308 $as_echo_n "checking where the gettext function comes from... " >&6; }
21309     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21310       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21311         gt_source="external libintl"
21312       else
21313         gt_source="libc"
21314       fi
21315     else
21316       gt_source="included intl directory"
21317     fi
21318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21319 $as_echo "$gt_source" >&6; }
21320   fi
21321
21322   if test "$USE_NLS" = "yes"; then
21323
21324     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21325       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21327 $as_echo_n "checking how to link with libintl... " >&6; }
21328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21329 $as_echo "$LIBINTL" >&6; }
21330
21331   for element in $INCINTL; do
21332     haveit=
21333     for x in $CPPFLAGS; do
21334
21335   acl_save_prefix="$prefix"
21336   prefix="$acl_final_prefix"
21337   acl_save_exec_prefix="$exec_prefix"
21338   exec_prefix="$acl_final_exec_prefix"
21339   eval x=\"$x\"
21340   exec_prefix="$acl_save_exec_prefix"
21341   prefix="$acl_save_prefix"
21342
21343       if test "X$x" = "X$element"; then
21344         haveit=yes
21345         break
21346       fi
21347     done
21348     if test -z "$haveit"; then
21349       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21350     fi
21351   done
21352
21353       fi
21354
21355
21356 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21357
21358
21359 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21360
21361     fi
21362
21363         POSUB=po
21364   fi
21365
21366
21367             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21368       BUILD_INCLUDED_LIBINTL=yes
21369     fi
21370
21371
21372
21373
21374
21375         nls_cv_header_intl=
21376     nls_cv_header_libgt=
21377
21378         DATADIRNAME=share
21379
21380
21381         INSTOBJEXT=.mo
21382
21383
21384         GENCAT=gencat
21385
21386
21387         INTLOBJS=
21388     if test "$USE_INCLUDED_LIBINTL" = yes; then
21389       INTLOBJS="\$(GETTOBJS)"
21390     fi
21391
21392
21393         INTL_LIBTOOL_SUFFIX_PREFIX=
21394
21395
21396
21397     INTLLIBS="$LIBINTL"
21398
21399
21400
21401
21402
21403
21404 fi
21405
21406 support_smartalloc=yes
21407 support_readline=yes
21408 support_conio=yes
21409 support_gnome=no
21410 support_bat=no
21411 support_wx_console=no
21412 support_tray_monitor=no
21413 support_tls=no
21414 support_crypto=no
21415 gnome_version=
21416 wx_version=
21417 support_static_tools=no
21418 support_static_fd=no
21419 support_static_sd=no
21420 support_static_dir=no
21421 support_static_cons=no
21422 support_python=no
21423 build_client_only=no
21424 build_dird=yes
21425 build_stored=yes
21426 db_backends=""
21427 batch_insert_db_backends=""
21428 support_lockmgr=no
21429
21430
21431 # Check whether --enable-gnome was given.
21432 if test "${enable_gnome+set}" = set; then :
21433   enableval=$enable_gnome;
21434        if test x$enableval = xyes; then
21435           support_gnome=yes
21436        fi
21437
21438
21439 fi
21440
21441
21442 GNOME_DIR=
21443 if test x$support_gnome = xyes; then
21444    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21445    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21446 fi
21447 # AC_SUBST(GNOME_DIR)
21448
21449 # Check whether --enable-bat was given.
21450 if test "${enable_bat+set}" = set; then :
21451   enableval=$enable_bat;
21452        if test x$enableval = xyes; then
21453
21454 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21455
21456           support_bat=yes
21457        fi
21458
21459
21460 fi
21461
21462
21463 BAT_DIR=
21464 if test x$support_bat = xyes; then
21465    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21466    pkg=$?
21467    if test $pkg = 0; then
21468       BAT_DIR=src/qt-console
21469    else
21470       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21471    fi
21472 fi
21473
21474 got_qwt=no
21475 QWT_INC=
21476 QWT_LDFLAGS=
21477 QWT_LIB=
21478 QWT=
21479 no_qwt=no
21480
21481
21482
21483
21484
21485
21486
21487
21488 # Check whether --enable-bwx-console was given.
21489 if test "${enable_bwx_console+set}" = set; then :
21490   enableval=$enable_bwx_console;
21491        if test x$enableval = xyes; then
21492           support_wx_console=yes
21493        fi
21494
21495
21496 fi
21497
21498
21499 WX_DIR=
21500 if test x$support_wx_console = xyes; then
21501    abc=`$WXCONFIG $WXFLAGS --cppflags`
21502    pkg=$?
21503    if test $pkg = 0; then
21504       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21505       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21506       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21507
21508
21509
21510       WX_DIR="src/wx-console"
21511    else
21512       echo " "
21513       echo "wx-config program not found. bwx-console disabled."
21514       echo " "
21515       support_wx_console=no
21516    fi
21517 fi
21518
21519
21520 # Check whether --enable-tray-monitor was given.
21521 if test "${enable_tray_monitor+set}" = set; then :
21522   enableval=$enable_tray_monitor;
21523        if test x$enableval = xyes; then
21524           support_tray_monitor=yes
21525        fi
21526
21527
21528 fi
21529
21530
21531 TRAY_MONITOR_DIR=
21532 if test x$support_tray_monitor = xyes; then
21533    abc=`$PKGCONFIG --exists gtk+-2.0`
21534    pkg=$?
21535    if test $pkg = 0; then
21536       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21537       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21538
21539
21540       TRAY_MONITOR_DIR=src/tray-monitor
21541       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21542       pkg=$?
21543       if test $pkg = 0; then
21544
21545 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21546
21547       fi
21548    fi
21549 fi
21550
21551
21552 # Check whether --enable-smartalloc was given.
21553 if test "${enable_smartalloc+set}" = set; then :
21554   enableval=$enable_smartalloc;
21555        if test x$enableval = xno; then
21556           support_smartalloc=no
21557        fi
21558
21559
21560 fi
21561
21562
21563 if test x$support_smartalloc = xyes; then
21564
21565 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21566
21567 fi
21568
21569 # Check whether --enable-lockmgr was given.
21570 if test "${enable_lockmgr+set}" = set; then :
21571   enableval=$enable_lockmgr;
21572        if test x$enableval = xyes; then
21573           support_lockmgr=yes
21574        fi
21575
21576
21577 fi
21578
21579
21580 if test x$support_lockmgr = xyes; then
21581
21582 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21583
21584 fi
21585
21586
21587 # Check whether --enable-static-tools was given.
21588 if test "${enable_static_tools+set}" = set; then :
21589   enableval=$enable_static_tools;
21590        if test x$enableval = xyes; then
21591           if test x$use_libtool = xyes; then
21592              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21593   please rerun configure with --disable-libtool" "$LINENO" 5
21594           fi
21595           support_static_tools=yes
21596        fi
21597
21598
21599 fi
21600
21601
21602 TTOOL_LDFLAGS=
21603 if test x$support_static_tools = xyes; then
21604    TTOOL_LDFLAGS="-static"
21605 fi
21606
21607
21608 # Check whether --enable-static-fd was given.
21609 if test "${enable_static_fd+set}" = set; then :
21610   enableval=$enable_static_fd;
21611        if test x$enableval = xyes; then
21612           if test x$use_libtool = xyes; then
21613              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21614   please rerun configure with --disable-libtool" "$LINENO" 5
21615           fi
21616           support_static_fd=yes
21617        fi
21618
21619
21620 fi
21621
21622
21623 STATIC_FD=
21624 if test x$support_static_fd = xyes; then
21625    STATIC_FD="static-bacula-fd"
21626 fi
21627
21628
21629 # Check whether --enable-static-sd was given.
21630 if test "${enable_static_sd+set}" = set; then :
21631   enableval=$enable_static_sd;
21632        if test x$enableval = xyes; then
21633           if test x$use_libtool = xyes; then
21634              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21635   please rerun configure with --disable-libtool" "$LINENO" 5
21636           fi
21637           support_static_sd=yes
21638        fi
21639
21640
21641 fi
21642
21643
21644 STATIC_SD=
21645 if test x$support_static_sd = xyes; then
21646    STATIC_SD="static-bacula-sd"
21647 fi
21648
21649
21650 # Check whether --enable-static-dir was given.
21651 if test "${enable_static_dir+set}" = set; then :
21652   enableval=$enable_static_dir;
21653        if test x$enableval = xyes; then
21654           if test x$use_libtool = xyes; then
21655              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21656   please rerun configure with --disable-libtool" "$LINENO" 5
21657           fi
21658           support_static_dir=yes
21659        fi
21660
21661
21662 fi
21663
21664
21665 STATIC_DIR=
21666 if test x$support_static_dir = xyes; then
21667    STATIC_DIR="static-bacula-dir"
21668 fi
21669
21670
21671 # Check whether --enable-static-cons was given.
21672 if test "${enable_static_cons+set}" = set; then :
21673   enableval=$enable_static_cons;
21674        if test x$enableval = xyes; then
21675           if test x$use_libtool = xyes; then
21676              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21677   please rerun configure with --disable-libtool" "$LINENO" 5
21678           fi
21679           support_static_cons=yes
21680        fi
21681
21682
21683 fi
21684
21685
21686 STATIC_CONS=
21687 STATIC_GNOME_CONS=
21688 STATIC_WX_CONS=
21689 if test x$support_static_cons = xyes; then
21690    STATIC_CONS="static-bconsole"
21691    STATIC_GNOME_CONS="static-bgnome-console"
21692    STATIC_WX_CONS="static-bwx-console"
21693 fi
21694
21695
21696
21697
21698 # Check whether --enable-client-only was given.
21699 if test "${enable_client_only+set}" = set; then :
21700   enableval=$enable_client_only;
21701        if test x$enableval = xyes; then
21702           build_client_only=yes
21703           db_backends="None"
21704           DB_BACKENDS="none"
21705        fi
21706
21707
21708 fi
21709
21710 if test x$build_client_only = xno; then
21711    ALL_DIRS="subdirs"
21712 else
21713    ALL_DIRS=""
21714 fi
21715
21716
21717 # Check whether --enable-build-dird was given.
21718 if test "${enable_build_dird+set}" = set; then :
21719   enableval=$enable_build_dird;
21720        if test x$enableval = xno; then
21721           build_dird=no
21722        fi
21723
21724
21725 fi
21726
21727 if test x$build_dird = xyes; then
21728    DIRD_DIR="src/dird"
21729    DIR_TOOLS="DIRTOOLS"
21730 else
21731    DIRD_DIR=""
21732    DIR_TOOLS="NODIRTOOLS"
21733 fi
21734
21735
21736
21737 # Check whether --enable-build-stored was given.
21738 if test "${enable_build_stored+set}" = set; then :
21739   enableval=$enable_build_stored;
21740       if test x$enableval = xno; then
21741          build_stored=no
21742       fi
21743
21744
21745 fi
21746
21747 if test x$build_stored = xyes; then
21748    STORED_DIR="src/stored"
21749 else
21750    STORED_DIR=""
21751 fi
21752
21753
21754 # Check whether --enable-conio was given.
21755 if test "${enable_conio+set}" = set; then :
21756   enableval=$enable_conio;
21757        if test x$enableval = xno; then
21758           support_conio=no
21759        fi
21760
21761
21762 fi
21763
21764
21765
21766 support_ipv6=yes
21767 # Check whether --enable-ipv6 was given.
21768 if test "${enable_ipv6+set}" = set; then :
21769   enableval=$enable_ipv6;
21770        if test x$enableval = xno; then
21771           support_ipv6=no
21772        fi
21773
21774
21775 fi
21776
21777
21778 if test x$support_ipv6 = xyes; then
21779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h.  */
21781  #include <sys/types.h>
21782 #include <sys/socket.h>
21783 #include <netinet/in.h>
21784 int
21785 main ()
21786 {
21787 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21788   ;
21789   return 0;
21790 }
21791 _ACEOF
21792 if ac_fn_c_try_link "$LINENO"; then :
21793   support_ipv6=yes
21794 else
21795   support_ipv6=no
21796 fi
21797 rm -f core conftest.err conftest.$ac_objext \
21798     conftest$ac_exeext conftest.$ac_ext
21799 fi
21800
21801 if test x$support_ipv6 = xyes; then
21802
21803 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21804
21805 fi
21806
21807 TERM_LIB=""
21808 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21809 if test "x$ac_cv_header_curses_h" = xyes; then :
21810
21811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21812 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21813 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21814   $as_echo_n "(cached) " >&6
21815 else
21816   ac_check_lib_save_LIBS=$LIBS
21817 LIBS="-ltinfo  $LIBS"
21818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21819 /* end confdefs.h.  */
21820
21821 /* Override any GCC internal prototype to avoid an error.
21822    Use char because int might match the return type of a GCC
21823    builtin and then its argument prototype would still apply.  */
21824 #ifdef __cplusplus
21825 extern "C"
21826 #endif
21827 char tgetent ();
21828 int
21829 main ()
21830 {
21831 return tgetent ();
21832   ;
21833   return 0;
21834 }
21835 _ACEOF
21836 if ac_fn_c_try_link "$LINENO"; then :
21837   ac_cv_lib_tinfo_tgetent=yes
21838 else
21839   ac_cv_lib_tinfo_tgetent=no
21840 fi
21841 rm -f core conftest.err conftest.$ac_objext \
21842     conftest$ac_exeext conftest.$ac_ext
21843 LIBS=$ac_check_lib_save_LIBS
21844 fi
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21846 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21847 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21848    TERM_LIB="-ltinfo"
21849 else
21850
21851       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21852 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21853 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21854   $as_echo_n "(cached) " >&6
21855 else
21856   ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-lncurses  $LIBS"
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h.  */
21860
21861 /* Override any GCC internal prototype to avoid an error.
21862    Use char because int might match the return type of a GCC
21863    builtin and then its argument prototype would still apply.  */
21864 #ifdef __cplusplus
21865 extern "C"
21866 #endif
21867 char tgetent ();
21868 int
21869 main ()
21870 {
21871 return tgetent ();
21872   ;
21873   return 0;
21874 }
21875 _ACEOF
21876 if ac_fn_c_try_link "$LINENO"; then :
21877   ac_cv_lib_ncurses_tgetent=yes
21878 else
21879   ac_cv_lib_ncurses_tgetent=no
21880 fi
21881 rm -f core conftest.err conftest.$ac_objext \
21882     conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21884 fi
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21886 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21887 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21888    TERM_LIB="-lncurses"
21889 else
21890
21891         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21892 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21893 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21894   $as_echo_n "(cached) " >&6
21895 else
21896   ac_check_lib_save_LIBS=$LIBS
21897 LIBS="-ltermcap  $LIBS"
21898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21899 /* end confdefs.h.  */
21900
21901 /* Override any GCC internal prototype to avoid an error.
21902    Use char because int might match the return type of a GCC
21903    builtin and then its argument prototype would still apply.  */
21904 #ifdef __cplusplus
21905 extern "C"
21906 #endif
21907 char tgetent ();
21908 int
21909 main ()
21910 {
21911 return tgetent ();
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 if ac_fn_c_try_link "$LINENO"; then :
21917   ac_cv_lib_termcap_tgetent=yes
21918 else
21919   ac_cv_lib_termcap_tgetent=no
21920 fi
21921 rm -f core conftest.err conftest.$ac_objext \
21922     conftest$ac_exeext conftest.$ac_ext
21923 LIBS=$ac_check_lib_save_LIBS
21924 fi
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21926 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21927 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21928    TERM_LIB="-ltermcap"
21929 fi
21930
21931
21932 fi
21933
21934
21935 fi
21936
21937
21938 else
21939     for ac_header in curses.h
21940 do :
21941   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21942 if test "x$ac_cv_header_curses_h" = xyes; then :
21943   cat >>confdefs.h <<_ACEOF
21944 #define HAVE_CURSES_H 1
21945 _ACEOF
21946
21947 fi
21948
21949 done
21950
21951      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21952 if test "x$ac_cv_header_term_h" = xyes; then :
21953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21954 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21955 if ${ac_cv_lib_curses_tgetent+:} false; then :
21956   $as_echo_n "(cached) " >&6
21957 else
21958   ac_check_lib_save_LIBS=$LIBS
21959 LIBS="-lcurses  $LIBS"
21960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21961 /* end confdefs.h.  */
21962
21963 /* Override any GCC internal prototype to avoid an error.
21964    Use char because int might match the return type of a GCC
21965    builtin and then its argument prototype would still apply.  */
21966 #ifdef __cplusplus
21967 extern "C"
21968 #endif
21969 char tgetent ();
21970 int
21971 main ()
21972 {
21973 return tgetent ();
21974   ;
21975   return 0;
21976 }
21977 _ACEOF
21978 if ac_fn_c_try_link "$LINENO"; then :
21979   ac_cv_lib_curses_tgetent=yes
21980 else
21981   ac_cv_lib_curses_tgetent=no
21982 fi
21983 rm -f core conftest.err conftest.$ac_objext \
21984     conftest$ac_exeext conftest.$ac_ext
21985 LIBS=$ac_check_lib_save_LIBS
21986 fi
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21988 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21989 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21990    TERM_LIB="-lcurses"
21991 fi
21992
21993
21994 fi
21995
21996
21997
21998 fi
21999
22000
22001
22002
22003 got_conio="no"
22004 if test x$support_conio = xyes; then
22005    if test x$TERM_LIB != x; then
22006       CONS_LIBS=$TERM_LIB
22007       CONS_OBJ="conio.o"
22008       CONS_SRC="conio.c"
22009       got_conio="yes"
22010       support_readline=no
22011
22012 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22013
22014    else
22015       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22016    fi
22017 fi
22018
22019
22020 # Check whether --enable-readline was given.
22021 if test "${enable_readline+set}" = set; then :
22022   enableval=$enable_readline;
22023        if test x$enableval = xno; then
22024           support_readline=no
22025        fi
22026
22027
22028 fi
22029
22030 if test x$TERM_LIB = x ; then
22031    support_readline=no
22032 fi
22033
22034 got_readline="no"
22035 READLINE_SRC=
22036 if test x$support_readline = xyes; then
22037
22038 # Check whether --with-readline was given.
22039 if test "${with_readline+set}" = set; then :
22040   withval=$with_readline;
22041           case "$with_readline" in
22042           no)
22043              :
22044              ;;
22045           yes|*)
22046              if test -f ${with_readline}/readline.h; then
22047                 CONS_INC="-I${with_readline}"
22048                 CONS_LDFLAGS="-L$with_readline"
22049              elif test -f ${with_readline}/include/readline/readline.h; then
22050                 CONS_INC="-I${with_readline}/include/readline"
22051                 CONS_LDFLAGS="-L${with_readline}/lib"
22052                 with_readline="${with_readline}/include/readline"
22053              else
22054                 with_readline="/usr/include/readline"
22055              fi
22056
22057              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22058 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22060
22061
22062 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22063
22064                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22065                     got_readline="yes"
22066
22067 else
22068
22069                     echo " "
22070                     echo "readline.h not found. readline turned off ..."
22071                     echo " "
22072
22073
22074 fi
22075
22076
22077              ;;
22078           esac
22079
22080 else
22081
22082                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22083 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22084
22085
22086 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22087
22088                 got_readline="yes"
22089                 CONS_INC="-I/usr/include/readline"
22090                 CONS_LIBS="-lreadline $TERM_LIB"
22091
22092 else
22093
22094                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22095 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22097
22098
22099 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22100
22101                         got_readline="yes"
22102                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22103                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22104                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22105                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22106
22107 else
22108
22109                         echo " "
22110                         echo "readline.h not found. readline turned off ..."
22111                         echo " "
22112
22113
22114 fi
22115
22116
22117
22118
22119 fi
22120
22121
22122
22123
22124 fi
22125
22126 fi
22127
22128
22129
22130
22131
22132
22133
22134
22135 MAKE_SHELL=/bin/sh
22136
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22138 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22139 if ${ac_cv_header_stat_broken+:} false; then :
22140   $as_echo_n "(cached) " >&6
22141 else
22142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143 /* end confdefs.h.  */
22144 #include <sys/types.h>
22145 #include <sys/stat.h>
22146
22147 #if defined S_ISBLK && defined S_IFDIR
22148 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22149 #endif
22150
22151 #if defined S_ISBLK && defined S_IFCHR
22152 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22153 #endif
22154
22155 #if defined S_ISLNK && defined S_IFREG
22156 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22157 #endif
22158
22159 #if defined S_ISSOCK && defined S_IFREG
22160 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22161 #endif
22162
22163 _ACEOF
22164 if ac_fn_c_try_compile "$LINENO"; then :
22165   ac_cv_header_stat_broken=no
22166 else
22167   ac_cv_header_stat_broken=yes
22168 fi
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 fi
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22172 $as_echo "$ac_cv_header_stat_broken" >&6; }
22173 if test $ac_cv_header_stat_broken = yes; then
22174
22175 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22176
22177 fi
22178
22179 ac_header_dirent=no
22180 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22181   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22183 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22184 if eval \${$as_ac_Header+:} false; then :
22185   $as_echo_n "(cached) " >&6
22186 else
22187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h.  */
22189 #include <sys/types.h>
22190 #include <$ac_hdr>
22191
22192 int
22193 main ()
22194 {
22195 if ((DIR *) 0)
22196 return 0;
22197   ;
22198   return 0;
22199 }
22200 _ACEOF
22201 if ac_fn_c_try_compile "$LINENO"; then :
22202   eval "$as_ac_Header=yes"
22203 else
22204   eval "$as_ac_Header=no"
22205 fi
22206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207 fi
22208 eval ac_res=\$$as_ac_Header
22209                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22210 $as_echo "$ac_res" >&6; }
22211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22212   cat >>confdefs.h <<_ACEOF
22213 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22214 _ACEOF
22215
22216 ac_header_dirent=$ac_hdr; break
22217 fi
22218
22219 done
22220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22221 if test $ac_header_dirent = dirent.h; then
22222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22223 $as_echo_n "checking for library containing opendir... " >&6; }
22224 if ${ac_cv_search_opendir+:} false; then :
22225   $as_echo_n "(cached) " >&6
22226 else
22227   ac_func_search_save_LIBS=$LIBS
22228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h.  */
22230
22231 /* Override any GCC internal prototype to avoid an error.
22232    Use char because int might match the return type of a GCC
22233    builtin and then its argument prototype would still apply.  */
22234 #ifdef __cplusplus
22235 extern "C"
22236 #endif
22237 char opendir ();
22238 int
22239 main ()
22240 {
22241 return opendir ();
22242   ;
22243   return 0;
22244 }
22245 _ACEOF
22246 for ac_lib in '' dir; do
22247   if test -z "$ac_lib"; then
22248     ac_res="none required"
22249   else
22250     ac_res=-l$ac_lib
22251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22252   fi
22253   if ac_fn_c_try_link "$LINENO"; then :
22254   ac_cv_search_opendir=$ac_res
22255 fi
22256 rm -f core conftest.err conftest.$ac_objext \
22257     conftest$ac_exeext
22258   if ${ac_cv_search_opendir+:} false; then :
22259   break
22260 fi
22261 done
22262 if ${ac_cv_search_opendir+:} false; then :
22263
22264 else
22265   ac_cv_search_opendir=no
22266 fi
22267 rm conftest.$ac_ext
22268 LIBS=$ac_func_search_save_LIBS
22269 fi
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22271 $as_echo "$ac_cv_search_opendir" >&6; }
22272 ac_res=$ac_cv_search_opendir
22273 if test "$ac_res" != no; then :
22274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22275
22276 fi
22277
22278 else
22279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22280 $as_echo_n "checking for library containing opendir... " >&6; }
22281 if ${ac_cv_search_opendir+:} false; then :
22282   $as_echo_n "(cached) " >&6
22283 else
22284   ac_func_search_save_LIBS=$LIBS
22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h.  */
22287
22288 /* Override any GCC internal prototype to avoid an error.
22289    Use char because int might match the return type of a GCC
22290    builtin and then its argument prototype would still apply.  */
22291 #ifdef __cplusplus
22292 extern "C"
22293 #endif
22294 char opendir ();
22295 int
22296 main ()
22297 {
22298 return opendir ();
22299   ;
22300   return 0;
22301 }
22302 _ACEOF
22303 for ac_lib in '' x; do
22304   if test -z "$ac_lib"; then
22305     ac_res="none required"
22306   else
22307     ac_res=-l$ac_lib
22308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22309   fi
22310   if ac_fn_c_try_link "$LINENO"; then :
22311   ac_cv_search_opendir=$ac_res
22312 fi
22313 rm -f core conftest.err conftest.$ac_objext \
22314     conftest$ac_exeext
22315   if ${ac_cv_search_opendir+:} false; then :
22316   break
22317 fi
22318 done
22319 if ${ac_cv_search_opendir+:} false; then :
22320
22321 else
22322   ac_cv_search_opendir=no
22323 fi
22324 rm conftest.$ac_ext
22325 LIBS=$ac_func_search_save_LIBS
22326 fi
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22328 $as_echo "$ac_cv_search_opendir" >&6; }
22329 ac_res=$ac_cv_search_opendir
22330 if test "$ac_res" != no; then :
22331   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22332
22333 fi
22334
22335 fi
22336
22337 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22338 do :
22339   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22341 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22342   cat >>confdefs.h <<_ACEOF
22343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22344 _ACEOF
22345
22346 fi
22347 done
22348
22349 for ac_func in nanosleep nl_langinfo
22350 do :
22351   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22352 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22353 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22354   cat >>confdefs.h <<_ACEOF
22355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22356 _ACEOF
22357
22358 fi
22359 done
22360
22361 for ac_header in varargs.h
22362 do :
22363   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22364 if test "x$ac_cv_header_varargs_h" = xyes; then :
22365   cat >>confdefs.h <<_ACEOF
22366 #define HAVE_VARARGS_H 1
22367 _ACEOF
22368
22369 fi
22370
22371 done
22372
22373
22374
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22376 $as_echo_n "checking for Python support... " >&6; }
22377
22378 # Check whether --with-python was given.
22379 if test "${with_python+set}" = set; then :
22380   withval=$with_python;
22381        PYTHON_INCDIR=
22382        PYTHON_LIBS=
22383        if test "$withval" != "no"; then
22384           if test "$withval" = "yes"; then
22385              if test -e /usr/bin/python-config ; then
22386                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22387                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22388              else
22389                 for python_root in /usr /usr/local /usr/sfw; do
22390                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22391                       if test -f $python_root/include/${ver}/Python.h; then
22392                          PYTHON_INCDIR=-I$python_root/include/${ver}
22393                          if test -d $python_root/lib64/${ver}/config; then
22394                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22395                          else
22396                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22397                          fi
22398                          break
22399                       fi
22400                    done
22401                 done
22402
22403                 if test x$PYTHON_INCDIR = x; then
22404                    if test -f $prefix/include/Python.h; then
22405                       PYTHON_INCDIR=-I$prefix/include
22406                       if test -d $prefix/lib64/config; then
22407                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22408                       else
22409                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22410                       fi
22411                    else
22412                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22413 $as_echo "no" >&6; }
22414                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22415                    fi
22416                 fi
22417              fi
22418           else
22419              if test -e $withval/bin/python-config ; then
22420                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22421                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22422              elif test -f $withval/Python.h; then
22423                 PYTHON_INCDIR=-I$withval
22424                 PYTHON_LIBS="-L$withval/config -lpython"
22425              elif test -f $withval/include/Python.h; then
22426                 PYTHON_INCDIR=-I$withval/include
22427                 if test -d $withval/lib64/config; then
22428                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22429                 else
22430                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22431                 fi
22432              elif test -f $withval/include/python/Python.h; then
22433                 PYTHON_INCDIR=-I$withval/include/python
22434                 if test -d $withval/lib64/python/config; then
22435                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22436                 else
22437                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22438                 fi
22439              else
22440                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22441 $as_echo "no" >&6; }
22442                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22443              fi
22444           fi
22445
22446           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22447
22448           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22449 $as_echo "yes" >&6; }
22450           support_python=yes
22451           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22452 $as_echo "$as_me: checking for more Python libs" >&6;}
22453           saved_LIBS="$LIBS"; LIBS=
22454           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22455 $as_echo_n "checking for library containing shm_open... " >&6; }
22456 if ${ac_cv_search_shm_open+:} false; then :
22457   $as_echo_n "(cached) " >&6
22458 else
22459   ac_func_search_save_LIBS=$LIBS
22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h.  */
22462
22463 /* Override any GCC internal prototype to avoid an error.
22464    Use char because int might match the return type of a GCC
22465    builtin and then its argument prototype would still apply.  */
22466 #ifdef __cplusplus
22467 extern "C"
22468 #endif
22469 char shm_open ();
22470 int
22471 main ()
22472 {
22473 return shm_open ();
22474   ;
22475   return 0;
22476 }
22477 _ACEOF
22478 for ac_lib in '' rt; do
22479   if test -z "$ac_lib"; then
22480     ac_res="none required"
22481   else
22482     ac_res=-l$ac_lib
22483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22484   fi
22485   if ac_fn_c_try_link "$LINENO"; then :
22486   ac_cv_search_shm_open=$ac_res
22487 fi
22488 rm -f core conftest.err conftest.$ac_objext \
22489     conftest$ac_exeext
22490   if ${ac_cv_search_shm_open+:} false; then :
22491   break
22492 fi
22493 done
22494 if ${ac_cv_search_shm_open+:} false; then :
22495
22496 else
22497   ac_cv_search_shm_open=no
22498 fi
22499 rm conftest.$ac_ext
22500 LIBS=$ac_func_search_save_LIBS
22501 fi
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22503 $as_echo "$ac_cv_search_shm_open" >&6; }
22504 ac_res=$ac_cv_search_shm_open
22505 if test "$ac_res" != no; then :
22506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22507
22508 fi
22509
22510           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22511 $as_echo_n "checking for openpty in -lutil... " >&6; }
22512 if ${ac_cv_lib_util_openpty+:} false; then :
22513   $as_echo_n "(cached) " >&6
22514 else
22515   ac_check_lib_save_LIBS=$LIBS
22516 LIBS="-lutil  $LIBS"
22517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22518 /* end confdefs.h.  */
22519
22520 /* Override any GCC internal prototype to avoid an error.
22521    Use char because int might match the return type of a GCC
22522    builtin and then its argument prototype would still apply.  */
22523 #ifdef __cplusplus
22524 extern "C"
22525 #endif
22526 char openpty ();
22527 int
22528 main ()
22529 {
22530 return openpty ();
22531   ;
22532   return 0;
22533 }
22534 _ACEOF
22535 if ac_fn_c_try_link "$LINENO"; then :
22536   ac_cv_lib_util_openpty=yes
22537 else
22538   ac_cv_lib_util_openpty=no
22539 fi
22540 rm -f core conftest.err conftest.$ac_objext \
22541     conftest$ac_exeext conftest.$ac_ext
22542 LIBS=$ac_check_lib_save_LIBS
22543 fi
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22545 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22546 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22547   cat >>confdefs.h <<_ACEOF
22548 #define HAVE_LIBUTIL 1
22549 _ACEOF
22550
22551   LIBS="-lutil $LIBS"
22552
22553 fi
22554
22555           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22556           LIBS="$saved_LIBS"
22557        else
22558           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22559 $as_echo "no" >&6; }
22560        fi
22561
22562 else
22563
22564        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22565 $as_echo "no" >&6; }
22566
22567
22568 fi
22569
22570
22571
22572
22573 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22574 if test "x$ac_cv_func_socket" = xyes; then :
22575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22576 $as_echo "using libc's socket" >&6; }
22577 else
22578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22579 $as_echo_n "checking for socket in -lxnet... " >&6; }
22580 if ${ac_cv_lib_xnet_socket+:} false; then :
22581   $as_echo_n "(cached) " >&6
22582 else
22583   ac_check_lib_save_LIBS=$LIBS
22584 LIBS="-lxnet  $LIBS"
22585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22586 /* end confdefs.h.  */
22587
22588 /* Override any GCC internal prototype to avoid an error.
22589    Use char because int might match the return type of a GCC
22590    builtin and then its argument prototype would still apply.  */
22591 #ifdef __cplusplus
22592 extern "C"
22593 #endif
22594 char socket ();
22595 int
22596 main ()
22597 {
22598 return socket ();
22599   ;
22600   return 0;
22601 }
22602 _ACEOF
22603 if ac_fn_c_try_link "$LINENO"; then :
22604   ac_cv_lib_xnet_socket=yes
22605 else
22606   ac_cv_lib_xnet_socket=no
22607 fi
22608 rm -f core conftest.err conftest.$ac_objext \
22609     conftest$ac_exeext conftest.$ac_ext
22610 LIBS=$ac_check_lib_save_LIBS
22611 fi
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22613 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22614 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22615   cat >>confdefs.h <<_ACEOF
22616 #define HAVE_LIBXNET 1
22617 _ACEOF
22618
22619   LIBS="-lxnet $LIBS"
22620
22621 fi
22622
22623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22624 $as_echo_n "checking for socket in -lsocket... " >&6; }
22625 if ${ac_cv_lib_socket_socket+:} false; then :
22626   $as_echo_n "(cached) " >&6
22627 else
22628   ac_check_lib_save_LIBS=$LIBS
22629 LIBS="-lsocket  $LIBS"
22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h.  */
22632
22633 /* Override any GCC internal prototype to avoid an error.
22634    Use char because int might match the return type of a GCC
22635    builtin and then its argument prototype would still apply.  */
22636 #ifdef __cplusplus
22637 extern "C"
22638 #endif
22639 char socket ();
22640 int
22641 main ()
22642 {
22643 return socket ();
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 if ac_fn_c_try_link "$LINENO"; then :
22649   ac_cv_lib_socket_socket=yes
22650 else
22651   ac_cv_lib_socket_socket=no
22652 fi
22653 rm -f core conftest.err conftest.$ac_objext \
22654     conftest$ac_exeext conftest.$ac_ext
22655 LIBS=$ac_check_lib_save_LIBS
22656 fi
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22658 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22659 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22660   cat >>confdefs.h <<_ACEOF
22661 #define HAVE_LIBSOCKET 1
22662 _ACEOF
22663
22664   LIBS="-lsocket $LIBS"
22665
22666 fi
22667
22668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22669 $as_echo_n "checking for socket in -linet... " >&6; }
22670 if ${ac_cv_lib_inet_socket+:} false; then :
22671   $as_echo_n "(cached) " >&6
22672 else
22673   ac_check_lib_save_LIBS=$LIBS
22674 LIBS="-linet  $LIBS"
22675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h.  */
22677
22678 /* Override any GCC internal prototype to avoid an error.
22679    Use char because int might match the return type of a GCC
22680    builtin and then its argument prototype would still apply.  */
22681 #ifdef __cplusplus
22682 extern "C"
22683 #endif
22684 char socket ();
22685 int
22686 main ()
22687 {
22688 return socket ();
22689   ;
22690   return 0;
22691 }
22692 _ACEOF
22693 if ac_fn_c_try_link "$LINENO"; then :
22694   ac_cv_lib_inet_socket=yes
22695 else
22696   ac_cv_lib_inet_socket=no
22697 fi
22698 rm -f core conftest.err conftest.$ac_objext \
22699     conftest$ac_exeext conftest.$ac_ext
22700 LIBS=$ac_check_lib_save_LIBS
22701 fi
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22703 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22704 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22705   cat >>confdefs.h <<_ACEOF
22706 #define HAVE_LIBINET 1
22707 _ACEOF
22708
22709   LIBS="-linet $LIBS"
22710
22711 fi
22712
22713 fi
22714
22715
22716 TCPW_MSG="no"
22717 WRAPLIBS=""
22718
22719 # Check whether --with-tcp-wrappers was given.
22720 if test "${with_tcp_wrappers+set}" = set; then :
22721   withval=$with_tcp_wrappers;
22722        if test "x$withval" != "xno" ; then
22723           saved_LIBS="$LIBS"
22724           LIBS="$saved_LIBS -lwrap"
22725           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22726 $as_echo_n "checking for library containing nanosleep... " >&6; }
22727 if ${ac_cv_search_nanosleep+:} false; then :
22728   $as_echo_n "(cached) " >&6
22729 else
22730   ac_func_search_save_LIBS=$LIBS
22731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732 /* end confdefs.h.  */
22733
22734 /* Override any GCC internal prototype to avoid an error.
22735    Use char because int might match the return type of a GCC
22736    builtin and then its argument prototype would still apply.  */
22737 #ifdef __cplusplus
22738 extern "C"
22739 #endif
22740 char nanosleep ();
22741 int
22742 main ()
22743 {
22744 return nanosleep ();
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 for ac_lib in '' rt; do
22750   if test -z "$ac_lib"; then
22751     ac_res="none required"
22752   else
22753     ac_res=-l$ac_lib
22754     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22755   fi
22756   if ac_fn_c_try_link "$LINENO"; then :
22757   ac_cv_search_nanosleep=$ac_res
22758 fi
22759 rm -f core conftest.err conftest.$ac_objext \
22760     conftest$ac_exeext
22761   if ${ac_cv_search_nanosleep+:} false; then :
22762   break
22763 fi
22764 done
22765 if ${ac_cv_search_nanosleep+:} false; then :
22766
22767 else
22768   ac_cv_search_nanosleep=no
22769 fi
22770 rm conftest.$ac_ext
22771 LIBS=$ac_func_search_save_LIBS
22772 fi
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22774 $as_echo "$ac_cv_search_nanosleep" >&6; }
22775 ac_res=$ac_cv_search_nanosleep
22776 if test "$ac_res" != no; then :
22777   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22778
22779 fi
22780
22781           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22782 $as_echo_n "checking for libwrap... " >&6; }
22783           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h.  */
22785
22786                #include <sys/types.h>
22787                #include <tcpd.h>
22788                int deny_severity = 0;
22789                int allow_severity = 0;
22790                struct request_info *req;
22791
22792 int
22793 main ()
22794 {
22795
22796                 hosts_access(req);
22797
22798   ;
22799   return 0;
22800 }
22801 _ACEOF
22802 if ac_fn_c_try_link "$LINENO"; then :
22803
22804                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22805 $as_echo "yes" >&6; }
22806
22807 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22808
22809                  TCPW_MSG="yes"
22810                  LIBS="$saved_LIBS"
22811                  WRAPLIBS="-lwrap"
22812
22813 else
22814
22815                  LIBS="$saved_LIBS -lwrap -lnsl"
22816                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22817                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818 /* end confdefs.h.  */
22819
22820                        #include <sys/types.h>
22821                        #include <tcpd.h>
22822                        int deny_severity = 0;
22823                        int allow_severity = 0;
22824                        struct request_info *req;
22825
22826 int
22827 main ()
22828 {
22829
22830                        hosts_access(req);
22831
22832   ;
22833   return 0;
22834 }
22835 _ACEOF
22836 if ac_fn_c_try_link "$LINENO"; then :
22837
22838                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22839 $as_echo "yes" >&6; }
22840
22841 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22842
22843                       TCPW_MSG="yes"
22844                       LIBS="$saved_LIBS"
22845                       WRAPLIBS="-lwrap"
22846
22847 else
22848
22849                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22850
22851
22852 fi
22853 rm -f core conftest.err conftest.$ac_objext \
22854     conftest$ac_exeext conftest.$ac_ext
22855
22856
22857 fi
22858 rm -f core conftest.err conftest.$ac_objext \
22859     conftest$ac_exeext conftest.$ac_ext
22860        fi
22861
22862
22863 fi
22864
22865
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22867 $as_echo_n "checking for OpenSSL... " >&6; }
22868
22869 # Check whether --with-openssl was given.
22870 if test "${with_openssl+set}" = set; then :
22871   withval=$with_openssl;
22872         with_openssl_directory=${withval}
22873
22874
22875 fi
22876
22877
22878 if test "x$with_openssl_directory" != "xno"; then
22879    OPENSSL_LIBS="-lssl -lcrypto"
22880    OPENSSL_INC=""
22881
22882    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22883       #
22884       # Make sure the $with_openssl_directory also makes sense
22885       #
22886       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22887          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22888          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22889       fi
22890    fi
22891
22892    saved_LIBS="${LIBS}"
22893    saved_CFLAGS="${CFLAGS}"
22894    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22895    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22896
22897    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h.  */
22899
22900           #include <openssl/ssl.h>
22901
22902 int
22903 main ()
22904 {
22905
22906            CRYPTO_set_id_callback(NULL);
22907
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 if ac_fn_c_try_link "$LINENO"; then :
22913
22914           support_tls="yes"
22915           support_crypto="yes"
22916
22917 else
22918
22919           support_tls="no"
22920           support_crypto="no"
22921
22922
22923 fi
22924 rm -f core conftest.err conftest.$ac_objext \
22925     conftest$ac_exeext conftest.$ac_ext
22926
22927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928 /* end confdefs.h.  */
22929
22930           #include <openssl/evp.h>
22931
22932 int
22933 main ()
22934 {
22935
22936           EVP_sha512();
22937
22938   ;
22939   return 0;
22940 }
22941 _ACEOF
22942 if ac_fn_c_try_link "$LINENO"; then :
22943
22944           ac_cv_openssl_sha2="yes"
22945
22946 else
22947
22948           ac_cv_openssl_sha2="no"
22949
22950
22951 fi
22952 rm -f core conftest.err conftest.$ac_objext \
22953     conftest$ac_exeext conftest.$ac_ext
22954
22955                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h.  */
22957
22958           #include <openssl/evp.h>
22959
22960 int
22961 main ()
22962 {
22963
22964           EVP_aes_192_cbc();
22965
22966   ;
22967   return 0;
22968 }
22969 _ACEOF
22970 if ac_fn_c_try_link "$LINENO"; then :
22971
22972           ac_cv_openssl_export="no"
22973
22974 else
22975
22976           ac_cv_openssl_export="yes"
22977
22978
22979 fi
22980 rm -f core conftest.err conftest.$ac_objext \
22981     conftest$ac_exeext conftest.$ac_ext
22982
22983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22984 $as_echo "$support_tls" >&6; }
22985    if test "$support_tls" = "yes"; then
22986
22987 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22988
22989
22990 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22991
22992
22993 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22994
22995    fi
22996
22997    if test "$ac_cv_openssl_sha2" = "yes"; then
22998
22999 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23000
23001    fi
23002
23003    if test "$ac_cv_openssl_export" = "yes"; then
23004
23005 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23006
23007    fi
23008
23009    if test "$support_crypto" = "yes"; then
23010       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23011 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23012 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23013   $as_echo_n "(cached) " >&6
23014 else
23015   ac_check_lib_save_LIBS=$LIBS
23016 LIBS="-lcrypto  $LIBS"
23017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23018 /* end confdefs.h.  */
23019
23020 /* Override any GCC internal prototype to avoid an error.
23021    Use char because int might match the return type of a GCC
23022    builtin and then its argument prototype would still apply.  */
23023 #ifdef __cplusplus
23024 extern "C"
23025 #endif
23026 char EVP_PKEY_encrypt_old ();
23027 int
23028 main ()
23029 {
23030 return EVP_PKEY_encrypt_old ();
23031   ;
23032   return 0;
23033 }
23034 _ACEOF
23035 if ac_fn_c_try_link "$LINENO"; then :
23036   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23037 else
23038   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23039 fi
23040 rm -f core conftest.err conftest.$ac_objext \
23041     conftest$ac_exeext conftest.$ac_ext
23042 LIBS=$ac_check_lib_save_LIBS
23043 fi
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23045 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23046 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23047
23048 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23049
23050 fi
23051
23052    fi
23053
23054    LIBS="${saved_LIBS}"
23055    CFLAGS="${saved_CFLAGS}"
23056 else
23057    support_tls="no"
23058    support_crypto="no"
23059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23060 $as_echo "$support_tls" >&6; }
23061 fi
23062
23063 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23064    OPENSSL_LIBS=""
23065    OPENSSL_INC=""
23066 fi
23067
23068
23069
23070
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23072 $as_echo_n "checking for library containing dlopen... " >&6; }
23073 if ${ac_cv_search_dlopen+:} false; then :
23074   $as_echo_n "(cached) " >&6
23075 else
23076   ac_func_search_save_LIBS=$LIBS
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h.  */
23079
23080 /* Override any GCC internal prototype to avoid an error.
23081    Use char because int might match the return type of a GCC
23082    builtin and then its argument prototype would still apply.  */
23083 #ifdef __cplusplus
23084 extern "C"
23085 #endif
23086 char dlopen ();
23087 int
23088 main ()
23089 {
23090 return dlopen ();
23091   ;
23092   return 0;
23093 }
23094 _ACEOF
23095 for ac_lib in '' dl; do
23096   if test -z "$ac_lib"; then
23097     ac_res="none required"
23098   else
23099     ac_res=-l$ac_lib
23100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23101   fi
23102   if ac_fn_c_try_link "$LINENO"; then :
23103   ac_cv_search_dlopen=$ac_res
23104 fi
23105 rm -f core conftest.err conftest.$ac_objext \
23106     conftest$ac_exeext
23107   if ${ac_cv_search_dlopen+:} false; then :
23108   break
23109 fi
23110 done
23111 if ${ac_cv_search_dlopen+:} false; then :
23112
23113 else
23114   ac_cv_search_dlopen=no
23115 fi
23116 rm conftest.$ac_ext
23117 LIBS=$ac_func_search_save_LIBS
23118 fi
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23120 $as_echo "$ac_cv_search_dlopen" >&6; }
23121 ac_res=$ac_cv_search_dlopen
23122 if test "$ac_res" != no; then :
23123   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23124
23125 fi
23126
23127
23128 working_dir=`eval echo ${prefix}/var/bacula/working`
23129
23130 # Check whether --with-working-dir was given.
23131 if test "${with_working_dir+set}" = set; then :
23132   withval=$with_working_dir;
23133        if test "x$withval" != "xno" ; then
23134          working_dir=$withval
23135        fi
23136
23137
23138 fi
23139
23140
23141
23142
23143 archivedir=/tmp
23144
23145 # Check whether --with-archivedir was given.
23146 if test "${with_archivedir+set}" = set; then :
23147   withval=$with_archivedir;
23148        if test "x$withval" != "xno" ; then
23149           archivedir=$withval
23150        fi
23151
23152
23153 fi
23154
23155
23156
23157
23158 basename=`hostname`
23159
23160 # Check whether --with-basename was given.
23161 if test "${with_basename+set}" = set; then :
23162   withval=$with_basename;
23163        if test "x$withval" != "xno" ; then
23164           basename=$withval
23165        fi
23166
23167
23168 fi
23169
23170
23171
23172
23173 hostname=`uname -n | cut -d '.' -f 1`
23174 if test x${hostname} = x ; then
23175   hostname="localhost"
23176 fi
23177
23178 # Check whether --with-hostname was given.
23179 if test "${with_hostname+set}" = set; then :
23180   withval=$with_hostname;
23181        if test "x$withval" != "xno" ; then
23182          hostname=$withval
23183        fi
23184
23185
23186 fi
23187
23188
23189
23190
23191
23192 scriptdir=`eval echo ${sysconfdir}`
23193
23194 # Check whether --with-scriptdir was given.
23195 if test "${with_scriptdir+set}" = set; then :
23196   withval=$with_scriptdir;
23197        if test "x$withval" != "xno" ; then
23198           scriptdir=$withval
23199        fi
23200
23201
23202 fi
23203
23204
23205
23206
23207
23208 bsrdir=/tmp
23209
23210 # Check whether --with-bsrdir was given.
23211 if test "${with_bsrdir+set}" = set; then :
23212   withval=$with_bsrdir;
23213        if test "x$withval" != "xno" ; then
23214           bsrdir=$withval
23215        fi
23216
23217
23218 fi
23219
23220
23221
23222
23223 logdir=/tmp
23224
23225 # Check whether --with-logdir was given.
23226 if test "${with_logdir+set}" = set; then :
23227   withval=$with_logdir;
23228        if test "x$withval" != "xno" ; then
23229           logdir=$withval
23230        fi
23231
23232
23233 fi
23234
23235
23236
23237
23238
23239 # ------------------------------------------
23240 # Where to place plugindir (plugin files)
23241 # ------------------------------------------
23242 plugindir=`eval echo ${libdir}`
23243
23244 # Check whether --with-plugindir was given.
23245 if test "${with_plugindir+set}" = set; then :
23246   withval=$with_plugindir;
23247        if test "x$withval" != "xno" ; then
23248           plugindir=$withval
23249        fi
23250
23251
23252 fi
23253
23254
23255
23256
23257 dump_email=root@localhost
23258
23259 # Check whether --with-dump-email was given.
23260 if test "${with_dump_email+set}" = set; then :
23261   withval=$with_dump_email;
23262        if test "x$withval" != "xno" ; then
23263           dump_email=$withval
23264        fi
23265
23266
23267 fi
23268
23269
23270
23271
23272 job_email=root@localhost
23273
23274 # Check whether --with-job-email was given.
23275 if test "${with_job_email+set}" = set; then :
23276   withval=$with_job_email;
23277        if test "x$withval" != "xno" ; then
23278           job_email=$withval
23279        fi
23280
23281
23282 fi
23283
23284
23285
23286
23287 smtp_host=localhost
23288
23289 # Check whether --with-smtp_host was given.
23290 if test "${with_smtp_host+set}" = set; then :
23291   withval=$with_smtp_host;
23292        if test "x$withval" != "xno" ; then
23293           smtp_host=$withval
23294        fi
23295
23296
23297 fi
23298
23299
23300
23301
23302 piddir=/var/run
23303
23304 # Check whether --with-pid-dir was given.
23305 if test "${with_pid_dir+set}" = set; then :
23306   withval=$with_pid_dir;
23307        if test "x$withval" != "xno" ; then
23308           piddir=$withval
23309        fi
23310
23311
23312 fi
23313
23314
23315 cat >>confdefs.h <<_ACEOF
23316 #define _PATH_BACULA_PIDDIR "$piddir"
23317 _ACEOF
23318
23319
23320
23321 subsysdir=/var/run/subsys
23322 if test -d /var/run/subsys; then
23323    subsysdir=/var/run/subsys
23324 elif test -d /var/lock/subsys; then
23325    subsysdir=/var/lock/subsys
23326 else
23327    subsysdir=/var/run/subsys
23328 fi
23329
23330 # Check whether --with-subsys-dir was given.
23331 if test "${with_subsys_dir+set}" = set; then :
23332   withval=$with_subsys_dir;
23333        if test "x$withval" != "xno" ; then
23334           subsysdir=$withval
23335        fi
23336
23337
23338 fi
23339
23340
23341
23342
23343 baseport=9101
23344
23345 # Check whether --with-baseport was given.
23346 if test "${with_baseport+set}" = set; then :
23347   withval=$with_baseport;
23348        if test "x$withval" != "xno" ; then
23349           baseport=$withval
23350        fi
23351
23352
23353 fi
23354
23355
23356
23357 dir_port=`expr $baseport`
23358 fd_port=`expr $baseport + 1`
23359 sd_port=`expr $fd_port + 1`
23360
23361
23362
23363
23364
23365 dir_password=
23366
23367 # Check whether --with-dir-password was given.
23368 if test "${with_dir_password+set}" = set; then :
23369   withval=$with_dir_password;
23370        if test "x$withval" != "xno" ; then
23371           dir_password=$withval
23372        fi
23373
23374
23375 fi
23376
23377
23378 if test "x$dir_password" = "x" ; then
23379    if test "x$OPENSSL" = "xnone" ; then
23380       key=`autoconf/randpass 33`
23381    else
23382       key=`openssl rand -base64 33`
23383    fi
23384    dir_password=$key
23385 fi
23386
23387 fd_password=
23388
23389 # Check whether --with-fd-password was given.
23390 if test "${with_fd_password+set}" = set; then :
23391   withval=$with_fd_password;
23392        if test "x$withval" != "xno" ; then
23393           fd_password=$withval
23394        fi
23395
23396
23397 fi
23398
23399
23400 if test "x$fd_password" = "x" ; then
23401    if test "x$OPENSSL" = "xnone" ; then
23402       key=`autoconf/randpass 37`
23403    else
23404       key=`openssl rand -base64 33`
23405    fi
23406    fd_password=$key
23407 fi
23408
23409 sd_password=
23410
23411 # Check whether --with-sd-password was given.
23412 if test "${with_sd_password+set}" = set; then :
23413   withval=$with_sd_password;
23414        if test "x$withval" != "xno" ; then
23415           sd_password=$withval
23416        fi
23417
23418
23419 fi
23420
23421
23422 if test "x$sd_password" = "x" ; then
23423    if test "x$OPENSSL" = "xnone" ; then
23424       key=`autoconf/randpass 41`
23425    else
23426       key=`openssl rand -base64 33`
23427    fi
23428    sd_password=$key
23429 fi
23430
23431 mon_dir_password=
23432
23433 # Check whether --with-mon-dir-password was given.
23434 if test "${with_mon_dir_password+set}" = set; then :
23435   withval=$with_mon_dir_password;
23436        if test "x$withval" != "xno" ; then
23437           mon_dir_password=$withval
23438        fi
23439
23440
23441 fi
23442
23443
23444 if test "x$mon_dir_password" = "x" ; then
23445    if test "x$OPENSSL" = "xnone" ; then
23446       key=`autoconf/randpass 33`
23447    else
23448       key=`openssl rand -base64 33`
23449    fi
23450    mon_dir_password=$key
23451 fi
23452
23453 mon_fd_password=
23454
23455 # Check whether --with-mon-fd-password was given.
23456 if test "${with_mon_fd_password+set}" = set; then :
23457   withval=$with_mon_fd_password;
23458        if test "x$withval" != "xno" ; then
23459           mon_fd_password=$withval
23460        fi
23461
23462
23463 fi
23464
23465
23466 if test "x$mon_fd_password" = "x" ; then
23467    if test "x$OPENSSL" = "xnone" ; then
23468       key=`autoconf/randpass 37`
23469    else
23470       key=`openssl rand -base64 33`
23471    fi
23472    mon_fd_password=$key
23473 fi
23474
23475 mon_sd_password=
23476
23477 # Check whether --with-mon-sd-password was given.
23478 if test "${with_mon_sd_password+set}" = set; then :
23479   withval=$with_mon_sd_password;
23480        if test "x$withval" != "xno" ; then
23481           mon_sd_password=$withval
23482        fi
23483
23484
23485 fi
23486
23487
23488 if test "x$mon_sd_password" = "x" ; then
23489    if test "x$OPENSSL" = "xnone" ; then
23490       key=`autoconf/randpass 41`
23491    else
23492       key=`openssl rand -base64 33`
23493    fi
23494    mon_sd_password=$key
23495 fi
23496
23497
23498
23499
23500
23501
23502
23503
23504 db_name=bacula
23505
23506 # Check whether --with-db_name was given.
23507 if test "${with_db_name+set}" = set; then :
23508   withval=$with_db_name;
23509        if test "x$withval" != "x" ; then
23510           db_name=$withval
23511        fi
23512
23513
23514 fi
23515
23516
23517
23518 db_user=bacula
23519
23520 # Check whether --with-db_user was given.
23521 if test "${with_db_user+set}" = set; then :
23522   withval=$with_db_user;
23523        if test "x$withval" != "x" ; then
23524           db_user=$withval
23525        fi
23526
23527
23528 fi
23529
23530
23531
23532 db_password=
23533
23534 # Check whether --with-db_password was given.
23535 if test "${with_db_password+set}" = set; then :
23536   withval=$with_db_password;
23537        if test "x$withval" != "x" ; then
23538           db_password=$withval
23539        fi
23540
23541
23542 fi
23543
23544
23545
23546 db_port=" "
23547
23548 # Check whether --with-db_port was given.
23549 if test "${with_db_port+set}" = set; then :
23550   withval=$with_db_port;
23551        if test "x$withval" != "x" ; then
23552           db_port=$withval
23553        fi
23554
23555
23556 fi
23557
23558
23559
23560 #
23561 # Handle users and groups for each daemon
23562 #
23563 dir_user=
23564
23565 # Check whether --with-dir_user was given.
23566 if test "${with_dir_user+set}" = set; then :
23567   withval=$with_dir_user;
23568        if test "x$withval" != "x" ; then
23569            dir_user=$withval
23570        fi
23571
23572
23573 fi
23574
23575
23576 dir_group=
23577
23578 # Check whether --with-dir_group was given.
23579 if test "${with_dir_group+set}" = set; then :
23580   withval=$with_dir_group;
23581        if test "x$withval" != "x" ; then
23582           dir_group=$withval
23583        fi
23584
23585
23586 fi
23587
23588
23589 sd_user=
23590
23591 # Check whether --with-sd_user was given.
23592 if test "${with_sd_user+set}" = set; then :
23593   withval=$with_sd_user;
23594        if test "x$withval" != "x" ; then
23595           sd_user=$withval
23596        fi
23597
23598
23599 fi
23600
23601
23602 sd_group=
23603
23604 # Check whether --with-sd_group was given.
23605 if test "${with_sd_group+set}" = set; then :
23606   withval=$with_sd_group;
23607        if test "x$withval" != "x" ; then
23608           sd_group=$withval
23609        fi
23610
23611
23612 fi
23613
23614
23615 fd_user=
23616
23617 # Check whether --with-fd_user was given.
23618 if test "${with_fd_user+set}" = set; then :
23619   withval=$with_fd_user;
23620        if test "x$withval" != "x" ; then
23621           fd_user=$withval
23622        fi
23623
23624
23625 fi
23626
23627
23628 fd_group=
23629
23630 # Check whether --with-fd_group was given.
23631 if test "${with_fd_group+set}" = set; then :
23632   withval=$with_fd_group;
23633        if test "x$withval" != "x" ; then
23634           fd_group=$withval
23635        fi
23636
23637
23638 fi
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648 SBINPERM=0750
23649
23650 # Check whether --with-sbin-perm was given.
23651 if test "${with_sbin_perm+set}" = set; then :
23652   withval=$with_sbin_perm;
23653        if test "x$withval" != "x" ; then
23654           SBINPERM=$withval
23655        fi
23656
23657
23658 fi
23659
23660
23661
23662
23663 support_batch_insert=yes
23664 # Check whether --enable-batch-insert was given.
23665 if test "${enable_batch_insert+set}" = set; then :
23666   enableval=$enable_batch_insert;
23667        if test x$enableval = xno; then
23668           support_batch_insert=no
23669        fi
23670
23671
23672 fi
23673
23674
23675 if test x$support_batch_insert = xyes; then
23676
23677 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23678
23679 fi
23680
23681
23682 uncomment_dbi="#"
23683
23684
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23686 $as_echo_n "checking for PostgreSQL support... " >&6; }
23687
23688 # Check whether --with-postgresql was given.
23689 if test "${with_postgresql+set}" = set; then :
23690   withval=$with_postgresql;
23691   if test "$withval" != "no"; then
23692       if test "$withval" = "yes"; then
23693           PG_CONFIG=`which pg_config 2>/dev/null`
23694           if test -n "$PG_CONFIG"; then
23695               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23696               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23697               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23698           elif test -f /usr/local/include/libpq-fe.h; then
23699               POSTGRESQL_INCDIR=/usr/local/include
23700               if test -d /usr/local/lib64; then
23701                  POSTGRESQL_LIBDIR=/usr/local/lib64
23702               else
23703                  POSTGRESQL_LIBDIR=/usr/local/lib
23704               fi
23705               POSTGRESQL_BINDIR=/usr/local/bin
23706           elif test -f /usr/include/libpq-fe.h; then
23707               POSTGRESQL_INCDIR=/usr/include
23708               if test -d /usr/lib64; then
23709                  POSTGRESQL_LIBDIR=/usr/lib64
23710               else
23711                  POSTGRESQL_LIBDIR=/usr/lib
23712               fi
23713               POSTGRESQL_BINDIR=/usr/bin
23714           elif test -f /usr/include/pgsql/libpq-fe.h; then
23715               POSTGRESQL_INCDIR=/usr/include/pgsql
23716               if test -d /usr/lib64/pgsql; then
23717                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23718               else
23719                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23720               fi
23721               POSTGRESQL_BINDIR=/usr/bin
23722           elif test -f /usr/include/postgresql/libpq-fe.h; then
23723               POSTGRESQL_INCDIR=/usr/include/postgresql
23724               if test -d /usr/lib64/postgresql; then
23725                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23726               else
23727                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23728               fi
23729               POSTGRESQL_BINDIR=/usr/bin
23730           else
23731               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23732 $as_echo "no" >&6; }
23733               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23734           fi
23735       elif test -f $withval/include/libpq-fe.h; then
23736           POSTGRESQL_INCDIR=$withval/include
23737           POSTGRESQL_LIBDIR=$withval/lib
23738           POSTGRESQL_BINDIR=$withval/bin
23739       elif test -f $withval/include/postgresql/libpq-fe.h; then
23740           POSTGRESQL_INCDIR=$withval/include/postgresql
23741           if test -d $withval/lib64; then
23742               POSTGRESQL_LIBDIR=$withval/lib64
23743           else
23744               POSTGRESQL_LIBDIR=$withval/lib
23745           fi
23746           POSTGRESQL_BINDIR=$withval/bin
23747       else
23748           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23749 $as_echo "no" >&6; }
23750           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23751       fi
23752
23753 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23754
23755      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23756 $as_echo "yes" >&6; }
23757
23758      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23759      if test x$use_libtool != xno; then
23760         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23761      else
23762         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23763      fi
23764      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23765 if test "x$ac_cv_func_crypt" = xyes; then :
23766
23767 else
23768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23769 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23770 if ${ac_cv_lib_crypt_crypt+:} false; then :
23771   $as_echo_n "(cached) " >&6
23772 else
23773   ac_check_lib_save_LIBS=$LIBS
23774 LIBS="-lcrypt  $LIBS"
23775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23776 /* end confdefs.h.  */
23777
23778 /* Override any GCC internal prototype to avoid an error.
23779    Use char because int might match the return type of a GCC
23780    builtin and then its argument prototype would still apply.  */
23781 #ifdef __cplusplus
23782 extern "C"
23783 #endif
23784 char crypt ();
23785 int
23786 main ()
23787 {
23788 return crypt ();
23789   ;
23790   return 0;
23791 }
23792 _ACEOF
23793 if ac_fn_c_try_link "$LINENO"; then :
23794   ac_cv_lib_crypt_crypt=yes
23795 else
23796   ac_cv_lib_crypt_crypt=no
23797 fi
23798 rm -f core conftest.err conftest.$ac_objext \
23799     conftest$ac_exeext conftest.$ac_ext
23800 LIBS=$ac_check_lib_save_LIBS
23801 fi
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23803 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23804 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23805   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23806 fi
23807
23808 fi
23809
23810      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23811      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23812
23813      if test -z "${db_backends}"; then
23814          db_backends="PostgreSQL"
23815      else
23816          db_backends="${db_backends} PostgreSQL"
23817      fi
23818      if test -z "${DB_BACKENDS}"; then
23819          DB_BACKENDS="postgresql"
23820      else
23821          DB_BACKENDS="${DB_BACKENDS} postgresql"
23822      fi
23823
23824                     if test "x$support_batch_insert" = "xyes"; then
23825                   saved_LDFLAGS="${LDFLAGS}"
23826          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23827          saved_LIBS="${LIBS}"
23828          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23829             LIBS="${saved_LIBS} -lcrypt"
23830          fi
23831
23832          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23833 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23834 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23835   $as_echo_n "(cached) " >&6
23836 else
23837   ac_check_lib_save_LIBS=$LIBS
23838 LIBS="-lpq  $LIBS"
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h.  */
23841
23842 /* Override any GCC internal prototype to avoid an error.
23843    Use char because int might match the return type of a GCC
23844    builtin and then its argument prototype would still apply.  */
23845 #ifdef __cplusplus
23846 extern "C"
23847 #endif
23848 char PQisthreadsafe ();
23849 int
23850 main ()
23851 {
23852 return PQisthreadsafe ();
23853   ;
23854   return 0;
23855 }
23856 _ACEOF
23857 if ac_fn_c_try_link "$LINENO"; then :
23858   ac_cv_lib_pq_PQisthreadsafe=yes
23859 else
23860   ac_cv_lib_pq_PQisthreadsafe=no
23861 fi
23862 rm -f core conftest.err conftest.$ac_objext \
23863     conftest$ac_exeext conftest.$ac_ext
23864 LIBS=$ac_check_lib_save_LIBS
23865 fi
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23867 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23868 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23869
23870 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23871
23872 fi
23873
23874          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23875 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23876 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23877   $as_echo_n "(cached) " >&6
23878 else
23879   ac_check_lib_save_LIBS=$LIBS
23880 LIBS="-lpq  $LIBS"
23881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23882 /* end confdefs.h.  */
23883
23884 /* Override any GCC internal prototype to avoid an error.
23885    Use char because int might match the return type of a GCC
23886    builtin and then its argument prototype would still apply.  */
23887 #ifdef __cplusplus
23888 extern "C"
23889 #endif
23890 char PQputCopyData ();
23891 int
23892 main ()
23893 {
23894 return PQputCopyData ();
23895   ;
23896   return 0;
23897 }
23898 _ACEOF
23899 if ac_fn_c_try_link "$LINENO"; then :
23900   ac_cv_lib_pq_PQputCopyData=yes
23901 else
23902   ac_cv_lib_pq_PQputCopyData=no
23903 fi
23904 rm -f core conftest.err conftest.$ac_objext \
23905     conftest$ac_exeext conftest.$ac_ext
23906 LIBS=$ac_check_lib_save_LIBS
23907 fi
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23909 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23910 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23911
23912 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23913
23914 fi
23915
23916          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23917              if test $support_batch_insert = yes ; then
23918
23919 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23920
23921                  if test -z "${batch_insert_db_backends}"; then
23922                      batch_insert_db_backends="PostgreSQL"
23923                  else
23924                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
23925                  fi
23926              fi
23927          fi
23928
23929          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23930          then
23931              echo "WARNING: Your PostgreSQL client library is too old to detect "
23932              echo "if it was compiled with --enable-thread-safety, consider to "
23933              echo "upgrade it in order to avoid problems with Batch insert mode"
23934          fi
23935
23936                   LDFLAGS="${saved_LDFLAGS}"
23937          LIBS="${saved_LIBS}"
23938      fi
23939   else
23940      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23941 $as_echo "no" >&6; }
23942   fi
23943
23944 else
23945
23946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23947 $as_echo "no" >&6; }
23948
23949 fi
23950
23951
23952
23953
23954
23955
23956
23957
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23959 $as_echo_n "checking for MySQL support... " >&6; }
23960
23961 # Check whether --with-mysql was given.
23962 if test "${with_mysql+set}" = set; then :
23963   withval=$with_mysql;
23964   if test "$withval" != "no"; then
23965         if test "$withval" = "yes"; then
23966            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23967                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23968                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23969                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23970                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23971                    else
23972                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23973                    fi
23974                    MYSQL_BINDIR=/usr/local/mysql/bin
23975            elif test -f /usr/include/mysql/mysql.h; then
23976                    MYSQL_INCDIR=/usr/include/mysql
23977                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23978                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23979                            MYSQL_LIBDIR=/usr/lib64/mysql
23980                    elif test -f /usr/lib64/libmysqlclient_r.a \
23981                         -o -f /usr/lib64/libmysqlclient_r.so; then
23982                            MYSQL_LIBDIR=/usr/lib64
23983                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23984                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23985                            MYSQL_LIBDIR=/usr/lib/mysql
23986                    else
23987                            MYSQL_LIBDIR=/usr/lib
23988                    fi
23989                    MYSQL_BINDIR=/usr/bin
23990            elif test -f /usr/include/mysql.h; then
23991                    MYSQL_INCDIR=/usr/include
23992                    if test -f /usr/lib64/libmysqlclient_r.a \
23993                         -o -f /usr/lib64/libmysqlclient_r.so; then
23994                            MYSQL_LIBDIR=/usr/lib64
23995                    else
23996                            MYSQL_LIBDIR=/usr/lib
23997                    fi
23998                    MYSQL_BINDIR=/usr/bin
23999            elif test -f /usr/local/include/mysql/mysql.h; then
24000                    MYSQL_INCDIR=/usr/local/include/mysql
24001                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24002                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24003                            MYSQL_LIBDIR=/usr/local/lib64/mysql
24004                    else
24005                            MYSQL_LIBDIR=/usr/local/lib/mysql
24006                    fi
24007                    MYSQL_BINDIR=/usr/local/bin
24008            elif test -f /usr/local/include/mysql.h; then
24009                    MYSQL_INCDIR=/usr/local/include
24010                    if test -f /usr/local/lib64/libmysqlclient_r.a \
24011                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
24012                            MYSQL_LIBDIR=/usr/local/lib64
24013                    else
24014                            MYSQL_LIBDIR=/usr/local/lib
24015                    fi
24016                    MYSQL_BINDIR=/usr/local/bin
24017            else
24018               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24020               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24021            fi
24022         else
24023            if test -f $withval/include/mysql/mysql.h; then
24024               MYSQL_INCDIR=$withval/include/mysql
24025               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24026                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24027                  MYSQL_LIBDIR=$withval/lib64/mysql
24028               elif test -f $withval/lib64/libmysqlclient_r.a \
24029                    -o -f $withval/lib64/libmysqlclient_r.so; then
24030                  MYSQL_LIBDIR=$withval/lib64
24031               elif test -f $withval/lib/libmysqlclient_r.a \
24032                    -o -f $withval/lib/libmysqlclient_r.so; then
24033                  MYSQL_LIBDIR=$withval/lib
24034               else
24035                  MYSQL_LIBDIR=$withval/lib/mysql
24036               fi
24037               MYSQL_BINDIR=$withval/bin
24038            elif test -f $withval/include/mysql.h; then
24039               MYSQL_INCDIR=$withval/include
24040               if test -f $withval/lib64/libmysqlclient_r.a \
24041                    -o -f $withval/lib64/libmysqlclient_r.so; then
24042                  MYSQL_LIBDIR=$withval/lib64
24043               else
24044                  MYSQL_LIBDIR=$withval/lib
24045               fi
24046               MYSQL_BINDIR=$withval/bin
24047            else
24048               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24049 $as_echo "no" >&6; }
24050               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24051            fi
24052         fi
24053      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24054      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24055           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24056         if test x$use_libtool != xno; then
24057            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24058         else
24059            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24060         fi
24061
24062 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
24063
24064         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24065      fi
24066      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24067
24068
24069 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24070
24071      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24072 $as_echo "yes" >&6; }
24073
24074      if test -z "${db_backends}" ; then
24075          db_backends="MySQL"
24076      else
24077          db_backends="${db_backends} MySQL"
24078      fi
24079      if test -z "${DB_BACKENDS}" ; then
24080          DB_BACKENDS="mysql"
24081      else
24082          DB_BACKENDS="${DB_BACKENDS} mysql"
24083      fi
24084
24085                     if test "x$support_batch_insert" = "xyes"; then
24086                   saved_LDFLAGS="${LDFLAGS}"
24087          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24088          saved_LIBS="${LIBS}"
24089          LIBS="${saved_LIBS} -lz"
24090
24091          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24092 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24093 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24094   $as_echo_n "(cached) " >&6
24095 else
24096   ac_check_lib_save_LIBS=$LIBS
24097 LIBS="-lmysqlclient_r  $LIBS"
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h.  */
24100
24101 /* Override any GCC internal prototype to avoid an error.
24102    Use char because int might match the return type of a GCC
24103    builtin and then its argument prototype would still apply.  */
24104 #ifdef __cplusplus
24105 extern "C"
24106 #endif
24107 char mysql_thread_safe ();
24108 int
24109 main ()
24110 {
24111 return mysql_thread_safe ();
24112   ;
24113   return 0;
24114 }
24115 _ACEOF
24116 if ac_fn_c_try_link "$LINENO"; then :
24117   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24118 else
24119   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24120 fi
24121 rm -f core conftest.err conftest.$ac_objext \
24122     conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24124 fi
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24126 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24127 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24128
24129 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24130
24131 fi
24132
24133          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24134              if test -z "${batch_insert_db_backends}"; then
24135                  batch_insert_db_backends="MySQL"
24136              else
24137                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24138              fi
24139          fi
24140
24141                   LDFLAGS="${saved_LDFLAGS}"
24142          LIBS="${saved_LIBS}"
24143      fi
24144   else
24145      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24146 $as_echo "no" >&6; }
24147   fi
24148
24149 else
24150
24151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24152 $as_echo "no" >&6; }
24153
24154 fi
24155
24156
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24158 $as_echo_n "checking for MySQL embedded support... " >&6; }
24159
24160 # Check whether --with-embedded-mysql was given.
24161 if test "${with_embedded_mysql+set}" = set; then :
24162   withval=$with_embedded_mysql;
24163   if test "$withval" != "no"; then
24164         if test "$withval" = "yes"; then
24165                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24166                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24167                         if test -d /usr/local/mysql/lib64/mysql; then
24168                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24169                         else
24170                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24171                         fi
24172                         MYSQL_BINDIR=/usr/local/mysql/bin
24173                 elif test -f /usr/include/mysql/mysql.h; then
24174                         MYSQL_INCDIR=/usr/include/mysql
24175                         if test -d /usr/lib64/mysql; then
24176                                 MYSQL_LIBDIR=/usr/lib64/mysql
24177                         else
24178                                 MYSQL_LIBDIR=/usr/lib/mysql
24179                         fi
24180                         MYSQL_BINDIR=/usr/bin
24181                 elif test -f /usr/include/mysql.h; then
24182                         MYSQL_INCDIR=/usr/include
24183                         if test -d /usr/lib64; then
24184                                 MYSQL_LIBDIR=/usr/lib64
24185                         else
24186                                 MYSQL_LIBDIR=/usr/lib
24187                         fi
24188                         MYSQL_BINDIR=/usr/bin
24189                 elif test -f /usr/local/include/mysql/mysql.h; then
24190                         MYSQL_INCDIR=/usr/local/include/mysql
24191                         if test -d /usr/local/lib64/mysql; then
24192                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24193                         else
24194                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24195                         fi
24196                         MYSQL_BINDIR=/usr/local/bin
24197                 elif test -f /usr/local/include/mysql.h; then
24198                         MYSQL_INCDIR=/usr/local/include
24199                         if test -d /usr/local/lib64; then
24200                                 MYSQL_LIBDIR=/usr/local/lib64
24201                         else
24202                                 MYSQL_LIBDIR=/usr/local/lib
24203                         fi
24204                         MYSQL_BINDIR=/usr/local/bin
24205                 else
24206                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24207 $as_echo "no" >&6; }
24208                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24209                 fi
24210         else
24211                 if test -f $withval/include/mysql/mysql.h; then
24212                         MYSQL_INCDIR=$withval/include/mysql
24213                         if test -d $withval/lib64/mysql; then
24214                                 MYSQL_LIBDIR=$withval/lib64/mysql
24215                         else
24216                                 MYSQL_LIBDIR=$withval/lib/mysql
24217                         fi
24218                         MYSQL_BINDIR=$withval/bin
24219                 elif test -f $withval/include/mysql.h; then
24220                         MYSQL_INCDIR=$withval/include
24221                         if test -d $withval/lib64; then
24222                                 MYSQL_LIBDIR=$withval/lib64
24223                         else
24224                                 MYSQL_LIBDIR=$withval/lib
24225                         fi
24226                         MYSQL_BINDIR=$withval/bin
24227                 else
24228                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24229 $as_echo "no" >&6; }
24230                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24231                 fi
24232         fi
24233      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24234      if test x$use_libtool != xno; then
24235         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24236      else
24237         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24238      fi
24239      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24240      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24241
24242
24243 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24244
24245
24246 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24247
24248      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24249 $as_echo "yes" >&6; }
24250
24251      if test -z "${db_backends}"; then
24252          db_backends="MySQL"
24253      else
24254          db_backends="${db_backends} MySQL"
24255      fi
24256      if test -z "${DB_BACKENDS}"; then
24257          DB_BACKENDS="mysql"
24258      else
24259          DB_BACKENDS="${DB_BACKENDS} mysql"
24260      fi
24261
24262                     if test "x$support_batch_insert" = "xyes"; then
24263                   saved_LDFLAGS="${LDFLAGS}"
24264          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24265          saved_LIBS="${LIBS}"
24266          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24267
24268          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24269 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24270 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24271   $as_echo_n "(cached) " >&6
24272 else
24273   ac_check_lib_save_LIBS=$LIBS
24274 LIBS="-lmysqlclient_r  $LIBS"
24275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24276 /* end confdefs.h.  */
24277
24278 /* Override any GCC internal prototype to avoid an error.
24279    Use char because int might match the return type of a GCC
24280    builtin and then its argument prototype would still apply.  */
24281 #ifdef __cplusplus
24282 extern "C"
24283 #endif
24284 char mysql_thread_safe ();
24285 int
24286 main ()
24287 {
24288 return mysql_thread_safe ();
24289   ;
24290   return 0;
24291 }
24292 _ACEOF
24293 if ac_fn_c_try_link "$LINENO"; then :
24294   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24295 else
24296   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24297 fi
24298 rm -f core conftest.err conftest.$ac_objext \
24299     conftest$ac_exeext conftest.$ac_ext
24300 LIBS=$ac_check_lib_save_LIBS
24301 fi
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24303 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24304 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24305
24306 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24307
24308 fi
24309
24310          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24311              if test -z "${batch_insert_db_backends}"; then
24312                  batch_insert_db_backends="MySQL"
24313              else
24314                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24315              fi
24316          fi
24317
24318                   LDFLAGS="${saved_LDFLAGS}"
24319          LIBS="${saved_LIBS}"
24320      fi
24321   else
24322      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24323 $as_echo "no" >&6; }
24324   fi
24325
24326 else
24327
24328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24329 $as_echo "no" >&6; }
24330
24331 fi
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24342 $as_echo_n "checking for SQLite3 support... " >&6; }
24343
24344 # Check whether --with-sqlite3 was given.
24345 if test "${with_sqlite3+set}" = set; then :
24346   withval=$with_sqlite3;
24347   if test "$withval" != "no"; then
24348      if test "$withval" = "yes"; then
24349         if test -f /usr/local/include/sqlite3.h; then
24350            SQLITE_INCDIR=/usr/local/include
24351            if test -d /usr/local/lib64; then
24352               SQLITE_LIBDIR=/usr/local/lib64
24353            else
24354               SQLITE_LIBDIR=/usr/local/lib
24355            fi
24356            SQLITE_BINDIR=/usr/local/bin
24357         elif test -f /usr/include/sqlite3.h; then
24358            SQLITE_INCDIR=/usr/include
24359            if test -d /usr/lib64; then
24360               SQLITE_LIBDIR=/usr/lib64
24361            else
24362               SQLITE_LIBDIR=/usr/lib
24363            fi
24364            SQLITE_BINDIR=/usr/bin
24365         elif test -f $prefix/include/sqlite3.h; then
24366            SQLITE_INCDIR=$prefix/include
24367            if test -d $prefix/lib64; then
24368               SQLITE_LIBDIR=$prefix/lib64
24369            else
24370               SQLITE_LIBDIR=$prefix/lib
24371            fi
24372            SQLITE_BINDIR=$prefix/bin
24373         else
24374            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375 $as_echo "no" >&6; }
24376            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24377         fi
24378      else
24379         if test -f $withval/sqlite3.h; then
24380            SQLITE_INCDIR=$withval
24381            SQLITE_LIBDIR=$withval
24382            SQLITE_BINDIR=$withval
24383         elif test -f $withval/include/sqlite3.h; then
24384            SQLITE_INCDIR=$withval/include
24385            if test -d $withval/lib64; then
24386               SQLITE_LIBDIR=$withval/lib64
24387            else
24388               SQLITE_LIBDIR=$withval/lib
24389            fi
24390            SQLITE_BINDIR=$withval/bin
24391         else
24392            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24393 $as_echo "no" >&6; }
24394            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24395         fi
24396      fi
24397      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24398      if test x$use_libtool != xno; then
24399         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24400      else
24401         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24402      fi
24403      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24404      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24405
24406
24407 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24408
24409      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24410 $as_echo "yes" >&6; }
24411
24412      if test -z "${db_backends}"; then
24413          db_backends="SQLite3"
24414      else
24415          db_backends="${db_backends} SQLite3"
24416      fi
24417      if test -z "${DB_BACKENDS}"; then
24418          DB_BACKENDS="sqlite3"
24419      else
24420          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24421      fi
24422
24423                     if test "x$support_batch_insert" = "xyes"; then
24424                   saved_LDFLAGS="${LDFLAGS}"
24425          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24426
24427          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24428 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24429 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24430   $as_echo_n "(cached) " >&6
24431 else
24432   ac_check_lib_save_LIBS=$LIBS
24433 LIBS="-lsqlite3  $LIBS"
24434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435 /* end confdefs.h.  */
24436
24437 /* Override any GCC internal prototype to avoid an error.
24438    Use char because int might match the return type of a GCC
24439    builtin and then its argument prototype would still apply.  */
24440 #ifdef __cplusplus
24441 extern "C"
24442 #endif
24443 char sqlite3_threadsafe ();
24444 int
24445 main ()
24446 {
24447 return sqlite3_threadsafe ();
24448   ;
24449   return 0;
24450 }
24451 _ACEOF
24452 if ac_fn_c_try_link "$LINENO"; then :
24453   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24454 else
24455   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24456 fi
24457 rm -f core conftest.err conftest.$ac_objext \
24458     conftest$ac_exeext conftest.$ac_ext
24459 LIBS=$ac_check_lib_save_LIBS
24460 fi
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24462 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24463 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24464
24465 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24466
24467 fi
24468
24469          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24470              if test -z "${batch_insert_db_backends}"; then
24471                  batch_insert_db_backends="SQLite3"
24472              else
24473                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24474              fi
24475          fi
24476
24477                   LDFLAGS="${saved_LDFLAGS}"
24478      fi
24479   else
24480      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24481 $as_echo "no" >&6; }
24482   fi
24483
24484 else
24485
24486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24487 $as_echo "no" >&6; }
24488
24489 fi
24490
24491
24492
24493
24494
24495
24496
24497 #BA_CHECK_INGRES_DB
24498
24499 #BA_CHECK_DBI_DB
24500
24501 #BA_CHECK_DBI_DRIVER
24502
24503 if test -z "${batch_insert_db_backends}"; then
24504    batch_insert_db_backends="None"
24505 fi
24506
24507 if test "x${db_backends}" = "x" ; then
24508    echo " "
24509    echo " "
24510    echo "You have not specified either --enable-client-only or one of the"
24511    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24512    echo "This is not permitted. Please reconfigure."
24513    echo " "
24514    echo "Aborting the configuration ..."
24515    echo " "
24516    echo " "
24517    exit 1
24518 fi
24519
24520 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24521    1)
24522       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24523       if test x$use_libtool = xno; then
24524          SHARED_CATALOG_TARGETS=""
24525       else
24526          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24527       fi
24528       ;;
24529    *)
24530                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24531
24532                         if test x$use_libtool = xno; then
24533          echo " "
24534          echo " "
24535          echo "You have specified two or more of the"
24536          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24537          echo "This is not permitted when not using libtool Please reconfigure."
24538          echo " "
24539          echo "Aborting the configuration ..."
24540          echo " "
24541          echo " "
24542          exit 1
24543       fi
24544
24545       SHARED_CATALOG_TARGETS=""
24546       for db_type in ${DB_BACKENDS}
24547       do
24548          if test -z "${SHARED_CATALOG_TARGETS}"; then
24549             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24550          else
24551             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24552          fi
24553       done
24554       ;;
24555 esac
24556
24557 if test x$use_libtool = xyes; then
24558    DB_LIBS=""
24559 fi
24560
24561
24562
24563
24564
24565
24566
24567 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24568
24569
24570 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24571    if test -z "$CCOPTS"; then
24572       CCOPTS='-g -O2 -Wall'
24573    fi
24574    CFLAGS="$CCOPTS"
24575 fi
24576
24577
24578
24579 largefile_support="no"
24580
24581    # Check whether --enable-largefile was given.
24582 if test "${enable_largefile+set}" = set; then :
24583   enableval=$enable_largefile;
24584 fi
24585
24586    if test "$enable_largefile" != no; then
24587      if test -n "$ac_tool_prefix"; then
24588   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24589 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24591 $as_echo_n "checking for $ac_word... " >&6; }
24592 if ${ac_cv_prog_GETCONF+:} false; then :
24593   $as_echo_n "(cached) " >&6
24594 else
24595   if test -n "$GETCONF"; then
24596   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24597 else
24598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24599 for as_dir in $PATH
24600 do
24601   IFS=$as_save_IFS
24602   test -z "$as_dir" && as_dir=.
24603     for ac_exec_ext in '' $ac_executable_extensions; do
24604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24605     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24607     break 2
24608   fi
24609 done
24610   done
24611 IFS=$as_save_IFS
24612
24613 fi
24614 fi
24615 GETCONF=$ac_cv_prog_GETCONF
24616 if test -n "$GETCONF"; then
24617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24618 $as_echo "$GETCONF" >&6; }
24619 else
24620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24621 $as_echo "no" >&6; }
24622 fi
24623
24624
24625 fi
24626 if test -z "$ac_cv_prog_GETCONF"; then
24627   ac_ct_GETCONF=$GETCONF
24628   # Extract the first word of "getconf", so it can be a program name with args.
24629 set dummy getconf; ac_word=$2
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24631 $as_echo_n "checking for $ac_word... " >&6; }
24632 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24633   $as_echo_n "(cached) " >&6
24634 else
24635   if test -n "$ac_ct_GETCONF"; then
24636   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24637 else
24638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24639 for as_dir in $PATH
24640 do
24641   IFS=$as_save_IFS
24642   test -z "$as_dir" && as_dir=.
24643     for ac_exec_ext in '' $ac_executable_extensions; do
24644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24645     ac_cv_prog_ac_ct_GETCONF="getconf"
24646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24647     break 2
24648   fi
24649 done
24650   done
24651 IFS=$as_save_IFS
24652
24653 fi
24654 fi
24655 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24656 if test -n "$ac_ct_GETCONF"; then
24657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24658 $as_echo "$ac_ct_GETCONF" >&6; }
24659 else
24660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24661 $as_echo "no" >&6; }
24662 fi
24663
24664   if test "x$ac_ct_GETCONF" = x; then
24665     GETCONF=""
24666   else
24667     case $cross_compiling:$ac_tool_warned in
24668 yes:)
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24671 ac_tool_warned=yes ;;
24672 esac
24673     GETCONF=$ac_ct_GETCONF
24674   fi
24675 else
24676   GETCONF="$ac_cv_prog_GETCONF"
24677 fi
24678
24679      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24680 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24681 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24682   $as_echo_n "(cached) " >&6
24683 else
24684   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24685         ac_cv_sys_largefile_CFLAGS=no
24686         case "$host_os" in
24687            # IRIX 6.2 and later require cc -n32.
24688            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24689              if test "$GCC" != yes; then
24690                ac_cv_sys_largefile_CFLAGS=-n32
24691              fi
24692              ac_save_CC="$CC"
24693              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24694              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24695 /* end confdefs.h.  */
24696
24697 int
24698 main ()
24699 {
24700
24701   ;
24702   return 0;
24703 }
24704 _ACEOF
24705 if ac_fn_c_try_link "$LINENO"; then :
24706
24707 else
24708   ac_cv_sys_largefile_CFLAGS=no
24709 fi
24710 rm -f core conftest.err conftest.$ac_objext \
24711     conftest$ac_exeext conftest.$ac_ext
24712              CC="$ac_save_CC"
24713            esac
24714       }
24715 fi
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24717 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24718      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24719 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24720 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24721   $as_echo_n "(cached) " >&6
24722 else
24723   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24724         ac_cv_sys_largefile_LDFLAGS=no
24725
24726       }
24727 fi
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24729 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24730      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24731 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24732 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24733   $as_echo_n "(cached) " >&6
24734 else
24735   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24736         ac_cv_sys_largefile_LIBS=no
24737
24738       }
24739 fi
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24741 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24742
24743      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24744        case "$ac_flag" in
24745        no) ;;
24746        -D_FILE_OFFSET_BITS=*) ;;
24747        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24748        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24749        -D?* | -I?*)
24750          case "$ac_flag" in
24751    no) ;;
24752    ?*)
24753      case "$CPPFLAGS" in
24754      '') CPPFLAGS="$ac_flag" ;;
24755      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24756      esac ;;
24757    esac ;;
24758        *)
24759          case "$ac_flag" in
24760    no) ;;
24761    ?*)
24762      case "$CFLAGS" in
24763      '') CFLAGS="$ac_flag" ;;
24764      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24765      esac ;;
24766    esac ;;
24767        esac
24768      done
24769      case "$ac_cv_sys_largefile_LDFLAGS" in
24770    no) ;;
24771    ?*)
24772      case "$LDFLAGS" in
24773      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24774      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24775      esac ;;
24776    esac
24777      case "$ac_cv_sys_largefile_LIBS" in
24778    no) ;;
24779    ?*)
24780      case "$LIBS" in
24781      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24782      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24783      esac ;;
24784    esac
24785      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24786 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24787 if ${ac_cv_sys_file_offset_bits+:} false; then :
24788   $as_echo_n "(cached) " >&6
24789 else
24790   ac_cv_sys_file_offset_bits=no
24791       ac_cv_sys_file_offset_bits=64
24792       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24793         case "$ac_flag" in
24794         -D_FILE_OFFSET_BITS)
24795           ac_cv_sys_file_offset_bits=1 ;;
24796         -D_FILE_OFFSET_BITS=*)
24797           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24798         esac
24799       done
24800
24801 fi
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24803 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24804    if test "$ac_cv_sys_file_offset_bits" != no; then
24805
24806 cat >>confdefs.h <<_ACEOF
24807 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24808 _ACEOF
24809
24810    fi
24811      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24812 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24813 if ${ac_cv_sys_largefile_source+:} false; then :
24814   $as_echo_n "(cached) " >&6
24815 else
24816   ac_cv_sys_largefile_source=no
24817       ac_cv_sys_largefile_source=1
24818       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24819         case "$ac_flag" in
24820         -D_LARGEFILE_SOURCE)
24821           ac_cv_sys_largefile_source=1 ;;
24822         -D_LARGEFILE_SOURCE=*)
24823           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24824         esac
24825       done
24826
24827 fi
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24829 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24830    if test "$ac_cv_sys_largefile_source" != no; then
24831
24832 cat >>confdefs.h <<_ACEOF
24833 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24834 _ACEOF
24835
24836    fi
24837      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24838 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24839 if ${ac_cv_sys_large_files+:} false; then :
24840   $as_echo_n "(cached) " >&6
24841 else
24842   ac_cv_sys_large_files=no
24843       ac_cv_sys_large_files=1
24844       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24845         case "$ac_flag" in
24846         -D_LARGE_FILES)
24847           ac_cv_sys_large_files=1 ;;
24848         -D_LARGE_FILES=*)
24849           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24850         esac
24851       done
24852
24853 fi
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24855 $as_echo "$ac_cv_sys_large_files" >&6; }
24856    if test "$ac_cv_sys_large_files" != no; then
24857
24858 cat >>confdefs.h <<_ACEOF
24859 #define _LARGE_FILES $ac_cv_sys_large_files
24860 _ACEOF
24861
24862    fi
24863    fi
24864
24865
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24867 $as_echo_n "checking for X... " >&6; }
24868
24869
24870 # Check whether --with-x was given.
24871 if test "${with_x+set}" = set; then :
24872   withval=$with_x;
24873 fi
24874
24875 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24876 if test "x$with_x" = xno; then
24877   # The user explicitly disabled X.
24878   have_x=disabled
24879 else
24880   case $x_includes,$x_libraries in #(
24881     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24882     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24883   $as_echo_n "(cached) " >&6
24884 else
24885   # One or both of the vars are not set, and there is no cached value.
24886 ac_x_includes=no ac_x_libraries=no
24887 rm -f -r conftest.dir
24888 if mkdir conftest.dir; then
24889   cd conftest.dir
24890   cat >Imakefile <<'_ACEOF'
24891 incroot:
24892         @echo incroot='${INCROOT}'
24893 usrlibdir:
24894         @echo usrlibdir='${USRLIBDIR}'
24895 libdir:
24896         @echo libdir='${LIBDIR}'
24897 _ACEOF
24898   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24899     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24900     for ac_var in incroot usrlibdir libdir; do
24901       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24902     done
24903     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24904     for ac_extension in a so sl dylib la dll; do
24905       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24906          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24907         ac_im_usrlibdir=$ac_im_libdir; break
24908       fi
24909     done
24910     # Screen out bogus values from the imake configuration.  They are
24911     # bogus both because they are the default anyway, and because
24912     # using them would break gcc on systems where it needs fixed includes.
24913     case $ac_im_incroot in
24914         /usr/include) ac_x_includes= ;;
24915         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24916     esac
24917     case $ac_im_usrlibdir in
24918         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24919         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24920     esac
24921   fi
24922   cd ..
24923   rm -f -r conftest.dir
24924 fi
24925
24926 # Standard set of common directories for X headers.
24927 # Check X11 before X11Rn because it is often a symlink to the current release.
24928 ac_x_header_dirs='
24929 /usr/X11/include
24930 /usr/X11R7/include
24931 /usr/X11R6/include
24932 /usr/X11R5/include
24933 /usr/X11R4/include
24934
24935 /usr/include/X11
24936 /usr/include/X11R7
24937 /usr/include/X11R6
24938 /usr/include/X11R5
24939 /usr/include/X11R4
24940
24941 /usr/local/X11/include
24942 /usr/local/X11R7/include
24943 /usr/local/X11R6/include
24944 /usr/local/X11R5/include
24945 /usr/local/X11R4/include
24946
24947 /usr/local/include/X11
24948 /usr/local/include/X11R7
24949 /usr/local/include/X11R6
24950 /usr/local/include/X11R5
24951 /usr/local/include/X11R4
24952
24953 /usr/X386/include
24954 /usr/x386/include
24955 /usr/XFree86/include/X11
24956
24957 /usr/include
24958 /usr/local/include
24959 /usr/unsupported/include
24960 /usr/athena/include
24961 /usr/local/x11r5/include
24962 /usr/lpp/Xamples/include
24963
24964 /usr/openwin/include
24965 /usr/openwin/share/include'
24966
24967 if test "$ac_x_includes" = no; then
24968   # Guess where to find include files, by looking for Xlib.h.
24969   # First, try using that file with no special directory specified.
24970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971 /* end confdefs.h.  */
24972 #include <X11/Xlib.h>
24973 _ACEOF
24974 if ac_fn_c_try_cpp "$LINENO"; then :
24975   # We can compile using X headers with no special include directory.
24976 ac_x_includes=
24977 else
24978   for ac_dir in $ac_x_header_dirs; do
24979   if test -r "$ac_dir/X11/Xlib.h"; then
24980     ac_x_includes=$ac_dir
24981     break
24982   fi
24983 done
24984 fi
24985 rm -f conftest.err conftest.i conftest.$ac_ext
24986 fi # $ac_x_includes = no
24987
24988 if test "$ac_x_libraries" = no; then
24989   # Check for the libraries.
24990   # See if we find them without any special options.
24991   # Don't add to $LIBS permanently.
24992   ac_save_LIBS=$LIBS
24993   LIBS="-lX11 $LIBS"
24994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h.  */
24996 #include <X11/Xlib.h>
24997 int
24998 main ()
24999 {
25000 XrmInitialize ()
25001   ;
25002   return 0;
25003 }
25004 _ACEOF
25005 if ac_fn_c_try_link "$LINENO"; then :
25006   LIBS=$ac_save_LIBS
25007 # We can link X programs with no special library path.
25008 ac_x_libraries=
25009 else
25010   LIBS=$ac_save_LIBS
25011 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25012 do
25013   # Don't even attempt the hair of trying to link an X program!
25014   for ac_extension in a so sl dylib la dll; do
25015     if test -r "$ac_dir/libX11.$ac_extension"; then
25016       ac_x_libraries=$ac_dir
25017       break 2
25018     fi
25019   done
25020 done
25021 fi
25022 rm -f core conftest.err conftest.$ac_objext \
25023     conftest$ac_exeext conftest.$ac_ext
25024 fi # $ac_x_libraries = no
25025
25026 case $ac_x_includes,$ac_x_libraries in #(
25027   no,* | *,no | *\'*)
25028     # Didn't find X, or a directory has "'" in its name.
25029     ac_cv_have_x="have_x=no";; #(
25030   *)
25031     # Record where we found X for the cache.
25032     ac_cv_have_x="have_x=yes\
25033         ac_x_includes='$ac_x_includes'\
25034         ac_x_libraries='$ac_x_libraries'"
25035 esac
25036 fi
25037 ;; #(
25038     *) have_x=yes;;
25039   esac
25040   eval "$ac_cv_have_x"
25041 fi # $with_x != no
25042
25043 if test "$have_x" != yes; then
25044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25045 $as_echo "$have_x" >&6; }
25046   no_x=yes
25047 else
25048   # If each of the values was on the command line, it overrides each guess.
25049   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25050   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25051   # Update the cache value to reflect the command line values.
25052   ac_cv_have_x="have_x=yes\
25053         ac_x_includes='$x_includes'\
25054         ac_x_libraries='$x_libraries'"
25055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25056 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25057 fi
25058
25059 if test "$no_x" = yes; then
25060   # Not all programs may use this symbol, but it does not hurt to define it.
25061
25062 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25063
25064   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25065 else
25066   if test -n "$x_includes"; then
25067     X_CFLAGS="$X_CFLAGS -I$x_includes"
25068   fi
25069
25070   # It would also be nice to do this for all -L options, not just this one.
25071   if test -n "$x_libraries"; then
25072     X_LIBS="$X_LIBS -L$x_libraries"
25073     # For Solaris; some versions of Sun CC require a space after -R and
25074     # others require no space.  Words are not sufficient . . . .
25075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25076 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25077     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25078     ac_xsave_c_werror_flag=$ac_c_werror_flag
25079     ac_c_werror_flag=yes
25080     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25081 /* end confdefs.h.  */
25082
25083 int
25084 main ()
25085 {
25086
25087   ;
25088   return 0;
25089 }
25090 _ACEOF
25091 if ac_fn_c_try_link "$LINENO"; then :
25092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25093 $as_echo "no" >&6; }
25094        X_LIBS="$X_LIBS -R$x_libraries"
25095 else
25096   LIBS="$ac_xsave_LIBS -R $x_libraries"
25097        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h.  */
25099
25100 int
25101 main ()
25102 {
25103
25104   ;
25105   return 0;
25106 }
25107 _ACEOF
25108 if ac_fn_c_try_link "$LINENO"; then :
25109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25110 $as_echo "yes" >&6; }
25111           X_LIBS="$X_LIBS -R $x_libraries"
25112 else
25113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25114 $as_echo "neither works" >&6; }
25115 fi
25116 rm -f core conftest.err conftest.$ac_objext \
25117     conftest$ac_exeext conftest.$ac_ext
25118 fi
25119 rm -f core conftest.err conftest.$ac_objext \
25120     conftest$ac_exeext conftest.$ac_ext
25121     ac_c_werror_flag=$ac_xsave_c_werror_flag
25122     LIBS=$ac_xsave_LIBS
25123   fi
25124
25125   # Check for system-dependent libraries X programs must link with.
25126   # Do this before checking for the system-independent R6 libraries
25127   # (-lICE), since we may need -lsocket or whatever for X linking.
25128
25129   if test "$ISC" = yes; then
25130     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25131   else
25132     # Martyn Johnson says this is needed for Ultrix, if the X
25133     # libraries were built with DECnet support.  And Karl Berry says
25134     # the Alpha needs dnet_stub (dnet does not exist).
25135     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25137 /* end confdefs.h.  */
25138
25139 /* Override any GCC internal prototype to avoid an error.
25140    Use char because int might match the return type of a GCC
25141    builtin and then its argument prototype would still apply.  */
25142 #ifdef __cplusplus
25143 extern "C"
25144 #endif
25145 char XOpenDisplay ();
25146 int
25147 main ()
25148 {
25149 return XOpenDisplay ();
25150   ;
25151   return 0;
25152 }
25153 _ACEOF
25154 if ac_fn_c_try_link "$LINENO"; then :
25155
25156 else
25157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25158 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25159 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25160   $as_echo_n "(cached) " >&6
25161 else
25162   ac_check_lib_save_LIBS=$LIBS
25163 LIBS="-ldnet  $LIBS"
25164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25165 /* end confdefs.h.  */
25166
25167 /* Override any GCC internal prototype to avoid an error.
25168    Use char because int might match the return type of a GCC
25169    builtin and then its argument prototype would still apply.  */
25170 #ifdef __cplusplus
25171 extern "C"
25172 #endif
25173 char dnet_ntoa ();
25174 int
25175 main ()
25176 {
25177 return dnet_ntoa ();
25178   ;
25179   return 0;
25180 }
25181 _ACEOF
25182 if ac_fn_c_try_link "$LINENO"; then :
25183   ac_cv_lib_dnet_dnet_ntoa=yes
25184 else
25185   ac_cv_lib_dnet_dnet_ntoa=no
25186 fi
25187 rm -f core conftest.err conftest.$ac_objext \
25188     conftest$ac_exeext conftest.$ac_ext
25189 LIBS=$ac_check_lib_save_LIBS
25190 fi
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25192 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25193 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25194   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25195 fi
25196
25197     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25198       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25199 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25200 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25201   $as_echo_n "(cached) " >&6
25202 else
25203   ac_check_lib_save_LIBS=$LIBS
25204 LIBS="-ldnet_stub  $LIBS"
25205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h.  */
25207
25208 /* Override any GCC internal prototype to avoid an error.
25209    Use char because int might match the return type of a GCC
25210    builtin and then its argument prototype would still apply.  */
25211 #ifdef __cplusplus
25212 extern "C"
25213 #endif
25214 char dnet_ntoa ();
25215 int
25216 main ()
25217 {
25218 return dnet_ntoa ();
25219   ;
25220   return 0;
25221 }
25222 _ACEOF
25223 if ac_fn_c_try_link "$LINENO"; then :
25224   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25225 else
25226   ac_cv_lib_dnet_stub_dnet_ntoa=no
25227 fi
25228 rm -f core conftest.err conftest.$ac_objext \
25229     conftest$ac_exeext conftest.$ac_ext
25230 LIBS=$ac_check_lib_save_LIBS
25231 fi
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25233 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25234 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25235   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25236 fi
25237
25238     fi
25239 fi
25240 rm -f core conftest.err conftest.$ac_objext \
25241     conftest$ac_exeext conftest.$ac_ext
25242     LIBS="$ac_xsave_LIBS"
25243
25244     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25245     # to get the SysV transport functions.
25246     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25247     # needs -lnsl.
25248     # The nsl library prevents programs from opening the X display
25249     # on Irix 5.2, according to T.E. Dickey.
25250     # The functions gethostbyname, getservbyname, and inet_addr are
25251     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25252     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25253 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25254
25255 fi
25256
25257     if test $ac_cv_func_gethostbyname = no; then
25258       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25259 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25260 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25261   $as_echo_n "(cached) " >&6
25262 else
25263   ac_check_lib_save_LIBS=$LIBS
25264 LIBS="-lnsl  $LIBS"
25265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25266 /* end confdefs.h.  */
25267
25268 /* Override any GCC internal prototype to avoid an error.
25269    Use char because int might match the return type of a GCC
25270    builtin and then its argument prototype would still apply.  */
25271 #ifdef __cplusplus
25272 extern "C"
25273 #endif
25274 char gethostbyname ();
25275 int
25276 main ()
25277 {
25278 return gethostbyname ();
25279   ;
25280   return 0;
25281 }
25282 _ACEOF
25283 if ac_fn_c_try_link "$LINENO"; then :
25284   ac_cv_lib_nsl_gethostbyname=yes
25285 else
25286   ac_cv_lib_nsl_gethostbyname=no
25287 fi
25288 rm -f core conftest.err conftest.$ac_objext \
25289     conftest$ac_exeext conftest.$ac_ext
25290 LIBS=$ac_check_lib_save_LIBS
25291 fi
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25293 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25294 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25295   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25296 fi
25297
25298       if test $ac_cv_lib_nsl_gethostbyname = no; then
25299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25300 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25301 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25302   $as_echo_n "(cached) " >&6
25303 else
25304   ac_check_lib_save_LIBS=$LIBS
25305 LIBS="-lbsd  $LIBS"
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h.  */
25308
25309 /* Override any GCC internal prototype to avoid an error.
25310    Use char because int might match the return type of a GCC
25311    builtin and then its argument prototype would still apply.  */
25312 #ifdef __cplusplus
25313 extern "C"
25314 #endif
25315 char gethostbyname ();
25316 int
25317 main ()
25318 {
25319 return gethostbyname ();
25320   ;
25321   return 0;
25322 }
25323 _ACEOF
25324 if ac_fn_c_try_link "$LINENO"; then :
25325   ac_cv_lib_bsd_gethostbyname=yes
25326 else
25327   ac_cv_lib_bsd_gethostbyname=no
25328 fi
25329 rm -f core conftest.err conftest.$ac_objext \
25330     conftest$ac_exeext conftest.$ac_ext
25331 LIBS=$ac_check_lib_save_LIBS
25332 fi
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25334 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25335 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25336   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25337 fi
25338
25339       fi
25340     fi
25341
25342     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25343     # socket/setsockopt and other routines are undefined under SCO ODT
25344     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25345     # on later versions), says Simon Leinen: it contains gethostby*
25346     # variants that don't use the name server (or something).  -lsocket
25347     # must be given before -lnsl if both are needed.  We assume that
25348     # if connect needs -lnsl, so does gethostbyname.
25349     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25350 if test "x$ac_cv_func_connect" = xyes; then :
25351
25352 fi
25353
25354     if test $ac_cv_func_connect = no; then
25355       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25356 $as_echo_n "checking for connect in -lsocket... " >&6; }
25357 if ${ac_cv_lib_socket_connect+:} false; then :
25358   $as_echo_n "(cached) " >&6
25359 else
25360   ac_check_lib_save_LIBS=$LIBS
25361 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25363 /* end confdefs.h.  */
25364
25365 /* Override any GCC internal prototype to avoid an error.
25366    Use char because int might match the return type of a GCC
25367    builtin and then its argument prototype would still apply.  */
25368 #ifdef __cplusplus
25369 extern "C"
25370 #endif
25371 char connect ();
25372 int
25373 main ()
25374 {
25375 return connect ();
25376   ;
25377   return 0;
25378 }
25379 _ACEOF
25380 if ac_fn_c_try_link "$LINENO"; then :
25381   ac_cv_lib_socket_connect=yes
25382 else
25383   ac_cv_lib_socket_connect=no
25384 fi
25385 rm -f core conftest.err conftest.$ac_objext \
25386     conftest$ac_exeext conftest.$ac_ext
25387 LIBS=$ac_check_lib_save_LIBS
25388 fi
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25390 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25391 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25392   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25393 fi
25394
25395     fi
25396
25397     # Guillermo Gomez says -lposix is necessary on A/UX.
25398     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25399 if test "x$ac_cv_func_remove" = xyes; then :
25400
25401 fi
25402
25403     if test $ac_cv_func_remove = no; then
25404       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25405 $as_echo_n "checking for remove in -lposix... " >&6; }
25406 if ${ac_cv_lib_posix_remove+:} false; then :
25407   $as_echo_n "(cached) " >&6
25408 else
25409   ac_check_lib_save_LIBS=$LIBS
25410 LIBS="-lposix  $LIBS"
25411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25412 /* end confdefs.h.  */
25413
25414 /* Override any GCC internal prototype to avoid an error.
25415    Use char because int might match the return type of a GCC
25416    builtin and then its argument prototype would still apply.  */
25417 #ifdef __cplusplus
25418 extern "C"
25419 #endif
25420 char remove ();
25421 int
25422 main ()
25423 {
25424 return remove ();
25425   ;
25426   return 0;
25427 }
25428 _ACEOF
25429 if ac_fn_c_try_link "$LINENO"; then :
25430   ac_cv_lib_posix_remove=yes
25431 else
25432   ac_cv_lib_posix_remove=no
25433 fi
25434 rm -f core conftest.err conftest.$ac_objext \
25435     conftest$ac_exeext conftest.$ac_ext
25436 LIBS=$ac_check_lib_save_LIBS
25437 fi
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25439 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25440 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25441   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25442 fi
25443
25444     fi
25445
25446     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25447     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25448 if test "x$ac_cv_func_shmat" = xyes; then :
25449
25450 fi
25451
25452     if test $ac_cv_func_shmat = no; then
25453       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25454 $as_echo_n "checking for shmat in -lipc... " >&6; }
25455 if ${ac_cv_lib_ipc_shmat+:} false; then :
25456   $as_echo_n "(cached) " >&6
25457 else
25458   ac_check_lib_save_LIBS=$LIBS
25459 LIBS="-lipc  $LIBS"
25460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25461 /* end confdefs.h.  */
25462
25463 /* Override any GCC internal prototype to avoid an error.
25464    Use char because int might match the return type of a GCC
25465    builtin and then its argument prototype would still apply.  */
25466 #ifdef __cplusplus
25467 extern "C"
25468 #endif
25469 char shmat ();
25470 int
25471 main ()
25472 {
25473 return shmat ();
25474   ;
25475   return 0;
25476 }
25477 _ACEOF
25478 if ac_fn_c_try_link "$LINENO"; then :
25479   ac_cv_lib_ipc_shmat=yes
25480 else
25481   ac_cv_lib_ipc_shmat=no
25482 fi
25483 rm -f core conftest.err conftest.$ac_objext \
25484     conftest$ac_exeext conftest.$ac_ext
25485 LIBS=$ac_check_lib_save_LIBS
25486 fi
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25488 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25489 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25490   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25491 fi
25492
25493     fi
25494   fi
25495
25496   # Check for libraries that X11R6 Xt/Xaw programs need.
25497   ac_save_LDFLAGS=$LDFLAGS
25498   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25499   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25500   # check for ICE first), but we must link in the order -lSM -lICE or
25501   # we get undefined symbols.  So assume we have SM if we have ICE.
25502   # These have to be linked with before -lX11, unlike the other
25503   # libraries we check for below, so use a different variable.
25504   # John Interrante, Karl Berry
25505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25506 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25507 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25508   $as_echo_n "(cached) " >&6
25509 else
25510   ac_check_lib_save_LIBS=$LIBS
25511 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25513 /* end confdefs.h.  */
25514
25515 /* Override any GCC internal prototype to avoid an error.
25516    Use char because int might match the return type of a GCC
25517    builtin and then its argument prototype would still apply.  */
25518 #ifdef __cplusplus
25519 extern "C"
25520 #endif
25521 char IceConnectionNumber ();
25522 int
25523 main ()
25524 {
25525 return IceConnectionNumber ();
25526   ;
25527   return 0;
25528 }
25529 _ACEOF
25530 if ac_fn_c_try_link "$LINENO"; then :
25531   ac_cv_lib_ICE_IceConnectionNumber=yes
25532 else
25533   ac_cv_lib_ICE_IceConnectionNumber=no
25534 fi
25535 rm -f core conftest.err conftest.$ac_objext \
25536     conftest$ac_exeext conftest.$ac_ext
25537 LIBS=$ac_check_lib_save_LIBS
25538 fi
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25540 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25541 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25542   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25543 fi
25544
25545   LDFLAGS=$ac_save_LDFLAGS
25546
25547 fi
25548
25549
25550 for ac_header in \
25551    assert.h \
25552    fcntl.h \
25553    grp.h \
25554    pwd.h \
25555    libc.h \
25556    limits.h \
25557    stdarg.h \
25558    stdlib.h \
25559    stdint.h \
25560    string.h \
25561    strings.h \
25562    termios.h \
25563    termcap.h \
25564    term.h \
25565    unistd.h \
25566    sys/bitypes.h \
25567    sys/byteorder.h \
25568    sys/ioctl.h \
25569    sys/select.h \
25570    sys/socket.h \
25571    sys/sockio.h \
25572    sys/stat.h \
25573    sys/time.h \
25574    sys/types.h \
25575    arpa/nameser.h \
25576    mtio.h \
25577    sys/mtio.h \
25578    sys/tape.h \
25579    regex.h \
25580
25581 do :
25582   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25583 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25585   cat >>confdefs.h <<_ACEOF
25586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25587 _ACEOF
25588
25589 fi
25590
25591 done
25592
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25594 $as_echo_n "checking for ANSI C header files... " >&6; }
25595 if ${ac_cv_header_stdc+:} false; then :
25596   $as_echo_n "(cached) " >&6
25597 else
25598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h.  */
25600 #include <stdlib.h>
25601 #include <stdarg.h>
25602 #include <string.h>
25603 #include <float.h>
25604
25605 int
25606 main ()
25607 {
25608
25609   ;
25610   return 0;
25611 }
25612 _ACEOF
25613 if ac_fn_c_try_compile "$LINENO"; then :
25614   ac_cv_header_stdc=yes
25615 else
25616   ac_cv_header_stdc=no
25617 fi
25618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25619
25620 if test $ac_cv_header_stdc = yes; then
25621   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h.  */
25624 #include <string.h>
25625
25626 _ACEOF
25627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25628   $EGREP "memchr" >/dev/null 2>&1; then :
25629
25630 else
25631   ac_cv_header_stdc=no
25632 fi
25633 rm -f conftest*
25634
25635 fi
25636
25637 if test $ac_cv_header_stdc = yes; then
25638   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25640 /* end confdefs.h.  */
25641 #include <stdlib.h>
25642
25643 _ACEOF
25644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25645   $EGREP "free" >/dev/null 2>&1; then :
25646
25647 else
25648   ac_cv_header_stdc=no
25649 fi
25650 rm -f conftest*
25651
25652 fi
25653
25654 if test $ac_cv_header_stdc = yes; then
25655   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25656   if test "$cross_compiling" = yes; then :
25657   :
25658 else
25659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25660 /* end confdefs.h.  */
25661 #include <ctype.h>
25662 #include <stdlib.h>
25663 #if ((' ' & 0x0FF) == 0x020)
25664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25666 #else
25667 # define ISLOWER(c) \
25668                    (('a' <= (c) && (c) <= 'i') \
25669                      || ('j' <= (c) && (c) <= 'r') \
25670                      || ('s' <= (c) && (c) <= 'z'))
25671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25672 #endif
25673
25674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25675 int
25676 main ()
25677 {
25678   int i;
25679   for (i = 0; i < 256; i++)
25680     if (XOR (islower (i), ISLOWER (i))
25681         || toupper (i) != TOUPPER (i))
25682       return 2;
25683   return 0;
25684 }
25685 _ACEOF
25686 if ac_fn_c_try_run "$LINENO"; then :
25687
25688 else
25689   ac_cv_header_stdc=no
25690 fi
25691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25692   conftest.$ac_objext conftest.beam conftest.$ac_ext
25693 fi
25694
25695 fi
25696 fi
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25698 $as_echo "$ac_cv_header_stdc" >&6; }
25699 if test $ac_cv_header_stdc = yes; then
25700
25701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25702
25703 fi
25704
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25706 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25707 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25708   $as_echo_n "(cached) " >&6
25709 else
25710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25711 /* end confdefs.h.  */
25712 #include <sys/types.h>
25713 int
25714 main ()
25715 {
25716 return makedev(0, 0);
25717   ;
25718   return 0;
25719 }
25720 _ACEOF
25721 if ac_fn_c_try_link "$LINENO"; then :
25722   ac_cv_header_sys_types_h_makedev=yes
25723 else
25724   ac_cv_header_sys_types_h_makedev=no
25725 fi
25726 rm -f core conftest.err conftest.$ac_objext \
25727     conftest$ac_exeext conftest.$ac_ext
25728
25729 fi
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25731 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25732
25733 if test $ac_cv_header_sys_types_h_makedev = no; then
25734 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25735 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25736
25737 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25738
25739 fi
25740
25741
25742
25743   if test $ac_cv_header_sys_mkdev_h = no; then
25744     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25745 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25746
25747 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25748
25749 fi
25750
25751
25752   fi
25753 fi
25754
25755 ac_header_dirent=no
25756 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25757   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25759 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25760 if eval \${$as_ac_Header+:} false; then :
25761   $as_echo_n "(cached) " >&6
25762 else
25763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25764 /* end confdefs.h.  */
25765 #include <sys/types.h>
25766 #include <$ac_hdr>
25767
25768 int
25769 main ()
25770 {
25771 if ((DIR *) 0)
25772 return 0;
25773   ;
25774   return 0;
25775 }
25776 _ACEOF
25777 if ac_fn_c_try_compile "$LINENO"; then :
25778   eval "$as_ac_Header=yes"
25779 else
25780   eval "$as_ac_Header=no"
25781 fi
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783 fi
25784 eval ac_res=\$$as_ac_Header
25785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25786 $as_echo "$ac_res" >&6; }
25787 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25788   cat >>confdefs.h <<_ACEOF
25789 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25790 _ACEOF
25791
25792 ac_header_dirent=$ac_hdr; break
25793 fi
25794
25795 done
25796 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25797 if test $ac_header_dirent = dirent.h; then
25798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25799 $as_echo_n "checking for library containing opendir... " >&6; }
25800 if ${ac_cv_search_opendir+:} false; then :
25801   $as_echo_n "(cached) " >&6
25802 else
25803   ac_func_search_save_LIBS=$LIBS
25804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25805 /* end confdefs.h.  */
25806
25807 /* Override any GCC internal prototype to avoid an error.
25808    Use char because int might match the return type of a GCC
25809    builtin and then its argument prototype would still apply.  */
25810 #ifdef __cplusplus
25811 extern "C"
25812 #endif
25813 char opendir ();
25814 int
25815 main ()
25816 {
25817 return opendir ();
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 for ac_lib in '' dir; do
25823   if test -z "$ac_lib"; then
25824     ac_res="none required"
25825   else
25826     ac_res=-l$ac_lib
25827     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25828   fi
25829   if ac_fn_c_try_link "$LINENO"; then :
25830   ac_cv_search_opendir=$ac_res
25831 fi
25832 rm -f core conftest.err conftest.$ac_objext \
25833     conftest$ac_exeext
25834   if ${ac_cv_search_opendir+:} false; then :
25835   break
25836 fi
25837 done
25838 if ${ac_cv_search_opendir+:} false; then :
25839
25840 else
25841   ac_cv_search_opendir=no
25842 fi
25843 rm conftest.$ac_ext
25844 LIBS=$ac_func_search_save_LIBS
25845 fi
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25847 $as_echo "$ac_cv_search_opendir" >&6; }
25848 ac_res=$ac_cv_search_opendir
25849 if test "$ac_res" != no; then :
25850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25851
25852 fi
25853
25854 else
25855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25856 $as_echo_n "checking for library containing opendir... " >&6; }
25857 if ${ac_cv_search_opendir+:} false; then :
25858   $as_echo_n "(cached) " >&6
25859 else
25860   ac_func_search_save_LIBS=$LIBS
25861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25862 /* end confdefs.h.  */
25863
25864 /* Override any GCC internal prototype to avoid an error.
25865    Use char because int might match the return type of a GCC
25866    builtin and then its argument prototype would still apply.  */
25867 #ifdef __cplusplus
25868 extern "C"
25869 #endif
25870 char opendir ();
25871 int
25872 main ()
25873 {
25874 return opendir ();
25875   ;
25876   return 0;
25877 }
25878 _ACEOF
25879 for ac_lib in '' x; do
25880   if test -z "$ac_lib"; then
25881     ac_res="none required"
25882   else
25883     ac_res=-l$ac_lib
25884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25885   fi
25886   if ac_fn_c_try_link "$LINENO"; then :
25887   ac_cv_search_opendir=$ac_res
25888 fi
25889 rm -f core conftest.err conftest.$ac_objext \
25890     conftest$ac_exeext
25891   if ${ac_cv_search_opendir+:} false; then :
25892   break
25893 fi
25894 done
25895 if ${ac_cv_search_opendir+:} false; then :
25896
25897 else
25898   ac_cv_search_opendir=no
25899 fi
25900 rm conftest.$ac_ext
25901 LIBS=$ac_func_search_save_LIBS
25902 fi
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25904 $as_echo "$ac_cv_search_opendir" >&6; }
25905 ac_res=$ac_cv_search_opendir
25906 if test "$ac_res" != no; then :
25907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25908
25909 fi
25910
25911 fi
25912
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25914 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25915 if ${ac_cv_header_stat_broken+:} false; then :
25916   $as_echo_n "(cached) " >&6
25917 else
25918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25919 /* end confdefs.h.  */
25920 #include <sys/types.h>
25921 #include <sys/stat.h>
25922
25923 #if defined S_ISBLK && defined S_IFDIR
25924 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25925 #endif
25926
25927 #if defined S_ISBLK && defined S_IFCHR
25928 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25929 #endif
25930
25931 #if defined S_ISLNK && defined S_IFREG
25932 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25933 #endif
25934
25935 #if defined S_ISSOCK && defined S_IFREG
25936 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25937 #endif
25938
25939 _ACEOF
25940 if ac_fn_c_try_compile "$LINENO"; then :
25941   ac_cv_header_stat_broken=no
25942 else
25943   ac_cv_header_stat_broken=yes
25944 fi
25945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25946 fi
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25948 $as_echo "$ac_cv_header_stat_broken" >&6; }
25949 if test $ac_cv_header_stat_broken = yes; then
25950
25951 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25952
25953 fi
25954
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25956 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25957 if ${ac_cv_header_sys_wait_h+:} false; then :
25958   $as_echo_n "(cached) " >&6
25959 else
25960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25961 /* end confdefs.h.  */
25962 #include <sys/types.h>
25963 #include <sys/wait.h>
25964 #ifndef WEXITSTATUS
25965 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25966 #endif
25967 #ifndef WIFEXITED
25968 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25969 #endif
25970
25971 int
25972 main ()
25973 {
25974   int s;
25975   wait (&s);
25976   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25977   ;
25978   return 0;
25979 }
25980 _ACEOF
25981 if ac_fn_c_try_compile "$LINENO"; then :
25982   ac_cv_header_sys_wait_h=yes
25983 else
25984   ac_cv_header_sys_wait_h=no
25985 fi
25986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25987 fi
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25989 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25990 if test $ac_cv_header_sys_wait_h = yes; then
25991
25992 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25993
25994 fi
25995
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25997 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25998 if ${ac_cv_header_time+:} false; then :
25999   $as_echo_n "(cached) " >&6
26000 else
26001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26002 /* end confdefs.h.  */
26003 #include <sys/types.h>
26004 #include <sys/time.h>
26005 #include <time.h>
26006
26007 int
26008 main ()
26009 {
26010 if ((struct tm *) 0)
26011 return 0;
26012   ;
26013   return 0;
26014 }
26015 _ACEOF
26016 if ac_fn_c_try_compile "$LINENO"; then :
26017   ac_cv_header_time=yes
26018 else
26019   ac_cv_header_time=no
26020 fi
26021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26022 fi
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26024 $as_echo "$ac_cv_header_time" >&6; }
26025 if test $ac_cv_header_time = yes; then
26026
26027 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26028
26029 fi
26030
26031 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26032 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26033
26034 cat >>confdefs.h <<_ACEOF
26035 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26036 _ACEOF
26037
26038
26039 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26040
26041 fi
26042
26043
26044 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26045 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26046
26047 cat >>confdefs.h <<_ACEOF
26048 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26049 _ACEOF
26050
26051
26052 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26053
26054 else
26055   case " $LIBOBJS " in
26056   *" fileblocks.$ac_objext "* ) ;;
26057   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26058  ;;
26059 esac
26060
26061 fi
26062
26063
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26065 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26066 if ${ac_cv_struct_tm+:} false; then :
26067   $as_echo_n "(cached) " >&6
26068 else
26069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070 /* end confdefs.h.  */
26071 #include <sys/types.h>
26072 #include <time.h>
26073
26074 int
26075 main ()
26076 {
26077 struct tm tm;
26078                                      int *p = &tm.tm_sec;
26079                                      return !p;
26080   ;
26081   return 0;
26082 }
26083 _ACEOF
26084 if ac_fn_c_try_compile "$LINENO"; then :
26085   ac_cv_struct_tm=time.h
26086 else
26087   ac_cv_struct_tm=sys/time.h
26088 fi
26089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26090 fi
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26092 $as_echo "$ac_cv_struct_tm" >&6; }
26093 if test $ac_cv_struct_tm = sys/time.h; then
26094
26095 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26096
26097 fi
26098
26099 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26100 #include <$ac_cv_struct_tm>
26101
26102 "
26103 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26104
26105 cat >>confdefs.h <<_ACEOF
26106 #define HAVE_STRUCT_TM_TM_ZONE 1
26107 _ACEOF
26108
26109
26110 fi
26111
26112 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26113
26114 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26115
26116 else
26117   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26118 "
26119 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26120   ac_have_decl=1
26121 else
26122   ac_have_decl=0
26123 fi
26124
26125 cat >>confdefs.h <<_ACEOF
26126 #define HAVE_DECL_TZNAME $ac_have_decl
26127 _ACEOF
26128
26129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26130 $as_echo_n "checking for tzname... " >&6; }
26131 if ${ac_cv_var_tzname+:} false; then :
26132   $as_echo_n "(cached) " >&6
26133 else
26134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26135 /* end confdefs.h.  */
26136 #include <time.h>
26137 #if !HAVE_DECL_TZNAME
26138 extern char *tzname[];
26139 #endif
26140
26141 int
26142 main ()
26143 {
26144 return tzname[0][0];
26145   ;
26146   return 0;
26147 }
26148 _ACEOF
26149 if ac_fn_c_try_link "$LINENO"; then :
26150   ac_cv_var_tzname=yes
26151 else
26152   ac_cv_var_tzname=no
26153 fi
26154 rm -f core conftest.err conftest.$ac_objext \
26155     conftest$ac_exeext conftest.$ac_ext
26156 fi
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26158 $as_echo "$ac_cv_var_tzname" >&6; }
26159   if test $ac_cv_var_tzname = yes; then
26160
26161 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26162
26163   fi
26164 fi
26165
26166
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26168 $as_echo_n "checking for utime.h... " >&6; }
26169 if ${ba_cv_header_utime_h+:} false; then :
26170   $as_echo_n "(cached) " >&6
26171 else
26172
26173        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26174 /* end confdefs.h.  */
26175
26176               #include <sys/types.h>
26177               #include <utime.h>
26178
26179 int
26180 main ()
26181 {
26182
26183               struct utimbuf foo
26184
26185   ;
26186   return 0;
26187 }
26188 _ACEOF
26189 if ac_fn_c_try_compile "$LINENO"; then :
26190
26191               ba_cv_header_utime_h=yes
26192
26193 else
26194
26195               ba_cv_header_utime_h=no
26196
26197
26198 fi
26199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200
26201
26202 fi
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26204 $as_echo "$ba_cv_header_utime_h" >&6; }
26205 test $ba_cv_header_utime_h = yes &&
26206 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26207
26208
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26210 $as_echo_n "checking for socklen_t... " >&6; }
26211 if ${ba_cv_header_socklen_t+:} false; then :
26212   $as_echo_n "(cached) " >&6
26213 else
26214
26215        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26216 /* end confdefs.h.  */
26217
26218               #include <sys/types.h>
26219               #include <sys/socket.h>
26220
26221 int
26222 main ()
26223 {
26224
26225               socklen_t x
26226
26227   ;
26228   return 0;
26229 }
26230 _ACEOF
26231 if ac_fn_c_try_compile "$LINENO"; then :
26232
26233              ba_cv_header_socklen_t=yes
26234
26235 else
26236
26237              ba_cv_header_socklen_t=no
26238
26239
26240 fi
26241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242
26243
26244 fi
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26246 $as_echo "$ba_cv_header_socklen_t" >&6; }
26247 test $ba_cv_header_socklen_t = yes &&
26248 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26249
26250
26251 ac_ext=cpp
26252 ac_cpp='$CXXCPP $CPPFLAGS'
26253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26256
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26258 $as_echo_n "checking for ioctl_req_t... " >&6; }
26259 if ${ba_cv_header_ioctl_req_t+:} false; then :
26260   $as_echo_n "(cached) " >&6
26261 else
26262
26263        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h.  */
26265
26266               #include <unistd.h>
26267               #include <sys/types.h>
26268               #include <sys/ioctl.h>
26269
26270 int
26271 main ()
26272 {
26273
26274               int (*d_ioctl)(int fd, unsigned long int request, ...);
26275               d_ioctl = ::ioctl;
26276
26277   ;
26278   return 0;
26279 }
26280 _ACEOF
26281 if ac_fn_cxx_try_compile "$LINENO"; then :
26282
26283              ba_cv_header_ioctl_req_t=yes
26284
26285 else
26286
26287              ba_cv_header_ioctl_req_t=no
26288
26289
26290 fi
26291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292
26293
26294 fi
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26296 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26297 test $ba_cv_header_ioctl_req_t = yes &&
26298 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26299
26300
26301 ac_ext=c
26302 ac_cpp='$CPP $CPPFLAGS'
26303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26306
26307
26308 ac_ext=cpp
26309 ac_cpp='$CXXCPP $CPPFLAGS'
26310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26313
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26315 $as_echo_n "checking for typeof... " >&6; }
26316 if ${ba_cv_have_typeof+:} false; then :
26317   $as_echo_n "(cached) " >&6
26318 else
26319
26320        if test "$cross_compiling" = yes; then :
26321
26322               ba_cv_have_typeof=no
26323
26324
26325 else
26326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26327 /* end confdefs.h.  */
26328
26329               main(){char *a = 0; a = (typeof a)a;}
26330
26331 _ACEOF
26332 if ac_fn_cxx_try_run "$LINENO"; then :
26333
26334               ba_cv_have_typeof=yes
26335
26336 else
26337
26338               ba_cv_have_typeof=no
26339
26340 fi
26341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26342   conftest.$ac_objext conftest.beam conftest.$ac_ext
26343 fi
26344
26345
26346
26347 fi
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26349 $as_echo "$ba_cv_have_typeof" >&6; }
26350 test $ba_cv_have_typeof = yes &&
26351 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26352
26353 ac_ext=c
26354 ac_cpp='$CPP $CPPFLAGS'
26355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26358
26359
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26361 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26362 if ${ac_cv_c_const+:} false; then :
26363   $as_echo_n "(cached) " >&6
26364 else
26365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26366 /* end confdefs.h.  */
26367
26368 int
26369 main ()
26370 {
26371 /* FIXME: Include the comments suggested by Paul. */
26372 #ifndef __cplusplus
26373   /* Ultrix mips cc rejects this.  */
26374   typedef int charset[2];
26375   const charset cs;
26376   /* SunOS 4.1.1 cc rejects this.  */
26377   char const *const *pcpcc;
26378   char **ppc;
26379   /* NEC SVR4.0.2 mips cc rejects this.  */
26380   struct point {int x, y;};
26381   static struct point const zero = {0,0};
26382   /* AIX XL C 1.02.0.0 rejects this.
26383      It does not let you subtract one const X* pointer from another in
26384      an arm of an if-expression whose if-part is not a constant
26385      expression */
26386   const char *g = "string";
26387   pcpcc = &g + (g ? g-g : 0);
26388   /* HPUX 7.0 cc rejects these. */
26389   ++pcpcc;
26390   ppc = (char**) pcpcc;
26391   pcpcc = (char const *const *) ppc;
26392   { /* SCO 3.2v4 cc rejects this.  */
26393     char *t;
26394     char const *s = 0 ? (char *) 0 : (char const *) 0;
26395
26396     *t++ = 0;
26397     if (s) return 0;
26398   }
26399   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26400     int x[] = {25, 17};
26401     const int *foo = &x[0];
26402     ++foo;
26403   }
26404   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26405     typedef const int *iptr;
26406     iptr p = 0;
26407     ++p;
26408   }
26409   { /* AIX XL C 1.02.0.0 rejects this saying
26410        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26411     struct s { int j; const int *ap[3]; };
26412     struct s *b; b->j = 5;
26413   }
26414   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26415     const int foo = 10;
26416     if (!foo) return 0;
26417   }
26418   return !cs[0] && !zero.x;
26419 #endif
26420
26421   ;
26422   return 0;
26423 }
26424 _ACEOF
26425 if ac_fn_c_try_compile "$LINENO"; then :
26426   ac_cv_c_const=yes
26427 else
26428   ac_cv_c_const=no
26429 fi
26430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26431 fi
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26433 $as_echo "$ac_cv_c_const" >&6; }
26434 if test $ac_cv_c_const = no; then
26435
26436 $as_echo "#define const /**/" >>confdefs.h
26437
26438 fi
26439
26440
26441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26442 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26443 if ${ac_cv_c_bigendian+:} false; then :
26444   $as_echo_n "(cached) " >&6
26445 else
26446   ac_cv_c_bigendian=unknown
26447     # See if we're dealing with a universal compiler.
26448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26449 /* end confdefs.h.  */
26450 #ifndef __APPLE_CC__
26451                not a universal capable compiler
26452              #endif
26453              typedef int dummy;
26454
26455 _ACEOF
26456 if ac_fn_c_try_compile "$LINENO"; then :
26457
26458         # Check for potential -arch flags.  It is not universal unless
26459         # there are at least two -arch flags with different values.
26460         ac_arch=
26461         ac_prev=
26462         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26463          if test -n "$ac_prev"; then
26464            case $ac_word in
26465              i?86 | x86_64 | ppc | ppc64)
26466                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26467                  ac_arch=$ac_word
26468                else
26469                  ac_cv_c_bigendian=universal
26470                  break
26471                fi
26472                ;;
26473            esac
26474            ac_prev=
26475          elif test "x$ac_word" = "x-arch"; then
26476            ac_prev=arch
26477          fi
26478        done
26479 fi
26480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481     if test $ac_cv_c_bigendian = unknown; then
26482       # See if sys/param.h defines the BYTE_ORDER macro.
26483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26484 /* end confdefs.h.  */
26485 #include <sys/types.h>
26486              #include <sys/param.h>
26487
26488 int
26489 main ()
26490 {
26491 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26492                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26493                      && LITTLE_ENDIAN)
26494               bogus endian macros
26495              #endif
26496
26497   ;
26498   return 0;
26499 }
26500 _ACEOF
26501 if ac_fn_c_try_compile "$LINENO"; then :
26502   # It does; now see whether it defined to BIG_ENDIAN or not.
26503          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26504 /* end confdefs.h.  */
26505 #include <sys/types.h>
26506                 #include <sys/param.h>
26507
26508 int
26509 main ()
26510 {
26511 #if BYTE_ORDER != BIG_ENDIAN
26512                  not big endian
26513                 #endif
26514
26515   ;
26516   return 0;
26517 }
26518 _ACEOF
26519 if ac_fn_c_try_compile "$LINENO"; then :
26520   ac_cv_c_bigendian=yes
26521 else
26522   ac_cv_c_bigendian=no
26523 fi
26524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26525 fi
26526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26527     fi
26528     if test $ac_cv_c_bigendian = unknown; then
26529       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26530       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26531 /* end confdefs.h.  */
26532 #include <limits.h>
26533
26534 int
26535 main ()
26536 {
26537 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26538               bogus endian macros
26539              #endif
26540
26541   ;
26542   return 0;
26543 }
26544 _ACEOF
26545 if ac_fn_c_try_compile "$LINENO"; then :
26546   # It does; now see whether it defined to _BIG_ENDIAN or not.
26547          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26548 /* end confdefs.h.  */
26549 #include <limits.h>
26550
26551 int
26552 main ()
26553 {
26554 #ifndef _BIG_ENDIAN
26555                  not big endian
26556                 #endif
26557
26558   ;
26559   return 0;
26560 }
26561 _ACEOF
26562 if ac_fn_c_try_compile "$LINENO"; then :
26563   ac_cv_c_bigendian=yes
26564 else
26565   ac_cv_c_bigendian=no
26566 fi
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 fi
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26570     fi
26571     if test $ac_cv_c_bigendian = unknown; then
26572       # Compile a test program.
26573       if test "$cross_compiling" = yes; then :
26574   # Try to guess by grepping values from an object file.
26575          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26576 /* end confdefs.h.  */
26577 short int ascii_mm[] =
26578                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26579                 short int ascii_ii[] =
26580                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26581                 int use_ascii (int i) {
26582                   return ascii_mm[i] + ascii_ii[i];
26583                 }
26584                 short int ebcdic_ii[] =
26585                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26586                 short int ebcdic_mm[] =
26587                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26588                 int use_ebcdic (int i) {
26589                   return ebcdic_mm[i] + ebcdic_ii[i];
26590                 }
26591                 extern int foo;
26592
26593 int
26594 main ()
26595 {
26596 return use_ascii (foo) == use_ebcdic (foo);
26597   ;
26598   return 0;
26599 }
26600 _ACEOF
26601 if ac_fn_c_try_compile "$LINENO"; then :
26602   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26603               ac_cv_c_bigendian=yes
26604             fi
26605             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26606               if test "$ac_cv_c_bigendian" = unknown; then
26607                 ac_cv_c_bigendian=no
26608               else
26609                 # finding both strings is unlikely to happen, but who knows?
26610                 ac_cv_c_bigendian=unknown
26611               fi
26612             fi
26613 fi
26614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26615 else
26616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26617 /* end confdefs.h.  */
26618 $ac_includes_default
26619 int
26620 main ()
26621 {
26622
26623              /* Are we little or big endian?  From Harbison&Steele.  */
26624              union
26625              {
26626                long int l;
26627                char c[sizeof (long int)];
26628              } u;
26629              u.l = 1;
26630              return u.c[sizeof (long int) - 1] == 1;
26631
26632   ;
26633   return 0;
26634 }
26635 _ACEOF
26636 if ac_fn_c_try_run "$LINENO"; then :
26637   ac_cv_c_bigendian=no
26638 else
26639   ac_cv_c_bigendian=yes
26640 fi
26641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26642   conftest.$ac_objext conftest.beam conftest.$ac_ext
26643 fi
26644
26645     fi
26646 fi
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26648 $as_echo "$ac_cv_c_bigendian" >&6; }
26649  case $ac_cv_c_bigendian in #(
26650    yes)
26651
26652 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26653 ;; #(
26654    no)
26655
26656 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26657  ;; #(
26658    universal)
26659
26660 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26661
26662      ;; #(
26663    *)
26664      as_fn_error $? "unknown endianness
26665  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26666  esac
26667
26668
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26670 $as_echo_n "checking how to get filesystem type... " >&6; }
26671 fstype=no
26672 # The order of these tests is important.
26673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26674 /* end confdefs.h.  */
26675
26676        #include <sys/statvfs.h>
26677        #include <sys/fstyp.h>
26678
26679 _ACEOF
26680 if ac_fn_c_try_cpp "$LINENO"; then :
26681   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26682  fstype=SVR4
26683
26684 fi
26685 rm -f conftest.err conftest.i conftest.$ac_ext
26686 if test $fstype = no; then
26687    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26688 /* end confdefs.h.  */
26689
26690           #include <sys/statfs.h>
26691           #include <sys/fstyp.h>
26692
26693 _ACEOF
26694 if ac_fn_c_try_cpp "$LINENO"; then :
26695   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26696  fstype=SVR3
26697
26698 fi
26699 rm -f conftest.err conftest.i conftest.$ac_ext
26700 fi
26701 if test $fstype = no; then
26702    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26703 /* end confdefs.h.  */
26704
26705           #include <sys/statfs.h>
26706           #include <sys/vmount.h>
26707
26708 _ACEOF
26709 if ac_fn_c_try_cpp "$LINENO"; then :
26710   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26711  fstype=AIX
26712
26713 fi
26714 rm -f conftest.err conftest.i conftest.$ac_ext
26715 fi
26716 if test $fstype = no; then
26717    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26718 /* end confdefs.h.  */
26719
26720           #include <mntent.h>
26721
26722 _ACEOF
26723 if ac_fn_c_try_cpp "$LINENO"; then :
26724   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26725  fstype=4.3BSD
26726
26727 fi
26728 rm -f conftest.err conftest.i conftest.$ac_ext
26729 fi
26730 if test $fstype = no; then
26731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26732 /* end confdefs.h.  */
26733 #include <sys/mount.h>
26734
26735 _ACEOF
26736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26737   $EGREP "f_type;" >/dev/null 2>&1; then :
26738   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26739  fstype=4.4BSD/OSF1
26740 fi
26741 rm -f conftest*
26742
26743 fi
26744 if test $fstype = no; then
26745    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26746 /* end confdefs.h.  */
26747
26748           #include <sys/mount.h>
26749           #include <sys/fs_types.h>
26750
26751 _ACEOF
26752 if ac_fn_c_try_cpp "$LINENO"; then :
26753   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26754  fstype=Ultrix
26755
26756 fi
26757 rm -f conftest.err conftest.i conftest.$ac_ext
26758 fi
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26760 $as_echo "$fstype" >&6; }
26761
26762 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26763 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26764
26765 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26766
26767 fi
26768
26769
26770
26771 ac_ext=cpp
26772 ac_cpp='$CXXCPP $CPPFLAGS'
26773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26776
26777 for ac_func in backtrace
26778 do :
26779   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26780 if test "x$ac_cv_func_backtrace" = xyes; then :
26781   cat >>confdefs.h <<_ACEOF
26782 #define HAVE_BACKTRACE 1
26783 _ACEOF
26784
26785 fi
26786 done
26787
26788 ac_ext=c
26789 ac_cpp='$CPP $CPPFLAGS'
26790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26793
26794
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26796 $as_echo_n "checking return type of signal handlers... " >&6; }
26797 if ${ac_cv_type_signal+:} false; then :
26798   $as_echo_n "(cached) " >&6
26799 else
26800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h.  */
26802 #include <sys/types.h>
26803 #include <signal.h>
26804
26805 int
26806 main ()
26807 {
26808 return *(signal (0, 0)) (0) == 1;
26809   ;
26810   return 0;
26811 }
26812 _ACEOF
26813 if ac_fn_c_try_compile "$LINENO"; then :
26814   ac_cv_type_signal=int
26815 else
26816   ac_cv_type_signal=void
26817 fi
26818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26819 fi
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26821 $as_echo "$ac_cv_type_signal" >&6; }
26822
26823 cat >>confdefs.h <<_ACEOF
26824 #define RETSIGTYPE $ac_cv_type_signal
26825 _ACEOF
26826
26827
26828
26829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26830 $as_echo_n "checking for type of signal functions... " >&6; }
26831   if ${bash_cv_signal_vintage+:} false; then :
26832   $as_echo_n "(cached) " >&6
26833 else
26834
26835     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836 /* end confdefs.h.  */
26837 #include <signal.h>
26838 int
26839 main ()
26840 {
26841
26842       sigset_t ss;
26843       struct sigaction sa;
26844       sigemptyset(&ss); sigsuspend(&ss);
26845       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26846       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26847
26848   ;
26849   return 0;
26850 }
26851 _ACEOF
26852 if ac_fn_c_try_link "$LINENO"; then :
26853   bash_cv_signal_vintage="posix"
26854 else
26855
26856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26857 /* end confdefs.h.  */
26858 #include <signal.h>
26859 int
26860 main ()
26861 {
26862
26863           int mask = sigmask(SIGINT);
26864           sigsetmask(mask); sigblock(mask); sigpause(mask);
26865
26866   ;
26867   return 0;
26868 }
26869 _ACEOF
26870 if ac_fn_c_try_link "$LINENO"; then :
26871   bash_cv_signal_vintage="4.2bsd"
26872 else
26873
26874         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26875 /* end confdefs.h.  */
26876
26877           #include <signal.h>
26878           RETSIGTYPE foo() { }
26879 int
26880 main ()
26881 {
26882
26883                   int mask = sigmask(SIGINT);
26884                   sigset(SIGINT, foo); sigrelse(SIGINT);
26885                   sighold(SIGINT); sigpause(SIGINT);
26886
26887   ;
26888   return 0;
26889 }
26890 _ACEOF
26891 if ac_fn_c_try_link "$LINENO"; then :
26892   bash_cv_signal_vintage="svr3"
26893 else
26894   bash_cv_signal_vintage="v7"
26895
26896 fi
26897 rm -f core conftest.err conftest.$ac_objext \
26898     conftest$ac_exeext conftest.$ac_ext
26899
26900 fi
26901 rm -f core conftest.err conftest.$ac_objext \
26902     conftest$ac_exeext conftest.$ac_ext
26903
26904 fi
26905 rm -f core conftest.err conftest.$ac_objext \
26906     conftest$ac_exeext conftest.$ac_ext
26907
26908 fi
26909
26910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26911 $as_echo "$bash_cv_signal_vintage" >&6; }
26912   if test "$bash_cv_signal_vintage" = "posix"; then
26913     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26914
26915   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26916     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26917
26918   elif test "$bash_cv_signal_vintage" = "svr3"; then
26919     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26920
26921   fi
26922
26923 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26924 if test "x$ac_cv_type_mode_t" = xyes; then :
26925
26926 else
26927
26928 cat >>confdefs.h <<_ACEOF
26929 #define mode_t int
26930 _ACEOF
26931
26932 fi
26933
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26935 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26936 if ${ac_cv_type_uid_t+:} false; then :
26937   $as_echo_n "(cached) " >&6
26938 else
26939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26940 /* end confdefs.h.  */
26941 #include <sys/types.h>
26942
26943 _ACEOF
26944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26945   $EGREP "uid_t" >/dev/null 2>&1; then :
26946   ac_cv_type_uid_t=yes
26947 else
26948   ac_cv_type_uid_t=no
26949 fi
26950 rm -f conftest*
26951
26952 fi
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26954 $as_echo "$ac_cv_type_uid_t" >&6; }
26955 if test $ac_cv_type_uid_t = no; then
26956
26957 $as_echo "#define uid_t int" >>confdefs.h
26958
26959
26960 $as_echo "#define gid_t int" >>confdefs.h
26961
26962 fi
26963
26964 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26965 if test "x$ac_cv_type_size_t" = xyes; then :
26966
26967 else
26968
26969 cat >>confdefs.h <<_ACEOF
26970 #define size_t unsigned int
26971 _ACEOF
26972
26973 fi
26974
26975 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26976 if test "x$ac_cv_type_pid_t" = xyes; then :
26977
26978 else
26979
26980 cat >>confdefs.h <<_ACEOF
26981 #define pid_t int
26982 _ACEOF
26983
26984 fi
26985
26986 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26987 if test "x$ac_cv_type_off_t" = xyes; then :
26988
26989 else
26990
26991 cat >>confdefs.h <<_ACEOF
26992 #define off_t long int
26993 _ACEOF
26994
26995 fi
26996
26997
26998   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26999 if test "x$ac_cv_type_intptr_t" = xyes; then :
27000
27001 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27002
27003 else
27004   for ac_type in 'int' 'long int' 'long long int'; do
27005        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27006 /* end confdefs.h.  */
27007 $ac_includes_default
27008 int
27009 main ()
27010 {
27011 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27012 test_array [0] = 0
27013
27014   ;
27015   return 0;
27016 }
27017 _ACEOF
27018 if ac_fn_c_try_compile "$LINENO"; then :
27019
27020 cat >>confdefs.h <<_ACEOF
27021 #define intptr_t $ac_type
27022 _ACEOF
27023
27024           ac_type=
27025 fi
27026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27027        test -z "$ac_type" && break
27028      done
27029 fi
27030
27031
27032
27033   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27034 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27035
27036 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27037
27038 else
27039   for ac_type in 'unsigned int' 'unsigned long int' \
27040         'unsigned long long int'; do
27041        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27042 /* end confdefs.h.  */
27043 $ac_includes_default
27044 int
27045 main ()
27046 {
27047 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27048 test_array [0] = 0
27049
27050   ;
27051   return 0;
27052 }
27053 _ACEOF
27054 if ac_fn_c_try_compile "$LINENO"; then :
27055
27056 cat >>confdefs.h <<_ACEOF
27057 #define uintptr_t $ac_type
27058 _ACEOF
27059
27060           ac_type=
27061 fi
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063        test -z "$ac_type" && break
27064      done
27065 fi
27066
27067
27068 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27069 if test "x$ac_cv_type_ino_t" = xyes; then :
27070
27071 else
27072
27073 cat >>confdefs.h <<_ACEOF
27074 #define ino_t unsigned long
27075 _ACEOF
27076
27077 fi
27078
27079 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27080 if test "x$ac_cv_type_dev_t" = xyes; then :
27081
27082 else
27083
27084 cat >>confdefs.h <<_ACEOF
27085 #define dev_t unsigned long
27086 _ACEOF
27087
27088 fi
27089
27090 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27091 if test "x$ac_cv_type_daddr_t" = xyes; then :
27092
27093 else
27094
27095 cat >>confdefs.h <<_ACEOF
27096 #define daddr_t long
27097 _ACEOF
27098
27099 fi
27100
27101 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27102 if test "x$ac_cv_type_major_t" = xyes; then :
27103
27104 else
27105
27106 cat >>confdefs.h <<_ACEOF
27107 #define major_t int
27108 _ACEOF
27109
27110 fi
27111
27112 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27113 if test "x$ac_cv_type_minor_t" = xyes; then :
27114
27115 else
27116
27117 cat >>confdefs.h <<_ACEOF
27118 #define minor_t int
27119 _ACEOF
27120
27121 fi
27122
27123 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27124 if test "x$ac_cv_type_ssize_t" = xyes; then :
27125
27126 else
27127
27128 cat >>confdefs.h <<_ACEOF
27129 #define ssize_t int
27130 _ACEOF
27131
27132 fi
27133
27134 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27135 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27136
27137 cat >>confdefs.h <<_ACEOF
27138 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27139 _ACEOF
27140
27141
27142 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27143
27144 else
27145   case " $LIBOBJS " in
27146   *" fileblocks.$ac_objext "* ) ;;
27147   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27148  ;;
27149 esac
27150
27151 fi
27152
27153
27154 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27155 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27156
27157 cat >>confdefs.h <<_ACEOF
27158 #define HAVE_STRUCT_STAT_ST_RDEV 1
27159 _ACEOF
27160
27161
27162 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27163
27164 fi
27165
27166
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27168 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27169 if ${ac_cv_struct_tm+:} false; then :
27170   $as_echo_n "(cached) " >&6
27171 else
27172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173 /* end confdefs.h.  */
27174 #include <sys/types.h>
27175 #include <time.h>
27176
27177 int
27178 main ()
27179 {
27180 struct tm tm;
27181                                      int *p = &tm.tm_sec;
27182                                      return !p;
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 if ac_fn_c_try_compile "$LINENO"; then :
27188   ac_cv_struct_tm=time.h
27189 else
27190   ac_cv_struct_tm=sys/time.h
27191 fi
27192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27193 fi
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27195 $as_echo "$ac_cv_struct_tm" >&6; }
27196 if test $ac_cv_struct_tm = sys/time.h; then
27197
27198 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27199
27200 fi
27201
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27203 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27204 if ${ac_cv_c_const+:} false; then :
27205   $as_echo_n "(cached) " >&6
27206 else
27207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h.  */
27209
27210 int
27211 main ()
27212 {
27213 /* FIXME: Include the comments suggested by Paul. */
27214 #ifndef __cplusplus
27215   /* Ultrix mips cc rejects this.  */
27216   typedef int charset[2];
27217   const charset cs;
27218   /* SunOS 4.1.1 cc rejects this.  */
27219   char const *const *pcpcc;
27220   char **ppc;
27221   /* NEC SVR4.0.2 mips cc rejects this.  */
27222   struct point {int x, y;};
27223   static struct point const zero = {0,0};
27224   /* AIX XL C 1.02.0.0 rejects this.
27225      It does not let you subtract one const X* pointer from another in
27226      an arm of an if-expression whose if-part is not a constant
27227      expression */
27228   const char *g = "string";
27229   pcpcc = &g + (g ? g-g : 0);
27230   /* HPUX 7.0 cc rejects these. */
27231   ++pcpcc;
27232   ppc = (char**) pcpcc;
27233   pcpcc = (char const *const *) ppc;
27234   { /* SCO 3.2v4 cc rejects this.  */
27235     char *t;
27236     char const *s = 0 ? (char *) 0 : (char const *) 0;
27237
27238     *t++ = 0;
27239     if (s) return 0;
27240   }
27241   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27242     int x[] = {25, 17};
27243     const int *foo = &x[0];
27244     ++foo;
27245   }
27246   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27247     typedef const int *iptr;
27248     iptr p = 0;
27249     ++p;
27250   }
27251   { /* AIX XL C 1.02.0.0 rejects this saying
27252        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27253     struct s { int j; const int *ap[3]; };
27254     struct s *b; b->j = 5;
27255   }
27256   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27257     const int foo = 10;
27258     if (!foo) return 0;
27259   }
27260   return !cs[0] && !zero.x;
27261 #endif
27262
27263   ;
27264   return 0;
27265 }
27266 _ACEOF
27267 if ac_fn_c_try_compile "$LINENO"; then :
27268   ac_cv_c_const=yes
27269 else
27270   ac_cv_c_const=no
27271 fi
27272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27273 fi
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27275 $as_echo "$ac_cv_c_const" >&6; }
27276 if test $ac_cv_c_const = no; then
27277
27278 $as_echo "#define const /**/" >>confdefs.h
27279
27280 fi
27281
27282
27283 # The cast to long int works around a bug in the HP C Compiler
27284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27286 # This bug is HP SR number 8606223364.
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27288 $as_echo_n "checking size of char... " >&6; }
27289 if ${ac_cv_sizeof_char+:} false; then :
27290   $as_echo_n "(cached) " >&6
27291 else
27292   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27293
27294 else
27295   if test "$ac_cv_type_char" = yes; then
27296      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27298 as_fn_error 77 "cannot compute sizeof (char)
27299 See \`config.log' for more details" "$LINENO" 5; }
27300    else
27301      ac_cv_sizeof_char=0
27302    fi
27303 fi
27304
27305 fi
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27307 $as_echo "$ac_cv_sizeof_char" >&6; }
27308
27309
27310
27311 cat >>confdefs.h <<_ACEOF
27312 #define SIZEOF_CHAR $ac_cv_sizeof_char
27313 _ACEOF
27314
27315
27316 # The cast to long int works around a bug in the HP C Compiler
27317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27319 # This bug is HP SR number 8606223364.
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27321 $as_echo_n "checking size of short int... " >&6; }
27322 if ${ac_cv_sizeof_short_int+:} false; then :
27323   $as_echo_n "(cached) " >&6
27324 else
27325   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27326
27327 else
27328   if test "$ac_cv_type_short_int" = yes; then
27329      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27331 as_fn_error 77 "cannot compute sizeof (short int)
27332 See \`config.log' for more details" "$LINENO" 5; }
27333    else
27334      ac_cv_sizeof_short_int=0
27335    fi
27336 fi
27337
27338 fi
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27340 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27341
27342
27343
27344 cat >>confdefs.h <<_ACEOF
27345 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27346 _ACEOF
27347
27348
27349 # The cast to long int works around a bug in the HP C Compiler
27350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27352 # This bug is HP SR number 8606223364.
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27354 $as_echo_n "checking size of int... " >&6; }
27355 if ${ac_cv_sizeof_int+:} false; then :
27356   $as_echo_n "(cached) " >&6
27357 else
27358   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27359
27360 else
27361   if test "$ac_cv_type_int" = yes; then
27362      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27364 as_fn_error 77 "cannot compute sizeof (int)
27365 See \`config.log' for more details" "$LINENO" 5; }
27366    else
27367      ac_cv_sizeof_int=0
27368    fi
27369 fi
27370
27371 fi
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27373 $as_echo "$ac_cv_sizeof_int" >&6; }
27374
27375
27376
27377 cat >>confdefs.h <<_ACEOF
27378 #define SIZEOF_INT $ac_cv_sizeof_int
27379 _ACEOF
27380
27381
27382 # The cast to long int works around a bug in the HP C Compiler
27383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27385 # This bug is HP SR number 8606223364.
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27387 $as_echo_n "checking size of long int... " >&6; }
27388 if ${ac_cv_sizeof_long_int+:} false; then :
27389   $as_echo_n "(cached) " >&6
27390 else
27391   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27392
27393 else
27394   if test "$ac_cv_type_long_int" = yes; then
27395      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27397 as_fn_error 77 "cannot compute sizeof (long int)
27398 See \`config.log' for more details" "$LINENO" 5; }
27399    else
27400      ac_cv_sizeof_long_int=0
27401    fi
27402 fi
27403
27404 fi
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27406 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27407
27408
27409
27410 cat >>confdefs.h <<_ACEOF
27411 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27412 _ACEOF
27413
27414
27415 # The cast to long int works around a bug in the HP C Compiler
27416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27418 # This bug is HP SR number 8606223364.
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27420 $as_echo_n "checking size of long long int... " >&6; }
27421 if ${ac_cv_sizeof_long_long_int+:} false; then :
27422   $as_echo_n "(cached) " >&6
27423 else
27424   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27425
27426 else
27427   if test "$ac_cv_type_long_long_int" = yes; then
27428      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27430 as_fn_error 77 "cannot compute sizeof (long long int)
27431 See \`config.log' for more details" "$LINENO" 5; }
27432    else
27433      ac_cv_sizeof_long_long_int=0
27434    fi
27435 fi
27436
27437 fi
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27439 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27440
27441
27442
27443 cat >>confdefs.h <<_ACEOF
27444 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27445 _ACEOF
27446
27447
27448 # The cast to long int works around a bug in the HP C Compiler
27449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27451 # This bug is HP SR number 8606223364.
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27453 $as_echo_n "checking size of int *... " >&6; }
27454 if ${ac_cv_sizeof_int_p+:} false; then :
27455   $as_echo_n "(cached) " >&6
27456 else
27457   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27458
27459 else
27460   if test "$ac_cv_type_int_p" = yes; then
27461      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27463 as_fn_error 77 "cannot compute sizeof (int *)
27464 See \`config.log' for more details" "$LINENO" 5; }
27465    else
27466      ac_cv_sizeof_int_p=0
27467    fi
27468 fi
27469
27470 fi
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27472 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27473
27474
27475
27476 cat >>confdefs.h <<_ACEOF
27477 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27478 _ACEOF
27479
27480
27481
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27483 $as_echo_n "checking for u_int type... " >&6; }
27484 if ${ac_cv_have_u_int+:} false; then :
27485   $as_echo_n "(cached) " >&6
27486 else
27487
27488        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27489 /* end confdefs.h.  */
27490
27491               #include <sys/types.h>
27492
27493 int
27494 main ()
27495 {
27496
27497               u_int a; a = 1;
27498
27499   ;
27500   return 0;
27501 }
27502 _ACEOF
27503 if ac_fn_c_try_compile "$LINENO"; then :
27504
27505               ac_cv_have_u_int="yes"
27506
27507 else
27508
27509               ac_cv_have_u_int="no"
27510
27511
27512 fi
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27514
27515
27516 fi
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27518 $as_echo "$ac_cv_have_u_int" >&6; }
27519 if test "x$ac_cv_have_u_int" = "xyes" ; then
27520    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27521
27522    have_u_int=1
27523 fi
27524
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27526 $as_echo_n "checking for intmax_t type... " >&6; }
27527 if ${ac_cv_have_intmax_t+:} false; then :
27528   $as_echo_n "(cached) " >&6
27529 else
27530
27531        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27532 /* end confdefs.h.  */
27533
27534               #include <sys/types.h>
27535
27536 int
27537 main ()
27538 {
27539
27540               intmax_t a; a = 1;
27541
27542   ;
27543   return 0;
27544 }
27545 _ACEOF
27546 if ac_fn_c_try_compile "$LINENO"; then :
27547
27548               ac_cv_have_intmax_t="yes"
27549
27550 else
27551
27552               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27553 /* end confdefs.h.  */
27554
27555                      #include <stdint.h>
27556
27557 int
27558 main ()
27559 {
27560
27561                      intmax_t a; a = 1;
27562
27563   ;
27564   return 0;
27565 }
27566 _ACEOF
27567 if ac_fn_c_try_compile "$LINENO"; then :
27568
27569                      ac_cv_have_intmax_t="yes"
27570
27571 else
27572
27573                      ac_cv_have_intmax_t="no"
27574
27575
27576 fi
27577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27578
27579
27580 fi
27581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27582
27583
27584 fi
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27586 $as_echo "$ac_cv_have_intmax_t" >&6; }
27587 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27588    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27589
27590    have_intmax_t=1
27591 fi
27592
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27594 $as_echo_n "checking for u_intmax_t type... " >&6; }
27595 if ${ac_cv_have_u_intmax_t+:} false; then :
27596   $as_echo_n "(cached) " >&6
27597 else
27598
27599        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27600 /* end confdefs.h.  */
27601
27602               #include <sys/types.h>
27603
27604 int
27605 main ()
27606 {
27607
27608               u_intmax_t a; a = 1;
27609
27610   ;
27611   return 0;
27612 }
27613 _ACEOF
27614 if ac_fn_c_try_compile "$LINENO"; then :
27615
27616               ac_cv_have_u_intmax_t="yes"
27617
27618 else
27619
27620               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27621 /* end confdefs.h.  */
27622
27623                      #include <stdint.h>
27624
27625 int
27626 main ()
27627 {
27628
27629                     u_intmax_t a; a = 1;
27630
27631   ;
27632   return 0;
27633 }
27634 _ACEOF
27635 if ac_fn_c_try_compile "$LINENO"; then :
27636
27637                     ac_cv_have_u_intmax_t="yes"
27638
27639 else
27640
27641                     ac_cv_have_u_intmax_t="no"
27642
27643
27644 fi
27645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27646
27647
27648 fi
27649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27650
27651
27652 fi
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27654 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27655 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27656    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27657
27658    have_u_intmax_t=1
27659 fi
27660
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27662 $as_echo_n "checking for intXX_t types... " >&6; }
27663 if ${ac_cv_have_intxx_t+:} false; then :
27664   $as_echo_n "(cached) " >&6
27665 else
27666
27667        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27668 /* end confdefs.h.  */
27669
27670               #include <sys/types.h>
27671
27672 int
27673 main ()
27674 {
27675
27676               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27677
27678   ;
27679   return 0;
27680 }
27681 _ACEOF
27682 if ac_fn_c_try_compile "$LINENO"; then :
27683
27684               ac_cv_have_intxx_t="yes"
27685
27686 else
27687
27688               ac_cv_have_intxx_t="no"
27689
27690
27691 fi
27692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27693
27694
27695 fi
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27697 $as_echo "$ac_cv_have_intxx_t" >&6; }
27698 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27699    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27700
27701    have_intxx_t=1
27702 fi
27703
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27705 $as_echo_n "checking for int64_t type... " >&6; }
27706 if ${ac_cv_have_int64_t+:} false; then :
27707   $as_echo_n "(cached) " >&6
27708 else
27709
27710        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711 /* end confdefs.h.  */
27712
27713               #include <sys/types.h>
27714
27715 int
27716 main ()
27717 {
27718
27719               int64_t a; a = 1;
27720
27721   ;
27722   return 0;
27723 }
27724 _ACEOF
27725 if ac_fn_c_try_compile "$LINENO"; then :
27726
27727               ac_cv_have_int64_t="yes"
27728
27729 else
27730
27731               ac_cv_have_int64_t="no"
27732
27733
27734 fi
27735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736
27737
27738 fi
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27740 $as_echo "$ac_cv_have_int64_t" >&6; }
27741 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27742    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27743
27744    have_int64_t=1
27745 fi
27746
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27748 $as_echo_n "checking for u_intXX_t types... " >&6; }
27749 if ${ac_cv_have_u_intxx_t+:} false; then :
27750   $as_echo_n "(cached) " >&6
27751 else
27752
27753        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27754 /* end confdefs.h.  */
27755
27756               #include <sys/types.h>
27757
27758 int
27759 main ()
27760 {
27761
27762               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27763
27764   ;
27765   return 0;
27766 }
27767 _ACEOF
27768 if ac_fn_c_try_compile "$LINENO"; then :
27769
27770              ac_cv_have_u_intxx_t="yes"
27771
27772 else
27773
27774              ac_cv_have_u_intxx_t="no"
27775
27776
27777 fi
27778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27779
27780
27781 fi
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27783 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27784 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27785    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27786
27787    have_u_intxx_t=1
27788 fi
27789
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27791 $as_echo_n "checking for u_int64_t types... " >&6; }
27792 if ${ac_cv_have_u_int64_t+:} false; then :
27793   $as_echo_n "(cached) " >&6
27794 else
27795
27796        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27797 /* end confdefs.h.  */
27798
27799               #include <sys/types.h>
27800
27801 int
27802 main ()
27803 {
27804
27805               u_int64_t a; a = 1;
27806
27807   ;
27808   return 0;
27809 }
27810 _ACEOF
27811 if ac_fn_c_try_compile "$LINENO"; then :
27812
27813              ac_cv_have_u_int64_t="yes"
27814
27815 else
27816
27817              ac_cv_have_u_int64_t="no"
27818
27819
27820 fi
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27822
27823
27824 fi
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27826 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27827 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27828    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27829
27830    have_u_int64_t=1
27831 fi
27832
27833 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27834     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27835 then
27836    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27837 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27838    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27839 /* end confdefs.h.  */
27840
27841           #include <sys/bitypes.h>
27842
27843 int
27844 main ()
27845 {
27846
27847           int8_t a; int16_t b; int32_t c;
27848           u_int8_t e; u_int16_t f; u_int32_t g;
27849           a = b = c = e = f = g = 1;
27850
27851   ;
27852   return 0;
27853 }
27854 _ACEOF
27855 if ac_fn_c_try_compile "$LINENO"; then :
27856
27857           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27858
27859           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27860
27861           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27862
27863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27864 $as_echo "yes" >&6; }
27865
27866 else
27867
27868           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27869 $as_echo "no" >&6; }
27870
27871
27872 fi
27873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 fi
27875
27876 if test -z "$have_u_intxx_t" ; then
27877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27878 $as_echo_n "checking for uintXX_t types... " >&6; }
27879 if ${ac_cv_have_uintxx_t+:} false; then :
27880   $as_echo_n "(cached) " >&6
27881 else
27882
27883           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27884 /* end confdefs.h.  */
27885
27886                  #include <sys/types.h>
27887
27888 int
27889 main ()
27890 {
27891
27892                  uint8_t a; uint16_t b;
27893                  uint32_t c; a = b = c = 1;
27894
27895   ;
27896   return 0;
27897 }
27898 _ACEOF
27899 if ac_fn_c_try_compile "$LINENO"; then :
27900
27901                 ac_cv_have_uintxx_t="yes"
27902
27903 else
27904
27905                 ac_cv_have_uintxx_t="no"
27906
27907
27908 fi
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27910
27911
27912 fi
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27914 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27915    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27916       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27917
27918    fi
27919 fi
27920
27921 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27922     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27923 then
27924    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27925 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27927 /* end confdefs.h.  */
27928
27929           #include <sys/bitypes.h>
27930
27931 int
27932 main ()
27933 {
27934
27935           int64_t a; u_int64_t b;
27936           a = b = 1;
27937
27938   ;
27939   return 0;
27940 }
27941 _ACEOF
27942 if ac_fn_c_try_compile "$LINENO"; then :
27943
27944           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27945
27946           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27947
27948           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27949 $as_echo "yes" >&6; }
27950
27951 else
27952
27953           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27954 $as_echo "no" >&6; }
27955
27956
27957 fi
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27959 fi
27960
27961 if (test -z "$have_uintxx_t" && \
27962     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27963 then
27964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27965 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27966    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27967 /* end confdefs.h.  */
27968
27969           #include <sys/bitypes.h>
27970
27971 int
27972 main ()
27973 {
27974
27975           uint8_t a; uint16_t b;
27976           uint32_t c; a = b = c = 1;
27977
27978   ;
27979   return 0;
27980 }
27981 _ACEOF
27982 if ac_fn_c_try_compile "$LINENO"; then :
27983
27984           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27985
27986           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27987 $as_echo "yes" >&6; }
27988
27989 else
27990
27991           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27992 $as_echo "no" >&6; }
27993
27994
27995 fi
27996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27997 fi
27998
27999 for ac_func in \
28000    fork \
28001    getcwd \
28002    gethostname \
28003    getpid \
28004    gettimeofday \
28005    setpgid \
28006    setpgrp \
28007    setsid \
28008    signal \
28009    strerror \
28010    strncmp \
28011    strncpy \
28012    vfprintf \
28013
28014 do :
28015   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28016 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28017 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28018   cat >>confdefs.h <<_ACEOF
28019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28020 _ACEOF
28021
28022 else
28023   echo 'configure: cannot find needed function.'; exit 1
28024
28025 fi
28026 done
28027
28028
28029 for ac_func in getpagesize
28030 do :
28031   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28032 if test "x$ac_cv_func_getpagesize" = xyes; then :
28033   cat >>confdefs.h <<_ACEOF
28034 #define HAVE_GETPAGESIZE 1
28035 _ACEOF
28036
28037 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28038
28039 fi
28040 done
28041
28042 for ac_func in malloc_trim
28043 do :
28044   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28045 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28046   cat >>confdefs.h <<_ACEOF
28047 #define HAVE_MALLOC_TRIM 1
28048 _ACEOF
28049
28050 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28051
28052 fi
28053 done
28054
28055
28056 for ac_func in fchdir
28057 do :
28058   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28059 if test "x$ac_cv_func_fchdir" = xyes; then :
28060   cat >>confdefs.h <<_ACEOF
28061 #define HAVE_FCHDIR 1
28062 _ACEOF
28063  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28064
28065 fi
28066 done
28067
28068 for ac_func in strtoll
28069 do :
28070   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28071 if test "x$ac_cv_func_strtoll" = xyes; then :
28072   cat >>confdefs.h <<_ACEOF
28073 #define HAVE_STRTOLL 1
28074 _ACEOF
28075  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28076
28077 fi
28078 done
28079
28080 for ac_func in posix_fadvise
28081 do :
28082   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28083 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28084   cat >>confdefs.h <<_ACEOF
28085 #define HAVE_POSIX_FADVISE 1
28086 _ACEOF
28087
28088 fi
28089 done
28090
28091 for ac_func in fdatasync
28092 do :
28093   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28094 if test "x$ac_cv_func_fdatasync" = xyes; then :
28095   cat >>confdefs.h <<_ACEOF
28096 #define HAVE_FDATASYNC 1
28097 _ACEOF
28098
28099 fi
28100 done
28101
28102
28103 for ac_func in chflags
28104 do :
28105   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28106 if test "x$ac_cv_func_chflags" = xyes; then :
28107   cat >>confdefs.h <<_ACEOF
28108 #define HAVE_CHFLAGS 1
28109 _ACEOF
28110
28111 fi
28112 done
28113
28114
28115 for ac_func in snprintf vsnprintf gethostid fseeko
28116 do :
28117   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28118 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28119 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28120   cat >>confdefs.h <<_ACEOF
28121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28122 _ACEOF
28123
28124 fi
28125 done
28126
28127
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28129 $as_echo_n "checking for va_copy... " >&6; }
28130 if ${ba_cv_va_copy+:} false; then :
28131   $as_echo_n "(cached) " >&6
28132 else
28133
28134        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28135 /* end confdefs.h.  */
28136
28137               #include <stdarg.h>
28138               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28139               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28140
28141 int
28142 main ()
28143 {
28144
28145               call_use_va_copy(1,2,3)
28146
28147   ;
28148   return 0;
28149 }
28150 _ACEOF
28151 if ac_fn_c_try_link "$LINENO"; then :
28152
28153               ba_cv_va_copy=yes,
28154
28155 else
28156
28157               ba_cv_va_copy=no
28158
28159
28160 fi
28161 rm -f core conftest.err conftest.$ac_objext \
28162     conftest$ac_exeext conftest.$ac_ext
28163
28164
28165 fi
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28167 $as_echo "$ba_cv_va_copy" >&6; }
28168 test $ba_cv_va_copy = yes &&
28169 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28170
28171
28172 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28173 do :
28174   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28176 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28177   cat >>confdefs.h <<_ACEOF
28178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28179 _ACEOF
28180
28181 fi
28182 done
28183
28184
28185 # If resolver functions are not in libc check for -lnsl or -lresolv.
28186 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28187 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28189 $as_echo "using libc's resolver" >&6; }
28190 else
28191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28192 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28193 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28194   $as_echo_n "(cached) " >&6
28195 else
28196   ac_check_lib_save_LIBS=$LIBS
28197 LIBS="-lnsl  $LIBS"
28198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28199 /* end confdefs.h.  */
28200
28201 /* Override any GCC internal prototype to avoid an error.
28202    Use char because int might match the return type of a GCC
28203    builtin and then its argument prototype would still apply.  */
28204 #ifdef __cplusplus
28205 extern "C"
28206 #endif
28207 char gethostbyname_r ();
28208 int
28209 main ()
28210 {
28211 return gethostbyname_r ();
28212   ;
28213   return 0;
28214 }
28215 _ACEOF
28216 if ac_fn_c_try_link "$LINENO"; then :
28217   ac_cv_lib_nsl_gethostbyname_r=yes
28218 else
28219   ac_cv_lib_nsl_gethostbyname_r=no
28220 fi
28221 rm -f core conftest.err conftest.$ac_objext \
28222     conftest$ac_exeext conftest.$ac_ext
28223 LIBS=$ac_check_lib_save_LIBS
28224 fi
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28226 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28227 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28228   cat >>confdefs.h <<_ACEOF
28229 #define HAVE_LIBNSL 1
28230 _ACEOF
28231
28232   LIBS="-lnsl $LIBS"
28233
28234 fi
28235
28236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28237 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28238 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28239   $as_echo_n "(cached) " >&6
28240 else
28241   ac_check_lib_save_LIBS=$LIBS
28242 LIBS="-lresolv  $LIBS"
28243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28244 /* end confdefs.h.  */
28245
28246 /* Override any GCC internal prototype to avoid an error.
28247    Use char because int might match the return type of a GCC
28248    builtin and then its argument prototype would still apply.  */
28249 #ifdef __cplusplus
28250 extern "C"
28251 #endif
28252 char gethostbyname_r ();
28253 int
28254 main ()
28255 {
28256 return gethostbyname_r ();
28257   ;
28258   return 0;
28259 }
28260 _ACEOF
28261 if ac_fn_c_try_link "$LINENO"; then :
28262   ac_cv_lib_resolv_gethostbyname_r=yes
28263 else
28264   ac_cv_lib_resolv_gethostbyname_r=no
28265 fi
28266 rm -f core conftest.err conftest.$ac_objext \
28267     conftest$ac_exeext conftest.$ac_ext
28268 LIBS=$ac_check_lib_save_LIBS
28269 fi
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28271 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28272 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28273   cat >>confdefs.h <<_ACEOF
28274 #define HAVE_LIBRESOLV 1
28275 _ACEOF
28276
28277   LIBS="-lresolv $LIBS"
28278
28279 fi
28280
28281 fi
28282
28283
28284 for ac_func in inet_pton
28285 do :
28286   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28287 if test "x$ac_cv_func_inet_pton" = xyes; then :
28288   cat >>confdefs.h <<_ACEOF
28289 #define HAVE_INET_PTON 1
28290 _ACEOF
28291  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28292
28293 fi
28294 done
28295
28296 for ac_func in inet_ntop
28297 do :
28298   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28299 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28300   cat >>confdefs.h <<_ACEOF
28301 #define HAVE_INET_NTOP 1
28302 _ACEOF
28303  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28304
28305 fi
28306 done
28307
28308 for ac_func in gethostbyname2
28309 do :
28310   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28311 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28312   cat >>confdefs.h <<_ACEOF
28313 #define HAVE_GETHOSTBYNAME2 1
28314 _ACEOF
28315  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28316
28317 fi
28318 done
28319
28320
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28322 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28323 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28324   $as_echo_n "(cached) " >&6
28325 else
28326
28327        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h.  */
28329
28330               #include <sys/socket.h>
28331
28332 int
28333 main ()
28334 {
28335
28336               struct sockaddr s; s.sa_len;
28337
28338   ;
28339   return 0;
28340 }
28341 _ACEOF
28342 if ac_fn_c_try_compile "$LINENO"; then :
28343
28344              ac_cv_struct_sockaddr_sa_len=yes
28345
28346 else
28347   ac_cv_struct_sockaddr_sa_len=no
28348
28349
28350 fi
28351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28352
28353
28354 fi
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28356 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28357
28358 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28359
28360 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28361
28362 fi
28363
28364 for ac_func in strftime
28365 do :
28366   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28367 if test "x$ac_cv_func_strftime" = xyes; then :
28368   cat >>confdefs.h <<_ACEOF
28369 #define HAVE_STRFTIME 1
28370 _ACEOF
28371
28372 else
28373   # strftime is in -lintl on SCO UNIX.
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28375 $as_echo_n "checking for strftime in -lintl... " >&6; }
28376 if ${ac_cv_lib_intl_strftime+:} false; then :
28377   $as_echo_n "(cached) " >&6
28378 else
28379   ac_check_lib_save_LIBS=$LIBS
28380 LIBS="-lintl  $LIBS"
28381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28382 /* end confdefs.h.  */
28383
28384 /* Override any GCC internal prototype to avoid an error.
28385    Use char because int might match the return type of a GCC
28386    builtin and then its argument prototype would still apply.  */
28387 #ifdef __cplusplus
28388 extern "C"
28389 #endif
28390 char strftime ();
28391 int
28392 main ()
28393 {
28394 return strftime ();
28395   ;
28396   return 0;
28397 }
28398 _ACEOF
28399 if ac_fn_c_try_link "$LINENO"; then :
28400   ac_cv_lib_intl_strftime=yes
28401 else
28402   ac_cv_lib_intl_strftime=no
28403 fi
28404 rm -f core conftest.err conftest.$ac_objext \
28405     conftest$ac_exeext conftest.$ac_ext
28406 LIBS=$ac_check_lib_save_LIBS
28407 fi
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28409 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28410 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28411   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28412
28413 LIBS="-lintl $LIBS"
28414 fi
28415
28416 fi
28417 done
28418
28419 for ac_func in vprintf
28420 do :
28421   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28422 if test "x$ac_cv_func_vprintf" = xyes; then :
28423   cat >>confdefs.h <<_ACEOF
28424 #define HAVE_VPRINTF 1
28425 _ACEOF
28426
28427 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28428 if test "x$ac_cv_func__doprnt" = xyes; then :
28429
28430 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28431
28432 fi
28433
28434 fi
28435 done
28436
28437
28438 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28439 # for constant arguments.  Useless!
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28441 $as_echo_n "checking for working alloca.h... " >&6; }
28442 if ${ac_cv_working_alloca_h+:} false; then :
28443   $as_echo_n "(cached) " >&6
28444 else
28445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28446 /* end confdefs.h.  */
28447 #include <alloca.h>
28448 int
28449 main ()
28450 {
28451 char *p = (char *) alloca (2 * sizeof (int));
28452                           if (p) return 0;
28453   ;
28454   return 0;
28455 }
28456 _ACEOF
28457 if ac_fn_c_try_link "$LINENO"; then :
28458   ac_cv_working_alloca_h=yes
28459 else
28460   ac_cv_working_alloca_h=no
28461 fi
28462 rm -f core conftest.err conftest.$ac_objext \
28463     conftest$ac_exeext conftest.$ac_ext
28464 fi
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28466 $as_echo "$ac_cv_working_alloca_h" >&6; }
28467 if test $ac_cv_working_alloca_h = yes; then
28468
28469 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28470
28471 fi
28472
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28474 $as_echo_n "checking for alloca... " >&6; }
28475 if ${ac_cv_func_alloca_works+:} false; then :
28476   $as_echo_n "(cached) " >&6
28477 else
28478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28479 /* end confdefs.h.  */
28480 #ifdef __GNUC__
28481 # define alloca __builtin_alloca
28482 #else
28483 # ifdef _MSC_VER
28484 #  include <malloc.h>
28485 #  define alloca _alloca
28486 # else
28487 #  ifdef HAVE_ALLOCA_H
28488 #   include <alloca.h>
28489 #  else
28490 #   ifdef _AIX
28491  #pragma alloca
28492 #   else
28493 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28494 void *alloca (size_t);
28495 #    endif
28496 #   endif
28497 #  endif
28498 # endif
28499 #endif
28500
28501 int
28502 main ()
28503 {
28504 char *p = (char *) alloca (1);
28505                                     if (p) return 0;
28506   ;
28507   return 0;
28508 }
28509 _ACEOF
28510 if ac_fn_c_try_link "$LINENO"; then :
28511   ac_cv_func_alloca_works=yes
28512 else
28513   ac_cv_func_alloca_works=no
28514 fi
28515 rm -f core conftest.err conftest.$ac_objext \
28516     conftest$ac_exeext conftest.$ac_ext
28517 fi
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28519 $as_echo "$ac_cv_func_alloca_works" >&6; }
28520
28521 if test $ac_cv_func_alloca_works = yes; then
28522
28523 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28524
28525 else
28526   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28527 # that cause trouble.  Some versions do not even contain alloca or
28528 # contain a buggy version.  If you still want to use their alloca,
28529 # use ar to extract alloca.o from them instead of compiling alloca.c.
28530
28531 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28532
28533 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28534
28535
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28537 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28538 if ${ac_cv_os_cray+:} false; then :
28539   $as_echo_n "(cached) " >&6
28540 else
28541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28542 /* end confdefs.h.  */
28543 #if defined CRAY && ! defined CRAY2
28544 webecray
28545 #else
28546 wenotbecray
28547 #endif
28548
28549 _ACEOF
28550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28551   $EGREP "webecray" >/dev/null 2>&1; then :
28552   ac_cv_os_cray=yes
28553 else
28554   ac_cv_os_cray=no
28555 fi
28556 rm -f conftest*
28557
28558 fi
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28560 $as_echo "$ac_cv_os_cray" >&6; }
28561 if test $ac_cv_os_cray = yes; then
28562   for ac_func in _getb67 GETB67 getb67; do
28563     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28565 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28566
28567 cat >>confdefs.h <<_ACEOF
28568 #define CRAY_STACKSEG_END $ac_func
28569 _ACEOF
28570
28571     break
28572 fi
28573
28574   done
28575 fi
28576
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28578 $as_echo_n "checking stack direction for C alloca... " >&6; }
28579 if ${ac_cv_c_stack_direction+:} false; then :
28580   $as_echo_n "(cached) " >&6
28581 else
28582   if test "$cross_compiling" = yes; then :
28583   ac_cv_c_stack_direction=0
28584 else
28585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28586 /* end confdefs.h.  */
28587 $ac_includes_default
28588 int
28589 find_stack_direction ()
28590 {
28591   static char *addr = 0;
28592   auto char dummy;
28593   if (addr == 0)
28594     {
28595       addr = &dummy;
28596       return find_stack_direction ();
28597     }
28598   else
28599     return (&dummy > addr) ? 1 : -1;
28600 }
28601
28602 int
28603 main ()
28604 {
28605   return find_stack_direction () < 0;
28606 }
28607 _ACEOF
28608 if ac_fn_c_try_run "$LINENO"; then :
28609   ac_cv_c_stack_direction=1
28610 else
28611   ac_cv_c_stack_direction=-1
28612 fi
28613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28614   conftest.$ac_objext conftest.beam conftest.$ac_ext
28615 fi
28616
28617 fi
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28619 $as_echo "$ac_cv_c_stack_direction" >&6; }
28620 cat >>confdefs.h <<_ACEOF
28621 #define STACK_DIRECTION $ac_cv_c_stack_direction
28622 _ACEOF
28623
28624
28625 fi
28626
28627 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28628 # -lseq on Dynix/PTX, -lgen on Unixware.
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28630 $as_echo_n "checking for library containing getmntent... " >&6; }
28631 if ${ac_cv_search_getmntent+:} false; then :
28632   $as_echo_n "(cached) " >&6
28633 else
28634   ac_func_search_save_LIBS=$LIBS
28635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28636 /* end confdefs.h.  */
28637
28638 /* Override any GCC internal prototype to avoid an error.
28639    Use char because int might match the return type of a GCC
28640    builtin and then its argument prototype would still apply.  */
28641 #ifdef __cplusplus
28642 extern "C"
28643 #endif
28644 char getmntent ();
28645 int
28646 main ()
28647 {
28648 return getmntent ();
28649   ;
28650   return 0;
28651 }
28652 _ACEOF
28653 for ac_lib in '' sun seq gen; do
28654   if test -z "$ac_lib"; then
28655     ac_res="none required"
28656   else
28657     ac_res=-l$ac_lib
28658     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28659   fi
28660   if ac_fn_c_try_link "$LINENO"; then :
28661   ac_cv_search_getmntent=$ac_res
28662 fi
28663 rm -f core conftest.err conftest.$ac_objext \
28664     conftest$ac_exeext
28665   if ${ac_cv_search_getmntent+:} false; then :
28666   break
28667 fi
28668 done
28669 if ${ac_cv_search_getmntent+:} false; then :
28670
28671 else
28672   ac_cv_search_getmntent=no
28673 fi
28674 rm conftest.$ac_ext
28675 LIBS=$ac_func_search_save_LIBS
28676 fi
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28678 $as_echo "$ac_cv_search_getmntent" >&6; }
28679 ac_res=$ac_cv_search_getmntent
28680 if test "$ac_res" != no; then :
28681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28682   ac_cv_func_getmntent=yes
28683
28684 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28685
28686 else
28687   ac_cv_func_getmntent=no
28688 fi
28689
28690
28691 for ac_func in getmntinfo
28692 do :
28693   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28694 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28695   cat >>confdefs.h <<_ACEOF
28696 #define HAVE_GETMNTINFO 1
28697 _ACEOF
28698  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28699
28700 fi
28701 done
28702
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28704 $as_echo_n "checking whether closedir returns void... " >&6; }
28705 if ${ac_cv_func_closedir_void+:} false; then :
28706   $as_echo_n "(cached) " >&6
28707 else
28708   if test "$cross_compiling" = yes; then :
28709   ac_cv_func_closedir_void=yes
28710 else
28711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28712 /* end confdefs.h.  */
28713 $ac_includes_default
28714 #include <$ac_header_dirent>
28715 #ifndef __cplusplus
28716 int closedir ();
28717 #endif
28718
28719 int
28720 main ()
28721 {
28722 return closedir (opendir (".")) != 0;
28723   ;
28724   return 0;
28725 }
28726 _ACEOF
28727 if ac_fn_c_try_run "$LINENO"; then :
28728   ac_cv_func_closedir_void=no
28729 else
28730   ac_cv_func_closedir_void=yes
28731 fi
28732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28733   conftest.$ac_objext conftest.beam conftest.$ac_ext
28734 fi
28735
28736 fi
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28738 $as_echo "$ac_cv_func_closedir_void" >&6; }
28739 if test $ac_cv_func_closedir_void = yes; then
28740
28741 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28742
28743 fi
28744
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28746 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28747 if ${ac_cv_func_setpgrp_void+:} false; then :
28748   $as_echo_n "(cached) " >&6
28749 else
28750   if test "$cross_compiling" = yes; then :
28751   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28752 else
28753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28754 /* end confdefs.h.  */
28755 $ac_includes_default
28756 int
28757 main ()
28758 {
28759 /* If this system has a BSD-style setpgrp which takes arguments,
28760   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28761   exit successfully. */
28762   return setpgrp (1,1) != -1;
28763   ;
28764   return 0;
28765 }
28766 _ACEOF
28767 if ac_fn_c_try_run "$LINENO"; then :
28768   ac_cv_func_setpgrp_void=no
28769 else
28770   ac_cv_func_setpgrp_void=yes
28771 fi
28772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28773   conftest.$ac_objext conftest.beam conftest.$ac_ext
28774 fi
28775
28776 fi
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28778 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28779 if test $ac_cv_func_setpgrp_void = yes; then
28780
28781 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28782
28783 fi
28784             # AC_FUNC_FNMATCH    dnl use local version
28785
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28787 $as_echo_n "checking for gettext in -lintl... " >&6; }
28788 if ${ac_cv_lib_intl_gettext+:} false; then :
28789   $as_echo_n "(cached) " >&6
28790 else
28791   ac_check_lib_save_LIBS=$LIBS
28792 LIBS="-lintl  $LIBS"
28793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794 /* end confdefs.h.  */
28795
28796 /* Override any GCC internal prototype to avoid an error.
28797    Use char because int might match the return type of a GCC
28798    builtin and then its argument prototype would still apply.  */
28799 #ifdef __cplusplus
28800 extern "C"
28801 #endif
28802 char gettext ();
28803 int
28804 main ()
28805 {
28806 return gettext ();
28807   ;
28808   return 0;
28809 }
28810 _ACEOF
28811 if ac_fn_c_try_link "$LINENO"; then :
28812   ac_cv_lib_intl_gettext=yes
28813 else
28814   ac_cv_lib_intl_gettext=no
28815 fi
28816 rm -f core conftest.err conftest.$ac_objext \
28817     conftest$ac_exeext conftest.$ac_ext
28818 LIBS=$ac_check_lib_save_LIBS
28819 fi
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28821 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28822 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28823   LIBS="$LIBS -lintl"
28824 fi
28825
28826
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28828 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28829 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28830   $as_echo_n "(cached) " >&6
28831 else
28832   ac_check_lib_save_LIBS=$LIBS
28833 LIBS="-lsun  $LIBS"
28834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28835 /* end confdefs.h.  */
28836
28837 /* Override any GCC internal prototype to avoid an error.
28838    Use char because int might match the return type of a GCC
28839    builtin and then its argument prototype would still apply.  */
28840 #ifdef __cplusplus
28841 extern "C"
28842 #endif
28843 char getpwnam ();
28844 int
28845 main ()
28846 {
28847 return getpwnam ();
28848   ;
28849   return 0;
28850 }
28851 _ACEOF
28852 if ac_fn_c_try_link "$LINENO"; then :
28853   ac_cv_lib_sun_getpwnam=yes
28854 else
28855   ac_cv_lib_sun_getpwnam=no
28856 fi
28857 rm -f core conftest.err conftest.$ac_objext \
28858     conftest$ac_exeext conftest.$ac_ext
28859 LIBS=$ac_check_lib_save_LIBS
28860 fi
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28862 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28863 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28864   cat >>confdefs.h <<_ACEOF
28865 #define HAVE_LIBSUN 1
28866 _ACEOF
28867
28868   LIBS="-lsun $LIBS"
28869
28870 fi
28871
28872
28873 for ac_header in zlib.h
28874 do :
28875   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28876 if test "x$ac_cv_header_zlib_h" = xyes; then :
28877   cat >>confdefs.h <<_ACEOF
28878 #define HAVE_ZLIB_H 1
28879 _ACEOF
28880
28881 fi
28882
28883 done
28884
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28886 $as_echo_n "checking for deflate in -lz... " >&6; }
28887 if ${ac_cv_lib_z_deflate+:} false; then :
28888   $as_echo_n "(cached) " >&6
28889 else
28890   ac_check_lib_save_LIBS=$LIBS
28891 LIBS="-lz  $LIBS"
28892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28893 /* end confdefs.h.  */
28894
28895 /* Override any GCC internal prototype to avoid an error.
28896    Use char because int might match the return type of a GCC
28897    builtin and then its argument prototype would still apply.  */
28898 #ifdef __cplusplus
28899 extern "C"
28900 #endif
28901 char deflate ();
28902 int
28903 main ()
28904 {
28905 return deflate ();
28906   ;
28907   return 0;
28908 }
28909 _ACEOF
28910 if ac_fn_c_try_link "$LINENO"; then :
28911   ac_cv_lib_z_deflate=yes
28912 else
28913   ac_cv_lib_z_deflate=no
28914 fi
28915 rm -f core conftest.err conftest.$ac_objext \
28916     conftest$ac_exeext conftest.$ac_ext
28917 LIBS=$ac_check_lib_save_LIBS
28918 fi
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28920 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28921 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28922   ZLIBS="-lz"
28923 fi
28924
28925 have_zlib=no
28926 if test x$ZLIBS = x-lz; then
28927    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28928
28929    have_zlib=yes
28930 fi
28931
28932
28933 for ac_header in lzo/lzoconf.h
28934 do :
28935   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28936 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
28937   cat >>confdefs.h <<_ACEOF
28938 #define HAVE_LZO_LZOCONF_H 1
28939 _ACEOF
28940
28941 fi
28942
28943 done
28944
28945 for ac_header in lzo/lzo1x.h
28946 do :
28947   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28948 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
28949   cat >>confdefs.h <<_ACEOF
28950 #define HAVE_LZO_LZO1X_H 1
28951 _ACEOF
28952
28953 fi
28954
28955 done
28956
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28958 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28959 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
28960   $as_echo_n "(cached) " >&6
28961 else
28962   ac_check_lib_save_LIBS=$LIBS
28963 LIBS="-llzo2  $LIBS"
28964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28965 /* end confdefs.h.  */
28966
28967 /* Override any GCC internal prototype to avoid an error.
28968    Use char because int might match the return type of a GCC
28969    builtin and then its argument prototype would still apply.  */
28970 #ifdef __cplusplus
28971 extern "C"
28972 #endif
28973 char lzo1x_1_compress ();
28974 int
28975 main ()
28976 {
28977 return lzo1x_1_compress ();
28978   ;
28979   return 0;
28980 }
28981 _ACEOF
28982 if ac_fn_c_try_link "$LINENO"; then :
28983   ac_cv_lib_lzo2_lzo1x_1_compress=yes
28984 else
28985   ac_cv_lib_lzo2_lzo1x_1_compress=no
28986 fi
28987 rm -f core conftest.err conftest.$ac_objext \
28988     conftest$ac_exeext conftest.$ac_ext
28989 LIBS=$ac_check_lib_save_LIBS
28990 fi
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28992 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28993 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
28994   LZOLIBS="-llzo2"
28995 fi
28996
28997 have_lzo=no
28998 if test x$LZOLIBS = x-llzo2; then
28999    $as_echo "#define HAVE_LZO 1" >>confdefs.h
29000
29001    have_lzo=yes
29002 fi
29003
29004
29005 support_acl=auto
29006 # Check whether --enable-acl was given.
29007 if test "${enable_acl+set}" = set; then :
29008   enableval=$enable_acl;
29009        if test x$enableval = xyes; then
29010           support_acl=yes
29011        elif test x$enableval = xno; then
29012           support_acl=no
29013        fi
29014
29015
29016 fi
29017
29018
29019 have_acl=no
29020 have_extended_acl=no
29021 if test x$support_acl = xyes -o x$support_acl = xauto; then
29022    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29023 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29024
29025 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29026
29027 fi
29028
29029
29030
29031             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29032 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29033
29034           have_acl=yes
29035
29036
29037 fi
29038
29039
29040             if test $have_acl = no; then
29041       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29042 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29043 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29044   $as_echo_n "(cached) " >&6
29045 else
29046   ac_check_lib_save_LIBS=$LIBS
29047 LIBS="-lacl  $LIBS"
29048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29049 /* end confdefs.h.  */
29050
29051 /* Override any GCC internal prototype to avoid an error.
29052    Use char because int might match the return type of a GCC
29053    builtin and then its argument prototype would still apply.  */
29054 #ifdef __cplusplus
29055 extern "C"
29056 #endif
29057 char acl_get_file ();
29058 int
29059 main ()
29060 {
29061 return acl_get_file ();
29062   ;
29063   return 0;
29064 }
29065 _ACEOF
29066 if ac_fn_c_try_link "$LINENO"; then :
29067   ac_cv_lib_acl_acl_get_file=yes
29068 else
29069   ac_cv_lib_acl_acl_get_file=no
29070 fi
29071 rm -f core conftest.err conftest.$ac_objext \
29072     conftest$ac_exeext conftest.$ac_ext
29073 LIBS=$ac_check_lib_save_LIBS
29074 fi
29075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29076 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29077 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29078
29079              have_acl=yes
29080              FDLIBS="-lacl $FDLIBS"
29081
29082
29083 fi
29084
29085    fi
29086
29087                if test $have_acl = no -a \
29088            x${HAVE_OSF1_OS_TRUE} = x; then
29089       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29090 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29091 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29092   $as_echo_n "(cached) " >&6
29093 else
29094   ac_check_lib_save_LIBS=$LIBS
29095 LIBS="-lpacl  $LIBS"
29096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29097 /* end confdefs.h.  */
29098
29099 /* Override any GCC internal prototype to avoid an error.
29100    Use char because int might match the return type of a GCC
29101    builtin and then its argument prototype would still apply.  */
29102 #ifdef __cplusplus
29103 extern "C"
29104 #endif
29105 char acl_get_file ();
29106 int
29107 main ()
29108 {
29109 return acl_get_file ();
29110   ;
29111   return 0;
29112 }
29113 _ACEOF
29114 if ac_fn_c_try_link "$LINENO"; then :
29115   ac_cv_lib_pacl_acl_get_file=yes
29116 else
29117   ac_cv_lib_pacl_acl_get_file=no
29118 fi
29119 rm -f core conftest.err conftest.$ac_objext \
29120     conftest$ac_exeext conftest.$ac_ext
29121 LIBS=$ac_check_lib_save_LIBS
29122 fi
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29124 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29125 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29126
29127              have_acl=yes
29128              FDLIBS="-lpacl $FDLIBS"
29129
29130
29131 fi
29132
29133
29134       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29135 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29136       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29137       if test $? = 0; then
29138
29139 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29140
29141          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29142 $as_echo "yes" >&6; }
29143       else
29144          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29145 $as_echo "no" >&6; }
29146       fi
29147    fi
29148
29149             if test $have_acl = yes -a \
29150            x${HAVE_DARWIN_OS_TRUE} = x; then
29151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29152 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29153       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29154       if test $? = 0; then
29155
29156 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29157
29158          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29159 $as_echo "yes" >&6; }
29160       else
29161          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29162 $as_echo "no" >&6; }
29163       fi
29164    fi
29165
29166             if test $have_acl = yes -a \
29167            x${HAVE_FREEBSD_OS_TRUE} = x; then
29168       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29169 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29170       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29171       if test $? = 0; then
29172
29173 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29174
29175          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29176 $as_echo "yes" >&6; }
29177       else
29178          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29179 $as_echo "no" >&6; }
29180       fi
29181    fi
29182
29183             if test $have_acl = no -a \
29184            x${HAVE_SUN_OS_TRUE} = x; then
29185       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29186 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29187 if ${ac_cv_lib_sec_acltotext+:} false; then :
29188   $as_echo_n "(cached) " >&6
29189 else
29190   ac_check_lib_save_LIBS=$LIBS
29191 LIBS="-lsec  $LIBS"
29192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29193 /* end confdefs.h.  */
29194
29195 /* Override any GCC internal prototype to avoid an error.
29196    Use char because int might match the return type of a GCC
29197    builtin and then its argument prototype would still apply.  */
29198 #ifdef __cplusplus
29199 extern "C"
29200 #endif
29201 char acltotext ();
29202 int
29203 main ()
29204 {
29205 return acltotext ();
29206   ;
29207   return 0;
29208 }
29209 _ACEOF
29210 if ac_fn_c_try_link "$LINENO"; then :
29211   ac_cv_lib_sec_acltotext=yes
29212 else
29213   ac_cv_lib_sec_acltotext=no
29214 fi
29215 rm -f core conftest.err conftest.$ac_objext \
29216     conftest$ac_exeext conftest.$ac_ext
29217 LIBS=$ac_check_lib_save_LIBS
29218 fi
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29220 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29221 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29222
29223              have_acl=yes
29224              FDLIBS="-lsec $FDLIBS"
29225
29226              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29227 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29228 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29229   $as_echo_n "(cached) " >&6
29230 else
29231   ac_check_lib_save_LIBS=$LIBS
29232 LIBS="-lsec  $LIBS"
29233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29234 /* end confdefs.h.  */
29235
29236 /* Override any GCC internal prototype to avoid an error.
29237    Use char because int might match the return type of a GCC
29238    builtin and then its argument prototype would still apply.  */
29239 #ifdef __cplusplus
29240 extern "C"
29241 #endif
29242 char acl_totext ();
29243 int
29244 main ()
29245 {
29246 return acl_totext ();
29247   ;
29248   return 0;
29249 }
29250 _ACEOF
29251 if ac_fn_c_try_link "$LINENO"; then :
29252   ac_cv_lib_sec_acl_totext=yes
29253 else
29254   ac_cv_lib_sec_acl_totext=no
29255 fi
29256 rm -f core conftest.err conftest.$ac_objext \
29257     conftest$ac_exeext conftest.$ac_ext
29258 LIBS=$ac_check_lib_save_LIBS
29259 fi
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29261 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29262 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29263
29264                     have_extended_acl=yes
29265
29266
29267 fi
29268
29269
29270
29271 fi
29272
29273    fi
29274
29275             if test $have_acl = no -a \
29276            x${HAVE_AIX_OS_TRUE} = x; then
29277       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29278 if test "x$ac_cv_func_acl_get" = xyes; then :
29279
29280              have_acl=yes
29281
29282              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29283 if test "x$ac_cv_func_aclx_get" = xyes; then :
29284
29285                     have_extended_acl=yes
29286
29287
29288 fi
29289
29290
29291
29292 fi
29293
29294    fi
29295
29296    if test x$support_acl = xyes -a $have_acl != yes; then
29297       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29298   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29299    else
29300       if test $have_acl = yes; then
29301
29302 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29303
29304       fi
29305
29306       if test $have_extended_acl = yes; then
29307
29308 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29309
29310       fi
29311    fi
29312 fi
29313
29314 support_xattr=auto
29315 # Check whether --enable-xattr was given.
29316 if test "${enable_xattr+set}" = set; then :
29317   enableval=$enable_xattr;
29318        if test x$enableval = xyes; then
29319           support_xattr=yes
29320        elif test x$enableval = xno; then
29321           support_xattr=no
29322        fi
29323
29324
29325 fi
29326
29327
29328 have_xattr=no
29329 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29330                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29331            x${HAVE_NETBSD_OS_TRUE} = x -o \
29332            x${HAVE_OPENBSD_OS_TRUE} = x; then
29333       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29334 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29335
29336 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29337
29338 fi
29339
29340
29341       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29342 if test "x$ac_cv_header_libutil_h" = xyes; then :
29343
29344 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29345
29346 fi
29347
29348
29349       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29350 do :
29351   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29352 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29353 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29354   cat >>confdefs.h <<_ACEOF
29355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29356 _ACEOF
29357
29358              have_xattr=yes
29359
29360 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29361
29362
29363 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29364
29365
29366 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29367
29368
29369
29370 fi
29371 done
29372
29373
29374       if test $have_xattr = no; then
29375          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29376 do :
29377   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29379 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29380   cat >>confdefs.h <<_ACEOF
29381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29382 _ACEOF
29383
29384                 have_xattr=yes
29385
29386 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29387
29388
29389 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29390
29391
29392 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29393
29394
29395
29396 fi
29397 done
29398
29399       fi
29400
29401       if test $have_xattr = yes; then
29402          have_extattr_string_in_libc=no
29403          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29404 do :
29405   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29407 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29408   cat >>confdefs.h <<_ACEOF
29409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29410 _ACEOF
29411
29412                 have_extattr_string_in_libc=yes
29413
29414 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29415
29416
29417 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29418
29419
29420
29421 fi
29422 done
29423
29424
29425                                  if test $have_extattr_string_in_libc = no; then
29426             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29427 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29428 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29429   $as_echo_n "(cached) " >&6
29430 else
29431   ac_check_lib_save_LIBS=$LIBS
29432 LIBS="-lutil  $LIBS"
29433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29434 /* end confdefs.h.  */
29435
29436 /* Override any GCC internal prototype to avoid an error.
29437    Use char because int might match the return type of a GCC
29438    builtin and then its argument prototype would still apply.  */
29439 #ifdef __cplusplus
29440 extern "C"
29441 #endif
29442 char extattr_namespace_to_string extattr_string_to_namespace ();
29443 int
29444 main ()
29445 {
29446 return extattr_namespace_to_string extattr_string_to_namespace ();
29447   ;
29448   return 0;
29449 }
29450 _ACEOF
29451 if ac_fn_c_try_link "$LINENO"; then :
29452   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29453 else
29454   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29455 fi
29456 rm -f core conftest.err conftest.$ac_objext \
29457     conftest$ac_exeext conftest.$ac_ext
29458 LIBS=$ac_check_lib_save_LIBS
29459 fi
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29461 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29462 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29463
29464
29465 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29466
29467
29468 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29469
29470                    FDLIBS="-lutil $FDLIBS"
29471
29472
29473 fi
29474
29475          fi
29476       fi
29477    fi
29478
29479                if test $have_xattr = no -a \
29480            x${HAVE_AIX_OS_TRUE} = x; then
29481       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29482 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29483
29484 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29485
29486 fi
29487
29488
29489       for ac_func in llistea lgetea lsetea
29490 do :
29491   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29493 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29494   cat >>confdefs.h <<_ACEOF
29495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29496 _ACEOF
29497
29498              have_xattr=yes
29499
29500 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29501
29502
29503 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29504
29505
29506 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29507
29508
29509
29510 fi
29511 done
29512
29513
29514       if test $have_xattr = no; then
29515          for ac_func in listea getea setea
29516 do :
29517   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29518 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29519 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29520   cat >>confdefs.h <<_ACEOF
29521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29522 _ACEOF
29523
29524                 have_xattr=yes
29525
29526 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29527
29528
29529 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29530
29531
29532 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29533
29534
29535
29536 fi
29537 done
29538
29539       fi
29540    fi
29541
29542                if test $have_xattr = no -a \
29543            x${HAVE_OSF1_OS_TRUE} = x; then
29544       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29545 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29546
29547 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29548
29549 fi
29550
29551
29552       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29553 do :
29554   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29556 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29557   cat >>confdefs.h <<_ACEOF
29558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29559 _ACEOF
29560
29561              have_xattr=yes
29562
29563 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29564
29565
29566 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29567
29568
29569 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29570
29571
29572 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29573
29574
29575 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29576
29577
29578
29579 fi
29580 done
29581
29582    fi
29583
29584                if test $have_xattr = no -a \
29585            x${HAVE_SUN_OS_TRUE} = x; then
29586       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29587 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29588
29589 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29590
29591 fi
29592
29593
29594       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29595 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29596
29597 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29598
29599 fi
29600
29601
29602       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29603 if test "x$ac_cv_header_attr_h" = xyes; then :
29604
29605 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29606
29607 fi
29608
29609
29610
29611       for ac_func in openat fstatat unlinkat fchownat futimesat
29612 do :
29613   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29615 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29616   cat >>confdefs.h <<_ACEOF
29617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29618 _ACEOF
29619
29620              have_xattr=yes
29621
29622 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29623
29624
29625 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29626
29627
29628 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29629
29630
29631 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29632
29633
29634 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29635
29636
29637
29638 fi
29639 done
29640
29641
29642       if test $have_xattr = yes; then
29643          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29644 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29645 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29646   $as_echo_n "(cached) " >&6
29647 else
29648   ac_check_lib_save_LIBS=$LIBS
29649 LIBS="-lnvpair  $LIBS"
29650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29651 /* end confdefs.h.  */
29652
29653 /* Override any GCC internal prototype to avoid an error.
29654    Use char because int might match the return type of a GCC
29655    builtin and then its argument prototype would still apply.  */
29656 #ifdef __cplusplus
29657 extern "C"
29658 #endif
29659 char nvlist_next_nvpair ();
29660 int
29661 main ()
29662 {
29663 return nvlist_next_nvpair ();
29664   ;
29665   return 0;
29666 }
29667 _ACEOF
29668 if ac_fn_c_try_link "$LINENO"; then :
29669   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29670 else
29671   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29672 fi
29673 rm -f core conftest.err conftest.$ac_objext \
29674     conftest$ac_exeext conftest.$ac_ext
29675 LIBS=$ac_check_lib_save_LIBS
29676 fi
29677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29678 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29679 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29680
29681
29682 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29683
29684                 FDLIBS="-lnvpair $FDLIBS"
29685
29686
29687 fi
29688
29689       fi
29690    fi
29691
29692             if test $have_xattr = no; then
29693       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29694 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
29695
29696 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29697
29698 fi
29699
29700
29701       for ac_func in llistxattr lgetxattr lsetxattr
29702 do :
29703   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29704 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29705 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29706   cat >>confdefs.h <<_ACEOF
29707 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29708 _ACEOF
29709
29710              have_xattr=yes
29711
29712 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29713
29714
29715 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29716
29717
29718 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29719
29720
29721
29722 fi
29723 done
29724
29725
29726       if test $have_xattr = no; then
29727          for ac_func in listxattr getxattr setxattr
29728 do :
29729   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29731 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29732   cat >>confdefs.h <<_ACEOF
29733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29734 _ACEOF
29735
29736                 have_xattr=yes
29737
29738 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29739
29740
29741 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29742
29743
29744 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29745
29746
29747
29748 fi
29749 done
29750
29751       fi
29752    fi
29753
29754    if test x$support_xattr = xyes -a $have_xattr != yes; then
29755       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29756   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29757    else
29758       if test $have_xattr = yes; then
29759
29760 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29761
29762       fi
29763    fi
29764 fi
29765
29766 PTHREAD_LIB=""
29767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29768 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29769 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29770   $as_echo_n "(cached) " >&6
29771 else
29772   ac_check_lib_save_LIBS=$LIBS
29773 LIBS="-lpthread  $LIBS"
29774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29775 /* end confdefs.h.  */
29776
29777 /* Override any GCC internal prototype to avoid an error.
29778    Use char because int might match the return type of a GCC
29779    builtin and then its argument prototype would still apply.  */
29780 #ifdef __cplusplus
29781 extern "C"
29782 #endif
29783 char pthread_create ();
29784 int
29785 main ()
29786 {
29787 return pthread_create ();
29788   ;
29789   return 0;
29790 }
29791 _ACEOF
29792 if ac_fn_c_try_link "$LINENO"; then :
29793   ac_cv_lib_pthread_pthread_create=yes
29794 else
29795   ac_cv_lib_pthread_pthread_create=no
29796 fi
29797 rm -f core conftest.err conftest.$ac_objext \
29798     conftest$ac_exeext conftest.$ac_ext
29799 LIBS=$ac_check_lib_save_LIBS
29800 fi
29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29802 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29803 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29804   PTHREAD_LIB="-lpthread"
29805 else
29806
29807        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29808 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29809 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29810   $as_echo_n "(cached) " >&6
29811 else
29812   ac_check_lib_save_LIBS=$LIBS
29813 LIBS="-lpthreads  $LIBS"
29814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29815 /* end confdefs.h.  */
29816
29817 /* Override any GCC internal prototype to avoid an error.
29818    Use char because int might match the return type of a GCC
29819    builtin and then its argument prototype would still apply.  */
29820 #ifdef __cplusplus
29821 extern "C"
29822 #endif
29823 char pthread_create ();
29824 int
29825 main ()
29826 {
29827 return pthread_create ();
29828   ;
29829   return 0;
29830 }
29831 _ACEOF
29832 if ac_fn_c_try_link "$LINENO"; then :
29833   ac_cv_lib_pthreads_pthread_create=yes
29834 else
29835   ac_cv_lib_pthreads_pthread_create=no
29836 fi
29837 rm -f core conftest.err conftest.$ac_objext \
29838     conftest$ac_exeext conftest.$ac_ext
29839 LIBS=$ac_check_lib_save_LIBS
29840 fi
29841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29842 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29843 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29844   PTHREAD_LIB="-lpthreads"
29845 else
29846
29847               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29848 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29849 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29850   $as_echo_n "(cached) " >&6
29851 else
29852   ac_check_lib_save_LIBS=$LIBS
29853 LIBS="-lc_r  $LIBS"
29854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29855 /* end confdefs.h.  */
29856
29857 /* Override any GCC internal prototype to avoid an error.
29858    Use char because int might match the return type of a GCC
29859    builtin and then its argument prototype would still apply.  */
29860 #ifdef __cplusplus
29861 extern "C"
29862 #endif
29863 char pthread_create ();
29864 int
29865 main ()
29866 {
29867 return pthread_create ();
29868   ;
29869   return 0;
29870 }
29871 _ACEOF
29872 if ac_fn_c_try_link "$LINENO"; then :
29873   ac_cv_lib_c_r_pthread_create=yes
29874 else
29875   ac_cv_lib_c_r_pthread_create=no
29876 fi
29877 rm -f core conftest.err conftest.$ac_objext \
29878     conftest$ac_exeext conftest.$ac_ext
29879 LIBS=$ac_check_lib_save_LIBS
29880 fi
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29882 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29883 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29884   PTHREAD_LIB="-lc_r"
29885 else
29886
29887                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29888 if test "x$ac_cv_func_pthread_create" = xyes; then :
29889
29890 fi
29891
29892
29893
29894 fi
29895
29896
29897
29898 fi
29899
29900
29901
29902 fi
29903
29904
29905 for ac_header in sys/prctl.h sys/capability.h
29906 do :
29907   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29908 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29909 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29910   cat >>confdefs.h <<_ACEOF
29911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29912 _ACEOF
29913
29914 fi
29915
29916 done
29917
29918 for ac_func in prctl setreuid
29919 do :
29920   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29922 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29923   cat >>confdefs.h <<_ACEOF
29924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29925 _ACEOF
29926
29927 fi
29928 done
29929
29930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29931 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29932 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29933   $as_echo_n "(cached) " >&6
29934 else
29935   ac_check_lib_save_LIBS=$LIBS
29936 LIBS="-lcap  $LIBS"
29937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29938 /* end confdefs.h.  */
29939
29940 /* Override any GCC internal prototype to avoid an error.
29941    Use char because int might match the return type of a GCC
29942    builtin and then its argument prototype would still apply.  */
29943 #ifdef __cplusplus
29944 extern "C"
29945 #endif
29946 char cap_set_proc ();
29947 int
29948 main ()
29949 {
29950 return cap_set_proc ();
29951   ;
29952   return 0;
29953 }
29954 _ACEOF
29955 if ac_fn_c_try_link "$LINENO"; then :
29956   ac_cv_lib_cap_cap_set_proc=yes
29957 else
29958   ac_cv_lib_cap_cap_set_proc=no
29959 fi
29960 rm -f core conftest.err conftest.$ac_objext \
29961     conftest$ac_exeext conftest.$ac_ext
29962 LIBS=$ac_check_lib_save_LIBS
29963 fi
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29965 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29966 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29967   CAP_LIBS="-lcap"
29968 else
29969   CAP_LIBS=
29970 fi
29971
29972 if test x$CAP_LIBS = x-lcap; then
29973
29974 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29975
29976 fi
29977
29978
29979
29980 $as_echo "#define FDLIBS 1" >>confdefs.h
29981
29982
29983 CFLAGS=${CFLAGS--O}
29984
29985 if test x$have_gcc = xyes ; then
29986    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29987    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29988 fi
29989 LDFLAGS=${LDFLAGS--O}
29990 CPPFLAGS="$CPPFLAGS"
29991 CFLAGS="$CFLAGS"
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007 OBJLIST=
30008
30009
30010 lld="lld"
30011 llu="llu"
30012
30013 WCFLAGS=
30014 WLDFLAGS=
30015
30016 PFILES="platforms/Makefile"
30017 PSCMD="ps -e"
30018 WIN32=
30019 MACOSX=
30020 COMPRESS_MANPAGES=yes
30021
30022 hostname=`uname -n | cut -d '.' -f 1`
30023 if test x${hostname} = x ; then
30024    hostname="localhost"
30025 fi
30026 ping -c 1 $hostname 2>/dev/null 1>/dev/null
30027 if test ! $? = 0; then
30028   hostname="localhost"
30029 fi
30030
30031 case "$DISTNAME" in
30032 aix)
30033    DISTVER=`uname -r`
30034    PSCMD="ps -e -o pid,comm"
30035    PFILES="${PFILES} \
30036       platforms/aix/Makefile"
30037    TAPEDRIVE="/dev/rmt0.1"
30038   ;;
30039 alpha)
30040    DISTVER=`uname -r`
30041    PTHREAD_LIB="-lpthread -lexc"
30042    if test "${CC}" = "gcc" ; then
30043       lld="lld"
30044       llu="llu"
30045    else
30046       lld="ld"
30047       llu="lu"
30048    fi
30049    TAPEDRIVE="/dev/nrmt0"
30050   ;;
30051 bsdi)
30052    DISTVER=`uname -a |awk '{print $3}'`
30053    TAPEDRIVE="/dev/nrmt0"
30054    PTHREAD_LIB="-pthread"
30055    CFLAGS="${CFLAGS} -pthread"
30056    PSCMD="ps -ax -o pid,command"
30057    lld="qd"
30058    llu="qu"
30059    PFILES="${PFILES} \
30060        platforms/bsdi/Makefile \
30061        platforms/bsdi/bacula-fd \
30062        platforms/bsdi/bacula-sd \
30063        platforms/bsdi/bacula-dir"
30064    largefile_support="yes"
30065   ;;
30066 cygwin)
30067    DISTVER=`uname -a |awk '{print $3}'`
30068    TAPEDRIVE="/dev/nrst0"
30069    WIN32=win32
30070    WCFLAGS="-mwindows"
30071    WLDFLAGS="-mwindows"
30072   ;;
30073 darwin)
30074    DISTVER=`uname -r`
30075    TAPEDRIVE="/dev/nst0"
30076    PSCMD="ps -e -o pid,command"
30077    MACOSX=macosx
30078    PFILES="${PFILES} \
30079       platforms/darwin/Makefile"
30080   ;;
30081 osx)
30082    DISTVER=`uname -r`
30083    TAPEDRIVE="/dev/nst0"
30084    PSCMD="ps -e -o pid,command"
30085    MACOSX=macosx
30086    PFILES="${PFILES} \
30087       platforms/osx/Makefile"
30088   ;;
30089 debian)
30090    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30091       DISTNAME="ubuntu"
30092    fi
30093    DISTVER=`cat /etc/debian_version`
30094    if test -f /etc/lsb-release ; then
30095       . /etc/lsb-release
30096       if test "x$DISTRIB_ID" != "x" ; then
30097          DISTNAME=$DISTRIB_ID
30098       fi
30099       if test "x$DISTRIB_RELEASE" != "x" ; then
30100          DISTVER=$DISTRIB_RELEASE
30101       fi
30102    fi
30103    if test "$DISTNAME" = "Ubuntu" ; then
30104       DISTNAME="ubuntu"
30105    fi
30106    TAPEDRIVE="/dev/nst0"
30107    PSCMD="ps -e -o pid,command"
30108    if test "$DISTNAME" = "ubuntu" ; then
30109       PFILES="${PFILES} \
30110          platforms/ubuntu/Makefile \
30111          platforms/ubuntu/bacula-fd \
30112          platforms/ubuntu/bacula-sd \
30113          platforms/ubuntu/bacula-dir"
30114    else
30115       PFILES="${PFILES} \
30116          platforms/debian/Makefile \
30117          platforms/debian/bacula-fd \
30118          platforms/debian/bacula-sd \
30119          platforms/debian/bacula-dir"
30120    fi
30121   ;;
30122 freebsd)
30123    DISTVER=`uname -a |awk '{print $3}'`
30124    VER=`echo $DISTVER | cut -c 1`
30125    if test x$VER = x4 ; then
30126       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30127       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30128    fi
30129    lld="qd"
30130    llu="qu"
30131    TAPEDRIVE="/dev/nrsa0"
30132    PSCMD="ps -ax -o pid,command"
30133    PFILES="${PFILES} \
30134        platforms/freebsd/Makefile \
30135        platforms/freebsd/bacula-fd \
30136        platforms/freebsd/bacula-sd \
30137        platforms/freebsd/bacula-dir"
30138    largefile_support="yes"
30139   ;;
30140 hpux)
30141    PSCMD="UNIX95=1; ps -e -o pid,comm"
30142    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30143    DISTVER=`uname -r`
30144    TAPEDRIVE="/dev/rmt/0hnb"
30145    PTHREAD_LIB="-lpthread"
30146    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30147
30148   ;;
30149 irix)
30150    DISTVER=`uname -r`
30151    TAPEDRIVE="/dev/rmt/0cbn"
30152    PSCMD="ps -e -o pid,comm"
30153    PFILES="${PFILES} \
30154        platforms/irix/Makefile \
30155        platforms/irix/bacula-fd \
30156        platforms/irix/bacula-sd \
30157        platforms/irix/bacula-dir"
30158   ;;
30159 netbsd)
30160    DISTVER=`uname -a |awk '{print $3}'`
30161    lld="qd"
30162    llu="qu"
30163    TAPEDRIVE="/dev/nrst0"
30164    PSCMD="ps -ax -o pid,command"
30165    PTHREAD_LIB="-pthread"
30166    CFLAGS="${CFLAGS} -pthread"
30167   ;;
30168 openbsd)
30169    DISTVER=`uname -a |awk '{print $3}'`
30170    lld="qd"
30171    llu="qu"
30172    TAPEDRIVE="/dev/nrst0"
30173    PSCMD="ps -ax -o pid,command"
30174    PTHREAD_LIB="-pthread"
30175    CFLAGS="${CFLAGS} -pthread"
30176    PFILES="${PFILES} \
30177        platforms/openbsd/Makefile \
30178        platforms/openbsd/bacula-fd \
30179        platforms/openbsd/bacula-sd \
30180        platforms/openbsd/bacula-dir"
30181   ;;
30182 redhat)
30183    if test -f /etc/whitebox-release ; then
30184       f=/etc/whitebox-release
30185    else
30186       f=/etc/redhat-release
30187    fi
30188    if test `cat $f | grep release |\
30189          cut -f 3 -d ' '`x = "Enterprise"x ; then
30190       DISTVER="Enterprise "`cat $f | grep release |\
30191           cut -f 6 -d ' '`
30192    else
30193        DISTVER=`cat /etc/redhat-release | grep release |\
30194            cut -f 5 -d ' '`
30195    fi
30196    TAPEDRIVE="/dev/nst0"
30197    PSCMD="ps -e -o pid,command"
30198    PFILES="${PFILES} \
30199        platforms/redhat/Makefile \
30200        platforms/redhat/bacula-fd \
30201        platforms/redhat/bacula-sd \
30202        platforms/redhat/bacula-dir
30203        "
30204   ;;
30205 mandrake)
30206    DISTVER=`cat /etc/mandrake-release | grep release |\
30207       cut -f 5 -d ' '`
30208    TAPEDRIVE="/dev/nst0"
30209    PSCMD="ps -e -o pid,command"
30210    PFILES="${PFILES} \
30211        platforms/mandrake/Makefile \
30212        platforms/mandrake/bacula-fd \
30213        platforms/mandrake/bacula-sd \
30214        platforms/mandrake/bacula-dir \
30215        "
30216   ;;
30217 gentoo)
30218    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30219    TAPEDRIVE="/dev/nst0"
30220    PSCMD="ps -e -o pid,command"
30221    PFILES="${PFILES} \
30222        platforms/gentoo/Makefile \
30223     platforms/gentoo/bacula-init \
30224        platforms/gentoo/bacula-fd \
30225        platforms/gentoo/bacula-sd \
30226        platforms/gentoo/bacula-dir"
30227   ;;
30228 slackware)
30229    DISTVER=`cat /etc/slackware-version`
30230    TAPEDRIVE="/dev/nst0"
30231    PSCMD="ps -e -o pid,command"
30232    PFILES="${PFILES} \
30233        platforms/slackware/Makefile \
30234        platforms/slackware/rc.bacula-fd \
30235        platforms/slackware/rc.bacula-sd \
30236        platforms/slackware/rc.bacula-dir\
30237        platforms/slackware/functions.bacula"
30238   ;;
30239 solaris)
30240    DISTVER=`uname -r`
30241    TAPEDRIVE="/dev/rmt/0cbn"
30242    PSCMD="ps -e -o pid,comm"
30243    PFILES="${PFILES} \
30244        platforms/solaris/Makefile \
30245        platforms/solaris/bacula-fd \
30246        platforms/solaris/bacula-sd \
30247        platforms/solaris/bacula-dir"
30248    COMPRESS_MANPAGES=
30249    case ${DISTVER} in
30250    5.5|5.6)
30251       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30252
30253       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30254
30255       ;;
30256    5.7|5.8)
30257       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30258
30259       ;;
30260    *)
30261       ;;
30262    esac
30263    LIBS="$LIBS -lresolv -lrt"
30264   ;;
30265 suse)
30266    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30267        cut -f 3 -d ' '`
30268    TAPEDRIVE="/dev/nst0"
30269    PSCMD="ps -e -o pid,command"
30270    PFILES="${PFILES} \
30271        platforms/suse/Makefile \
30272        platforms/suse/bacula-fd \
30273        platforms/suse/bacula-sd \
30274        platforms/suse/bacula-dir \
30275        platforms/suse/bacula"
30276   ;;
30277 suse5)
30278    DISTNAME=suse
30279    DISTVER=5.x
30280    TAPEDRIVE="/dev/nst0"
30281    PSCMD="ps -e -o pid,command"
30282    PFILES="${PFILES} \
30283        platforms/suse/Makefile \
30284        platforms/suse/bacula-fd \
30285        platforms/suse/bacula-sd \
30286        platforms/suse/bacula-dir"
30287   ;;
30288 unknown)
30289    DISTVER=unknown
30290    TAPEDRIVE="/dev/nst0"
30291   ;;
30292 *)
30293   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30294   ;;
30295 esac
30296
30297
30298 # Check whether --with-systemd was given.
30299 if test "${with_systemd+set}" = set; then :
30300   withval=$with_systemd;
30301        if test "$withval" != "no"; then
30302            if test "$withval" = "yes"; then
30303                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30304            else
30305                SYSTEMD_UNITDIR="${withval}"
30306            fi
30307
30308            PFILES="${PFILES} \
30309                    platforms/systemd/Makefile \
30310                    platforms/systemd/bacula-dir.service \
30311                    platforms/systemd/bacula-fd.service \
30312                    platforms/systemd/bacula-sd.service"
30313
30314 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30315
30316            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30317 $as_echo "yes" >&6; }
30318            support_systemd="yes"
30319        else
30320            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30321 $as_echo "no" >&6; }
30322            support_systemd="no"
30323        fi
30324
30325 else
30326
30327        support_systemd="no"
30328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30329 $as_echo "no" >&6; }
30330
30331
30332 fi
30333
30334
30335
30336
30337
30338 LIBS="$PTHREAD_LIB $LIBS"
30339
30340 cat >>confdefs.h <<_ACEOF
30341 #define lld "$lld"
30342 _ACEOF
30343
30344 cat >>confdefs.h <<_ACEOF
30345 #define llu "$llu"
30346 _ACEOF
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356 MCOMMON=./autoconf/Make.common
30357
30358
30359 if test "x${subsysdir}" = "x${sbindir}" ; then
30360    echo " "
30361    echo " "
30362    echo "You have set both --sbindir and --with-subsys-dir"
30363    echo "  equal to: ${subsysdir} "
30364    echo "This is not permitted. Please reconfigure."
30365    echo " "
30366    echo "Aborting configuration ..."
30367    echo " "
30368    echo " "
30369    exit 1
30370 fi
30371
30372 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole 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/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/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.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.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql 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/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile $PFILES"
30373
30374 ac_config_commands="$ac_config_commands default"
30375
30376 cat >confcache <<\_ACEOF
30377 # This file is a shell script that caches the results of configure
30378 # tests run on this system so they can be shared between configure
30379 # scripts and configure runs, see configure's option --config-cache.
30380 # It is not useful on other systems.  If it contains results you don't
30381 # want to keep, you may remove or edit it.
30382 #
30383 # config.status only pays attention to the cache file if you give it
30384 # the --recheck option to rerun configure.
30385 #
30386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30388 # following values.
30389
30390 _ACEOF
30391
30392 # The following way of writing the cache mishandles newlines in values,
30393 # but we know of no workaround that is simple, portable, and efficient.
30394 # So, we kill variables containing newlines.
30395 # Ultrix sh set writes to stderr and can't be redirected directly,
30396 # and sets the high bit in the cache file unless we assign to the vars.
30397 (
30398   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30399     eval ac_val=\$$ac_var
30400     case $ac_val in #(
30401     *${as_nl}*)
30402       case $ac_var in #(
30403       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30404 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30405       esac
30406       case $ac_var in #(
30407       _ | IFS | as_nl) ;; #(
30408       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30409       *) { eval $ac_var=; unset $ac_var;} ;;
30410       esac ;;
30411     esac
30412   done
30413
30414   (set) 2>&1 |
30415     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30416     *${as_nl}ac_space=\ *)
30417       # `set' does not quote correctly, so add quotes: double-quote
30418       # substitution turns \\\\ into \\, and sed turns \\ into \.
30419       sed -n \
30420         "s/'/'\\\\''/g;
30421           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30422       ;; #(
30423     *)
30424       # `set' quotes correctly as required by POSIX, so do not add quotes.
30425       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30426       ;;
30427     esac |
30428     sort
30429 ) |
30430   sed '
30431      /^ac_cv_env_/b end
30432      t clear
30433      :clear
30434      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30435      t end
30436      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30437      :end' >>confcache
30438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30439   if test -w "$cache_file"; then
30440     if test "x$cache_file" != "x/dev/null"; then
30441       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30442 $as_echo "$as_me: updating cache $cache_file" >&6;}
30443       if test ! -f "$cache_file" || test -h "$cache_file"; then
30444         cat confcache >"$cache_file"
30445       else
30446         case $cache_file in #(
30447         */* | ?:*)
30448           mv -f confcache "$cache_file"$$ &&
30449           mv -f "$cache_file"$$ "$cache_file" ;; #(
30450         *)
30451           mv -f confcache "$cache_file" ;;
30452         esac
30453       fi
30454     fi
30455   else
30456     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30457 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30458   fi
30459 fi
30460 rm -f confcache
30461
30462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30463 # Let make expand exec_prefix.
30464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30465
30466 DEFS=-DHAVE_CONFIG_H
30467
30468 ac_libobjs=
30469 ac_ltlibobjs=
30470 U=
30471 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30472   # 1. Remove the extension, and $U if already installed.
30473   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30474   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30475   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30476   #    will be set to the directory where LIBOBJS objects are built.
30477   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30478   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30479 done
30480 LIBOBJS=$ac_libobjs
30481
30482 LTLIBOBJS=$ac_ltlibobjs
30483
30484
30485
30486
30487 : "${CONFIG_STATUS=./config.status}"
30488 ac_write_fail=0
30489 ac_clean_files_save=$ac_clean_files
30490 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30492 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30493 as_write_fail=0
30494 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30495 #! $SHELL
30496 # Generated by $as_me.
30497 # Run this file to recreate the current configuration.
30498 # Compiler output produced by configure, useful for debugging
30499 # configure, is in config.log if it exists.
30500
30501 debug=false
30502 ac_cs_recheck=false
30503 ac_cs_silent=false
30504
30505 SHELL=\${CONFIG_SHELL-$SHELL}
30506 export SHELL
30507 _ASEOF
30508 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30509 ## -------------------- ##
30510 ## M4sh Initialization. ##
30511 ## -------------------- ##
30512
30513 # Be more Bourne compatible
30514 DUALCASE=1; export DUALCASE # for MKS sh
30515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30516   emulate sh
30517   NULLCMD=:
30518   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30519   # is contrary to our usage.  Disable this feature.
30520   alias -g '${1+"$@"}'='"$@"'
30521   setopt NO_GLOB_SUBST
30522 else
30523   case `(set -o) 2>/dev/null` in #(
30524   *posix*) :
30525     set -o posix ;; #(
30526   *) :
30527      ;;
30528 esac
30529 fi
30530
30531
30532 as_nl='
30533 '
30534 export as_nl
30535 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30536 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30538 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30539 # Prefer a ksh shell builtin over an external printf program on Solaris,
30540 # but without wasting forks for bash or zsh.
30541 if test -z "$BASH_VERSION$ZSH_VERSION" \
30542     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30543   as_echo='print -r --'
30544   as_echo_n='print -rn --'
30545 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30546   as_echo='printf %s\n'
30547   as_echo_n='printf %s'
30548 else
30549   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30550     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30551     as_echo_n='/usr/ucb/echo -n'
30552   else
30553     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30554     as_echo_n_body='eval
30555       arg=$1;
30556       case $arg in #(
30557       *"$as_nl"*)
30558         expr "X$arg" : "X\\(.*\\)$as_nl";
30559         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30560       esac;
30561       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30562     '
30563     export as_echo_n_body
30564     as_echo_n='sh -c $as_echo_n_body as_echo'
30565   fi
30566   export as_echo_body
30567   as_echo='sh -c $as_echo_body as_echo'
30568 fi
30569
30570 # The user is always right.
30571 if test "${PATH_SEPARATOR+set}" != set; then
30572   PATH_SEPARATOR=:
30573   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30574     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30575       PATH_SEPARATOR=';'
30576   }
30577 fi
30578
30579
30580 # IFS
30581 # We need space, tab and new line, in precisely that order.  Quoting is
30582 # there to prevent editors from complaining about space-tab.
30583 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30584 # splitting by setting IFS to empty value.)
30585 IFS=" ""        $as_nl"
30586
30587 # Find who we are.  Look in the path if we contain no directory separator.
30588 as_myself=
30589 case $0 in #((
30590   *[\\/]* ) as_myself=$0 ;;
30591   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30592 for as_dir in $PATH
30593 do
30594   IFS=$as_save_IFS
30595   test -z "$as_dir" && as_dir=.
30596     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30597   done
30598 IFS=$as_save_IFS
30599
30600      ;;
30601 esac
30602 # We did not find ourselves, most probably we were run as `sh COMMAND'
30603 # in which case we are not to be found in the path.
30604 if test "x$as_myself" = x; then
30605   as_myself=$0
30606 fi
30607 if test ! -f "$as_myself"; then
30608   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30609   exit 1
30610 fi
30611
30612 # Unset variables that we do not need and which cause bugs (e.g. in
30613 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30614 # suppresses any "Segmentation fault" message there.  '((' could
30615 # trigger a bug in pdksh 5.2.14.
30616 for as_var in BASH_ENV ENV MAIL MAILPATH
30617 do eval test x\${$as_var+set} = xset \
30618   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30619 done
30620 PS1='$ '
30621 PS2='> '
30622 PS4='+ '
30623
30624 # NLS nuisances.
30625 LC_ALL=C
30626 export LC_ALL
30627 LANGUAGE=C
30628 export LANGUAGE
30629
30630 # CDPATH.
30631 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30632
30633
30634 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30635 # ----------------------------------------
30636 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30637 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30638 # script with STATUS, using 1 if that was 0.
30639 as_fn_error ()
30640 {
30641   as_status=$1; test $as_status -eq 0 && as_status=1
30642   if test "$4"; then
30643     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30644     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30645   fi
30646   $as_echo "$as_me: error: $2" >&2
30647   as_fn_exit $as_status
30648 } # as_fn_error
30649
30650
30651 # as_fn_set_status STATUS
30652 # -----------------------
30653 # Set $? to STATUS, without forking.
30654 as_fn_set_status ()
30655 {
30656   return $1
30657 } # as_fn_set_status
30658
30659 # as_fn_exit STATUS
30660 # -----------------
30661 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30662 as_fn_exit ()
30663 {
30664   set +e
30665   as_fn_set_status $1
30666   exit $1
30667 } # as_fn_exit
30668
30669 # as_fn_unset VAR
30670 # ---------------
30671 # Portably unset VAR.
30672 as_fn_unset ()
30673 {
30674   { eval $1=; unset $1;}
30675 }
30676 as_unset=as_fn_unset
30677 # as_fn_append VAR VALUE
30678 # ----------------------
30679 # Append the text in VALUE to the end of the definition contained in VAR. Take
30680 # advantage of any shell optimizations that allow amortized linear growth over
30681 # repeated appends, instead of the typical quadratic growth present in naive
30682 # implementations.
30683 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30684   eval 'as_fn_append ()
30685   {
30686     eval $1+=\$2
30687   }'
30688 else
30689   as_fn_append ()
30690   {
30691     eval $1=\$$1\$2
30692   }
30693 fi # as_fn_append
30694
30695 # as_fn_arith ARG...
30696 # ------------------
30697 # Perform arithmetic evaluation on the ARGs, and store the result in the
30698 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30699 # must be portable across $(()) and expr.
30700 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30701   eval 'as_fn_arith ()
30702   {
30703     as_val=$(( $* ))
30704   }'
30705 else
30706   as_fn_arith ()
30707   {
30708     as_val=`expr "$@" || test $? -eq 1`
30709   }
30710 fi # as_fn_arith
30711
30712
30713 if expr a : '\(a\)' >/dev/null 2>&1 &&
30714    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30715   as_expr=expr
30716 else
30717   as_expr=false
30718 fi
30719
30720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30721   as_basename=basename
30722 else
30723   as_basename=false
30724 fi
30725
30726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30727   as_dirname=dirname
30728 else
30729   as_dirname=false
30730 fi
30731
30732 as_me=`$as_basename -- "$0" ||
30733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30734          X"$0" : 'X\(//\)$' \| \
30735          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30736 $as_echo X/"$0" |
30737     sed '/^.*\/\([^/][^/]*\)\/*$/{
30738             s//\1/
30739             q
30740           }
30741           /^X\/\(\/\/\)$/{
30742             s//\1/
30743             q
30744           }
30745           /^X\/\(\/\).*/{
30746             s//\1/
30747             q
30748           }
30749           s/.*/./; q'`
30750
30751 # Avoid depending upon Character Ranges.
30752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30755 as_cr_digits='0123456789'
30756 as_cr_alnum=$as_cr_Letters$as_cr_digits
30757
30758 ECHO_C= ECHO_N= ECHO_T=
30759 case `echo -n x` in #(((((
30760 -n*)
30761   case `echo 'xy\c'` in
30762   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30763   xy)  ECHO_C='\c';;
30764   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30765        ECHO_T=' ';;
30766   esac;;
30767 *)
30768   ECHO_N='-n';;
30769 esac
30770
30771 rm -f conf$$ conf$$.exe conf$$.file
30772 if test -d conf$$.dir; then
30773   rm -f conf$$.dir/conf$$.file
30774 else
30775   rm -f conf$$.dir
30776   mkdir conf$$.dir 2>/dev/null
30777 fi
30778 if (echo >conf$$.file) 2>/dev/null; then
30779   if ln -s conf$$.file conf$$ 2>/dev/null; then
30780     as_ln_s='ln -s'
30781     # ... but there are two gotchas:
30782     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30783     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30784     # In both cases, we have to default to `cp -p'.
30785     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30786       as_ln_s='cp -p'
30787   elif ln conf$$.file conf$$ 2>/dev/null; then
30788     as_ln_s=ln
30789   else
30790     as_ln_s='cp -p'
30791   fi
30792 else
30793   as_ln_s='cp -p'
30794 fi
30795 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30796 rmdir conf$$.dir 2>/dev/null
30797
30798
30799 # as_fn_mkdir_p
30800 # -------------
30801 # Create "$as_dir" as a directory, including parents if necessary.
30802 as_fn_mkdir_p ()
30803 {
30804
30805   case $as_dir in #(
30806   -*) as_dir=./$as_dir;;
30807   esac
30808   test -d "$as_dir" || eval $as_mkdir_p || {
30809     as_dirs=
30810     while :; do
30811       case $as_dir in #(
30812       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30813       *) as_qdir=$as_dir;;
30814       esac
30815       as_dirs="'$as_qdir' $as_dirs"
30816       as_dir=`$as_dirname -- "$as_dir" ||
30817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30818          X"$as_dir" : 'X\(//\)[^/]' \| \
30819          X"$as_dir" : 'X\(//\)$' \| \
30820          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30821 $as_echo X"$as_dir" |
30822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30823             s//\1/
30824             q
30825           }
30826           /^X\(\/\/\)[^/].*/{
30827             s//\1/
30828             q
30829           }
30830           /^X\(\/\/\)$/{
30831             s//\1/
30832             q
30833           }
30834           /^X\(\/\).*/{
30835             s//\1/
30836             q
30837           }
30838           s/.*/./; q'`
30839       test -d "$as_dir" && break
30840     done
30841     test -z "$as_dirs" || eval "mkdir $as_dirs"
30842   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30843
30844
30845 } # as_fn_mkdir_p
30846 if mkdir -p . 2>/dev/null; then
30847   as_mkdir_p='mkdir -p "$as_dir"'
30848 else
30849   test -d ./-p && rmdir ./-p
30850   as_mkdir_p=false
30851 fi
30852
30853 if test -x / >/dev/null 2>&1; then
30854   as_test_x='test -x'
30855 else
30856   if ls -dL / >/dev/null 2>&1; then
30857     as_ls_L_option=L
30858   else
30859     as_ls_L_option=
30860   fi
30861   as_test_x='
30862     eval sh -c '\''
30863       if test -d "$1"; then
30864         test -d "$1/.";
30865       else
30866         case $1 in #(
30867         -*)set "./$1";;
30868         esac;
30869         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30870         ???[sx]*):;;*)false;;esac;fi
30871     '\'' sh
30872   '
30873 fi
30874 as_executable_p=$as_test_x
30875
30876 # Sed expression to map a string onto a valid CPP name.
30877 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30878
30879 # Sed expression to map a string onto a valid variable name.
30880 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30881
30882
30883 exec 6>&1
30884 ## ----------------------------------- ##
30885 ## Main body of $CONFIG_STATUS script. ##
30886 ## ----------------------------------- ##
30887 _ASEOF
30888 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30889
30890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30891 # Save the log message, to keep $0 and so on meaningful, and to
30892 # report actual input values of CONFIG_FILES etc. instead of their
30893 # values after options handling.
30894 ac_log="
30895 This file was extended by bacula $as_me 5.2.1, which was
30896 generated by GNU Autoconf 2.68.  Invocation command line was
30897
30898   CONFIG_FILES    = $CONFIG_FILES
30899   CONFIG_HEADERS  = $CONFIG_HEADERS
30900   CONFIG_LINKS    = $CONFIG_LINKS
30901   CONFIG_COMMANDS = $CONFIG_COMMANDS
30902   $ $0 $@
30903
30904 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30905 "
30906
30907 _ACEOF
30908
30909 case $ac_config_files in *"
30910 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30911 esac
30912
30913 case $ac_config_headers in *"
30914 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30915 esac
30916
30917
30918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30919 # Files that config.status was made for.
30920 config_files="$ac_config_files"
30921 config_headers="$ac_config_headers"
30922 config_commands="$ac_config_commands"
30923
30924 _ACEOF
30925
30926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30927 ac_cs_usage="\
30928 \`$as_me' instantiates files and other configuration actions
30929 from templates according to the current configuration.  Unless the files
30930 and actions are specified as TAGs, all are instantiated by default.
30931
30932 Usage: $0 [OPTION]... [TAG]...
30933
30934   -h, --help       print this help, then exit
30935   -V, --version    print version number and configuration settings, then exit
30936       --config     print configuration, then exit
30937   -q, --quiet, --silent
30938                    do not print progress messages
30939   -d, --debug      don't remove temporary files
30940       --recheck    update $as_me by reconfiguring in the same conditions
30941       --file=FILE[:TEMPLATE]
30942                    instantiate the configuration file FILE
30943       --header=FILE[:TEMPLATE]
30944                    instantiate the configuration header FILE
30945
30946 Configuration files:
30947 $config_files
30948
30949 Configuration headers:
30950 $config_headers
30951
30952 Configuration commands:
30953 $config_commands
30954
30955 Report bugs to the package provider."
30956
30957 _ACEOF
30958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30959 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30960 ac_cs_version="\\
30961 bacula config.status 5.2.1
30962 configured by $0, generated by GNU Autoconf 2.68,
30963   with options \\"\$ac_cs_config\\"
30964
30965 Copyright (C) 2010 Free Software Foundation, Inc.
30966 This config.status script is free software; the Free Software Foundation
30967 gives unlimited permission to copy, distribute and modify it."
30968
30969 ac_pwd='$ac_pwd'
30970 srcdir='$srcdir'
30971 INSTALL='$INSTALL'
30972 AWK='$AWK'
30973 test -n "\$AWK" || AWK=awk
30974 _ACEOF
30975
30976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30977 # The default lists apply if the user does not specify any file.
30978 ac_need_defaults=:
30979 while test $# != 0
30980 do
30981   case $1 in
30982   --*=?*)
30983     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30984     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30985     ac_shift=:
30986     ;;
30987   --*=)
30988     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30989     ac_optarg=
30990     ac_shift=:
30991     ;;
30992   *)
30993     ac_option=$1
30994     ac_optarg=$2
30995     ac_shift=shift
30996     ;;
30997   esac
30998
30999   case $ac_option in
31000   # Handling of the options.
31001   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31002     ac_cs_recheck=: ;;
31003   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31004     $as_echo "$ac_cs_version"; exit ;;
31005   --config | --confi | --conf | --con | --co | --c )
31006     $as_echo "$ac_cs_config"; exit ;;
31007   --debug | --debu | --deb | --de | --d | -d )
31008     debug=: ;;
31009   --file | --fil | --fi | --f )
31010     $ac_shift
31011     case $ac_optarg in
31012     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31013     '') as_fn_error $? "missing file argument" ;;
31014     esac
31015     as_fn_append CONFIG_FILES " '$ac_optarg'"
31016     ac_need_defaults=false;;
31017   --header | --heade | --head | --hea )
31018     $ac_shift
31019     case $ac_optarg in
31020     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31021     esac
31022     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31023     ac_need_defaults=false;;
31024   --he | --h)
31025     # Conflict between --help and --header
31026     as_fn_error $? "ambiguous option: \`$1'
31027 Try \`$0 --help' for more information.";;
31028   --help | --hel | -h )
31029     $as_echo "$ac_cs_usage"; exit ;;
31030   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31031   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31032     ac_cs_silent=: ;;
31033
31034   # This is an error.
31035   -*) as_fn_error $? "unrecognized option: \`$1'
31036 Try \`$0 --help' for more information." ;;
31037
31038   *) as_fn_append ac_config_targets " $1"
31039      ac_need_defaults=false ;;
31040
31041   esac
31042   shift
31043 done
31044
31045 ac_configure_extra_args=
31046
31047 if $ac_cs_silent; then
31048   exec 6>/dev/null
31049   ac_configure_extra_args="$ac_configure_extra_args --silent"
31050 fi
31051
31052 _ACEOF
31053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31054 if \$ac_cs_recheck; then
31055   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31056   shift
31057   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31058   CONFIG_SHELL='$SHELL'
31059   export CONFIG_SHELL
31060   exec "\$@"
31061 fi
31062
31063 _ACEOF
31064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31065 exec 5>>config.log
31066 {
31067   echo
31068   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31069 ## Running $as_me. ##
31070 _ASBOX
31071   $as_echo "$ac_log"
31072 } >&5
31073
31074 _ACEOF
31075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31076 #
31077 # INIT-COMMANDS
31078 #
31079
31080
31081 # The HP-UX ksh and POSIX shell print the target directory to stdout
31082 # if CDPATH is set.
31083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31084
31085 sed_quote_subst='$sed_quote_subst'
31086 double_quote_subst='$double_quote_subst'
31087 delay_variable_subst='$delay_variable_subst'
31088 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31089 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31090 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31091 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31092 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31093 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31094 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31095 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31096 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31097 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31098 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31099 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31100 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31101 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31102 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31103 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31104 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31105 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31106 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31107 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31108 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31109 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31110 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31111 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31112 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31113 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31114 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31115 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31116 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31117 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31118 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31119 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31120 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31121 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31122 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31123 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31124 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31125 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31126 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31127 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31128 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31129 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31130 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31131 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31132 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31133 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31134 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31135 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31136 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31137 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31138 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31139 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31140 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31141 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31142 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31143 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
31144 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31145 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31146 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31147 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31148 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31149 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31150 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31151 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31152 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31153 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31154 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31155 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31156 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31157 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31158 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31159 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31160 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31161 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31162 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31163 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31164 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31165 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31166 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31167 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31168 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31169 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31170 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31171 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31172 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31173 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31174 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31175 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31176 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31177 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31178 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31179 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31180 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31181 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31182 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31183 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31184 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31185 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31186 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31187 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31188 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31189 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31190 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31191 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31192 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31193 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31194 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31195 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31196 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31197 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31198 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31199 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31200 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31201 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31202 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31203 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31204 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31205 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31206 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31207 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31208 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31209 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31210 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31211 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31212 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31213 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31214 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31215 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31216 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31217 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31218 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31219 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31220 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31221 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31222 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31223 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31224 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31225 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31226 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31227 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31228 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31229 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31230 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31231 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31232 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31233 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31234 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31235 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31236 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31237 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31238 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31239 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31240 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31241 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31242 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31243 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31244 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31245 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31246 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31247 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31248 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31249 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31250 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31251 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31252 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31253 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31254 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31255 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31256 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31257 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31258 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31259 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31260 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31261 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31262 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31263 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31264 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31265 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31266 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31267 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31268 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31269 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31270 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31271 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31272 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31273
31274 LTCC='$LTCC'
31275 LTCFLAGS='$LTCFLAGS'
31276 compiler='$compiler_DEFAULT'
31277
31278 # A function that is used when there is no print builtin or printf.
31279 func_fallback_echo ()
31280 {
31281   eval 'cat <<_LTECHO_EOF
31282 \$1
31283 _LTECHO_EOF'
31284 }
31285
31286 # Quote evaled strings.
31287 for var in SHELL \
31288 ECHO \
31289 SED \
31290 GREP \
31291 EGREP \
31292 FGREP \
31293 LD \
31294 NM \
31295 LN_S \
31296 lt_SP2NL \
31297 lt_NL2SP \
31298 reload_flag \
31299 OBJDUMP \
31300 deplibs_check_method \
31301 file_magic_cmd \
31302 file_magic_glob \
31303 want_nocaseglob \
31304 DLLTOOL \
31305 sharedlib_from_linklib_cmd \
31306 AR \
31307 AR_FLAGS \
31308 archiver_list_spec \
31309 STRIP \
31310 RANLIB \
31311 CC \
31312 CFLAGS \
31313 compiler \
31314 lt_cv_sys_global_symbol_pipe \
31315 lt_cv_sys_global_symbol_to_cdecl \
31316 lt_cv_sys_global_symbol_to_c_name_address \
31317 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31318 nm_file_list_spec \
31319 lt_prog_compiler_no_builtin_flag \
31320 lt_prog_compiler_pic \
31321 lt_prog_compiler_wl \
31322 lt_prog_compiler_static \
31323 lt_cv_prog_compiler_c_o \
31324 need_locks \
31325 MANIFEST_TOOL \
31326 DSYMUTIL \
31327 NMEDIT \
31328 LIPO \
31329 OTOOL \
31330 OTOOL64 \
31331 shrext_cmds \
31332 export_dynamic_flag_spec \
31333 whole_archive_flag_spec \
31334 compiler_needs_object \
31335 with_gnu_ld \
31336 allow_undefined_flag \
31337 no_undefined_flag \
31338 hardcode_libdir_flag_spec \
31339 hardcode_libdir_flag_spec_ld \
31340 hardcode_libdir_separator \
31341 exclude_expsyms \
31342 include_expsyms \
31343 file_list_spec \
31344 variables_saved_for_relink \
31345 libname_spec \
31346 library_names_spec \
31347 soname_spec \
31348 install_override_mode \
31349 finish_eval \
31350 old_striplib \
31351 striplib \
31352 compiler_lib_search_dirs \
31353 predep_objects \
31354 postdep_objects \
31355 predeps \
31356 postdeps \
31357 compiler_lib_search_path \
31358 LD_CXX \
31359 reload_flag_CXX \
31360 compiler_CXX \
31361 lt_prog_compiler_no_builtin_flag_CXX \
31362 lt_prog_compiler_pic_CXX \
31363 lt_prog_compiler_wl_CXX \
31364 lt_prog_compiler_static_CXX \
31365 lt_cv_prog_compiler_c_o_CXX \
31366 export_dynamic_flag_spec_CXX \
31367 whole_archive_flag_spec_CXX \
31368 compiler_needs_object_CXX \
31369 with_gnu_ld_CXX \
31370 allow_undefined_flag_CXX \
31371 no_undefined_flag_CXX \
31372 hardcode_libdir_flag_spec_CXX \
31373 hardcode_libdir_flag_spec_ld_CXX \
31374 hardcode_libdir_separator_CXX \
31375 exclude_expsyms_CXX \
31376 include_expsyms_CXX \
31377 file_list_spec_CXX \
31378 compiler_lib_search_dirs_CXX \
31379 predep_objects_CXX \
31380 postdep_objects_CXX \
31381 predeps_CXX \
31382 postdeps_CXX \
31383 compiler_lib_search_path_CXX; do
31384     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31385     *[\\\\\\\`\\"\\\$]*)
31386       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31387       ;;
31388     *)
31389       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31390       ;;
31391     esac
31392 done
31393
31394 # Double-quote double-evaled strings.
31395 for var in reload_cmds \
31396 old_postinstall_cmds \
31397 old_postuninstall_cmds \
31398 old_archive_cmds \
31399 extract_expsyms_cmds \
31400 old_archive_from_new_cmds \
31401 old_archive_from_expsyms_cmds \
31402 archive_cmds \
31403 archive_expsym_cmds \
31404 module_cmds \
31405 module_expsym_cmds \
31406 export_symbols_cmds \
31407 prelink_cmds \
31408 postlink_cmds \
31409 postinstall_cmds \
31410 postuninstall_cmds \
31411 finish_cmds \
31412 sys_lib_search_path_spec \
31413 sys_lib_dlsearch_path_spec \
31414 reload_cmds_CXX \
31415 old_archive_cmds_CXX \
31416 old_archive_from_new_cmds_CXX \
31417 old_archive_from_expsyms_cmds_CXX \
31418 archive_cmds_CXX \
31419 archive_expsym_cmds_CXX \
31420 module_cmds_CXX \
31421 module_expsym_cmds_CXX \
31422 export_symbols_cmds_CXX \
31423 prelink_cmds_CXX \
31424 postlink_cmds_CXX; do
31425     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31426     *[\\\\\\\`\\"\\\$]*)
31427       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31428       ;;
31429     *)
31430       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31431       ;;
31432     esac
31433 done
31434
31435 ac_aux_dir='$ac_aux_dir'
31436 xsi_shell='$xsi_shell'
31437 lt_shell_append='$lt_shell_append'
31438
31439 # See if we are running on zsh, and set the options which allow our
31440 # commands through without removal of \ escapes INIT.
31441 if test -n "\${ZSH_VERSION+set}" ; then
31442    setopt NO_GLOB_SUBST
31443 fi
31444
31445
31446     PACKAGE='$PACKAGE'
31447     VERSION='$VERSION'
31448     TIMESTAMP='$TIMESTAMP'
31449     RM='$RM'
31450     ofile='$ofile'
31451
31452
31453
31454
31455
31456 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31457     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31458     # from automake.
31459     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31460     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31461     LINGUAS="${LINGUAS-%UNSET%}"
31462
31463
31464 _ACEOF
31465
31466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31467
31468 # Handling of arguments.
31469 for ac_config_target in $ac_config_targets
31470 do
31471   case $ac_config_target in
31472     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31473     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31474     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31475     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31476     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31477     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31478     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31479     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31480     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31481     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31482     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31483     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31484     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31485     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31486     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31487     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31488     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31489     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31490     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31491     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31492     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31493     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31494     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31495     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31496     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31497     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31498     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31499     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31500     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31501     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31502     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31503     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31504     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31505     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31506     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31507     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31508     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31509     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31510     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31511     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31512     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31513     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31514     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31515     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31516     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31517     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31518     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31519     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31520     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31521     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31522     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31523     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31524     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31525     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31526     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31527     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31528     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31529     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31530     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31531     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31532     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31533     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31534     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31535     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31536     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31537     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31538     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31539     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31540     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31541     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31542     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31543     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31544     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31545     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31546     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31547     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31548     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31549     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31550     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31551     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31552     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31553     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31554     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31555     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31556     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31557     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31558     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31559     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31560     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31561     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31562     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31563     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31564     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31565     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31566     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31567     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31568     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31569     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31570     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31571     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31572     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31573     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31574     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31575     "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31576     "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31577     "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31578     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31579     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31580     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31581
31582   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31583   esac
31584 done
31585
31586
31587 # If the user did not use the arguments to specify the items to instantiate,
31588 # then the envvar interface is used.  Set only those that are not.
31589 # We use the long form for the default assignment because of an extremely
31590 # bizarre bug on SunOS 4.1.3.
31591 if $ac_need_defaults; then
31592   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31593   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31594   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31595 fi
31596
31597 # Have a temporary directory for convenience.  Make it in the build tree
31598 # simply because there is no reason against having it here, and in addition,
31599 # creating and moving files from /tmp can sometimes cause problems.
31600 # Hook for its removal unless debugging.
31601 # Note that there is a small window in which the directory will not be cleaned:
31602 # after its creation but before its name has been assigned to `$tmp'.
31603 $debug ||
31604 {
31605   tmp= ac_tmp=
31606   trap 'exit_status=$?
31607   : "${ac_tmp:=$tmp}"
31608   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31609 ' 0
31610   trap 'as_fn_exit 1' 1 2 13 15
31611 }
31612 # Create a (secure) tmp directory for tmp files.
31613
31614 {
31615   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31616   test -d "$tmp"
31617 }  ||
31618 {
31619   tmp=./conf$$-$RANDOM
31620   (umask 077 && mkdir "$tmp")
31621 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31622 ac_tmp=$tmp
31623
31624 # Set up the scripts for CONFIG_FILES section.
31625 # No need to generate them if there are no CONFIG_FILES.
31626 # This happens for instance with `./config.status config.h'.
31627 if test -n "$CONFIG_FILES"; then
31628
31629 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31630   ac_cs_awk_getline=:
31631   ac_cs_awk_pipe_init=
31632   ac_cs_awk_read_file='
31633       while ((getline aline < (F[key])) > 0)
31634         print(aline)
31635       close(F[key])'
31636   ac_cs_awk_pipe_fini=
31637 else
31638   ac_cs_awk_getline=false
31639   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31640   ac_cs_awk_read_file='
31641       print "|#_!!_#|"
31642       print "cat " F[key] " &&"
31643       '$ac_cs_awk_pipe_init
31644   # The final `:' finishes the AND list.
31645   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31646 fi
31647 ac_cr=`echo X | tr X '\015'`
31648 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31649 # But we know of no other shell where ac_cr would be empty at this
31650 # point, so we can use a bashism as a fallback.
31651 if test "x$ac_cr" = x; then
31652   eval ac_cr=\$\'\\r\'
31653 fi
31654 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31655 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31656   ac_cs_awk_cr='\\r'
31657 else
31658   ac_cs_awk_cr=$ac_cr
31659 fi
31660
31661 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31662 _ACEOF
31663
31664 # Create commands to substitute file output variables.
31665 {
31666   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31667   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31668   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31669   echo "_ACAWK" &&
31670   echo "_ACEOF"
31671 } >conf$$files.sh &&
31672 . ./conf$$files.sh ||
31673   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31674 rm -f conf$$files.sh
31675
31676 {
31677   echo "cat >conf$$subs.awk <<_ACEOF" &&
31678   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31679   echo "_ACEOF"
31680 } >conf$$subs.sh ||
31681   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31682 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31683 ac_delim='%!_!# '
31684 for ac_last_try in false false false false false :; do
31685   . ./conf$$subs.sh ||
31686     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31687
31688   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31689   if test $ac_delim_n = $ac_delim_num; then
31690     break
31691   elif $ac_last_try; then
31692     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31693   else
31694     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31695   fi
31696 done
31697 rm -f conf$$subs.sh
31698
31699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31700 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31701 _ACEOF
31702 sed -n '
31703 h
31704 s/^/S["/; s/!.*/"]=/
31705 p
31706 g
31707 s/^[^!]*!//
31708 :repl
31709 t repl
31710 s/'"$ac_delim"'$//
31711 t delim
31712 :nl
31713 h
31714 s/\(.\{148\}\)..*/\1/
31715 t more1
31716 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31717 p
31718 n
31719 b repl
31720 :more1
31721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31722 p
31723 g
31724 s/.\{148\}//
31725 t nl
31726 :delim
31727 h
31728 s/\(.\{148\}\)..*/\1/
31729 t more2
31730 s/["\\]/\\&/g; s/^/"/; s/$/"/
31731 p
31732 b
31733 :more2
31734 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31735 p
31736 g
31737 s/.\{148\}//
31738 t delim
31739 ' <conf$$subs.awk | sed '
31740 /^[^""]/{
31741   N
31742   s/\n//
31743 }
31744 ' >>$CONFIG_STATUS || ac_write_fail=1
31745 rm -f conf$$subs.awk
31746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31747 _ACAWK
31748 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31749   for (key in S) S_is_set[key] = 1
31750   FS = "\a"
31751   \$ac_cs_awk_pipe_init
31752 }
31753 {
31754   line = $ 0
31755   nfields = split(line, field, "@")
31756   substed = 0
31757   len = length(field[1])
31758   for (i = 2; i < nfields; i++) {
31759     key = field[i]
31760     keylen = length(key)
31761     if (S_is_set[key]) {
31762       value = S[key]
31763       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31764       len += length(value) + length(field[++i])
31765       substed = 1
31766     } else
31767       len += 1 + keylen
31768   }
31769   if (nfields == 3 && !substed) {
31770     key = field[2]
31771     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31772       \$ac_cs_awk_read_file
31773       next
31774     }
31775   }
31776   print line
31777 }
31778 \$ac_cs_awk_pipe_fini
31779 _ACAWK
31780 _ACEOF
31781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31783   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31784 else
31785   cat
31786 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31787   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31788 _ACEOF
31789
31790 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31791 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31792 # trailing colons and then remove the whole line if VPATH becomes empty
31793 # (actually we leave an empty line to preserve line numbers).
31794 if test "x$srcdir" = x.; then
31795   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31796 h
31797 s///
31798 s/^/:/
31799 s/[      ]*$/:/
31800 s/:\$(srcdir):/:/g
31801 s/:\${srcdir}:/:/g
31802 s/:@srcdir@:/:/g
31803 s/^:*//
31804 s/:*$//
31805 x
31806 s/\(=[   ]*\).*/\1/
31807 G
31808 s/\n//
31809 s/^[^=]*=[       ]*$//
31810 }'
31811 fi
31812
31813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31814 fi # test -n "$CONFIG_FILES"
31815
31816 # Set up the scripts for CONFIG_HEADERS section.
31817 # No need to generate them if there are no CONFIG_HEADERS.
31818 # This happens for instance with `./config.status Makefile'.
31819 if test -n "$CONFIG_HEADERS"; then
31820 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31821 BEGIN {
31822 _ACEOF
31823
31824 # Transform confdefs.h into an awk script `defines.awk', embedded as
31825 # here-document in config.status, that substitutes the proper values into
31826 # config.h.in to produce config.h.
31827
31828 # Create a delimiter string that does not exist in confdefs.h, to ease
31829 # handling of long lines.
31830 ac_delim='%!_!# '
31831 for ac_last_try in false false :; do
31832   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31833   if test -z "$ac_tt"; then
31834     break
31835   elif $ac_last_try; then
31836     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31837   else
31838     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31839   fi
31840 done
31841
31842 # For the awk script, D is an array of macro values keyed by name,
31843 # likewise P contains macro parameters if any.  Preserve backslash
31844 # newline sequences.
31845
31846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31847 sed -n '
31848 s/.\{148\}/&'"$ac_delim"'/g
31849 t rset
31850 :rset
31851 s/^[     ]*#[    ]*define[       ][      ]*/ /
31852 t def
31853 d
31854 :def
31855 s/\\$//
31856 t bsnl
31857 s/["\\]/\\&/g
31858 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31859 D["\1"]=" \3"/p
31860 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31861 d
31862 :bsnl
31863 s/["\\]/\\&/g
31864 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31865 D["\1"]=" \3\\\\\\n"\\/p
31866 t cont
31867 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31868 t cont
31869 d
31870 :cont
31871 n
31872 s/.\{148\}/&'"$ac_delim"'/g
31873 t clear
31874 :clear
31875 s/\\$//
31876 t bsnlc
31877 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31878 d
31879 :bsnlc
31880 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31881 b cont
31882 ' <confdefs.h | sed '
31883 s/'"$ac_delim"'/"\\\
31884 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31885
31886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31887   for (key in D) D_is_set[key] = 1
31888   FS = "\a"
31889 }
31890 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31891   line = \$ 0
31892   split(line, arg, " ")
31893   if (arg[1] == "#") {
31894     defundef = arg[2]
31895     mac1 = arg[3]
31896   } else {
31897     defundef = substr(arg[1], 2)
31898     mac1 = arg[2]
31899   }
31900   split(mac1, mac2, "(") #)
31901   macro = mac2[1]
31902   prefix = substr(line, 1, index(line, defundef) - 1)
31903   if (D_is_set[macro]) {
31904     # Preserve the white space surrounding the "#".
31905     print prefix "define", macro P[macro] D[macro]
31906     next
31907   } else {
31908     # Replace #undef with comments.  This is necessary, for example,
31909     # in the case of _POSIX_SOURCE, which is predefined and required
31910     # on some systems where configure will not decide to define it.
31911     if (defundef == "undef") {
31912       print "/*", prefix defundef, macro, "*/"
31913       next
31914     }
31915   }
31916 }
31917 { print }
31918 _ACAWK
31919 _ACEOF
31920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31921   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31922 fi # test -n "$CONFIG_HEADERS"
31923
31924
31925 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31926 shift
31927 for ac_tag
31928 do
31929   case $ac_tag in
31930   :[FHLC]) ac_mode=$ac_tag; continue;;
31931   esac
31932   case $ac_mode$ac_tag in
31933   :[FHL]*:*);;
31934   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31935   :[FH]-) ac_tag=-:-;;
31936   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31937   esac
31938   ac_save_IFS=$IFS
31939   IFS=:
31940   set x $ac_tag
31941   IFS=$ac_save_IFS
31942   shift
31943   ac_file=$1
31944   shift
31945
31946   case $ac_mode in
31947   :L) ac_source=$1;;
31948   :[FH])
31949     ac_file_inputs=
31950     for ac_f
31951     do
31952       case $ac_f in
31953       -) ac_f="$ac_tmp/stdin";;
31954       *) # Look for the file first in the build tree, then in the source tree
31955          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31956          # because $ac_f cannot contain `:'.
31957          test -f "$ac_f" ||
31958            case $ac_f in
31959            [\\/$]*) false;;
31960            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31961            esac ||
31962            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31963       esac
31964       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31965       as_fn_append ac_file_inputs " '$ac_f'"
31966     done
31967
31968     # Let's still pretend it is `configure' which instantiates (i.e., don't
31969     # use $as_me), people would be surprised to read:
31970     #    /* config.h.  Generated by config.status.  */
31971     configure_input='Generated from '`
31972           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31973         `' by configure.'
31974     if test x"$ac_file" != x-; then
31975       configure_input="$ac_file.  $configure_input"
31976       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31977 $as_echo "$as_me: creating $ac_file" >&6;}
31978     fi
31979     # Neutralize special characters interpreted by sed in replacement strings.
31980     case $configure_input in #(
31981     *\&* | *\|* | *\\* )
31982        ac_sed_conf_input=`$as_echo "$configure_input" |
31983        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31984     *) ac_sed_conf_input=$configure_input;;
31985     esac
31986
31987     case $ac_tag in
31988     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31989       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31990     esac
31991     ;;
31992   esac
31993
31994   ac_dir=`$as_dirname -- "$ac_file" ||
31995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31996          X"$ac_file" : 'X\(//\)[^/]' \| \
31997          X"$ac_file" : 'X\(//\)$' \| \
31998          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31999 $as_echo X"$ac_file" |
32000     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32001             s//\1/
32002             q
32003           }
32004           /^X\(\/\/\)[^/].*/{
32005             s//\1/
32006             q
32007           }
32008           /^X\(\/\/\)$/{
32009             s//\1/
32010             q
32011           }
32012           /^X\(\/\).*/{
32013             s//\1/
32014             q
32015           }
32016           s/.*/./; q'`
32017   as_dir="$ac_dir"; as_fn_mkdir_p
32018   ac_builddir=.
32019
32020 case "$ac_dir" in
32021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32022 *)
32023   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32024   # A ".." for each directory in $ac_dir_suffix.
32025   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32026   case $ac_top_builddir_sub in
32027   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32028   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32029   esac ;;
32030 esac
32031 ac_abs_top_builddir=$ac_pwd
32032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32033 # for backward compatibility:
32034 ac_top_builddir=$ac_top_build_prefix
32035
32036 case $srcdir in
32037   .)  # We are building in place.
32038     ac_srcdir=.
32039     ac_top_srcdir=$ac_top_builddir_sub
32040     ac_abs_top_srcdir=$ac_pwd ;;
32041   [\\/]* | ?:[\\/]* )  # Absolute name.
32042     ac_srcdir=$srcdir$ac_dir_suffix;
32043     ac_top_srcdir=$srcdir
32044     ac_abs_top_srcdir=$srcdir ;;
32045   *) # Relative name.
32046     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32047     ac_top_srcdir=$ac_top_build_prefix$srcdir
32048     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32049 esac
32050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32051
32052
32053   case $ac_mode in
32054   :F)
32055   #
32056   # CONFIG_FILE
32057   #
32058
32059   case $INSTALL in
32060   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32061   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32062   esac
32063 _ACEOF
32064
32065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32066 # If the template does not know about datarootdir, expand it.
32067 # FIXME: This hack should be removed a few years after 2.60.
32068 ac_datarootdir_hack=; ac_datarootdir_seen=
32069 ac_sed_dataroot='
32070 /datarootdir/ {
32071   p
32072   q
32073 }
32074 /@datadir@/p
32075 /@docdir@/p
32076 /@infodir@/p
32077 /@localedir@/p
32078 /@mandir@/p'
32079 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32080 *datarootdir*) ac_datarootdir_seen=yes;;
32081 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32082   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32083 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32084 _ACEOF
32085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32086   ac_datarootdir_hack='
32087   s&@datadir@&$datadir&g
32088   s&@docdir@&$docdir&g
32089   s&@infodir@&$infodir&g
32090   s&@localedir@&$localedir&g
32091   s&@mandir@&$mandir&g
32092   s&\\\${datarootdir}&$datarootdir&g' ;;
32093 esac
32094 _ACEOF
32095
32096 # Neutralize VPATH when `$srcdir' = `.'.
32097 # Shell code in configure.ac might set extrasub.
32098 # FIXME: do we really want to maintain this feature?
32099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32100 ac_sed_extra="$ac_vpsub
32101 $extrasub
32102 _ACEOF
32103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32104 :t
32105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32106 s|@configure_input@|$ac_sed_conf_input|;t t
32107 s&@top_builddir@&$ac_top_builddir_sub&;t t
32108 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32109 s&@srcdir@&$ac_srcdir&;t t
32110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32111 s&@top_srcdir@&$ac_top_srcdir&;t t
32112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32113 s&@builddir@&$ac_builddir&;t t
32114 s&@abs_builddir@&$ac_abs_builddir&;t t
32115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32116 s&@INSTALL@&$ac_INSTALL&;t t
32117 $ac_datarootdir_hack
32118 "
32119 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32120 if $ac_cs_awk_getline; then
32121   $AWK -f "$ac_tmp/subs.awk"
32122 else
32123   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32124 fi \
32125   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32126
32127 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32128   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32129   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32130       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32131   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32132 which seems to be undefined.  Please make sure it is defined" >&5
32133 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32134 which seems to be undefined.  Please make sure it is defined" >&2;}
32135
32136   rm -f "$ac_tmp/stdin"
32137   case $ac_file in
32138   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32139   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32140   esac \
32141   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32142  ;;
32143   :H)
32144   #
32145   # CONFIG_HEADER
32146   #
32147   if test x"$ac_file" != x-; then
32148     {
32149       $as_echo "/* $configure_input  */" \
32150       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32151     } >"$ac_tmp/config.h" \
32152       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32153     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32154       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32155 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32156     else
32157       rm -f "$ac_file"
32158       mv "$ac_tmp/config.h" "$ac_file" \
32159         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32160     fi
32161   else
32162     $as_echo "/* $configure_input  */" \
32163       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32164       || as_fn_error $? "could not create -" "$LINENO" 5
32165   fi
32166  ;;
32167
32168   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32169 $as_echo "$as_me: executing $ac_file commands" >&6;}
32170  ;;
32171   esac
32172
32173
32174   case $ac_file$ac_mode in
32175     "libtool":C)
32176
32177     # See if we are running on zsh, and set the options which allow our
32178     # commands through without removal of \ escapes.
32179     if test -n "${ZSH_VERSION+set}" ; then
32180       setopt NO_GLOB_SUBST
32181     fi
32182
32183     cfgfile="${ofile}T"
32184     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32185     $RM "$cfgfile"
32186
32187     cat <<_LT_EOF >> "$cfgfile"
32188 #! $SHELL
32189
32190 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32191 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32193 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32194 #
32195 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32196 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32197 #                 Inc.
32198 #   Written by Gordon Matzigkeit, 1996
32199 #
32200 #   This file is part of GNU Libtool.
32201 #
32202 # GNU Libtool is free software; you can redistribute it and/or
32203 # modify it under the terms of the GNU General Public License as
32204 # published by the Free Software Foundation; either version 2 of
32205 # the License, or (at your option) any later version.
32206 #
32207 # As a special exception to the GNU General Public License,
32208 # if you distribute this file as part of a program or library that
32209 # is built using GNU Libtool, you may include this file under the
32210 # same distribution terms that you use for the rest of that program.
32211 #
32212 # GNU Libtool is distributed in the hope that it will be useful,
32213 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32214 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32215 # GNU General Public License for more details.
32216 #
32217 # You should have received a copy of the GNU General Public License
32218 # along with GNU Libtool; see the file COPYING.  If not, a copy
32219 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32220 # obtained by writing to the Free Software Foundation, Inc.,
32221 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32222
32223
32224 # The names of the tagged configurations supported by this script.
32225 available_tags="CXX "
32226
32227 # ### BEGIN LIBTOOL CONFIG
32228
32229 # Which release of libtool.m4 was used?
32230 macro_version=$macro_version
32231 macro_revision=$macro_revision
32232
32233 # Whether or not to build shared libraries.
32234 build_libtool_libs=$enable_shared
32235
32236 # Whether or not to build static libraries.
32237 build_old_libs=$enable_static
32238
32239 # What type of objects to build.
32240 pic_mode=$pic_mode
32241
32242 # Whether or not to optimize for fast installation.
32243 fast_install=$enable_fast_install
32244
32245 # Shell to use when invoking shell scripts.
32246 SHELL=$lt_SHELL
32247
32248 # An echo program that protects backslashes.
32249 ECHO=$lt_ECHO
32250
32251 # The host system.
32252 host_alias=$host_alias
32253 host=$host
32254 host_os=$host_os
32255
32256 # The build system.
32257 build_alias=$build_alias
32258 build=$build
32259 build_os=$build_os
32260
32261 # A sed program that does not truncate output.
32262 SED=$lt_SED
32263
32264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32265 Xsed="\$SED -e 1s/^X//"
32266
32267 # A grep program that handles long lines.
32268 GREP=$lt_GREP
32269
32270 # An ERE matcher.
32271 EGREP=$lt_EGREP
32272
32273 # A literal string matcher.
32274 FGREP=$lt_FGREP
32275
32276 # A BSD- or MS-compatible name lister.
32277 NM=$lt_NM
32278
32279 # Whether we need soft or hard links.
32280 LN_S=$lt_LN_S
32281
32282 # What is the maximum length of a command?
32283 max_cmd_len=$max_cmd_len
32284
32285 # Object file suffix (normally "o").
32286 objext=$ac_objext
32287
32288 # Executable file suffix (normally "").
32289 exeext=$exeext
32290
32291 # whether the shell understands "unset".
32292 lt_unset=$lt_unset
32293
32294 # turn spaces into newlines.
32295 SP2NL=$lt_lt_SP2NL
32296
32297 # turn newlines into spaces.
32298 NL2SP=$lt_lt_NL2SP
32299
32300 # convert \$build file names to \$host format.
32301 to_host_file_cmd=$lt_cv_to_host_file_cmd
32302
32303 # convert \$build files to toolchain format.
32304 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32305
32306 # An object symbol dumper.
32307 OBJDUMP=$lt_OBJDUMP
32308
32309 # Method to check whether dependent libraries are shared objects.
32310 deplibs_check_method=$lt_deplibs_check_method
32311
32312 # Command to use when deplibs_check_method = "file_magic".
32313 file_magic_cmd=$lt_file_magic_cmd
32314
32315 # How to find potential files when deplibs_check_method = "file_magic".
32316 file_magic_glob=$lt_file_magic_glob
32317
32318 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32319 want_nocaseglob=$lt_want_nocaseglob
32320
32321 # DLL creation program.
32322 DLLTOOL=$lt_DLLTOOL
32323
32324 # Command to associate shared and link libraries.
32325 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32326
32327 # The archiver.
32328 AR=$lt_AR
32329
32330 # Flags to create an archive.
32331 AR_FLAGS=$lt_AR_FLAGS
32332
32333 # How to feed a file listing to the archiver.
32334 archiver_list_spec=$lt_archiver_list_spec
32335
32336 # A symbol stripping program.
32337 STRIP=$lt_STRIP
32338
32339 # Commands used to install an old-style archive.
32340 RANLIB=$lt_RANLIB
32341 old_postinstall_cmds=$lt_old_postinstall_cmds
32342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32343
32344 # Whether to use a lock for old archive extraction.
32345 lock_old_archive_extraction=$lock_old_archive_extraction
32346
32347 # A C compiler.
32348 LTCC=$lt_CC
32349
32350 # LTCC compiler flags.
32351 LTCFLAGS=$lt_CFLAGS
32352
32353 # Take the output of nm and produce a listing of raw symbols and C names.
32354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32355
32356 # Transform the output of nm in a proper C declaration.
32357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32358
32359 # Transform the output of nm in a C name address pair.
32360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32361
32362 # Transform the output of nm in a C name address pair when lib prefix is needed.
32363 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32364
32365 # Specify filename containing input files for \$NM.
32366 nm_file_list_spec=$lt_nm_file_list_spec
32367
32368 # The root where to search for dependent libraries,and in which our libraries should be installed.
32369 lt_sysroot=$lt_sysroot
32370
32371 # The name of the directory that contains temporary libtool files.
32372 objdir=$objdir
32373
32374 # Used to examine libraries when file_magic_cmd begins with "file".
32375 MAGIC_CMD=$MAGIC_CMD
32376
32377 # Must we lock files when doing compilation?
32378 need_locks=$lt_need_locks
32379
32380 # Manifest tool.
32381 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32382
32383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32384 DSYMUTIL=$lt_DSYMUTIL
32385
32386 # Tool to change global to local symbols on Mac OS X.
32387 NMEDIT=$lt_NMEDIT
32388
32389 # Tool to manipulate fat objects and archives on Mac OS X.
32390 LIPO=$lt_LIPO
32391
32392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32393 OTOOL=$lt_OTOOL
32394
32395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32396 OTOOL64=$lt_OTOOL64
32397
32398 # Old archive suffix (normally "a").
32399 libext=$libext
32400
32401 # Shared library suffix (normally ".so").
32402 shrext_cmds=$lt_shrext_cmds
32403
32404 # The commands to extract the exported symbol list from a shared archive.
32405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32406
32407 # Variables whose values should be saved in libtool wrapper scripts and
32408 # restored at link time.
32409 variables_saved_for_relink=$lt_variables_saved_for_relink
32410
32411 # Do we need the "lib" prefix for modules?
32412 need_lib_prefix=$need_lib_prefix
32413
32414 # Do we need a version for libraries?
32415 need_version=$need_version
32416
32417 # Library versioning type.
32418 version_type=$version_type
32419
32420 # Shared library runtime path variable.
32421 runpath_var=$runpath_var
32422
32423 # Shared library path variable.
32424 shlibpath_var=$shlibpath_var
32425
32426 # Is shlibpath searched before the hard-coded library search path?
32427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32428
32429 # Format of library name prefix.
32430 libname_spec=$lt_libname_spec
32431
32432 # List of archive names.  First name is the real one, the rest are links.
32433 # The last name is the one that the linker finds with -lNAME
32434 library_names_spec=$lt_library_names_spec
32435
32436 # The coded name of the library, if different from the real name.
32437 soname_spec=$lt_soname_spec
32438
32439 # Permission mode override for installation of shared libraries.
32440 install_override_mode=$lt_install_override_mode
32441
32442 # Command to use after installation of a shared archive.
32443 postinstall_cmds=$lt_postinstall_cmds
32444
32445 # Command to use after uninstallation of a shared archive.
32446 postuninstall_cmds=$lt_postuninstall_cmds
32447
32448 # Commands used to finish a libtool library installation in a directory.
32449 finish_cmds=$lt_finish_cmds
32450
32451 # As "finish_cmds", except a single script fragment to be evaled but
32452 # not shown.
32453 finish_eval=$lt_finish_eval
32454
32455 # Whether we should hardcode library paths into libraries.
32456 hardcode_into_libs=$hardcode_into_libs
32457
32458 # Compile-time system search path for libraries.
32459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32460
32461 # Run-time system search path for libraries.
32462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32463
32464 # Whether dlopen is supported.
32465 dlopen_support=$enable_dlopen
32466
32467 # Whether dlopen of programs is supported.
32468 dlopen_self=$enable_dlopen_self
32469
32470 # Whether dlopen of statically linked programs is supported.
32471 dlopen_self_static=$enable_dlopen_self_static
32472
32473 # Commands to strip libraries.
32474 old_striplib=$lt_old_striplib
32475 striplib=$lt_striplib
32476
32477
32478 # The linker used to build libraries.
32479 LD=$lt_LD
32480
32481 # How to create reloadable object files.
32482 reload_flag=$lt_reload_flag
32483 reload_cmds=$lt_reload_cmds
32484
32485 # Commands used to build an old-style archive.
32486 old_archive_cmds=$lt_old_archive_cmds
32487
32488 # A language specific compiler.
32489 CC=$lt_compiler
32490
32491 # Is the compiler the GNU compiler?
32492 with_gcc=$GCC
32493
32494 # Compiler flag to turn off builtin functions.
32495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32496
32497 # Additional compiler flags for building library objects.
32498 pic_flag=$lt_lt_prog_compiler_pic
32499
32500 # How to pass a linker flag through the compiler.
32501 wl=$lt_lt_prog_compiler_wl
32502
32503 # Compiler flag to prevent dynamic linking.
32504 link_static_flag=$lt_lt_prog_compiler_static
32505
32506 # Does compiler simultaneously support -c and -o options?
32507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32508
32509 # Whether or not to add -lc for building shared libraries.
32510 build_libtool_need_lc=$archive_cmds_need_lc
32511
32512 # Whether or not to disallow shared libs when runtime libs are static.
32513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32514
32515 # Compiler flag to allow reflexive dlopens.
32516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32517
32518 # Compiler flag to generate shared objects directly from archives.
32519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32520
32521 # Whether the compiler copes with passing no objects directly.
32522 compiler_needs_object=$lt_compiler_needs_object
32523
32524 # Create an old-style archive from a shared archive.
32525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32526
32527 # Create a temporary old-style archive to link instead of a shared archive.
32528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32529
32530 # Commands used to build a shared archive.
32531 archive_cmds=$lt_archive_cmds
32532 archive_expsym_cmds=$lt_archive_expsym_cmds
32533
32534 # Commands used to build a loadable module if different from building
32535 # a shared archive.
32536 module_cmds=$lt_module_cmds
32537 module_expsym_cmds=$lt_module_expsym_cmds
32538
32539 # Whether we are building with GNU ld or not.
32540 with_gnu_ld=$lt_with_gnu_ld
32541
32542 # Flag that allows shared libraries with undefined symbols to be built.
32543 allow_undefined_flag=$lt_allow_undefined_flag
32544
32545 # Flag that enforces no undefined symbols.
32546 no_undefined_flag=$lt_no_undefined_flag
32547
32548 # Flag to hardcode \$libdir into a binary during linking.
32549 # This must work even if \$libdir does not exist
32550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32551
32552 # If ld is used when linking, flag to hardcode \$libdir into a binary
32553 # during linking.  This must work even if \$libdir does not exist.
32554 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32555
32556 # Whether we need a single "-rpath" flag with a separated argument.
32557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32558
32559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32560 # DIR into the resulting binary.
32561 hardcode_direct=$hardcode_direct
32562
32563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32564 # DIR into the resulting binary and the resulting library dependency is
32565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32566 # library is relocated.
32567 hardcode_direct_absolute=$hardcode_direct_absolute
32568
32569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32570 # into the resulting binary.
32571 hardcode_minus_L=$hardcode_minus_L
32572
32573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32574 # into the resulting binary.
32575 hardcode_shlibpath_var=$hardcode_shlibpath_var
32576
32577 # Set to "yes" if building a shared library automatically hardcodes DIR
32578 # into the library and all subsequent libraries and executables linked
32579 # against it.
32580 hardcode_automatic=$hardcode_automatic
32581
32582 # Set to yes if linker adds runtime paths of dependent libraries
32583 # to runtime path list.
32584 inherit_rpath=$inherit_rpath
32585
32586 # Whether libtool must link a program against all its dependency libraries.
32587 link_all_deplibs=$link_all_deplibs
32588
32589 # Set to "yes" if exported symbols are required.
32590 always_export_symbols=$always_export_symbols
32591
32592 # The commands to list exported symbols.
32593 export_symbols_cmds=$lt_export_symbols_cmds
32594
32595 # Symbols that should not be listed in the preloaded symbols.
32596 exclude_expsyms=$lt_exclude_expsyms
32597
32598 # Symbols that must always be exported.
32599 include_expsyms=$lt_include_expsyms
32600
32601 # Commands necessary for linking programs (against libraries) with templates.
32602 prelink_cmds=$lt_prelink_cmds
32603
32604 # Commands necessary for finishing linking programs.
32605 postlink_cmds=$lt_postlink_cmds
32606
32607 # Specify filename containing input files.
32608 file_list_spec=$lt_file_list_spec
32609
32610 # How to hardcode a shared library path into an executable.
32611 hardcode_action=$hardcode_action
32612
32613 # The directories searched by this compiler when creating a shared library.
32614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32615
32616 # Dependencies to place before and after the objects being linked to
32617 # create a shared library.
32618 predep_objects=$lt_predep_objects
32619 postdep_objects=$lt_postdep_objects
32620 predeps=$lt_predeps
32621 postdeps=$lt_postdeps
32622
32623 # The library search path used internally by the compiler when linking
32624 # a shared library.
32625 compiler_lib_search_path=$lt_compiler_lib_search_path
32626
32627 # ### END LIBTOOL CONFIG
32628
32629 _LT_EOF
32630
32631   case $host_os in
32632   aix3*)
32633     cat <<\_LT_EOF >> "$cfgfile"
32634 # AIX sometimes has problems with the GCC collect2 program.  For some
32635 # reason, if we set the COLLECT_NAMES environment variable, the problems
32636 # vanish in a puff of smoke.
32637 if test "X${COLLECT_NAMES+set}" != Xset; then
32638   COLLECT_NAMES=
32639   export COLLECT_NAMES
32640 fi
32641 _LT_EOF
32642     ;;
32643   esac
32644
32645
32646 ltmain="$ac_aux_dir/ltmain.sh"
32647
32648
32649   # We use sed instead of cat because bash on DJGPP gets confused if
32650   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32651   # text mode, it properly converts lines to CR/LF.  This bash problem
32652   # is reportedly fixed, but why not run on old versions too?
32653   sed '$q' "$ltmain" >> "$cfgfile" \
32654      || (rm -f "$cfgfile"; exit 1)
32655
32656   if test x"$xsi_shell" = xyes; then
32657   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32658 func_dirname ()\
32659 {\
32660 \    case ${1} in\
32661 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32662 \      *  ) func_dirname_result="${3}" ;;\
32663 \    esac\
32664 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32665   && mv -f "$cfgfile.tmp" "$cfgfile" \
32666     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32667 test 0 -eq $? || _lt_function_replace_fail=:
32668
32669
32670   sed -e '/^func_basename ()$/,/^} # func_basename /c\
32671 func_basename ()\
32672 {\
32673 \    func_basename_result="${1##*/}"\
32674 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32675   && mv -f "$cfgfile.tmp" "$cfgfile" \
32676     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32677 test 0 -eq $? || _lt_function_replace_fail=:
32678
32679
32680   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32681 func_dirname_and_basename ()\
32682 {\
32683 \    case ${1} in\
32684 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32685 \      *  ) func_dirname_result="${3}" ;;\
32686 \    esac\
32687 \    func_basename_result="${1##*/}"\
32688 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32689   && mv -f "$cfgfile.tmp" "$cfgfile" \
32690     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32691 test 0 -eq $? || _lt_function_replace_fail=:
32692
32693
32694   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32695 func_stripname ()\
32696 {\
32697 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32698 \    # positional parameters, so assign one to ordinary parameter first.\
32699 \    func_stripname_result=${3}\
32700 \    func_stripname_result=${func_stripname_result#"${1}"}\
32701 \    func_stripname_result=${func_stripname_result%"${2}"}\
32702 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32703   && mv -f "$cfgfile.tmp" "$cfgfile" \
32704     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32705 test 0 -eq $? || _lt_function_replace_fail=:
32706
32707
32708   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32709 func_split_long_opt ()\
32710 {\
32711 \    func_split_long_opt_name=${1%%=*}\
32712 \    func_split_long_opt_arg=${1#*=}\
32713 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32714   && mv -f "$cfgfile.tmp" "$cfgfile" \
32715     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32716 test 0 -eq $? || _lt_function_replace_fail=:
32717
32718
32719   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32720 func_split_short_opt ()\
32721 {\
32722 \    func_split_short_opt_arg=${1#??}\
32723 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32724 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32725   && mv -f "$cfgfile.tmp" "$cfgfile" \
32726     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32727 test 0 -eq $? || _lt_function_replace_fail=:
32728
32729
32730   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32731 func_lo2o ()\
32732 {\
32733 \    case ${1} in\
32734 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32735 \      *)    func_lo2o_result=${1} ;;\
32736 \    esac\
32737 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32738   && mv -f "$cfgfile.tmp" "$cfgfile" \
32739     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32740 test 0 -eq $? || _lt_function_replace_fail=:
32741
32742
32743   sed -e '/^func_xform ()$/,/^} # func_xform /c\
32744 func_xform ()\
32745 {\
32746     func_xform_result=${1%.*}.lo\
32747 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32748   && mv -f "$cfgfile.tmp" "$cfgfile" \
32749     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32750 test 0 -eq $? || _lt_function_replace_fail=:
32751
32752
32753   sed -e '/^func_arith ()$/,/^} # func_arith /c\
32754 func_arith ()\
32755 {\
32756     func_arith_result=$(( $* ))\
32757 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32758   && mv -f "$cfgfile.tmp" "$cfgfile" \
32759     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32760 test 0 -eq $? || _lt_function_replace_fail=:
32761
32762
32763   sed -e '/^func_len ()$/,/^} # func_len /c\
32764 func_len ()\
32765 {\
32766     func_len_result=${#1}\
32767 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32768   && mv -f "$cfgfile.tmp" "$cfgfile" \
32769     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32770 test 0 -eq $? || _lt_function_replace_fail=:
32771
32772 fi
32773
32774 if test x"$lt_shell_append" = xyes; then
32775   sed -e '/^func_append ()$/,/^} # func_append /c\
32776 func_append ()\
32777 {\
32778     eval "${1}+=\\${2}"\
32779 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32780   && mv -f "$cfgfile.tmp" "$cfgfile" \
32781     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32782 test 0 -eq $? || _lt_function_replace_fail=:
32783
32784
32785   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32786 func_append_quoted ()\
32787 {\
32788 \    func_quote_for_eval "${2}"\
32789 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32790 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32791   && mv -f "$cfgfile.tmp" "$cfgfile" \
32792     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32793 test 0 -eq $? || _lt_function_replace_fail=:
32794
32795
32796   # Save a `func_append' function call where possible by direct use of '+='
32797   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32798     && mv -f "$cfgfile.tmp" "$cfgfile" \
32799       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32800   test 0 -eq $? || _lt_function_replace_fail=:
32801 else
32802   # Save a `func_append' function call even when '+=' is not available
32803   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32804     && mv -f "$cfgfile.tmp" "$cfgfile" \
32805       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32806   test 0 -eq $? || _lt_function_replace_fail=:
32807 fi
32808
32809 if test x"$_lt_function_replace_fail" = x":"; then
32810   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32811 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32812 fi
32813
32814
32815    mv -f "$cfgfile" "$ofile" ||
32816     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32817   chmod +x "$ofile"
32818
32819
32820     cat <<_LT_EOF >> "$ofile"
32821
32822 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32823
32824 # The linker used to build libraries.
32825 LD=$lt_LD_CXX
32826
32827 # How to create reloadable object files.
32828 reload_flag=$lt_reload_flag_CXX
32829 reload_cmds=$lt_reload_cmds_CXX
32830
32831 # Commands used to build an old-style archive.
32832 old_archive_cmds=$lt_old_archive_cmds_CXX
32833
32834 # A language specific compiler.
32835 CC=$lt_compiler_CXX
32836
32837 # Is the compiler the GNU compiler?
32838 with_gcc=$GCC_CXX
32839
32840 # Compiler flag to turn off builtin functions.
32841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32842
32843 # Additional compiler flags for building library objects.
32844 pic_flag=$lt_lt_prog_compiler_pic_CXX
32845
32846 # How to pass a linker flag through the compiler.
32847 wl=$lt_lt_prog_compiler_wl_CXX
32848
32849 # Compiler flag to prevent dynamic linking.
32850 link_static_flag=$lt_lt_prog_compiler_static_CXX
32851
32852 # Does compiler simultaneously support -c and -o options?
32853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32854
32855 # Whether or not to add -lc for building shared libraries.
32856 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32857
32858 # Whether or not to disallow shared libs when runtime libs are static.
32859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32860
32861 # Compiler flag to allow reflexive dlopens.
32862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32863
32864 # Compiler flag to generate shared objects directly from archives.
32865 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32866
32867 # Whether the compiler copes with passing no objects directly.
32868 compiler_needs_object=$lt_compiler_needs_object_CXX
32869
32870 # Create an old-style archive from a shared archive.
32871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32872
32873 # Create a temporary old-style archive to link instead of a shared archive.
32874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32875
32876 # Commands used to build a shared archive.
32877 archive_cmds=$lt_archive_cmds_CXX
32878 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32879
32880 # Commands used to build a loadable module if different from building
32881 # a shared archive.
32882 module_cmds=$lt_module_cmds_CXX
32883 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32884
32885 # Whether we are building with GNU ld or not.
32886 with_gnu_ld=$lt_with_gnu_ld_CXX
32887
32888 # Flag that allows shared libraries with undefined symbols to be built.
32889 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32890
32891 # Flag that enforces no undefined symbols.
32892 no_undefined_flag=$lt_no_undefined_flag_CXX
32893
32894 # Flag to hardcode \$libdir into a binary during linking.
32895 # This must work even if \$libdir does not exist
32896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32897
32898 # If ld is used when linking, flag to hardcode \$libdir into a binary
32899 # during linking.  This must work even if \$libdir does not exist.
32900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32901
32902 # Whether we need a single "-rpath" flag with a separated argument.
32903 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32904
32905 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32906 # DIR into the resulting binary.
32907 hardcode_direct=$hardcode_direct_CXX
32908
32909 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32910 # DIR into the resulting binary and the resulting library dependency is
32911 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32912 # library is relocated.
32913 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32914
32915 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32916 # into the resulting binary.
32917 hardcode_minus_L=$hardcode_minus_L_CXX
32918
32919 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32920 # into the resulting binary.
32921 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32922
32923 # Set to "yes" if building a shared library automatically hardcodes DIR
32924 # into the library and all subsequent libraries and executables linked
32925 # against it.
32926 hardcode_automatic=$hardcode_automatic_CXX
32927
32928 # Set to yes if linker adds runtime paths of dependent libraries
32929 # to runtime path list.
32930 inherit_rpath=$inherit_rpath_CXX
32931
32932 # Whether libtool must link a program against all its dependency libraries.
32933 link_all_deplibs=$link_all_deplibs_CXX
32934
32935 # Set to "yes" if exported symbols are required.
32936 always_export_symbols=$always_export_symbols_CXX
32937
32938 # The commands to list exported symbols.
32939 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32940
32941 # Symbols that should not be listed in the preloaded symbols.
32942 exclude_expsyms=$lt_exclude_expsyms_CXX
32943
32944 # Symbols that must always be exported.
32945 include_expsyms=$lt_include_expsyms_CXX
32946
32947 # Commands necessary for linking programs (against libraries) with templates.
32948 prelink_cmds=$lt_prelink_cmds_CXX
32949
32950 # Commands necessary for finishing linking programs.
32951 postlink_cmds=$lt_postlink_cmds_CXX
32952
32953 # Specify filename containing input files.
32954 file_list_spec=$lt_file_list_spec_CXX
32955
32956 # How to hardcode a shared library path into an executable.
32957 hardcode_action=$hardcode_action_CXX
32958
32959 # The directories searched by this compiler when creating a shared library.
32960 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32961
32962 # Dependencies to place before and after the objects being linked to
32963 # create a shared library.
32964 predep_objects=$lt_predep_objects_CXX
32965 postdep_objects=$lt_postdep_objects_CXX
32966 predeps=$lt_predeps_CXX
32967 postdeps=$lt_postdeps_CXX
32968
32969 # The library search path used internally by the compiler when linking
32970 # a shared library.
32971 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32972
32973 # ### END LIBTOOL TAG CONFIG: CXX
32974 _LT_EOF
32975
32976  ;;
32977     "default-1":C)
32978     for ac_file in $CONFIG_FILES; do
32979       # Support "outfile[:infile[:infile...]]"
32980       case "$ac_file" in
32981         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32982       esac
32983       # PO directories have a Makefile.in generated from Makefile.in.in.
32984       case "$ac_file" in */Makefile.in)
32985         # Adjust a relative srcdir.
32986         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32987         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32988         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32989         # In autoconf-2.13 it is called $ac_given_srcdir.
32990         # In autoconf-2.50 it is called $srcdir.
32991         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32992         case "$ac_given_srcdir" in
32993           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32994           /*) top_srcdir="$ac_given_srcdir" ;;
32995           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32996         esac
32997         # Treat a directory as a PO directory if and only if it has a
32998         # POTFILES.in file. This allows packages to have multiple PO
32999         # directories under different names or in different locations.
33000         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33001           rm -f "$ac_dir/POTFILES"
33002           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33003           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33004           POMAKEFILEDEPS="POTFILES.in"
33005           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33006           # on $ac_dir but don't depend on user-specified configuration
33007           # parameters.
33008           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33009             # The LINGUAS file contains the set of available languages.
33010             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33011               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33012             fi
33013             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33014             # Hide the ALL_LINGUAS assigment from automake.
33015             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33016             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33017           else
33018             # The set of available languages was given in configure.in.
33019             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33020           fi
33021           # Compute POFILES
33022           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33023           # Compute UPDATEPOFILES
33024           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33025           # Compute DUMMYPOFILES
33026           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33027           # Compute GMOFILES
33028           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33029           case "$ac_given_srcdir" in
33030             .) srcdirpre= ;;
33031             *) srcdirpre='$(srcdir)/' ;;
33032           esac
33033           POFILES=
33034           UPDATEPOFILES=
33035           DUMMYPOFILES=
33036           GMOFILES=
33037           for lang in $ALL_LINGUAS; do
33038             POFILES="$POFILES $srcdirpre$lang.po"
33039             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33040             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33041             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33042           done
33043           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33044           # environment variable.
33045           INST_LINGUAS=
33046           if test -n "$ALL_LINGUAS"; then
33047             for presentlang in $ALL_LINGUAS; do
33048               useit=no
33049               if test "%UNSET%" != "$LINGUAS"; then
33050                 desiredlanguages="$LINGUAS"
33051               else
33052                 desiredlanguages="$ALL_LINGUAS"
33053               fi
33054               for desiredlang in $desiredlanguages; do
33055                 # Use the presentlang catalog if desiredlang is
33056                 #   a. equal to presentlang, or
33057                 #   b. a variant of presentlang (because in this case,
33058                 #      presentlang can be used as a fallback for messages
33059                 #      which are not translated in the desiredlang catalog).
33060                 case "$desiredlang" in
33061                   "$presentlang"*) useit=yes;;
33062                 esac
33063               done
33064               if test $useit = yes; then
33065                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33066               fi
33067             done
33068           fi
33069           CATALOGS=
33070           if test -n "$INST_LINGUAS"; then
33071             for lang in $INST_LINGUAS; do
33072               CATALOGS="$CATALOGS $lang.gmo"
33073             done
33074           fi
33075           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33076           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"
33077           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33078             if test -f "$f"; then
33079               case "$f" in
33080                 *.orig | *.bak | *~) ;;
33081                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33082               esac
33083             fi
33084           done
33085         fi
33086         ;;
33087       esac
33088     done ;;
33089     "default":C)
33090  ;;
33091
33092   esac
33093 done # for ac_tag
33094
33095
33096 as_fn_exit 0
33097 _ACEOF
33098 ac_clean_files=$ac_clean_files_save
33099
33100 test $ac_write_fail = 0 ||
33101   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33102
33103
33104 # configure is writing to config.log, and then calls config.status.
33105 # config.status does its own redirection, appending to config.log.
33106 # Unfortunately, on DOS this fails, as config.log is still kept open
33107 # by configure, so config.status won't be able to write to it; its
33108 # output is simply discarded.  So we exec the FD to /dev/null,
33109 # effectively closing config.log, so it can be properly (re)opened and
33110 # appended to by config.status.  When coming back to configure, we
33111 # need to make the FD available again.
33112 if test "$no_create" != yes; then
33113   ac_cs_success=:
33114   ac_config_status_args=
33115   test "$silent" = yes &&
33116     ac_config_status_args="$ac_config_status_args --quiet"
33117   exec 5>/dev/null
33118   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33119   exec 5>>config.log
33120   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33121   # would make configure fail if this is the last instruction.
33122   $ac_cs_success || as_fn_exit 1
33123 fi
33124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33125   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33127 fi
33128
33129
33130 if test "${support_bat}" = "yes" ; then
33131    if test "x$QMAKE" = "xnone"; then
33132       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33133    fi
33134
33135    cd src/qt-console
33136    echo "Creating bat Makefile"
33137    touch bat
33138    chmod 755 bat
33139    rm -f Makefile
33140    $QMAKE
33141    ${MAKE:-make} clean
33142    cd ${BUILD_DIR}
33143 fi
33144
33145 if test X"$GCC" = "Xyes" ; then
33146   echo "Doing make of dependencies"
33147   ${MAKE:-make} depend
33148 fi
33149
33150 cd src/qt-console
33151 chmod 755 install_conf_file build-depkgs-qt-console
33152 cd ${BUILD_DIR}
33153
33154 cd scripts
33155 chmod 755 bacula btraceback mtx-changer
33156 chmod 755 dvd-handler dvd-simulator
33157 chmod 755 bconsole mtx-changer devel_bacula logrotate
33158 cd ..
33159
33160 c=updatedb
33161 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33162 chmod 755 $c/update_postgresql_tables_10_to_11
33163 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33164 chmod 755 $c/update_postgresql_tables_11_to_12
33165
33166
33167 c=src/cats
33168
33169 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33170 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33171
33172 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33173 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33174
33175 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33176 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33177
33178 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33179 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33180
33181 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33182 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33183
33184
33185 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33186 chmod 755 $c/sqlite
33187 chmod 755 $c/mysql
33188
33189 chmod 755 $c/install-default-backend
33190
33191 chmod 755 src/win32/build-depkgs-mingw32
33192
33193 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33194    largefile_support="yes"
33195 fi
33196
33197 if test X"$GCC" = "Xyes" ; then
33198                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33199    if test "x${CCVERSION}" = "x" ; then
33200       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33201    fi
33202    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33203    if test x"${CXXVERSION}" = x ; then
33204       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33205    fi
33206 fi
33207
33208 # clean up any old junk
33209 echo " "
33210 echo "Cleaning up"
33211 echo " "
33212 ${MAKE:-make} clean
33213
33214 echo "
33215 Configuration on `date`:
33216
33217    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33218    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33219    Source code location:     ${srcdir}
33220    Install binaries:         ${sbindir}
33221    Install libraries:        ${libdir}
33222    Install config files:     ${sysconfdir}
33223    Scripts directory:        ${scriptdir}
33224    Archive directory:        ${archivedir}
33225    Working directory:        ${working_dir}
33226    PID directory:            ${piddir}
33227    Subsys directory:         ${subsysdir}
33228    Man directory:            ${mandir}
33229    Data directory:           ${datarootdir}
33230    Plugin directory:         ${plugindir}
33231    C Compiler:               ${CC} ${CCVERSION}
33232    C++ Compiler:             ${CXX} ${CXXVERSION}
33233    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33234    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33235    Libraries:                ${LIBS}
33236    Statically Linked Tools:  ${support_static_tools}
33237    Statically Linked FD:     ${support_static_fd}
33238    Statically Linked SD:     ${support_static_sd}
33239    Statically Linked DIR:    ${support_static_dir}
33240    Statically Linked CONS:   ${support_static_cons}
33241    Database backends:        ${db_backends}
33242    Database port:            ${db_port}
33243    Database name:            ${db_name}
33244    Database user:            ${db_user}
33245
33246    Job Output Email:         ${job_email}
33247    Traceback Email:          ${dump_email}
33248    SMTP Host Address:        ${smtp_host}
33249
33250    Director Port:            ${dir_port}
33251    File daemon Port:         ${fd_port}
33252    Storage daemon Port:      ${sd_port}
33253
33254    Director User:            ${dir_user}
33255    Director Group:           ${dir_group}
33256    Storage Daemon User:      ${sd_user}
33257    Storage DaemonGroup:      ${sd_group}
33258    File Daemon User:         ${fd_user}
33259    File Daemon Group:        ${fd_group}
33260
33261    Large file support:       $largefile_support
33262    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33263    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33264    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33265    TLS support:              ${support_tls}
33266    Encryption support:       ${support_crypto}
33267    ZLIB support:             ${have_zlib}
33268    LZO support:              ${have_lzo}
33269    enable-smartalloc:        ${support_smartalloc}
33270    enable-lockmgr:           ${support_lockmgr}
33271    bat support:              ${support_bat}
33272    enable-gnome:             ${support_gnome} ${gnome_version}
33273    enable-bwx-console:       ${support_wx_console} ${wx_version}
33274    enable-tray-monitor:      ${support_tray_monitor}
33275    client-only:              ${build_client_only}
33276    build-dird:               ${build_dird}
33277    build-stored:             ${build_stored}
33278    Plugin support:           ${have_plugins}
33279    ACL support:              ${have_acl}
33280    XATTR support:            ${have_xattr}
33281    Python support:           ${support_python} ${PYTHON_LIBS}
33282    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33283    Batch insert enabled:     ${batch_insert_db_backends}
33284
33285   " > config.out
33286
33287 # create a small shell script useful for support with
33288 # configure options and config.out info
33289 cat > scripts/bacula_config << EOF
33290 #!/bin/sh
33291 cat << __EOC__
33292 $ $0 $ac_configure_args
33293 EOF
33294 cat config.out >> scripts/bacula_config
33295 echo __EOC__ >> scripts/bacula_config
33296 chmod 755 scripts/bacula_config
33297
33298 cat config.out