]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak recompile 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 7.0.2.
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='7.0.2'
571 PACKAGE_STRING='bacula 7.0.2'
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 PSCMD
619 TAPEDRIVE
620 SYSTEMD_UNITDIR
621 OBJLIST
622 WRAPLIBS
623 WLDFLAGS
624 WCFLAGS
625 DLIB
626 DINCLUDE
627 DEBUG
628 FDLIBS
629 CAP_LIBS
630 LZO_LIBS
631 LZO_INC
632 AFS_LIBS
633 AFS_CFLAGS
634 ZLIBS
635 LIBOBJS
636 X_EXTRA_LIBS
637 X_LIBS
638 X_PRE_LIBS
639 X_CFLAGS
640 XMKMF
641 GETCONF
642 SHARED_CATALOG_TARGETS
643 DEFAULT_DB_TYPE
644 DB_LIBS
645 DB_BACKENDS
646 uncomment_dbi
647 SQLITE_BINDIR
648 SQLITE_INCLUDE
649 SQLITE_LIBS
650 MYSQL_BINDIR
651 MYSQL_INCLUDE
652 MYSQL_LIBS
653 POSTGRESQL_BINDIR
654 POSTGRESQL_INCLUDE
655 POSTGRESQL_LIBS
656 SBINPERM
657 fd_group
658 fd_user
659 sd_group
660 sd_user
661 dir_group
662 dir_user
663 db_port
664 db_password
665 db_user
666 db_name
667 mon_sd_password
668 mon_fd_password
669 mon_dir_password
670 sd_password
671 fd_password
672 dir_password
673 sd_port
674 fd_port
675 dir_port
676 baseport
677 subsysdir
678 piddir
679 smtp_host
680 job_email
681 dump_email
682 plugindir
683 logdir
684 bsrdir
685 scriptdir
686 hostname
687 basename
688 archivedir
689 working_dir
690 OPENSSL_INC
691 OPENSSL_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_CONS
703 STATIC_DIR
704 STATIC_SD
705 STATIC_FD
706 TTOOL_LDFLAGS
707 QWT
708 QWT_LIB
709 QWT_LDFLAGS
710 QWT_INC
711 BAT_DIR
712 INTL_LIBTOOL_SUFFIX_PREFIX
713 INTLOBJS
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATOBJEXT
718 USE_INCLUDED_LIBINTL
719 BUILD_INCLUDED_LIBINTL
720 INTLBISON
721 HAVE_WPRINTF
722 HAVE_SNPRINTF
723 HAVE_ASPRINTF
724 HAVE_POSIX_PRINTF
725 GLIBC21
726 ALLOCA
727 GLIBC2
728 POSUB
729 LTLIBINTL
730 LIBINTL
731 INTLLIBS
732 LTLIBICONV
733 LIBICONV
734 INTL_MACOSX_LIBS
735 MSGMERGE
736 XGETTEXT
737 GMSGFMT
738 MSGFMT
739 USE_NLS
740 MKINSTALLDIRS
741 SET_MAKE
742 HAVE_DARWIN_OS_FALSE
743 HAVE_DARWIN_OS_TRUE
744 HAVE_IRIX_OS_FALSE
745 HAVE_IRIX_OS_TRUE
746 HAVE_SGI_OS_FALSE
747 HAVE_SGI_OS_TRUE
748 HAVE_BSDI_OS_FALSE
749 HAVE_BSDI_OS_TRUE
750 HAVE_OPENBSD_OS_FALSE
751 HAVE_OPENBSD_OS_TRUE
752 HAVE_NETBSD_OS_FALSE
753 HAVE_NETBSD_OS_TRUE
754 HAVE_FREEBSD_OS_FALSE
755 HAVE_FREEBSD_OS_TRUE
756 HAVE_LINUX_OS_FALSE
757 HAVE_LINUX_OS_TRUE
758 HAVE_HPUX_OS_FALSE
759 HAVE_HPUX_OS_TRUE
760 HAVE_AIX_OS_FALSE
761 HAVE_AIX_OS_TRUE
762 HAVE_OSF1_OS_FALSE
763 HAVE_OSF1_OS_TRUE
764 HAVE_HURD_OS_FALSE
765 HAVE_HURD_OS_TRUE
766 HAVE_SUN_OS_FALSE
767 HAVE_SUN_OS_TRUE
768 INCLUDE_UNINSTALL_TARGET
769 INCLUDE_INSTALL_TARGET
770 FD_PLUGIN_DIR
771 QMAKE_LIBTOOL
772 LIBTOOL_CLEAN_TARGET
773 LIBTOOL_UNINSTALL_TARGET
774 LIBTOOL_INSTALL_TARGET
775 DEFAULT_SHARED_OBJECT_TYPE
776 DEFAULT_ARCHIVE_TYPE
777 DEFAULT_OBJECT_TYPE
778 LIBADD_DL
779 LT_DLPREOPEN
780 LIBADD_DLD_LINK
781 LIBADD_SHL_LOAD
782 LIBADD_DLOPEN
783 LT_DLLOADERS
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 GMAKE
821 QMAKE
822 PKGCONFIG
823 DVDRWFORMAT
824 DVDRWMEDIAINFO
825 GROWISOFS
826 PYTHON
827 MKISOFS
828 DD
829 MTX
830 OPENSSL
831 AR
832 TBL
833 CMP
834 ECHO
835 SED
836 CP
837 REMOVE
838 MV
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 EGREP
843 GREP
844 CPP
845 ac_ct_CXX
846 CXXFLAGS
847 CXX
848 OBJEXT
849 EXEEXT
850 ac_ct_CC
851 CPPFLAGS
852 LDFLAGS
853 CFLAGS
854 CC
855 LIBBACFIND_LT_RELEASE
856 LIBBACCATS_LT_RELEASE
857 LIBBACSQL_LT_RELEASE
858 LIBBACCFG_LT_RELEASE
859 LIBBAC_LT_RELEASE
860 BQT4_VERSION
861 DEPKGS_VERSION
862 DEPKGS_QT_VERSION
863 BDB_VERSION
864 post_host
865 BACULA
866 LSMDATE
867 DATE
868 VERSION
869 FALSEPRG
870 TRUEPRG
871 TOP_DIR
872 BUILD_DIR
873 target_alias
874 host_alias
875 build_alias
876 LIBS
877 ECHO_T
878 ECHO_N
879 ECHO_C
880 DEFS
881 mandir
882 localedir
883 libdir
884 psdir
885 pdfdir
886 dvidir
887 htmldir
888 infodir
889 docdir
890 oldincludedir
891 includedir
892 localstatedir
893 sharedstatedir
894 sysconfdir
895 datadir
896 datarootdir
897 libexecdir
898 sbindir
899 bindir
900 program_transform_name
901 prefix
902 exec_prefix
903 PACKAGE_URL
904 PACKAGE_BUGREPORT
905 PACKAGE_STRING
906 PACKAGE_VERSION
907 PACKAGE_TARNAME
908 PACKAGE_NAME
909 PATH_SEPARATOR
910 SHELL'
911 ac_subst_files='MCOMMON'
912 ac_user_opts='
913 enable_option_checking
914 enable_libtool
915 enable_shared
916 enable_static
917 with_pic
918 enable_fast_install
919 with_gnu_ld
920 with_sysroot
921 enable_libtool_lock
922 enable_includes
923 enable_nls
924 enable_rpath
925 with_libiconv_prefix
926 with_libintl_prefix
927 with_included_gettext
928 enable_bat
929 enable_smartalloc
930 enable_lockmgr
931 enable_static_tools
932 enable_static_fd
933 enable_static_sd
934 enable_static_dir
935 enable_static_cons
936 enable_client_only
937 enable_build_dird
938 enable_build_stored
939 enable_conio
940 enable_ipv6
941 enable_readline
942 with_readline
943 with_tcp_wrappers
944 with_openssl
945 with_working_dir
946 with_archivedir
947 with_basename
948 with_hostname
949 with_scriptdir
950 with_bsrdir
951 with_logdir
952 with_plugindir
953 with_dump_email
954 with_job_email
955 with_smtp_host
956 with_pid_dir
957 with_subsys_dir
958 with_baseport
959 with_dir_password
960 with_fd_password
961 with_sd_password
962 with_mon_dir_password
963 with_mon_fd_password
964 with_mon_sd_password
965 with_db_name
966 with_db_user
967 with_db_password
968 with_db_port
969 with_dir_user
970 with_dir_group
971 with_sd_user
972 with_sd_group
973 with_fd_user
974 with_fd_group
975 with_sbin_perm
976 enable_batch_insert
977 with_postgresql
978 with_mysql
979 with_embedded_mysql
980 with_sqlite3
981 enable_largefile
982 with_x
983 enable_afs
984 with_afsdir
985 enable_lzo
986 with_lzo
987 enable_acl
988 enable_xattr
989 with_systemd
990 '
991       ac_precious_vars='build_alias
992 host_alias
993 target_alias
994 CC
995 CFLAGS
996 LDFLAGS
997 LIBS
998 CPPFLAGS
999 CXX
1000 CXXFLAGS
1001 CCC
1002 CPP
1003 CXXCPP
1004 XMKMF'
1005
1006
1007 # Initialize some variables set by options.
1008 ac_init_help=
1009 ac_init_version=false
1010 ac_unrecognized_opts=
1011 ac_unrecognized_sep=
1012 # The variables have the same names as the options, with
1013 # dashes changed to underlines.
1014 cache_file=/dev/null
1015 exec_prefix=NONE
1016 no_create=
1017 no_recursion=
1018 prefix=NONE
1019 program_prefix=NONE
1020 program_suffix=NONE
1021 program_transform_name=s,x,x,
1022 silent=
1023 site=
1024 srcdir=
1025 verbose=
1026 x_includes=NONE
1027 x_libraries=NONE
1028
1029 # Installation directory options.
1030 # These are left unexpanded so users can "make install exec_prefix=/foo"
1031 # and all the variables that are supposed to be based on exec_prefix
1032 # by default will actually change.
1033 # Use braces instead of parens because sh, perl, etc. also accept them.
1034 # (The list follows the same order as the GNU Coding Standards.)
1035 bindir='${exec_prefix}/bin'
1036 sbindir='${exec_prefix}/sbin'
1037 libexecdir='${exec_prefix}/libexec'
1038 datarootdir='${prefix}/share'
1039 datadir='${datarootdir}'
1040 sysconfdir='${prefix}/etc'
1041 sharedstatedir='${prefix}/com'
1042 localstatedir='${prefix}/var'
1043 includedir='${prefix}/include'
1044 oldincludedir='/usr/include'
1045 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1046 infodir='${datarootdir}/info'
1047 htmldir='${docdir}'
1048 dvidir='${docdir}'
1049 pdfdir='${docdir}'
1050 psdir='${docdir}'
1051 libdir='${exec_prefix}/lib'
1052 localedir='${datarootdir}/locale'
1053 mandir='${datarootdir}/man'
1054
1055 ac_prev=
1056 ac_dashdash=
1057 for ac_option
1058 do
1059   # If the previous option needs an argument, assign it.
1060   if test -n "$ac_prev"; then
1061     eval $ac_prev=\$ac_option
1062     ac_prev=
1063     continue
1064   fi
1065
1066   case $ac_option in
1067   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1068   *=)   ac_optarg= ;;
1069   *)    ac_optarg=yes ;;
1070   esac
1071
1072   # Accept the important Cygnus configure options, so we can diagnose typos.
1073
1074   case $ac_dashdash$ac_option in
1075   --)
1076     ac_dashdash=yes ;;
1077
1078   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1079     ac_prev=bindir ;;
1080   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081     bindir=$ac_optarg ;;
1082
1083   -build | --build | --buil | --bui | --bu)
1084     ac_prev=build_alias ;;
1085   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086     build_alias=$ac_optarg ;;
1087
1088   -cache-file | --cache-file | --cache-fil | --cache-fi \
1089   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090     ac_prev=cache_file ;;
1091   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093     cache_file=$ac_optarg ;;
1094
1095   --config-cache | -C)
1096     cache_file=config.cache ;;
1097
1098   -datadir | --datadir | --datadi | --datad)
1099     ac_prev=datadir ;;
1100   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101     datadir=$ac_optarg ;;
1102
1103   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104   | --dataroo | --dataro | --datar)
1105     ac_prev=datarootdir ;;
1106   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108     datarootdir=$ac_optarg ;;
1109
1110   -disable-* | --disable-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error $? "invalid feature name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "enable_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval enable_$ac_useropt=no ;;
1125
1126   -docdir | --docdir | --docdi | --doc | --do)
1127     ac_prev=docdir ;;
1128   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1129     docdir=$ac_optarg ;;
1130
1131   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1132     ac_prev=dvidir ;;
1133   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1134     dvidir=$ac_optarg ;;
1135
1136   -enable-* | --enable-*)
1137     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140       as_fn_error $? "invalid feature name: $ac_useropt"
1141     ac_useropt_orig=$ac_useropt
1142     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143     case $ac_user_opts in
1144       *"
1145 "enable_$ac_useropt"
1146 "*) ;;
1147       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1148          ac_unrecognized_sep=', ';;
1149     esac
1150     eval enable_$ac_useropt=\$ac_optarg ;;
1151
1152   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1153   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1154   | --exec | --exe | --ex)
1155     ac_prev=exec_prefix ;;
1156   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1157   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1158   | --exec=* | --exe=* | --ex=*)
1159     exec_prefix=$ac_optarg ;;
1160
1161   -gas | --gas | --ga | --g)
1162     # Obsolete; use --with-gas.
1163     with_gas=yes ;;
1164
1165   -help | --help | --hel | --he | -h)
1166     ac_init_help=long ;;
1167   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1168     ac_init_help=recursive ;;
1169   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1170     ac_init_help=short ;;
1171
1172   -host | --host | --hos | --ho)
1173     ac_prev=host_alias ;;
1174   -host=* | --host=* | --hos=* | --ho=*)
1175     host_alias=$ac_optarg ;;
1176
1177   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1178     ac_prev=htmldir ;;
1179   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1180   | --ht=*)
1181     htmldir=$ac_optarg ;;
1182
1183   -includedir | --includedir | --includedi | --included | --include \
1184   | --includ | --inclu | --incl | --inc)
1185     ac_prev=includedir ;;
1186   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1187   | --includ=* | --inclu=* | --incl=* | --inc=*)
1188     includedir=$ac_optarg ;;
1189
1190   -infodir | --infodir | --infodi | --infod | --info | --inf)
1191     ac_prev=infodir ;;
1192   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1193     infodir=$ac_optarg ;;
1194
1195   -libdir | --libdir | --libdi | --libd)
1196     ac_prev=libdir ;;
1197   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1198     libdir=$ac_optarg ;;
1199
1200   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1201   | --libexe | --libex | --libe)
1202     ac_prev=libexecdir ;;
1203   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1204   | --libexe=* | --libex=* | --libe=*)
1205     libexecdir=$ac_optarg ;;
1206
1207   -localedir | --localedir | --localedi | --localed | --locale)
1208     ac_prev=localedir ;;
1209   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1210     localedir=$ac_optarg ;;
1211
1212   -localstatedir | --localstatedir | --localstatedi | --localstated \
1213   | --localstate | --localstat | --localsta | --localst | --locals)
1214     ac_prev=localstatedir ;;
1215   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1216   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1217     localstatedir=$ac_optarg ;;
1218
1219   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1220     ac_prev=mandir ;;
1221   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1222     mandir=$ac_optarg ;;
1223
1224   -nfp | --nfp | --nf)
1225     # Obsolete; use --without-fp.
1226     with_fp=no ;;
1227
1228   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1229   | --no-cr | --no-c | -n)
1230     no_create=yes ;;
1231
1232   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1233   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1234     no_recursion=yes ;;
1235
1236   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1237   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1238   | --oldin | --oldi | --old | --ol | --o)
1239     ac_prev=oldincludedir ;;
1240   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1241   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1242   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1243     oldincludedir=$ac_optarg ;;
1244
1245   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1246     ac_prev=prefix ;;
1247   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1248     prefix=$ac_optarg ;;
1249
1250   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1251   | --program-pre | --program-pr | --program-p)
1252     ac_prev=program_prefix ;;
1253   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1254   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1255     program_prefix=$ac_optarg ;;
1256
1257   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1258   | --program-suf | --program-su | --program-s)
1259     ac_prev=program_suffix ;;
1260   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1261   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1262     program_suffix=$ac_optarg ;;
1263
1264   -program-transform-name | --program-transform-name \
1265   | --program-transform-nam | --program-transform-na \
1266   | --program-transform-n | --program-transform- \
1267   | --program-transform | --program-transfor \
1268   | --program-transfo | --program-transf \
1269   | --program-trans | --program-tran \
1270   | --progr-tra | --program-tr | --program-t)
1271     ac_prev=program_transform_name ;;
1272   -program-transform-name=* | --program-transform-name=* \
1273   | --program-transform-nam=* | --program-transform-na=* \
1274   | --program-transform-n=* | --program-transform-=* \
1275   | --program-transform=* | --program-transfor=* \
1276   | --program-transfo=* | --program-transf=* \
1277   | --program-trans=* | --program-tran=* \
1278   | --progr-tra=* | --program-tr=* | --program-t=*)
1279     program_transform_name=$ac_optarg ;;
1280
1281   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1282     ac_prev=pdfdir ;;
1283   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1284     pdfdir=$ac_optarg ;;
1285
1286   -psdir | --psdir | --psdi | --psd | --ps)
1287     ac_prev=psdir ;;
1288   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1289     psdir=$ac_optarg ;;
1290
1291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292   | -silent | --silent | --silen | --sile | --sil)
1293     silent=yes ;;
1294
1295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1296     ac_prev=sbindir ;;
1297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1298   | --sbi=* | --sb=*)
1299     sbindir=$ac_optarg ;;
1300
1301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1303   | --sharedst | --shareds | --shared | --share | --shar \
1304   | --sha | --sh)
1305     ac_prev=sharedstatedir ;;
1306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1309   | --sha=* | --sh=*)
1310     sharedstatedir=$ac_optarg ;;
1311
1312   -site | --site | --sit)
1313     ac_prev=site ;;
1314   -site=* | --site=* | --sit=*)
1315     site=$ac_optarg ;;
1316
1317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1318     ac_prev=srcdir ;;
1319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1320     srcdir=$ac_optarg ;;
1321
1322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1323   | --syscon | --sysco | --sysc | --sys | --sy)
1324     ac_prev=sysconfdir ;;
1325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1327     sysconfdir=$ac_optarg ;;
1328
1329   -target | --target | --targe | --targ | --tar | --ta | --t)
1330     ac_prev=target_alias ;;
1331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1332     target_alias=$ac_optarg ;;
1333
1334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1335     verbose=yes ;;
1336
1337   -version | --version | --versio | --versi | --vers | -V)
1338     ac_init_version=: ;;
1339
1340   -with-* | --with-*)
1341     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1342     # Reject names that are not valid shell variable names.
1343     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344       as_fn_error $? "invalid package name: $ac_useropt"
1345     ac_useropt_orig=$ac_useropt
1346     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347     case $ac_user_opts in
1348       *"
1349 "with_$ac_useropt"
1350 "*) ;;
1351       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352          ac_unrecognized_sep=', ';;
1353     esac
1354     eval with_$ac_useropt=\$ac_optarg ;;
1355
1356   -without-* | --without-*)
1357     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358     # Reject names that are not valid shell variable names.
1359     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360       as_fn_error $? "invalid package name: $ac_useropt"
1361     ac_useropt_orig=$ac_useropt
1362     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363     case $ac_user_opts in
1364       *"
1365 "with_$ac_useropt"
1366 "*) ;;
1367       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1368          ac_unrecognized_sep=', ';;
1369     esac
1370     eval with_$ac_useropt=no ;;
1371
1372   --x)
1373     # Obsolete; use --with-x.
1374     with_x=yes ;;
1375
1376   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1377   | --x-incl | --x-inc | --x-in | --x-i)
1378     ac_prev=x_includes ;;
1379   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1380   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1381     x_includes=$ac_optarg ;;
1382
1383   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1384   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1385     ac_prev=x_libraries ;;
1386   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1387   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1388     x_libraries=$ac_optarg ;;
1389
1390   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1391 Try \`$0 --help' for more information"
1392     ;;
1393
1394   *=*)
1395     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396     # Reject names that are not valid shell variable names.
1397     case $ac_envvar in #(
1398       '' | [0-9]* | *[!_$as_cr_alnum]* )
1399       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1400     esac
1401     eval $ac_envvar=\$ac_optarg
1402     export $ac_envvar ;;
1403
1404   *)
1405     # FIXME: should be removed in autoconf 3.0.
1406     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1407     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1409     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1410     ;;
1411
1412   esac
1413 done
1414
1415 if test -n "$ac_prev"; then
1416   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1417   as_fn_error $? "missing argument to $ac_option"
1418 fi
1419
1420 if test -n "$ac_unrecognized_opts"; then
1421   case $enable_option_checking in
1422     no) ;;
1423     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1424     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1425   esac
1426 fi
1427
1428 # Check all directory arguments for consistency.
1429 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1430                 datadir sysconfdir sharedstatedir localstatedir includedir \
1431                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1432                 libdir localedir mandir
1433 do
1434   eval ac_val=\$$ac_var
1435   # Remove trailing slashes.
1436   case $ac_val in
1437     */ )
1438       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1439       eval $ac_var=\$ac_val;;
1440   esac
1441   # Be sure to have absolute directory names.
1442   case $ac_val in
1443     [\\/$]* | ?:[\\/]* )  continue;;
1444     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1445   esac
1446   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1447 done
1448
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1452 build=$build_alias
1453 host=$host_alias
1454 target=$target_alias
1455
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458   if test "x$build_alias" = x; then
1459     cross_compiling=maybe
1460     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1461     If a cross compiler is detected then cross compile mode will be used" >&2
1462   elif test "x$build_alias" != "x$host_alias"; then
1463     cross_compiling=yes
1464   fi
1465 fi
1466
1467 ac_tool_prefix=
1468 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1469
1470 test "$silent" = yes && exec 6>/dev/null
1471
1472
1473 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1474 ac_ls_di=`ls -di .` &&
1475 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1476   as_fn_error $? "working directory cannot be determined"
1477 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478   as_fn_error $? "pwd does not report name of working directory"
1479
1480
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483   ac_srcdir_defaulted=yes
1484   # Try the directory containing this script, then the parent directory.
1485   ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487          X"$as_myself" : 'X\(//\)[^/]' \| \
1488          X"$as_myself" : 'X\(//\)$' \| \
1489          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)[^/].*/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\).*/{
1504             s//\1/
1505             q
1506           }
1507           s/.*/./; q'`
1508   srcdir=$ac_confdir
1509   if test ! -r "$srcdir/$ac_unique_file"; then
1510     srcdir=..
1511   fi
1512 else
1513   ac_srcdir_defaulted=no
1514 fi
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1518 fi
1519 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1520 ac_abs_confdir=`(
1521         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1522         pwd)`
1523 # When building in place, set srcdir=.
1524 if test "$ac_abs_confdir" = "$ac_pwd"; then
1525   srcdir=.
1526 fi
1527 # Remove unnecessary trailing slashes from srcdir.
1528 # Double slashes in file names in object file debugging info
1529 # mess up M-x gdb in Emacs.
1530 case $srcdir in
1531 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1532 esac
1533 for ac_var in $ac_precious_vars; do
1534   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1535   eval ac_env_${ac_var}_value=\$${ac_var}
1536   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1538 done
1539
1540 #
1541 # Report the --help message.
1542 #
1543 if test "$ac_init_help" = "long"; then
1544   # Omit some internal or obsolete options to make the list less imposing.
1545   # This message is too long to be a string in the A/UX 3.1 sh.
1546   cat <<_ACEOF
1547 \`configure' configures bacula 7.0.2 to adapt to many kinds of systems.
1548
1549 Usage: $0 [OPTION]... [VAR=VALUE]...
1550
1551 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1552 VAR=VALUE.  See below for descriptions of some of the useful variables.
1553
1554 Defaults for the options are specified in brackets.
1555
1556 Configuration:
1557   -h, --help              display this help and exit
1558       --help=short        display options specific to this package
1559       --help=recursive    display the short help of all the included packages
1560   -V, --version           display version information and exit
1561   -q, --quiet, --silent   do not print \`checking ...' messages
1562       --cache-file=FILE   cache test results in FILE [disabled]
1563   -C, --config-cache      alias for \`--cache-file=config.cache'
1564   -n, --no-create         do not create output files
1565       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1566
1567 Installation directories:
1568   --prefix=PREFIX         install architecture-independent files in PREFIX
1569                           [$ac_default_prefix]
1570   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1571                           [PREFIX]
1572
1573 By default, \`make install' will install all the files in
1574 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1575 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1576 for instance \`--prefix=\$HOME'.
1577
1578 For better control, use the options below.
1579
1580 Fine tuning of the installation directories:
1581   --bindir=DIR            user executables [EPREFIX/bin]
1582   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1583   --libexecdir=DIR        program executables [EPREFIX/libexec]
1584   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1585   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1586   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1587   --libdir=DIR            object code libraries [EPREFIX/lib]
1588   --includedir=DIR        C header files [PREFIX/include]
1589   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1590   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1591   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1592   --infodir=DIR           info documentation [DATAROOTDIR/info]
1593   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1594   --mandir=DIR            man documentation [DATAROOTDIR/man]
1595   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1596   --htmldir=DIR           html documentation [DOCDIR]
1597   --dvidir=DIR            dvi documentation [DOCDIR]
1598   --pdfdir=DIR            pdf documentation [DOCDIR]
1599   --psdir=DIR             ps documentation [DOCDIR]
1600 _ACEOF
1601
1602   cat <<\_ACEOF
1603
1604 X features:
1605   --x-includes=DIR    X include files are in DIR
1606   --x-libraries=DIR   X library files are in DIR
1607
1608 System types:
1609   --build=BUILD     configure for building on BUILD [guessed]
1610   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1611 _ACEOF
1612 fi
1613
1614 if test -n "$ac_init_help"; then
1615   case $ac_init_help in
1616      short | recursive ) echo "Configuration of bacula 7.0.2:";;
1617    esac
1618   cat <<\_ACEOF
1619
1620 Optional Features:
1621   --disable-option-checking  ignore unrecognized --enable/--with options
1622   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1623   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1624   --enable-libtool        enable building using GNU libtool [default=yes]
1625   --enable-shared[=PKGS]  build shared libraries [default=yes]
1626   --enable-static[=PKGS]  build static libraries [default=no]
1627   --enable-fast-install[=PKGS]
1628                           optimize for fast installation [default=yes]
1629   --disable-libtool-lock  avoid locking (might break parallel builds)
1630   --enable-includes       enable installing of include files [default=no]
1631   --disable-nls           do not use Native Language Support
1632   --disable-rpath         do not hardcode runtime library paths
1633   --enable-bat            enable build of bat Qt4 GUI [default=no]
1634   --enable-smartalloc     enable smartalloc debugging support [default=no]
1635   --enable-lockmgr        enable lock manager support [default=no]
1636   --enable-static-tools   enable static tape tools [default=no]
1637   --enable-static-fd      enable static File daemon [default=no]
1638   --enable-static-sd      enable static Storage daemon [default=no]
1639   --enable-static-dir     enable static Director [default=no]
1640   --enable-static-cons    enable static Console [default=no]
1641   --enable-client-only    build client (File daemon) only [default=no]
1642   --enable-build-dird     enable building of dird (Director) [default=yes]
1643   --enable-build-stored   enable building of stored (Storage daemon)
1644                           [default=yes]
1645   --disable-conio         disable conio support [default=no]
1646   --enable-ipv6           enable ipv6 support [default=yes]
1647   --disable-readline      disable readline support [default=yes]
1648   --enable-batch-insert   enable the DB batch insert code [default=yes]
1649   --disable-largefile     omit support for large files
1650   --disable-afs           disable afs support [default=auto]
1651   --disable-lzo           disable lzo support [default=yes]
1652   --disable-acl           disable acl support [default=auto]
1653   --disable-xattr         disable xattr support [default=auto]
1654
1655 Optional Packages:
1656   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1657   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1658   --with-pic              try to use only PIC/non-PIC objects [default=use
1659                           both]
1660   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1661   --with-sysroot=DIR Search for dependent libraries within DIR
1662                         (or the compiler's sysroot if not specified).
1663   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1664   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1665   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1666   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1667   --without-libintl-prefix     don't search for libintl in includedir and libdir
1668   --with-included-gettext use the GNU gettext library included here
1669   --with-readline[=DIR]   specify readline library directory
1670   --with-tcp-wrappers[=DIR]
1671                           enable tcpwrappers support
1672   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1673   --with-working-dir=PATH specify path of Bacula working directory
1674   --with-archivedir=PATH  specify path of SD archive directory
1675   --with-basename=RESNAME specify base resource name for daemons
1676   --with-hostname=RESNAME specify host name for daemons
1677   --with-scriptdir=PATH   specify path of Bacula scripts directory
1678   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1679   --with-logdir=PATH      specify path of Bacula logs directory
1680   --with-plugindir=PATH   specify path of Bacula plugins directory
1681   --with-dump-email=EMAIL dump email address
1682   --with-job-email=EMAIL  job output email address
1683   --with-smtp-host=HOST   SMTP mail host address
1684   --with-pid-dir=PATH     specify location of Bacula pid files
1685   --with-subsys-dir=PATH  specify location of Bacula subsys file
1686   --with-baseport=PORT    specify base port address for daemons
1687   --with-dir-password=PASSWORD
1688                           specify Director's password
1689   --with-fd-password=PASSWORD
1690                           specify Client's password
1691   --with-sd-password=PASSWORD
1692                           specify Storage daemon's password
1693   --with-mon-dir-password=PASSWORD
1694                           specify Director's password used by the monitor
1695   --with-mon-fd-password=PASSWORD
1696                           specify Client's password used by the monitor
1697   --with-mon-sd-password=PASSWORD
1698                           specify Storage daemon's password used by the
1699                           monitor
1700   --with-db-name=DBNAME   specify database name [default=bacula]
1701   --with-db-user=UNAME    specify database user [default=bacula]
1702   --with-db-password=PWD  specify database password [default=*none*]
1703   --with-db-port=DBPORT   specify a database port [default=null]
1704   --with-dir-user=USER    specify user for Director daemon
1705   --with-dir-group=GROUP  specify group for Director daemon
1706   --with-sd-user=USER     specify user for Storage daemon
1707   --with-sd-group=GROUP   specify group for Storage daemon
1708   --with-fd-user=USER     specify user for File daemon
1709   --with-fd-group=GROUP   specify group for File daemon
1710   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1711   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1712                           base install directory, [default=/usr/local/pgsql]
1713   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1714                           directory, default is to search through a number of
1715                           common places for the MySQL files.
1716   --with-embedded-mysql[=DIR]
1717                           Include MySQL support. DIR is the MySQL base install
1718                           directory, default is to search through a number of
1719                           common places for the MySQL files.
1720   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1721                           install directory, default is to search through a
1722                           number of common places for the SQLite3 files.
1723   --with-x                use the X Window System
1724   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1725   --with-lzo[=DIR]        specify lzo library directory
1726   --with-systemd[=UNITDIR]
1727                           Include systemd support. UNITDIR is where systemd
1728                           system .service files are located, default is to ask
1729                           systemctl.
1730
1731 Some influential environment variables:
1732   CC          C compiler command
1733   CFLAGS      C compiler flags
1734   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1735               nonstandard directory <lib dir>
1736   LIBS        libraries to pass to the linker, e.g. -l<library>
1737   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1738               you have headers in a nonstandard directory <include dir>
1739   CXX         C++ compiler command
1740   CXXFLAGS    C++ compiler flags
1741   CPP         C preprocessor
1742   CXXCPP      C++ preprocessor
1743   XMKMF       Path to xmkmf, Makefile generator for X Window System
1744
1745 Use these variables to override the choices made by `configure' or to help
1746 it to find libraries and programs with nonstandard names/locations.
1747
1748 Report bugs to the package provider.
1749 _ACEOF
1750 ac_status=$?
1751 fi
1752
1753 if test "$ac_init_help" = "recursive"; then
1754   # If there are subdirs, report their specific --help.
1755   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1756     test -d "$ac_dir" ||
1757       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1758       continue
1759     ac_builddir=.
1760
1761 case "$ac_dir" in
1762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 *)
1764   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1765   # A ".." for each directory in $ac_dir_suffix.
1766   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1767   case $ac_top_builddir_sub in
1768   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1769   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1770   esac ;;
1771 esac
1772 ac_abs_top_builddir=$ac_pwd
1773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1774 # for backward compatibility:
1775 ac_top_builddir=$ac_top_build_prefix
1776
1777 case $srcdir in
1778   .)  # We are building in place.
1779     ac_srcdir=.
1780     ac_top_srcdir=$ac_top_builddir_sub
1781     ac_abs_top_srcdir=$ac_pwd ;;
1782   [\\/]* | ?:[\\/]* )  # Absolute name.
1783     ac_srcdir=$srcdir$ac_dir_suffix;
1784     ac_top_srcdir=$srcdir
1785     ac_abs_top_srcdir=$srcdir ;;
1786   *) # Relative name.
1787     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1788     ac_top_srcdir=$ac_top_build_prefix$srcdir
1789     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1790 esac
1791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1792
1793     cd "$ac_dir" || { ac_status=$?; continue; }
1794     # Check for guested configure.
1795     if test -f "$ac_srcdir/configure.gnu"; then
1796       echo &&
1797       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1798     elif test -f "$ac_srcdir/configure"; then
1799       echo &&
1800       $SHELL "$ac_srcdir/configure" --help=recursive
1801     else
1802       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1803     fi || ac_status=$?
1804     cd "$ac_pwd" || { ac_status=$?; break; }
1805   done
1806 fi
1807
1808 test -n "$ac_init_help" && exit $ac_status
1809 if $ac_init_version; then
1810   cat <<\_ACEOF
1811 bacula configure 7.0.2
1812 generated by GNU Autoconf 2.68
1813
1814 Copyright (C) 2010 Free Software Foundation, Inc.
1815 This configure script is free software; the Free Software Foundation
1816 gives unlimited permission to copy, distribute and modify it.
1817 _ACEOF
1818   exit
1819 fi
1820
1821 ## ------------------------ ##
1822 ## Autoconf initialization. ##
1823 ## ------------------------ ##
1824
1825 # ac_fn_c_try_compile LINENO
1826 # --------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_compile ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext
1832   if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_compile") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_c_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest.$ac_objext; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856         ac_retval=1
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_compile
1862
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext
1870   if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_compile") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_cxx_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest.$ac_objext; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894         ac_retval=1
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897   as_fn_set_status $ac_retval
1898
1899 } # ac_fn_cxx_try_compile
1900
1901 # ac_fn_c_try_cpp LINENO
1902 # ----------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_c_try_cpp ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   if { { ac_try="$ac_cpp conftest.$ac_ext"
1908 case "(($ac_try" in
1909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910   *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915   ac_status=$?
1916   if test -s conftest.err; then
1917     grep -v '^ *+' conftest.err >conftest.er1
1918     cat conftest.er1 >&5
1919     mv -f conftest.er1 conftest.err
1920   fi
1921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922   test $ac_status = 0; } > conftest.i && {
1923          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1924          test ! -s conftest.err
1925        }; then :
1926   ac_retval=0
1927 else
1928   $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931     ac_retval=1
1932 fi
1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934   as_fn_set_status $ac_retval
1935
1936 } # ac_fn_c_try_cpp
1937
1938 # ac_fn_c_try_link LINENO
1939 # -----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_c_try_link ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   rm -f conftest.$ac_objext conftest$ac_exeext
1945   if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_link") 2>conftest.err
1953   ac_status=$?
1954   if test -s conftest.err; then
1955     grep -v '^ *+' conftest.err >conftest.er1
1956     cat conftest.er1 >&5
1957     mv -f conftest.er1 conftest.err
1958   fi
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; } && {
1961          test -z "$ac_c_werror_flag" ||
1962          test ! -s conftest.err
1963        } && test -s conftest$ac_exeext && {
1964          test "$cross_compiling" = yes ||
1965          $as_test_x conftest$ac_exeext
1966        }; then :
1967   ac_retval=0
1968 else
1969   $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972         ac_retval=1
1973 fi
1974   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976   # interfere with the next link command; also delete a directory that is
1977   # left behind by Apple's compiler.  We do this before executing the actions.
1978   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980   as_fn_set_status $ac_retval
1981
1982 } # ac_fn_c_try_link
1983
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1989 {
1990   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994   $as_echo_n "(cached) " >&6
1995 else
1996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h.  */
1998 $4
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002   eval "$3=yes"
2003 else
2004   eval "$3=no"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_c_check_header_compile
2014
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2019 ac_fn_c_try_run ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025   *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029   (eval "$ac_link") 2>&5
2030   ac_status=$?
2031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033   { { case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039   (eval "$ac_try") 2>&5
2040   ac_status=$?
2041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042   test $ac_status = 0; }; }; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: program exited with status $ac_status" >&5
2046        $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049        ac_retval=$ac_status
2050 fi
2051   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053   as_fn_set_status $ac_retval
2054
2055 } # ac_fn_c_try_run
2056
2057 # ac_fn_c_check_func LINENO FUNC VAR
2058 # ----------------------------------
2059 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2060 ac_fn_c_check_func ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066   $as_echo_n "(cached) " >&6
2067 else
2068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2072 #define $2 innocuous_$2
2073
2074 /* System header to define __stub macros and hopefully few prototypes,
2075     which can conflict with char $2 (); below.
2076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2077     <limits.h> exists even on freestanding compilers.  */
2078
2079 #ifdef __STDC__
2080 # include <limits.h>
2081 #else
2082 # include <assert.h>
2083 #endif
2084
2085 #undef $2
2086
2087 /* Override any GCC internal prototype to avoid an error.
2088    Use char because int might match the return type of a GCC
2089    builtin and then its argument prototype would still apply.  */
2090 #ifdef __cplusplus
2091 extern "C"
2092 #endif
2093 char $2 ();
2094 /* The GNU C library defines this for functions which it implements
2095     to always fail with ENOSYS.  Some functions are actually named
2096     something starting with __ and the normal name is an alias.  */
2097 #if defined __stub_$2 || defined __stub___$2
2098 choke me
2099 #endif
2100
2101 int
2102 main ()
2103 {
2104 return $2 ();
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_link "$LINENO"; then :
2110   eval "$3=yes"
2111 else
2112   eval "$3=no"
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext \
2115     conftest$ac_exeext conftest.$ac_ext
2116 fi
2117 eval ac_res=\$$3
2118                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121
2122 } # ac_fn_c_check_func
2123
2124 # ac_fn_cxx_try_cpp LINENO
2125 # ------------------------
2126 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_cxx_try_cpp ()
2128 {
2129   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130   if { { ac_try="$ac_cpp conftest.$ac_ext"
2131 case "(($ac_try" in
2132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133   *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2138   ac_status=$?
2139   if test -s conftest.err; then
2140     grep -v '^ *+' conftest.err >conftest.er1
2141     cat conftest.er1 >&5
2142     mv -f conftest.er1 conftest.err
2143   fi
2144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145   test $ac_status = 0; } > conftest.i && {
2146          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2147          test ! -s conftest.err
2148        }; then :
2149   ac_retval=0
2150 else
2151   $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154     ac_retval=1
2155 fi
2156   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157   as_fn_set_status $ac_retval
2158
2159 } # ac_fn_cxx_try_cpp
2160
2161 # ac_fn_cxx_try_link LINENO
2162 # -------------------------
2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_cxx_try_link ()
2165 {
2166   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167   rm -f conftest.$ac_objext conftest$ac_exeext
2168   if { { ac_try="$ac_link"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175   (eval "$ac_link") 2>conftest.err
2176   ac_status=$?
2177   if test -s conftest.err; then
2178     grep -v '^ *+' conftest.err >conftest.er1
2179     cat conftest.er1 >&5
2180     mv -f conftest.er1 conftest.err
2181   fi
2182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183   test $ac_status = 0; } && {
2184          test -z "$ac_cxx_werror_flag" ||
2185          test ! -s conftest.err
2186        } && test -s conftest$ac_exeext && {
2187          test "$cross_compiling" = yes ||
2188          $as_test_x conftest$ac_exeext
2189        }; then :
2190   ac_retval=0
2191 else
2192   $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195         ac_retval=1
2196 fi
2197   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2198   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2199   # interfere with the next link command; also delete a directory that is
2200   # left behind by Apple's compiler.  We do this before executing the actions.
2201   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203   as_fn_set_status $ac_retval
2204
2205 } # ac_fn_cxx_try_link
2206
2207 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2208 # ---------------------------------------------
2209 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2210 # accordingly.
2211 ac_fn_c_check_decl ()
2212 {
2213   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214   as_decl_name=`echo $2|sed 's/ *(.*//'`
2215   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2217 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2218 if eval \${$3+:} false; then :
2219   $as_echo_n "(cached) " >&6
2220 else
2221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 int
2225 main ()
2226 {
2227 #ifndef $as_decl_name
2228 #ifdef __cplusplus
2229   (void) $as_decl_use;
2230 #else
2231   (void) $as_decl_name;
2232 #endif
2233 #endif
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240   eval "$3=yes"
2241 else
2242   eval "$3=no"
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$3
2247                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251 } # ac_fn_c_check_decl
2252
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2258 {
2259   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263   $as_echo_n "(cached) " >&6
2264 else
2265   eval "$3=no"
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof ($2))
2273          return 0;
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 int
2283 main ()
2284 {
2285 if (sizeof (($2)))
2286             return 0;
2287   ;
2288   return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292
2293 else
2294   eval "$3=yes"
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 eval ac_res=\$$3
2301                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304
2305 } # ac_fn_c_check_type
2306
2307 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2308 # -------------------------------------------------------
2309 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2310 # the include files in INCLUDES and setting the cache variable VAR
2311 # accordingly.
2312 ac_fn_c_check_header_mongrel ()
2313 {
2314   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315   if eval \${$3+:} false; then :
2316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if eval \${$3+:} false; then :
2319   $as_echo_n "(cached) " >&6
2320 fi
2321 eval ac_res=\$$3
2322                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324 else
2325   # Is the header compilable?
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2327 $as_echo_n "checking $2 usability... " >&6; }
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h.  */
2330 $4
2331 #include <$2>
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334   ac_header_compiler=yes
2335 else
2336   ac_header_compiler=no
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2340 $as_echo "$ac_header_compiler" >&6; }
2341
2342 # Is the header present?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2344 $as_echo_n "checking $2 presence... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 #include <$2>
2348 _ACEOF
2349 if ac_fn_c_try_cpp "$LINENO"; then :
2350   ac_header_preproc=yes
2351 else
2352   ac_header_preproc=no
2353 fi
2354 rm -f conftest.err conftest.i conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2356 $as_echo "$ac_header_preproc" >&6; }
2357
2358 # So?  What about this header?
2359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2360   yes:no: )
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2362 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2363     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2365     ;;
2366   no:yes:* )
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2368 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2370 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2372 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2374 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2376 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2377     ;;
2378 esac
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   eval "$3=\$ac_header_compiler"
2385 fi
2386 eval ac_res=\$$3
2387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 fi
2390   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391
2392 } # ac_fn_c_check_header_mongrel
2393
2394 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2395 # --------------------------------------------
2396 # Tries to find the compile-time value of EXPR in a program that includes
2397 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2398 # computed
2399 ac_fn_c_compute_int ()
2400 {
2401   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402   if test "$cross_compiling" = yes; then
2403     # Depending upon the size, compute the lo and hi bounds.
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h.  */
2406 $4
2407 int
2408 main ()
2409 {
2410 static int test_array [1 - 2 * !(($2) >= 0)];
2411 test_array [0] = 0
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418   ac_lo=0 ac_mid=0
2419   while :; do
2420     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h.  */
2422 $4
2423 int
2424 main ()
2425 {
2426 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2427 test_array [0] = 0
2428
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434   ac_hi=$ac_mid; break
2435 else
2436   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2437                         if test $ac_lo -le $ac_mid; then
2438                           ac_lo= ac_hi=
2439                           break
2440                         fi
2441                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444   done
2445 else
2446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h.  */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) < 0)];
2453 test_array [0] = 0
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_c_try_compile "$LINENO"; then :
2460   ac_hi=-1 ac_mid=-1
2461   while :; do
2462     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h.  */
2464 $4
2465 int
2466 main ()
2467 {
2468 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2469 test_array [0] = 0
2470
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 if ac_fn_c_try_compile "$LINENO"; then :
2476   ac_lo=$ac_mid; break
2477 else
2478   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2479                         if test $ac_mid -le $ac_hi; then
2480                           ac_lo= ac_hi=
2481                           break
2482                         fi
2483                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486   done
2487 else
2488   ac_lo= ac_hi=
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 # Binary search between lo and hi bounds.
2494 while test "x$ac_lo" != "x$ac_hi"; do
2495   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h.  */
2498 $4
2499 int
2500 main ()
2501 {
2502 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2503 test_array [0] = 0
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510   ac_hi=$ac_mid
2511 else
2512   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 done
2516 case $ac_lo in #((
2517 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2518 '') ac_retval=1 ;;
2519 esac
2520   else
2521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h.  */
2523 $4
2524 static long int longval () { return $2; }
2525 static unsigned long int ulongval () { return $2; }
2526 #include <stdio.h>
2527 #include <stdlib.h>
2528 int
2529 main ()
2530 {
2531
2532   FILE *f = fopen ("conftest.val", "w");
2533   if (! f)
2534     return 1;
2535   if (($2) < 0)
2536     {
2537       long int i = longval ();
2538       if (i != ($2))
2539         return 1;
2540       fprintf (f, "%ld", i);
2541     }
2542   else
2543     {
2544       unsigned long int i = ulongval ();
2545       if (i != ($2))
2546         return 1;
2547       fprintf (f, "%lu", i);
2548     }
2549   /* Do not output a trailing newline, as this causes \r\n confusion
2550      on some platforms.  */
2551   return ferror (f) || fclose (f) != 0;
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_c_try_run "$LINENO"; then :
2558   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2559 else
2560   ac_retval=1
2561 fi
2562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2563   conftest.$ac_objext conftest.beam conftest.$ac_ext
2564 rm -f conftest.val
2565
2566   fi
2567   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2568   as_fn_set_status $ac_retval
2569
2570 } # ac_fn_c_compute_int
2571
2572 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2573 # ----------------------------------------------------
2574 # Tries to find if the field MEMBER exists in type AGGR, after including
2575 # INCLUDES, setting cache variable VAR accordingly.
2576 ac_fn_c_check_member ()
2577 {
2578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2580 $as_echo_n "checking for $2.$3... " >&6; }
2581 if eval \${$4+:} false; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h.  */
2586 $5
2587 int
2588 main ()
2589 {
2590 static $2 ac_aggr;
2591 if (ac_aggr.$3)
2592 return 0;
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598   eval "$4=yes"
2599 else
2600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h.  */
2602 $5
2603 int
2604 main ()
2605 {
2606 static $2 ac_aggr;
2607 if (sizeof ac_aggr.$3)
2608 return 0;
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614   eval "$4=yes"
2615 else
2616   eval "$4=no"
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 fi
2622 eval ac_res=\$$4
2623                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2626
2627 } # ac_fn_c_check_member
2628
2629 # ac_fn_cxx_try_run LINENO
2630 # ------------------------
2631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2632 # that executables *can* be run.
2633 ac_fn_cxx_try_run ()
2634 {
2635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636   if { { ac_try="$ac_link"
2637 case "(($ac_try" in
2638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639   *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643   (eval "$ac_link") 2>&5
2644   ac_status=$?
2645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2647   { { case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652 $as_echo "$ac_try_echo"; } >&5
2653   (eval "$ac_try") 2>&5
2654   ac_status=$?
2655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656   test $ac_status = 0; }; }; then :
2657   ac_retval=0
2658 else
2659   $as_echo "$as_me: program exited with status $ac_status" >&5
2660        $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663        ac_retval=$ac_status
2664 fi
2665   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667   as_fn_set_status $ac_retval
2668
2669 } # ac_fn_cxx_try_run
2670
2671 # ac_fn_cxx_check_func LINENO FUNC VAR
2672 # ------------------------------------
2673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2674 ac_fn_cxx_check_func ()
2675 {
2676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680   $as_echo_n "(cached) " >&6
2681 else
2682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h.  */
2684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2686 #define $2 innocuous_$2
2687
2688 /* System header to define __stub macros and hopefully few prototypes,
2689     which can conflict with char $2 (); below.
2690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2691     <limits.h> exists even on freestanding compilers.  */
2692
2693 #ifdef __STDC__
2694 # include <limits.h>
2695 #else
2696 # include <assert.h>
2697 #endif
2698
2699 #undef $2
2700
2701 /* Override any GCC internal prototype to avoid an error.
2702    Use char because int might match the return type of a GCC
2703    builtin and then its argument prototype would still apply.  */
2704 #ifdef __cplusplus
2705 extern "C"
2706 #endif
2707 char $2 ();
2708 /* The GNU C library defines this for functions which it implements
2709     to always fail with ENOSYS.  Some functions are actually named
2710     something starting with __ and the normal name is an alias.  */
2711 #if defined __stub_$2 || defined __stub___$2
2712 choke me
2713 #endif
2714
2715 int
2716 main ()
2717 {
2718 return $2 ();
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 if ac_fn_cxx_try_link "$LINENO"; then :
2724   eval "$3=yes"
2725 else
2726   eval "$3=no"
2727 fi
2728 rm -f core conftest.err conftest.$ac_objext \
2729     conftest$ac_exeext conftest.$ac_ext
2730 fi
2731 eval ac_res=\$$3
2732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735
2736 } # ac_fn_cxx_check_func
2737 cat >config.log <<_ACEOF
2738 This file contains any messages produced by compilers while
2739 running configure, to aid debugging if configure makes a mistake.
2740
2741 It was created by bacula $as_me 7.0.2, which was
2742 generated by GNU Autoconf 2.68.  Invocation command line was
2743
2744   $ $0 $@
2745
2746 _ACEOF
2747 exec 5>>config.log
2748 {
2749 cat <<_ASUNAME
2750 ## --------- ##
2751 ## Platform. ##
2752 ## --------- ##
2753
2754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2759
2760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2761 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2762
2763 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2764 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2766 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2767 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2768 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2769 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2770
2771 _ASUNAME
2772
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778     $as_echo "PATH: $as_dir"
2779   done
2780 IFS=$as_save_IFS
2781
2782 } >&5
2783
2784 cat >&5 <<_ACEOF
2785
2786
2787 ## ----------- ##
2788 ## Core tests. ##
2789 ## ----------- ##
2790
2791 _ACEOF
2792
2793
2794 # Keep a trace of the command line.
2795 # Strip out --no-create and --no-recursion so they do not pile up.
2796 # Strip out --silent because we don't want to record it for future runs.
2797 # Also quote any args containing shell meta-characters.
2798 # Make two passes to allow for proper duplicate-argument suppression.
2799 ac_configure_args=
2800 ac_configure_args0=
2801 ac_configure_args1=
2802 ac_must_keep_next=false
2803 for ac_pass in 1 2
2804 do
2805   for ac_arg
2806   do
2807     case $ac_arg in
2808     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2809     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2810     | -silent | --silent | --silen | --sile | --sil)
2811       continue ;;
2812     *\'*)
2813       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2814     esac
2815     case $ac_pass in
2816     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2817     2)
2818       as_fn_append ac_configure_args1 " '$ac_arg'"
2819       if test $ac_must_keep_next = true; then
2820         ac_must_keep_next=false # Got value, back to normal.
2821       else
2822         case $ac_arg in
2823           *=* | --config-cache | -C | -disable-* | --disable-* \
2824           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2825           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2826           | -with-* | --with-* | -without-* | --without-* | --x)
2827             case "$ac_configure_args0 " in
2828               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2829             esac
2830             ;;
2831           -* ) ac_must_keep_next=true ;;
2832         esac
2833       fi
2834       as_fn_append ac_configure_args " '$ac_arg'"
2835       ;;
2836     esac
2837   done
2838 done
2839 { ac_configure_args0=; unset ac_configure_args0;}
2840 { ac_configure_args1=; unset ac_configure_args1;}
2841
2842 # When interrupted or exit'd, cleanup temporary files, and complete
2843 # config.log.  We remove comments because anyway the quotes in there
2844 # would cause problems or look ugly.
2845 # WARNING: Use '\'' to represent an apostrophe within the trap.
2846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2847 trap 'exit_status=$?
2848   # Save into config.log some information that might help in debugging.
2849   {
2850     echo
2851
2852     $as_echo "## ---------------- ##
2853 ## Cache variables. ##
2854 ## ---------------- ##"
2855     echo
2856     # The following way of writing the cache mishandles newlines in values,
2857 (
2858   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859     eval ac_val=\$$ac_var
2860     case $ac_val in #(
2861     *${as_nl}*)
2862       case $ac_var in #(
2863       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2865       esac
2866       case $ac_var in #(
2867       _ | IFS | as_nl) ;; #(
2868       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869       *) { eval $ac_var=; unset $ac_var;} ;;
2870       esac ;;
2871     esac
2872   done
2873   (set) 2>&1 |
2874     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875     *${as_nl}ac_space=\ *)
2876       sed -n \
2877         "s/'\''/'\''\\\\'\'''\''/g;
2878           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2879       ;; #(
2880     *)
2881       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2882       ;;
2883     esac |
2884     sort
2885 )
2886     echo
2887
2888     $as_echo "## ----------------- ##
2889 ## Output variables. ##
2890 ## ----------------- ##"
2891     echo
2892     for ac_var in $ac_subst_vars
2893     do
2894       eval ac_val=\$$ac_var
2895       case $ac_val in
2896       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2897       esac
2898       $as_echo "$ac_var='\''$ac_val'\''"
2899     done | sort
2900     echo
2901
2902     if test -n "$ac_subst_files"; then
2903       $as_echo "## ------------------- ##
2904 ## File substitutions. ##
2905 ## ------------------- ##"
2906       echo
2907       for ac_var in $ac_subst_files
2908       do
2909         eval ac_val=\$$ac_var
2910         case $ac_val in
2911         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2912         esac
2913         $as_echo "$ac_var='\''$ac_val'\''"
2914       done | sort
2915       echo
2916     fi
2917
2918     if test -s confdefs.h; then
2919       $as_echo "## ----------- ##
2920 ## confdefs.h. ##
2921 ## ----------- ##"
2922       echo
2923       cat confdefs.h
2924       echo
2925     fi
2926     test "$ac_signal" != 0 &&
2927       $as_echo "$as_me: caught signal $ac_signal"
2928     $as_echo "$as_me: exit $exit_status"
2929   } >&5
2930   rm -f core *.core core.conftest.* &&
2931     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2932     exit $exit_status
2933 ' 0
2934 for ac_signal in 1 2 13 15; do
2935   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2936 done
2937 ac_signal=0
2938
2939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2940 rm -f -r conftest* confdefs.h
2941
2942 $as_echo "/* confdefs.h */" > confdefs.h
2943
2944 # Predefined preprocessor variables.
2945
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_NAME "$PACKAGE_NAME"
2948 _ACEOF
2949
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2952 _ACEOF
2953
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2956 _ACEOF
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_STRING "$PACKAGE_STRING"
2960 _ACEOF
2961
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2964 _ACEOF
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_URL "$PACKAGE_URL"
2968 _ACEOF
2969
2970
2971 # Let the site file select an alternate cache file if it wants to.
2972 # Prefer an explicitly selected file to automatically selected ones.
2973 ac_site_file1=NONE
2974 ac_site_file2=NONE
2975 if test -n "$CONFIG_SITE"; then
2976   # We do not want a PATH search for config.site.
2977   case $CONFIG_SITE in #((
2978     -*)  ac_site_file1=./$CONFIG_SITE;;
2979     */*) ac_site_file1=$CONFIG_SITE;;
2980     *)   ac_site_file1=./$CONFIG_SITE;;
2981   esac
2982 elif test "x$prefix" != xNONE; then
2983   ac_site_file1=$prefix/share/config.site
2984   ac_site_file2=$prefix/etc/config.site
2985 else
2986   ac_site_file1=$ac_default_prefix/share/config.site
2987   ac_site_file2=$ac_default_prefix/etc/config.site
2988 fi
2989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2990 do
2991   test "x$ac_site_file" = xNONE && continue
2992   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2993     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2995     sed 's/^/| /' "$ac_site_file" >&5
2996     . "$ac_site_file" \
2997       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "failed to load site script $ac_site_file
3000 See \`config.log' for more details" "$LINENO" 5; }
3001   fi
3002 done
3003
3004 if test -r "$cache_file"; then
3005   # Some versions of bash will fail to source /dev/null (special files
3006   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3007   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3008     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3009 $as_echo "$as_me: loading cache $cache_file" >&6;}
3010     case $cache_file in
3011       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3012       *)                      . "./$cache_file";;
3013     esac
3014   fi
3015 else
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3017 $as_echo "$as_me: creating cache $cache_file" >&6;}
3018   >$cache_file
3019 fi
3020
3021 as_fn_append ac_header_list " stdlib.h"
3022 as_fn_append ac_header_list " unistd.h"
3023 as_fn_append ac_header_list " sys/param.h"
3024 # Check that the precious variables saved in the cache have kept the same
3025 # value.
3026 ac_cache_corrupted=false
3027 for ac_var in $ac_precious_vars; do
3028   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3029   eval ac_new_set=\$ac_env_${ac_var}_set
3030   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3031   eval ac_new_val=\$ac_env_${ac_var}_value
3032   case $ac_old_set,$ac_new_set in
3033     set,)
3034       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3036       ac_cache_corrupted=: ;;
3037     ,set)
3038       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3040       ac_cache_corrupted=: ;;
3041     ,);;
3042     *)
3043       if test "x$ac_old_val" != "x$ac_new_val"; then
3044         # differences in whitespace do not lead to failure.
3045         ac_old_val_w=`echo x $ac_old_val`
3046         ac_new_val_w=`echo x $ac_new_val`
3047         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3048           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3050           ac_cache_corrupted=:
3051         else
3052           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3054           eval $ac_var=\$ac_old_val
3055         fi
3056         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3057 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3058         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3059 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3060       fi;;
3061   esac
3062   # Pass precious variables to config.status.
3063   if test "$ac_new_set" = set; then
3064     case $ac_new_val in
3065     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3066     *) ac_arg=$ac_var=$ac_new_val ;;
3067     esac
3068     case " $ac_configure_args " in
3069       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3070       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3071     esac
3072   fi
3073 done
3074 if $ac_cache_corrupted; then
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3079   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3080 fi
3081 ## -------------------- ##
3082 ## Main body of script. ##
3083 ## -------------------- ##
3084
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090
3091
3092
3093
3094 BUILD_DIR=`pwd`
3095 cd ..
3096 TOP_DIR=`pwd`
3097 cd ${BUILD_DIR}
3098
3099
3100 ac_aux_dir=
3101 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3102   if test -f "$ac_dir/install-sh"; then
3103     ac_aux_dir=$ac_dir
3104     ac_install_sh="$ac_aux_dir/install-sh -c"
3105     break
3106   elif test -f "$ac_dir/install.sh"; then
3107     ac_aux_dir=$ac_dir
3108     ac_install_sh="$ac_aux_dir/install.sh -c"
3109     break
3110   elif test -f "$ac_dir/shtool"; then
3111     ac_aux_dir=$ac_dir
3112     ac_install_sh="$ac_aux_dir/shtool install -c"
3113     break
3114   fi
3115 done
3116 if test -z "$ac_aux_dir"; then
3117   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3118 fi
3119
3120 # These three variables are undocumented and unsupported,
3121 # and are intended to be withdrawn in a future Autoconf release.
3122 # They can cause serious problems if a builder's source tree is in a directory
3123 # whose full name contains unusual characters.
3124 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3125 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3126 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3127
3128
3129 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3130
3131
3132 for ac_prog in true
3133 do
3134   # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_path_TRUEPRG+:} false; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   case $TRUEPRG in
3142   [\\/]* | ?:[\\/]*)
3143   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3144   ;;
3145   *)
3146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151     for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158   done
3159 IFS=$as_save_IFS
3160
3161   ;;
3162 esac
3163 fi
3164 TRUEPRG=$ac_cv_path_TRUEPRG
3165 if test -n "$TRUEPRG"; then
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3167 $as_echo "$TRUEPRG" >&6; }
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174   test -n "$TRUEPRG" && break
3175 done
3176 test -n "$TRUEPRG" || TRUEPRG=":"
3177
3178 for ac_prog in false
3179 do
3180   # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_path_FALSEPRG+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187   case $FALSEPRG in
3188   [\\/]* | ?:[\\/]*)
3189   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3190   ;;
3191   *)
3192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197     for ac_exec_ext in '' $ac_executable_extensions; do
3198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201     break 2
3202   fi
3203 done
3204   done
3205 IFS=$as_save_IFS
3206
3207   ;;
3208 esac
3209 fi
3210 FALSEPRG=$ac_cv_path_FALSEPRG
3211 if test -n "$FALSEPRG"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3213 $as_echo "$FALSEPRG" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220   test -n "$FALSEPRG" && break
3221 done
3222 test -n "$FALSEPRG" || FALSEPRG=":"
3223
3224
3225
3226 post_host=
3227 if test "x$BACULA" != x; then
3228    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3229 fi
3230 BACULA=${BACULA:-Bacula}
3231 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3232 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3233 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3234 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3236 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3237 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3238 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3239
3240 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242
3243 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3244 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3245
3246
3247 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3248 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3249
3250 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3251 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3252
3253
3254 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3255
3256 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3257
3258
3259 echo "configuring for ${BACULA} $VERSION ($DATE)"
3260
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 if test -n "$ac_tool_prefix"; then
3269   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274   $as_echo_n "(cached) " >&6
3275 else
3276   if test -n "$CC"; then
3277   ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282   IFS=$as_save_IFS
3283   test -z "$as_dir" && as_dir=.
3284     for ac_exec_ext in '' $ac_executable_extensions; do
3285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288     break 2
3289   fi
3290 done
3291   done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 if test -z "$ac_cv_prog_CC"; then
3308   ac_ct_CC=$CC
3309   # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3314   $as_echo_n "(cached) " >&6
3315 else
3316   if test -n "$ac_ct_CC"; then
3317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324     for ac_exec_ext in '' $ac_executable_extensions; do
3325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326     ac_cv_prog_ac_ct_CC="gcc"
3327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331   done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345   if test "x$ac_ct_CC" = x; then
3346     CC=""
3347   else
3348     case $cross_compiling:$ac_tool_warned in
3349 yes:)
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352 ac_tool_warned=yes ;;
3353 esac
3354     CC=$ac_ct_CC
3355   fi
3356 else
3357   CC="$ac_cv_prog_CC"
3358 fi
3359
3360 if test -z "$CC"; then
3361           if test -n "$ac_tool_prefix"; then
3362     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}cc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367   $as_echo_n "(cached) " >&6
3368 else
3369   if test -n "$CC"; then
3370   ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377     for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_CC="${ac_tool_prefix}cc"
3380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381     break 2
3382   fi
3383 done
3384   done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399   fi
3400 fi
3401 if test -z "$CC"; then
3402   # Extract the first word of "cc", so it can be a program name with args.
3403 set dummy cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -n "$CC"; then
3410   ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412   ac_prog_rejected=no
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418     for ac_exec_ext in '' $ac_executable_extensions; do
3419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421        ac_prog_rejected=yes
3422        continue
3423      fi
3424     ac_cv_prog_CC="cc"
3425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426     break 2
3427   fi
3428 done
3429   done
3430 IFS=$as_save_IFS
3431
3432 if test $ac_prog_rejected = yes; then
3433   # We found a bogon in the path, so make sure we never use it.
3434   set dummy $ac_cv_prog_CC
3435   shift
3436   if test $# != 0; then
3437     # We chose a different compiler from the bogus one.
3438     # However, it has the same basename, so the bogon will be chosen
3439     # first if we set CC to just the basename; use the full file name.
3440     shift
3441     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442   fi
3443 fi
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456 fi
3457 if test -z "$CC"; then
3458   if test -n "$ac_tool_prefix"; then
3459   for ac_prog in cl.exe
3460   do
3461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   if test -n "$CC"; then
3469   ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476     for ac_exec_ext in '' $ac_executable_extensions; do
3477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483   done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498     test -n "$CC" && break
3499   done
3500 fi
3501 if test -z "$CC"; then
3502   ac_ct_CC=$CC
3503   for ac_prog in cl.exe
3504 do
3505   # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   if test -n "$ac_ct_CC"; then
3513   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518   IFS=$as_save_IFS
3519   test -z "$as_dir" && as_dir=.
3520     for ac_exec_ext in '' $ac_executable_extensions; do
3521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522     ac_cv_prog_ac_ct_CC="$ac_prog"
3523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524     break 2
3525   fi
3526 done
3527   done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535 $as_echo "$ac_ct_CC" >&6; }
3536 else
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542   test -n "$ac_ct_CC" && break
3543 done
3544
3545   if test "x$ac_ct_CC" = x; then
3546     CC=""
3547   else
3548     case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554     CC=$ac_ct_CC
3555   fi
3556 fi
3557
3558 fi
3559
3560
3561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details" "$LINENO" 5; }
3565
3566 # Provide some information about the compiler.
3567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3568 set X $ac_compile
3569 ac_compiler=$2
3570 for ac_option in --version -v -V -qversion; do
3571   { { ac_try="$ac_compiler $ac_option >&5"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3579   ac_status=$?
3580   if test -s conftest.err; then
3581     sed '10a\
3582 ... rest of stderr output deleted ...
3583          10q' conftest.err >conftest.er1
3584     cat conftest.er1 >&5
3585   fi
3586   rm -f conftest.er1 conftest.err
3587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588   test $ac_status = 0; }
3589 done
3590
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593
3594 int
3595 main ()
3596 {
3597
3598   ;
3599   return 0;
3600 }
3601 _ACEOF
3602 ac_clean_files_save=$ac_clean_files
3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604 # Try to create an executable without -o first, disregard a.out.
3605 # It will help us diagnose broken compilers, and finding out an intuition
3606 # of exeext.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608 $as_echo_n "checking whether the C compiler works... " >&6; }
3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3610
3611 # The possible output files:
3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3613
3614 ac_rmfiles=
3615 for ac_file in $ac_files
3616 do
3617   case $ac_file in
3618     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620   esac
3621 done
3622 rm -f $ac_rmfiles
3623
3624 if { { ac_try="$ac_link_default"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631   (eval "$ac_link_default") 2>&5
3632   ac_status=$?
3633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634   test $ac_status = 0; }; then :
3635   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3639 # Autoconf.
3640 for ac_file in $ac_files ''
3641 do
3642   test -f "$ac_file" || continue
3643   case $ac_file in
3644     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3645         ;;
3646     [ab].out )
3647         # We found the default executable, but exeext='' is most
3648         # certainly right.
3649         break;;
3650     *.* )
3651         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652         then :; else
3653            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654         fi
3655         # We set ac_cv_exeext here because the later test for it is not
3656         # safe: cross compilers may not add the suffix if given an `-o'
3657         # argument, so we may need to know it at that point already.
3658         # Even if this section looks crufty: it has the advantage of
3659         # actually working.
3660         break;;
3661     * )
3662         break;;
3663   esac
3664 done
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3666
3667 else
3668   ac_file=''
3669 fi
3670 if test -z "$ac_file"; then :
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error 77 "C compiler cannot create executables
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 else
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685 $as_echo_n "checking for C compiler default output file name... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 ac_exeext=$ac_cv_exeext
3689
3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693 $as_echo_n "checking for suffix of executables... " >&6; }
3694 if { { ac_try="$ac_link"
3695 case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701   (eval "$ac_link") 2>&5
3702   ac_status=$?
3703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704   test $ac_status = 0; }; then :
3705   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3707 # work properly (i.e., refer to `conftest.exe'), while it won't with
3708 # `rm'.
3709 for ac_file in conftest.exe conftest conftest.*; do
3710   test -f "$ac_file" || continue
3711   case $ac_file in
3712     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714           break;;
3715     * ) break;;
3716   esac
3717 done
3718 else
3719   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3722 See \`config.log' for more details" "$LINENO" 5; }
3723 fi
3724 rm -f conftest conftest$ac_cv_exeext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726 $as_echo "$ac_cv_exeext" >&6; }
3727
3728 rm -f conftest.$ac_ext
3729 EXEEXT=$ac_cv_exeext
3730 ac_exeext=$EXEEXT
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733 #include <stdio.h>
3734 int
3735 main ()
3736 {
3737 FILE *f = fopen ("conftest.out", "w");
3738  return ferror (f) || fclose (f) != 0;
3739
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 ac_clean_files="$ac_clean_files conftest.out"
3745 # Check that the compiler produces executables we can run.  If not, either
3746 # the compiler is broken, or we cross compile.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748 $as_echo_n "checking whether we are cross compiling... " >&6; }
3749 if test "$cross_compiling" != yes; then
3750   { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753   *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757   (eval "$ac_link") 2>&5
3758   ac_status=$?
3759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760   test $ac_status = 0; }
3761   if { ac_try='./conftest$ac_cv_exeext'
3762   { { case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_try") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }; }; then
3772     cross_compiling=no
3773   else
3774     if test "$cross_compiling" = maybe; then
3775         cross_compiling=yes
3776     else
3777         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot run C compiled programs.
3780 If you meant to cross compile, use \`--host'.
3781 See \`config.log' for more details" "$LINENO" 5; }
3782     fi
3783   fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3787
3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789 ac_clean_files=$ac_clean_files_save
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3791 $as_echo_n "checking for suffix of object files... " >&6; }
3792 if ${ac_cv_objext+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797
3798 int
3799 main ()
3800 {
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 rm -f conftest.o conftest.obj
3807 if { { ac_try="$ac_compile"
3808 case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814   (eval "$ac_compile") 2>&5
3815   ac_status=$?
3816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817   test $ac_status = 0; }; then :
3818   for ac_file in conftest.o conftest.obj conftest.*; do
3819   test -f "$ac_file" || continue;
3820   case $ac_file in
3821     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3822     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3823        break;;
3824   esac
3825 done
3826 else
3827   $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of object files: cannot compile
3833 See \`config.log' for more details" "$LINENO" 5; }
3834 fi
3835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3838 $as_echo "$ac_cv_objext" >&6; }
3839 OBJEXT=$ac_cv_objext
3840 ac_objext=$OBJEXT
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3842 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3843 if ${ac_cv_c_compiler_gnu+:} false; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848
3849 int
3850 main ()
3851 {
3852 #ifndef __GNUC__
3853        choke me
3854 #endif
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861   ac_compiler_gnu=yes
3862 else
3863   ac_compiler_gnu=no
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3867
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3870 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3871 if test $ac_compiler_gnu = yes; then
3872   GCC=yes
3873 else
3874   GCC=
3875 fi
3876 ac_test_CFLAGS=${CFLAGS+set}
3877 ac_save_CFLAGS=$CFLAGS
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3880 if ${ac_cv_prog_cc_g+:} false; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   ac_save_c_werror_flag=$ac_c_werror_flag
3884    ac_c_werror_flag=yes
3885    ac_cv_prog_cc_g=no
3886    CFLAGS="-g"
3887    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h.  */
3889
3890 int
3891 main ()
3892 {
3893
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899   ac_cv_prog_cc_g=yes
3900 else
3901   CFLAGS=""
3902       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904
3905 int
3906 main ()
3907 {
3908
3909   ;
3910   return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914
3915 else
3916   ac_c_werror_flag=$ac_save_c_werror_flag
3917          CFLAGS="-g"
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   ac_cv_prog_cc_g=yes
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937    ac_c_werror_flag=$ac_save_c_werror_flag
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3940 $as_echo "$ac_cv_prog_cc_g" >&6; }
3941 if test "$ac_test_CFLAGS" = set; then
3942   CFLAGS=$ac_save_CFLAGS
3943 elif test $ac_cv_prog_cc_g = yes; then
3944   if test "$GCC" = yes; then
3945     CFLAGS="-g -O2"
3946   else
3947     CFLAGS="-g"
3948   fi
3949 else
3950   if test "$GCC" = yes; then
3951     CFLAGS="-O2"
3952   else
3953     CFLAGS=
3954   fi
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3958 if ${ac_cv_prog_cc_c89+:} false; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   ac_cv_prog_cc_c89=no
3962 ac_save_CC=$CC
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965 #include <stdarg.h>
3966 #include <stdio.h>
3967 #include <sys/types.h>
3968 #include <sys/stat.h>
3969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3970 struct buf { int x; };
3971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3972 static char *e (p, i)
3973      char **p;
3974      int i;
3975 {
3976   return p[i];
3977 }
3978 static char *f (char * (*g) (char **, int), char **p, ...)
3979 {
3980   char *s;
3981   va_list v;
3982   va_start (v,p);
3983   s = g (p, va_arg (v,int));
3984   va_end (v);
3985   return s;
3986 }
3987
3988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3989    function prototypes and stuff, but not '\xHH' hex character constants.
3990    These don't provoke an error unfortunately, instead are silently treated
3991    as 'x'.  The following induces an error, until -std is added to get
3992    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3993    array size at least.  It's necessary to write '\x00'==0 to get something
3994    that's true only with -std.  */
3995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3996
3997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3998    inside strings and character constants.  */
3999 #define FOO(x) 'x'
4000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4001
4002 int test (int i, double x);
4003 struct s1 {int (*f) (int a);};
4004 struct s2 {int (*f) (double a);};
4005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4006 int argc;
4007 char **argv;
4008 int
4009 main ()
4010 {
4011 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4017         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4018 do
4019   CC="$ac_save_CC $ac_arg"
4020   if ac_fn_c_try_compile "$LINENO"; then :
4021   ac_cv_prog_cc_c89=$ac_arg
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext
4024   test "x$ac_cv_prog_cc_c89" != "xno" && break
4025 done
4026 rm -f conftest.$ac_ext
4027 CC=$ac_save_CC
4028
4029 fi
4030 # AC_CACHE_VAL
4031 case "x$ac_cv_prog_cc_c89" in
4032   x)
4033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4034 $as_echo "none needed" >&6; } ;;
4035   xno)
4036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;;
4038   *)
4039     CC="$CC $ac_cv_prog_cc_c89"
4040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4042 esac
4043 if test "x$ac_cv_prog_cc_c89" != xno; then :
4044
4045 fi
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052
4053 ac_ext=cpp
4054 ac_cpp='$CXXCPP $CPPFLAGS'
4055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4058 if test -z "$CXX"; then
4059   if test -n "$CCC"; then
4060     CXX=$CCC
4061   else
4062     if test -n "$ac_tool_prefix"; then
4063   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4064   do
4065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_CXX+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   if test -n "$CXX"; then
4073   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080     for ac_exec_ext in '' $ac_executable_extensions; do
4081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087   done
4088 IFS=$as_save_IFS
4089
4090 fi
4091 fi
4092 CXX=$ac_cv_prog_CXX
4093 if test -n "$CXX"; then
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4095 $as_echo "$CXX" >&6; }
4096 else
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101
4102     test -n "$CXX" && break
4103   done
4104 fi
4105 if test -z "$CXX"; then
4106   ac_ct_CXX=$CXX
4107   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4108 do
4109   # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116   if test -n "$ac_ct_CXX"; then
4117   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124     for ac_exec_ext in '' $ac_executable_extensions; do
4125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126     ac_cv_prog_ac_ct_CXX="$ac_prog"
4127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131   done
4132 IFS=$as_save_IFS
4133
4134 fi
4135 fi
4136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4137 if test -n "$ac_ct_CXX"; then
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4139 $as_echo "$ac_ct_CXX" >&6; }
4140 else
4141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4143 fi
4144
4145
4146   test -n "$ac_ct_CXX" && break
4147 done
4148
4149   if test "x$ac_ct_CXX" = x; then
4150     CXX="g++"
4151   else
4152     case $cross_compiling:$ac_tool_warned in
4153 yes:)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4156 ac_tool_warned=yes ;;
4157 esac
4158     CXX=$ac_ct_CXX
4159   fi
4160 fi
4161
4162   fi
4163 fi
4164 # Provide some information about the compiler.
4165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4166 set X $ac_compile
4167 ac_compiler=$2
4168 for ac_option in --version -v -V -qversion; do
4169   { { ac_try="$ac_compiler $ac_option >&5"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4177   ac_status=$?
4178   if test -s conftest.err; then
4179     sed '10a\
4180 ... rest of stderr output deleted ...
4181          10q' conftest.err >conftest.er1
4182     cat conftest.er1 >&5
4183   fi
4184   rm -f conftest.er1 conftest.err
4185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186   test $ac_status = 0; }
4187 done
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4190 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4191 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h.  */
4196
4197 int
4198 main ()
4199 {
4200 #ifndef __GNUC__
4201        choke me
4202 #endif
4203
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_cxx_try_compile "$LINENO"; then :
4209   ac_compiler_gnu=yes
4210 else
4211   ac_compiler_gnu=no
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4215
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4218 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4219 if test $ac_compiler_gnu = yes; then
4220   GXX=yes
4221 else
4222   GXX=
4223 fi
4224 ac_test_CXXFLAGS=${CXXFLAGS+set}
4225 ac_save_CXXFLAGS=$CXXFLAGS
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4227 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4228 if ${ac_cv_prog_cxx_g+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4232    ac_cxx_werror_flag=yes
4233    ac_cv_prog_cxx_g=no
4234    CXXFLAGS="-g"
4235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_cxx_try_compile "$LINENO"; then :
4247   ac_cv_prog_cxx_g=yes
4248 else
4249   CXXFLAGS=""
4250       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h.  */
4252
4253 int
4254 main ()
4255 {
4256
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_cxx_try_compile "$LINENO"; then :
4262
4263 else
4264   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4265          CXXFLAGS="-g"
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   ac_cv_prog_cxx_g=yes
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 fi
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4288 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4289 if test "$ac_test_CXXFLAGS" = set; then
4290   CXXFLAGS=$ac_save_CXXFLAGS
4291 elif test $ac_cv_prog_cxx_g = yes; then
4292   if test "$GXX" = yes; then
4293     CXXFLAGS="-g -O2"
4294   else
4295     CXXFLAGS="-g"
4296   fi
4297 else
4298   if test "$GXX" = yes; then
4299     CXXFLAGS="-O2"
4300   else
4301     CXXFLAGS=
4302   fi
4303 fi
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309
4310 if test "x$CC" != xcc; then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4312 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4315 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4316 fi
4317 set dummy $CC; ac_cc=`$as_echo "$2" |
4318                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4319 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 # Make sure it works both with $CC and with simple cc.
4334 # We do the test twice because some compilers refuse to overwrite an
4335 # existing .o file with -o, though they will create one.
4336 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4337 rm -f conftest2.*
4338 if { { case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344   (eval "$ac_try") 2>&5
4345   ac_status=$?
4346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347   test $ac_status = 0; } &&
4348    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354   (eval "$ac_try") 2>&5
4355   ac_status=$?
4356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357   test $ac_status = 0; };
4358 then
4359   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4360   if test "x$CC" != xcc; then
4361     # Test first that cc exists at all.
4362     if { ac_try='cc -c conftest.$ac_ext >&5'
4363   { { case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372   test $ac_status = 0; }; }; then
4373       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4374       rm -f conftest2.*
4375       if { { case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381   (eval "$ac_try") 2>&5
4382   ac_status=$?
4383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384   test $ac_status = 0; } &&
4385          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391   (eval "$ac_try") 2>&5
4392   ac_status=$?
4393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394   test $ac_status = 0; };
4395       then
4396         # cc works too.
4397         :
4398       else
4399         # cc exists but doesn't like -o.
4400         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4401       fi
4402     fi
4403   fi
4404 else
4405   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4406 fi
4407 rm -f core conftest*
4408
4409 fi
4410 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4412 $as_echo "yes" >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416
4417 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4418
4419 fi
4420
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4428 # On Suns, sometimes $CPP names a directory.
4429 if test -n "$CPP" && test -d "$CPP"; then
4430   CPP=
4431 fi
4432 if test -z "$CPP"; then
4433   if ${ac_cv_prog_CPP+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436       # Double quotes because CPP needs to be expanded
4437     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4438     do
4439       ac_preproc_ok=false
4440 for ac_c_preproc_warn_flag in '' yes
4441 do
4442   # Use a header file that comes with gcc, so configuring glibc
4443   # with a fresh cross-compiler works.
4444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445   # <limits.h> exists even on freestanding compilers.
4446   # On the NeXT, cc -E runs the code through the compiler's parser,
4447   # not just through cpp. "Syntax error" is here to catch this case.
4448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450 #ifdef __STDC__
4451 # include <limits.h>
4452 #else
4453 # include <assert.h>
4454 #endif
4455                      Syntax error
4456 _ACEOF
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4458
4459 else
4460   # Broken: fails on valid input.
4461 continue
4462 fi
4463 rm -f conftest.err conftest.i conftest.$ac_ext
4464
4465   # OK, works on sane cases.  Now check whether nonexistent headers
4466   # can be detected and how.
4467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h.  */
4469 #include <ac_nonexistent.h>
4470 _ACEOF
4471 if ac_fn_c_try_cpp "$LINENO"; then :
4472   # Broken: success on invalid input.
4473 continue
4474 else
4475   # Passes both tests.
4476 ac_preproc_ok=:
4477 break
4478 fi
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4480
4481 done
4482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483 rm -f conftest.i conftest.err conftest.$ac_ext
4484 if $ac_preproc_ok; then :
4485   break
4486 fi
4487
4488     done
4489     ac_cv_prog_CPP=$CPP
4490
4491 fi
4492   CPP=$ac_cv_prog_CPP
4493 else
4494   ac_cv_prog_CPP=$CPP
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4497 $as_echo "$CPP" >&6; }
4498 ac_preproc_ok=false
4499 for ac_c_preproc_warn_flag in '' yes
4500 do
4501   # Use a header file that comes with gcc, so configuring glibc
4502   # with a fresh cross-compiler works.
4503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504   # <limits.h> exists even on freestanding compilers.
4505   # On the NeXT, cc -E runs the code through the compiler's parser,
4506   # not just through cpp. "Syntax error" is here to catch this case.
4507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h.  */
4509 #ifdef __STDC__
4510 # include <limits.h>
4511 #else
4512 # include <assert.h>
4513 #endif
4514                      Syntax error
4515 _ACEOF
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4517
4518 else
4519   # Broken: fails on valid input.
4520 continue
4521 fi
4522 rm -f conftest.err conftest.i conftest.$ac_ext
4523
4524   # OK, works on sane cases.  Now check whether nonexistent headers
4525   # can be detected and how.
4526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h.  */
4528 #include <ac_nonexistent.h>
4529 _ACEOF
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4531   # Broken: success on invalid input.
4532 continue
4533 else
4534   # Passes both tests.
4535 ac_preproc_ok=:
4536 break
4537 fi
4538 rm -f conftest.err conftest.i conftest.$ac_ext
4539
4540 done
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.i conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then :
4544
4545 else
4546   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4549 See \`config.log' for more details" "$LINENO" 5; }
4550 fi
4551
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4560 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4561 if ${ac_cv_path_GREP+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if test -z "$GREP"; then
4565   ac_path_GREP_found=false
4566   # Loop through the user's path and test for each of PROGNAME-LIST
4567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572     for ac_prog in grep ggrep; do
4573     for ac_exec_ext in '' $ac_executable_extensions; do
4574       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4575       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4576 # Check for GNU ac_path_GREP and select it if it is found.
4577   # Check for GNU $ac_path_GREP
4578 case `"$ac_path_GREP" --version 2>&1` in
4579 *GNU*)
4580   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4581 *)
4582   ac_count=0
4583   $as_echo_n 0123456789 >"conftest.in"
4584   while :
4585   do
4586     cat "conftest.in" "conftest.in" >"conftest.tmp"
4587     mv "conftest.tmp" "conftest.in"
4588     cp "conftest.in" "conftest.nl"
4589     $as_echo 'GREP' >> "conftest.nl"
4590     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592     as_fn_arith $ac_count + 1 && ac_count=$as_val
4593     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4594       # Best one so far, save it but keep looking for a better one
4595       ac_cv_path_GREP="$ac_path_GREP"
4596       ac_path_GREP_max=$ac_count
4597     fi
4598     # 10*(2^10) chars as input seems more than enough
4599     test $ac_count -gt 10 && break
4600   done
4601   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 esac
4603
4604       $ac_path_GREP_found && break 3
4605     done
4606   done
4607   done
4608 IFS=$as_save_IFS
4609   if test -z "$ac_cv_path_GREP"; then
4610     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4611   fi
4612 else
4613   ac_cv_path_GREP=$GREP
4614 fi
4615
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4618 $as_echo "$ac_cv_path_GREP" >&6; }
4619  GREP="$ac_cv_path_GREP"
4620
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4623 $as_echo_n "checking for egrep... " >&6; }
4624 if ${ac_cv_path_EGREP+:} false; then :
4625   $as_echo_n "(cached) " >&6
4626 else
4627   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4628    then ac_cv_path_EGREP="$GREP -E"
4629    else
4630      if test -z "$EGREP"; then
4631   ac_path_EGREP_found=false
4632   # Loop through the user's path and test for each of PROGNAME-LIST
4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638     for ac_prog in egrep; do
4639     for ac_exec_ext in '' $ac_executable_extensions; do
4640       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4641       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4642 # Check for GNU ac_path_EGREP and select it if it is found.
4643   # Check for GNU $ac_path_EGREP
4644 case `"$ac_path_EGREP" --version 2>&1` in
4645 *GNU*)
4646   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4647 *)
4648   ac_count=0
4649   $as_echo_n 0123456789 >"conftest.in"
4650   while :
4651   do
4652     cat "conftest.in" "conftest.in" >"conftest.tmp"
4653     mv "conftest.tmp" "conftest.in"
4654     cp "conftest.in" "conftest.nl"
4655     $as_echo 'EGREP' >> "conftest.nl"
4656     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658     as_fn_arith $ac_count + 1 && ac_count=$as_val
4659     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4660       # Best one so far, save it but keep looking for a better one
4661       ac_cv_path_EGREP="$ac_path_EGREP"
4662       ac_path_EGREP_max=$ac_count
4663     fi
4664     # 10*(2^10) chars as input seems more than enough
4665     test $ac_count -gt 10 && break
4666   done
4667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 esac
4669
4670       $ac_path_EGREP_found && break 3
4671     done
4672   done
4673   done
4674 IFS=$as_save_IFS
4675   if test -z "$ac_cv_path_EGREP"; then
4676     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4677   fi
4678 else
4679   ac_cv_path_EGREP=$EGREP
4680 fi
4681
4682    fi
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4685 $as_echo "$ac_cv_path_EGREP" >&6; }
4686  EGREP="$ac_cv_path_EGREP"
4687
4688
4689 if test $ac_cv_c_compiler_gnu = yes; then
4690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4691 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4692 if ${ac_cv_prog_gcc_traditional+:} false; then :
4693   $as_echo_n "(cached) " >&6
4694 else
4695     ac_pattern="Autoconf.*'x'"
4696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698 #include <sgtty.h>
4699 Autoconf TIOCGETP
4700 _ACEOF
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4703   ac_cv_prog_gcc_traditional=yes
4704 else
4705   ac_cv_prog_gcc_traditional=no
4706 fi
4707 rm -f conftest*
4708
4709
4710   if test $ac_cv_prog_gcc_traditional = no; then
4711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h.  */
4713 #include <termio.h>
4714 Autoconf TCGETA
4715 _ACEOF
4716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4718   ac_cv_prog_gcc_traditional=yes
4719 fi
4720 rm -f conftest*
4721
4722   fi
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4725 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4726   if test $ac_cv_prog_gcc_traditional = yes; then
4727     CC="$CC -traditional"
4728   fi
4729 fi
4730
4731 BASECC=`basename $CC`
4732 have_gcc=no
4733 if test "x$BASECC" = xgcc; then
4734    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4735
4736    have_gcc=yes
4737 fi
4738 # Extract the first word of "$CXX", so it can be a program name with args.
4739 set dummy $CXX; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_path_CXX+:} false; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   case $CXX in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762   done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4766   ;;
4767 esac
4768 fi
4769 CXX=$ac_cv_path_CXX
4770 if test -n "$CXX"; then
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4772 $as_echo "$CXX" >&6; }
4773 else
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778
4779 if test ! -e $CXX; then
4780    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4781 fi
4782
4783 # Find a good install program.  We prefer a C program (faster),
4784 # so one script is as good as another.  But avoid the broken or
4785 # incompatible versions:
4786 # SysV /etc/install, /usr/sbin/install
4787 # SunOS /usr/etc/install
4788 # IRIX /sbin/install
4789 # AIX /bin/install
4790 # AmigaOS /C/install, which installs bootblocks on floppy discs
4791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4794 # OS/2's system install, which has a completely different semantic
4795 # ./install, which can be erroneously created by make from ./install.sh.
4796 # Reject install programs that cannot install multiple files.
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4798 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4799 if test -z "$INSTALL"; then
4800 if ${ac_cv_path_install+:} false; then :
4801   $as_echo_n "(cached) " >&6
4802 else
4803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806   IFS=$as_save_IFS
4807   test -z "$as_dir" && as_dir=.
4808     # Account for people who put trailing slashes in PATH elements.
4809 case $as_dir/ in #((
4810   ./ | .// | /[cC]/* | \
4811   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4812   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4813   /usr/ucb/* ) ;;
4814   *)
4815     # OSF1 and SCO ODT 3.0 have their own names for install.
4816     # Don't use installbsd from OSF since it installs stuff as root
4817     # by default.
4818     for ac_prog in ginstall scoinst install; do
4819       for ac_exec_ext in '' $ac_executable_extensions; do
4820         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4821           if test $ac_prog = install &&
4822             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4823             # AIX install.  It has an incompatible calling convention.
4824             :
4825           elif test $ac_prog = install &&
4826             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4827             # program-specific install script used by HP pwplus--don't use.
4828             :
4829           else
4830             rm -rf conftest.one conftest.two conftest.dir
4831             echo one > conftest.one
4832             echo two > conftest.two
4833             mkdir conftest.dir
4834             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4835               test -s conftest.one && test -s conftest.two &&
4836               test -s conftest.dir/conftest.one &&
4837               test -s conftest.dir/conftest.two
4838             then
4839               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4840               break 3
4841             fi
4842           fi
4843         fi
4844       done
4845     done
4846     ;;
4847 esac
4848
4849   done
4850 IFS=$as_save_IFS
4851
4852 rm -rf conftest.one conftest.two conftest.dir
4853
4854 fi
4855   if test "${ac_cv_path_install+set}" = set; then
4856     INSTALL=$ac_cv_path_install
4857   else
4858     # As a last resort, use the slow shell script.  Don't cache a
4859     # value for INSTALL within a source directory, because that will
4860     # break other packages using the cache if that directory is
4861     # removed, or if the value is a relative name.
4862     INSTALL=$ac_install_sh
4863   fi
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4866 $as_echo "$INSTALL" >&6; }
4867
4868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4869 # It thinks the first close brace ends the variable substitution.
4870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4871
4872 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4873
4874 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4875
4876 # Extract the first word of "mv", so it can be a program name with args.
4877 set dummy mv; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_path_MV+:} false; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   case $MV in
4884   [\\/]* | ?:[\\/]*)
4885   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4886   ;;
4887   *)
4888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893     for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900   done
4901 IFS=$as_save_IFS
4902
4903   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4904   ;;
4905 esac
4906 fi
4907 MV=$ac_cv_path_MV
4908 if test -n "$MV"; then
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4910 $as_echo "$MV" >&6; }
4911 else
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4914 fi
4915
4916
4917 # Extract the first word of "rm", so it can be a program name with args.
4918 set dummy rm; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_path_REMOVE+:} false; then :
4922   $as_echo_n "(cached) " >&6
4923 else
4924   case $REMOVE in
4925   [\\/]* | ?:[\\/]*)
4926   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4927   ;;
4928   *)
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941   done
4942 IFS=$as_save_IFS
4943
4944   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4945   ;;
4946 esac
4947 fi
4948 REMOVE=$ac_cv_path_REMOVE
4949 if test -n "$REMOVE"; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4951 $as_echo "$REMOVE" >&6; }
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956
4957
4958 # Extract the first word of "cp", so it can be a program name with args.
4959 set dummy cp; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_path_CP+:} false; then :
4963   $as_echo_n "(cached) " >&6
4964 else
4965   case $CP in
4966   [\\/]* | ?:[\\/]*)
4967   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4968   ;;
4969   *)
4970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975     for ac_exec_ext in '' $ac_executable_extensions; do
4976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982   done
4983 IFS=$as_save_IFS
4984
4985   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4986   ;;
4987 esac
4988 fi
4989 CP=$ac_cv_path_CP
4990 if test -n "$CP"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4992 $as_echo "$CP" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998
4999 # Extract the first word of "sed", so it can be a program name with args.
5000 set dummy sed; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_path_SED+:} false; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006   case $SED in
5007   [\\/]* | ?:[\\/]*)
5008   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5009   ;;
5010   *)
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025
5026   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5027   ;;
5028 esac
5029 fi
5030 SED=$ac_cv_path_SED
5031 if test -n "$SED"; then
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5033 $as_echo "$SED" >&6; }
5034 else
5035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038
5039
5040 # Extract the first word of "echo", so it can be a program name with args.
5041 set dummy echo; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_path_ECHO+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   case $ECHO in
5048   [\\/]* | ?:[\\/]*)
5049   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5050   ;;
5051   *)
5052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064   done
5065 IFS=$as_save_IFS
5066
5067   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5068   ;;
5069 esac
5070 fi
5071 ECHO=$ac_cv_path_ECHO
5072 if test -n "$ECHO"; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5074 $as_echo "$ECHO" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081 # Extract the first word of "cmp", so it can be a program name with args.
5082 set dummy cmp; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_path_CMP+:} false; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   case $CMP in
5089   [\\/]* | ?:[\\/]*)
5090   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5091   ;;
5092   *)
5093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105   done
5106 IFS=$as_save_IFS
5107
5108   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5109   ;;
5110 esac
5111 fi
5112 CMP=$ac_cv_path_CMP
5113 if test -n "$CMP"; then
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5115 $as_echo "$CMP" >&6; }
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 # Extract the first word of "tbl", so it can be a program name with args.
5123 set dummy tbl; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_TBL+:} false; then :
5127   $as_echo_n "(cached) " >&6
5128 else
5129   case $TBL in
5130   [\\/]* | ?:[\\/]*)
5131   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5132   ;;
5133   *)
5134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139     for ac_exec_ext in '' $ac_executable_extensions; do
5140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146   done
5147 IFS=$as_save_IFS
5148
5149   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5150   ;;
5151 esac
5152 fi
5153 TBL=$ac_cv_path_TBL
5154 if test -n "$TBL"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5156 $as_echo "$TBL" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163 # Extract the first word of "ar", so it can be a program name with args.
5164 set dummy ar; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_path_AR+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   case $AR in
5171   [\\/]* | ?:[\\/]*)
5172   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5173   ;;
5174   *)
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180     for ac_exec_ext in '' $ac_executable_extensions; do
5181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187   done
5188 IFS=$as_save_IFS
5189
5190   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5191   ;;
5192 esac
5193 fi
5194 AR=$ac_cv_path_AR
5195 if test -n "$AR"; then
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5197 $as_echo "$AR" >&6; }
5198 else
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203
5204 # Extract the first word of "openssl", so it can be a program name with args.
5205 set dummy openssl; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_OPENSSL+:} false; then :
5209   $as_echo_n "(cached) " >&6
5210 else
5211   case $OPENSSL in
5212   [\\/]* | ?:[\\/]*)
5213   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5214   ;;
5215   *)
5216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221     for ac_exec_ext in '' $ac_executable_extensions; do
5222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225     break 2
5226   fi
5227 done
5228   done
5229 IFS=$as_save_IFS
5230
5231   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5232   ;;
5233 esac
5234 fi
5235 OPENSSL=$ac_cv_path_OPENSSL
5236 if test -n "$OPENSSL"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5238 $as_echo "$OPENSSL" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245 # Extract the first word of "mtx", so it can be a program name with args.
5246 set dummy mtx; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_MTX+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   case $MTX in
5253   [\\/]* | ?:[\\/]*)
5254   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5255   ;;
5256   *)
5257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262     for ac_exec_ext in '' $ac_executable_extensions; do
5263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266     break 2
5267   fi
5268 done
5269   done
5270 IFS=$as_save_IFS
5271
5272   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5273   ;;
5274 esac
5275 fi
5276 MTX=$ac_cv_path_MTX
5277 if test -n "$MTX"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5279 $as_echo "$MTX" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 # Extract the first word of "dd", so it can be a program name with args.
5287 set dummy dd; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_path_DD+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   case $DD in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303     for ac_exec_ext in '' $ac_executable_extensions; do
5304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310   done
5311 IFS=$as_save_IFS
5312
5313   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5314   ;;
5315 esac
5316 fi
5317 DD=$ac_cv_path_DD
5318 if test -n "$DD"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5320 $as_echo "$DD" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327 # Extract the first word of "mkisofs", so it can be a program name with args.
5328 set dummy mkisofs; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_path_MKISOFS+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   case $MKISOFS in
5335   [\\/]* | ?:[\\/]*)
5336   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5337   ;;
5338   *)
5339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342   IFS=$as_save_IFS
5343   test -z "$as_dir" && as_dir=.
5344     for ac_exec_ext in '' $ac_executable_extensions; do
5345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348     break 2
5349   fi
5350 done
5351   done
5352 IFS=$as_save_IFS
5353
5354   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5355   ;;
5356 esac
5357 fi
5358 MKISOFS=$ac_cv_path_MKISOFS
5359 if test -n "$MKISOFS"; then
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5361 $as_echo "$MKISOFS" >&6; }
5362 else
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367
5368 # Extract the first word of "python", so it can be a program name with args.
5369 set dummy python; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_path_PYTHON+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   case $PYTHON in
5376   [\\/]* | ?:[\\/]*)
5377   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5378   ;;
5379   *)
5380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385     for ac_exec_ext in '' $ac_executable_extensions; do
5386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392   done
5393 IFS=$as_save_IFS
5394
5395   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5396   ;;
5397 esac
5398 fi
5399 PYTHON=$ac_cv_path_PYTHON
5400 if test -n "$PYTHON"; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5402 $as_echo "$PYTHON" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408
5409 # Extract the first word of "growisofs", so it can be a program name with args.
5410 set dummy growisofs; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_GROWISOFS+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   case $GROWISOFS in
5417   [\\/]* | ?:[\\/]*)
5418   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5419   ;;
5420   *)
5421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426     for ac_exec_ext in '' $ac_executable_extensions; do
5427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433   done
5434 IFS=$as_save_IFS
5435
5436   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5437   ;;
5438 esac
5439 fi
5440 GROWISOFS=$ac_cv_path_GROWISOFS
5441 if test -n "$GROWISOFS"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5443 $as_echo "$GROWISOFS" >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5451 set dummy dvd+rw-mediainfo; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   case $DVDRWMEDIAINFO in
5458   [\\/]* | ?:[\\/]*)
5459   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5460   ;;
5461   *)
5462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5478   ;;
5479 esac
5480 fi
5481 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5482 if test -n "$DVDRWMEDIAINFO"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5484 $as_echo "$DVDRWMEDIAINFO" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5492 set dummy dvd+rw-format; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   case $DVDRWFORMAT in
5499   [\\/]* | ?:[\\/]*)
5500   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5501   ;;
5502   *)
5503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517
5518   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5519   ;;
5520 esac
5521 fi
5522 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5523 if test -n "$DVDRWFORMAT"; then
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5525 $as_echo "$DVDRWFORMAT" >&6; }
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 # Extract the first word of "pkg-config", so it can be a program name with args.
5533 set dummy pkg-config; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_path_PKGCONFIG+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   case $PKGCONFIG in
5540   [\\/]* | ?:[\\/]*)
5541   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5542   ;;
5543   *)
5544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549     for ac_exec_ext in '' $ac_executable_extensions; do
5550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556   done
5557 IFS=$as_save_IFS
5558
5559   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5560   ;;
5561 esac
5562 fi
5563 PKGCONFIG=$ac_cv_path_PKGCONFIG
5564 if test -n "$PKGCONFIG"; then
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5566 $as_echo "$PKGCONFIG" >&6; }
5567 else
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572
5573 # Extract the first word of "qmake", so it can be a program name with args.
5574 set dummy qmake; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_QMAKE+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   case $QMAKE in
5581   [\\/]* | ?:[\\/]*)
5582   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5583   ;;
5584   *)
5585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5601   ;;
5602 esac
5603 fi
5604 QMAKE=$ac_cv_path_QMAKE
5605 if test -n "$QMAKE"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5607 $as_echo "$QMAKE" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614 # Extract the first word of "gmake", so it can be a program name with args.
5615 set dummy gmake; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_path_GMAKE+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   case $GMAKE in
5622   [\\/]* | ?:[\\/]*)
5623   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5624   ;;
5625   *)
5626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5642   ;;
5643 esac
5644 fi
5645 GMAKE=$ac_cv_path_GMAKE
5646 if test -n "$GMAKE"; then
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5648 $as_echo "$GMAKE" >&6; }
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 # Extract the first word of "cdrecord", so it can be a program name with args.
5656 set dummy cdrecord; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_path_CDRECORD+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662   case $CDRECORD in
5663   [\\/]* | ?:[\\/]*)
5664   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5665   ;;
5666   *)
5667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679   done
5680 IFS=$as_save_IFS
5681
5682   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5683   ;;
5684 esac
5685 fi
5686 CDRECORD=$ac_cv_path_CDRECORD
5687 if test -n "$CDRECORD"; then
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5689 $as_echo "$CDRECORD" >&6; }
5690 else
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695
5696 # Extract the first word of "pidof", so it can be a program name with args.
5697 set dummy pidof; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_path_PIDOF+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   case $PIDOF in
5704   [\\/]* | ?:[\\/]*)
5705   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5706   ;;
5707   *)
5708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720   done
5721 IFS=$as_save_IFS
5722
5723   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5724   ;;
5725 esac
5726 fi
5727 PIDOF=$ac_cv_path_PIDOF
5728 if test -n "$PIDOF"; then
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5730 $as_echo "$PIDOF" >&6; }
5731 else
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 for ac_prog in gawk mawk nawk awk
5738 do
5739   # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_AWK+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -n "$AWK"; then
5747   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756     ac_cv_prog_AWK="$ac_prog"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 AWK=$ac_cv_prog_AWK
5767 if test -n "$AWK"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5769 $as_echo "$AWK" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775
5776   test -n "$AWK" && break
5777 done
5778
5779 # Some AWK programs fail, so test it and warn the user
5780 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5781       { if ((prog == $2) || (("(" prog ")") == $2) ||
5782       (("" prog "") == $2) ||
5783       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5784 else
5785   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5786    The regex engine of $AWK is too broken to be used you
5787    might want to install GNU AWK.
5788    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5789 fi
5790 THE_AWK=$AWK
5791 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5792 set dummy $THE_AWK; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_AWK+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   case $AWK in
5799   [\\/]* | ?:[\\/]*)
5800   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5801   ;;
5802   *)
5803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817
5818   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5819   ;;
5820 esac
5821 fi
5822 AWK=$ac_cv_path_AWK
5823 if test -n "$AWK"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5825 $as_echo "$AWK" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832
5833
5834 test -n "$ARFLAG" || ARFLAGS="cr"
5835
5836
5837 MAKE_SHELL=/bin/sh
5838
5839
5840
5841
5842
5843
5844
5845 use_libtool=yes
5846 # Check whether --enable-libtool was given.
5847 if test "${enable_libtool+set}" = set; then :
5848   enableval=$enable_libtool;
5849        if test x$enableval = xno; then
5850           use_libtool=no
5851        fi
5852
5853
5854 fi
5855
5856 case `pwd` in
5857   *\ * | *\     *)
5858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5859 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5860 esac
5861
5862
5863
5864 macro_version='2.4'
5865 macro_revision='1.3293'
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 ltmain="$ac_aux_dir/ltmain.sh"
5880
5881 # Make sure we can run config.sub.
5882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5883   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5884
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5886 $as_echo_n "checking build system type... " >&6; }
5887 if ${ac_cv_build+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   ac_build_alias=$build_alias
5891 test "x$ac_build_alias" = x &&
5892   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5893 test "x$ac_build_alias" = x &&
5894   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5896   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5897
5898 fi
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5900 $as_echo "$ac_cv_build" >&6; }
5901 case $ac_cv_build in
5902 *-*-*) ;;
5903 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5904 esac
5905 build=$ac_cv_build
5906 ac_save_IFS=$IFS; IFS='-'
5907 set x $ac_cv_build
5908 shift
5909 build_cpu=$1
5910 build_vendor=$2
5911 shift; shift
5912 # Remember, the first character of IFS is used to create $*,
5913 # except with old shells:
5914 build_os=$*
5915 IFS=$ac_save_IFS
5916 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5917
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5920 $as_echo_n "checking host system type... " >&6; }
5921 if ${ac_cv_host+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   if test "x$host_alias" = x; then
5925   ac_cv_host=$ac_cv_build
5926 else
5927   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5928     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5929 fi
5930
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5933 $as_echo "$ac_cv_host" >&6; }
5934 case $ac_cv_host in
5935 *-*-*) ;;
5936 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5937 esac
5938 host=$ac_cv_host
5939 ac_save_IFS=$IFS; IFS='-'
5940 set x $ac_cv_host
5941 shift
5942 host_cpu=$1
5943 host_vendor=$2
5944 shift; shift
5945 # Remember, the first character of IFS is used to create $*,
5946 # except with old shells:
5947 host_os=$*
5948 IFS=$ac_save_IFS
5949 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5950
5951
5952 # Backslashify metacharacters that are still active within
5953 # double-quoted strings.
5954 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5955
5956 # Same as above, but do not quote variable references.
5957 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5958
5959 # Sed substitution to delay expansion of an escaped shell variable in a
5960 # double_quote_subst'ed string.
5961 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5962
5963 # Sed substitution to delay expansion of an escaped single quote.
5964 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5965
5966 # Sed substitution to avoid accidental globbing in evaled expressions
5967 no_glob_subst='s/\*/\\\*/g'
5968
5969 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5970 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5971 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5974 $as_echo_n "checking how to print strings... " >&6; }
5975 # Test print first, because it will be a builtin if present.
5976 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5977    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5978   ECHO='print -r --'
5979 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5980   ECHO='printf %s\n'
5981 else
5982   # Use this function as a fallback that always works.
5983   func_fallback_echo ()
5984   {
5985     eval 'cat <<_LTECHO_EOF
5986 $1
5987 _LTECHO_EOF'
5988   }
5989   ECHO='func_fallback_echo'
5990 fi
5991
5992 # func_echo_all arg...
5993 # Invoke $ECHO with all args, space-separated.
5994 func_echo_all ()
5995 {
5996     $ECHO ""
5997 }
5998
5999 case "$ECHO" in
6000   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6001 $as_echo "printf" >&6; } ;;
6002   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6003 $as_echo "print -r" >&6; } ;;
6004   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6005 $as_echo "cat" >&6; } ;;
6006 esac
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6022 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6023 if ${ac_cv_path_SED+:} false; then :
6024   $as_echo_n "(cached) " >&6
6025 else
6026             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6027      for ac_i in 1 2 3 4 5 6 7; do
6028        ac_script="$ac_script$as_nl$ac_script"
6029      done
6030      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6031      { ac_script=; unset ac_script;}
6032      if test -z "$SED"; then
6033   ac_path_SED_found=false
6034   # Loop through the user's path and test for each of PROGNAME-LIST
6035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040     for ac_prog in sed gsed; do
6041     for ac_exec_ext in '' $ac_executable_extensions; do
6042       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6043       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6044 # Check for GNU ac_path_SED and select it if it is found.
6045   # Check for GNU $ac_path_SED
6046 case `"$ac_path_SED" --version 2>&1` in
6047 *GNU*)
6048   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6049 *)
6050   ac_count=0
6051   $as_echo_n 0123456789 >"conftest.in"
6052   while :
6053   do
6054     cat "conftest.in" "conftest.in" >"conftest.tmp"
6055     mv "conftest.tmp" "conftest.in"
6056     cp "conftest.in" "conftest.nl"
6057     $as_echo '' >> "conftest.nl"
6058     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6059     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6060     as_fn_arith $ac_count + 1 && ac_count=$as_val
6061     if test $ac_count -gt ${ac_path_SED_max-0}; then
6062       # Best one so far, save it but keep looking for a better one
6063       ac_cv_path_SED="$ac_path_SED"
6064       ac_path_SED_max=$ac_count
6065     fi
6066     # 10*(2^10) chars as input seems more than enough
6067     test $ac_count -gt 10 && break
6068   done
6069   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6070 esac
6071
6072       $ac_path_SED_found && break 3
6073     done
6074   done
6075   done
6076 IFS=$as_save_IFS
6077   if test -z "$ac_cv_path_SED"; then
6078     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6079   fi
6080 else
6081   ac_cv_path_SED=$SED
6082 fi
6083
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6086 $as_echo "$ac_cv_path_SED" >&6; }
6087  SED="$ac_cv_path_SED"
6088   rm -f conftest.sed
6089
6090 test -z "$SED" && SED=sed
6091 Xsed="$SED -e 1s/^X//"
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6104 $as_echo_n "checking for fgrep... " >&6; }
6105 if ${ac_cv_path_FGREP+:} false; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6109    then ac_cv_path_FGREP="$GREP -F"
6110    else
6111      if test -z "$FGREP"; then
6112   ac_path_FGREP_found=false
6113   # Loop through the user's path and test for each of PROGNAME-LIST
6114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119     for ac_prog in fgrep; do
6120     for ac_exec_ext in '' $ac_executable_extensions; do
6121       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6122       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6123 # Check for GNU ac_path_FGREP and select it if it is found.
6124   # Check for GNU $ac_path_FGREP
6125 case `"$ac_path_FGREP" --version 2>&1` in
6126 *GNU*)
6127   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6128 *)
6129   ac_count=0
6130   $as_echo_n 0123456789 >"conftest.in"
6131   while :
6132   do
6133     cat "conftest.in" "conftest.in" >"conftest.tmp"
6134     mv "conftest.tmp" "conftest.in"
6135     cp "conftest.in" "conftest.nl"
6136     $as_echo 'FGREP' >> "conftest.nl"
6137     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6138     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6139     as_fn_arith $ac_count + 1 && ac_count=$as_val
6140     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6141       # Best one so far, save it but keep looking for a better one
6142       ac_cv_path_FGREP="$ac_path_FGREP"
6143       ac_path_FGREP_max=$ac_count
6144     fi
6145     # 10*(2^10) chars as input seems more than enough
6146     test $ac_count -gt 10 && break
6147   done
6148   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6149 esac
6150
6151       $ac_path_FGREP_found && break 3
6152     done
6153   done
6154   done
6155 IFS=$as_save_IFS
6156   if test -z "$ac_cv_path_FGREP"; then
6157     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6158   fi
6159 else
6160   ac_cv_path_FGREP=$FGREP
6161 fi
6162
6163    fi
6164 fi
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6166 $as_echo "$ac_cv_path_FGREP" >&6; }
6167  FGREP="$ac_cv_path_FGREP"
6168
6169
6170 test -z "$GREP" && GREP=grep
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 # Check whether --with-gnu-ld was given.
6191 if test "${with_gnu_ld+set}" = set; then :
6192   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6193 else
6194   with_gnu_ld=no
6195 fi
6196
6197 ac_prog=ld
6198 if test "$GCC" = yes; then
6199   # Check if gcc -print-prog-name=ld gives a path.
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6201 $as_echo_n "checking for ld used by $CC... " >&6; }
6202   case $host in
6203   *-*-mingw*)
6204     # gcc leaves a trailing carriage return which upsets mingw
6205     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6206   *)
6207     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6208   esac
6209   case $ac_prog in
6210     # Accept absolute paths.
6211     [\\/]* | ?:[\\/]*)
6212       re_direlt='/[^/][^/]*/\.\./'
6213       # Canonicalize the pathname of ld
6214       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6215       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6216         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6217       done
6218       test -z "$LD" && LD="$ac_prog"
6219       ;;
6220   "")
6221     # If it fails, then pretend we aren't using GCC.
6222     ac_prog=ld
6223     ;;
6224   *)
6225     # If it is relative, then search for the first ld in PATH.
6226     with_gnu_ld=unknown
6227     ;;
6228   esac
6229 elif test "$with_gnu_ld" = yes; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6231 $as_echo_n "checking for GNU ld... " >&6; }
6232 else
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6234 $as_echo_n "checking for non-GNU ld... " >&6; }
6235 fi
6236 if ${lt_cv_path_LD+:} false; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   if test -z "$LD"; then
6240   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6241   for ac_dir in $PATH; do
6242     IFS="$lt_save_ifs"
6243     test -z "$ac_dir" && ac_dir=.
6244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6245       lt_cv_path_LD="$ac_dir/$ac_prog"
6246       # Check to see if the program is GNU ld.  I'd rather use --version,
6247       # but apparently some variants of GNU ld only accept -v.
6248       # Break only if it was the GNU/non-GNU ld that we prefer.
6249       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6250       *GNU* | *'with BFD'*)
6251         test "$with_gnu_ld" != no && break
6252         ;;
6253       *)
6254         test "$with_gnu_ld" != yes && break
6255         ;;
6256       esac
6257     fi
6258   done
6259   IFS="$lt_save_ifs"
6260 else
6261   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6262 fi
6263 fi
6264
6265 LD="$lt_cv_path_LD"
6266 if test -n "$LD"; then
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6268 $as_echo "$LD" >&6; }
6269 else
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6275 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6276 if ${lt_cv_prog_gnu_ld+:} false; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6280 case `$LD -v 2>&1 </dev/null` in
6281 *GNU* | *'with BFD'*)
6282   lt_cv_prog_gnu_ld=yes
6283   ;;
6284 *)
6285   lt_cv_prog_gnu_ld=no
6286   ;;
6287 esac
6288 fi
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6290 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6291 with_gnu_ld=$lt_cv_prog_gnu_ld
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6302 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6303 if ${lt_cv_path_NM+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -n "$NM"; then
6307   # Let the user override the test.
6308   lt_cv_path_NM="$NM"
6309 else
6310   lt_nm_to_check="${ac_tool_prefix}nm"
6311   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6312     lt_nm_to_check="$lt_nm_to_check nm"
6313   fi
6314   for lt_tmp_nm in $lt_nm_to_check; do
6315     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6317       IFS="$lt_save_ifs"
6318       test -z "$ac_dir" && ac_dir=.
6319       tmp_nm="$ac_dir/$lt_tmp_nm"
6320       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6321         # Check to see if the nm accepts a BSD-compat flag.
6322         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6323         #   nm: unknown option "B" ignored
6324         # Tru64's nm complains that /dev/null is an invalid object file
6325         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6326         */dev/null* | *'Invalid file or object type'*)
6327           lt_cv_path_NM="$tmp_nm -B"
6328           break
6329           ;;
6330         *)
6331           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6332           */dev/null*)
6333             lt_cv_path_NM="$tmp_nm -p"
6334             break
6335             ;;
6336           *)
6337             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6338             continue # so that we can try to find one that supports BSD flags
6339             ;;
6340           esac
6341           ;;
6342         esac
6343       fi
6344     done
6345     IFS="$lt_save_ifs"
6346   done
6347   : ${lt_cv_path_NM=no}
6348 fi
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6351 $as_echo "$lt_cv_path_NM" >&6; }
6352 if test "$lt_cv_path_NM" != "no"; then
6353   NM="$lt_cv_path_NM"
6354 else
6355   # Didn't find any BSD compatible name lister, look for dumpbin.
6356   if test -n "$DUMPBIN"; then :
6357     # Let the user override the test.
6358   else
6359     if test -n "$ac_tool_prefix"; then
6360   for ac_prog in dumpbin "link -dump"
6361   do
6362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_DUMPBIN+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   if test -n "$DUMPBIN"; then
6370   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 DUMPBIN=$ac_cv_prog_DUMPBIN
6390 if test -n "$DUMPBIN"; then
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6392 $as_echo "$DUMPBIN" >&6; }
6393 else
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398
6399     test -n "$DUMPBIN" && break
6400   done
6401 fi
6402 if test -z "$DUMPBIN"; then
6403   ac_ct_DUMPBIN=$DUMPBIN
6404   for ac_prog in dumpbin "link -dump"
6405 do
6406   # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$ac_ct_DUMPBIN"; then
6414   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6434 if test -n "$ac_ct_DUMPBIN"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6436 $as_echo "$ac_ct_DUMPBIN" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443   test -n "$ac_ct_DUMPBIN" && break
6444 done
6445
6446   if test "x$ac_ct_DUMPBIN" = x; then
6447     DUMPBIN=":"
6448   else
6449     case $cross_compiling:$ac_tool_warned in
6450 yes:)
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455     DUMPBIN=$ac_ct_DUMPBIN
6456   fi
6457 fi
6458
6459     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6460     *COFF*)
6461       DUMPBIN="$DUMPBIN -symbols"
6462       ;;
6463     *)
6464       DUMPBIN=:
6465       ;;
6466     esac
6467   fi
6468
6469   if test "$DUMPBIN" != ":"; then
6470     NM="$DUMPBIN"
6471   fi
6472 fi
6473 test -z "$NM" && NM=nm
6474
6475
6476
6477
6478
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6481 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6482 if ${lt_cv_nm_interface+:} false; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   lt_cv_nm_interface="BSD nm"
6486   echo "int some_variable = 0;" > conftest.$ac_ext
6487   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6488   (eval "$ac_compile" 2>conftest.err)
6489   cat conftest.err >&5
6490   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6491   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6492   cat conftest.err >&5
6493   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6494   cat conftest.out >&5
6495   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6496     lt_cv_nm_interface="MS dumpbin"
6497   fi
6498   rm -f conftest*
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6501 $as_echo "$lt_cv_nm_interface" >&6; }
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6504 $as_echo_n "checking whether ln -s works... " >&6; }
6505 LN_S=$as_ln_s
6506 if test "$LN_S" = "ln -s"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6508 $as_echo "yes" >&6; }
6509 else
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6511 $as_echo "no, using $LN_S" >&6; }
6512 fi
6513
6514 # find the maximum length of command line arguments
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6516 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6517 if ${lt_cv_sys_max_cmd_len+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520     i=0
6521   teststring="ABCD"
6522
6523   case $build_os in
6524   msdosdjgpp*)
6525     # On DJGPP, this test can blow up pretty badly due to problems in libc
6526     # (any single argument exceeding 2000 bytes causes a buffer overrun
6527     # during glob expansion).  Even if it were fixed, the result of this
6528     # check would be larger than it should be.
6529     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6530     ;;
6531
6532   gnu*)
6533     # Under GNU Hurd, this test is not required because there is
6534     # no limit to the length of command line arguments.
6535     # Libtool will interpret -1 as no limit whatsoever
6536     lt_cv_sys_max_cmd_len=-1;
6537     ;;
6538
6539   cygwin* | mingw* | cegcc*)
6540     # On Win9x/ME, this test blows up -- it succeeds, but takes
6541     # about 5 minutes as the teststring grows exponentially.
6542     # Worse, since 9x/ME are not pre-emptively multitasking,
6543     # you end up with a "frozen" computer, even though with patience
6544     # the test eventually succeeds (with a max line length of 256k).
6545     # Instead, let's just punt: use the minimum linelength reported by
6546     # all of the supported platforms: 8192 (on NT/2K/XP).
6547     lt_cv_sys_max_cmd_len=8192;
6548     ;;
6549
6550   mint*)
6551     # On MiNT this can take a long time and run out of memory.
6552     lt_cv_sys_max_cmd_len=8192;
6553     ;;
6554
6555   amigaos*)
6556     # On AmigaOS with pdksh, this test takes hours, literally.
6557     # So we just punt and use a minimum line length of 8192.
6558     lt_cv_sys_max_cmd_len=8192;
6559     ;;
6560
6561   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6562     # This has been around since 386BSD, at least.  Likely further.
6563     if test -x /sbin/sysctl; then
6564       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6565     elif test -x /usr/sbin/sysctl; then
6566       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6567     else
6568       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6569     fi
6570     # And add a safety zone
6571     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6572     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6573     ;;
6574
6575   interix*)
6576     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6577     lt_cv_sys_max_cmd_len=196608
6578     ;;
6579
6580   osf*)
6581     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6582     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6583     # nice to cause kernel panics so lets avoid the loop below.
6584     # First set a reasonable default.
6585     lt_cv_sys_max_cmd_len=16384
6586     #
6587     if test -x /sbin/sysconfig; then
6588       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6589         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6590       esac
6591     fi
6592     ;;
6593   sco3.2v5*)
6594     lt_cv_sys_max_cmd_len=102400
6595     ;;
6596   sysv5* | sco5v6* | sysv4.2uw2*)
6597     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6598     if test -n "$kargmax"; then
6599       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6600     else
6601       lt_cv_sys_max_cmd_len=32768
6602     fi
6603     ;;
6604   *)
6605     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6606     if test -n "$lt_cv_sys_max_cmd_len"; then
6607       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6608       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6609     else
6610       # Make teststring a little bigger before we do anything with it.
6611       # a 1K string should be a reasonable start.
6612       for i in 1 2 3 4 5 6 7 8 ; do
6613         teststring=$teststring$teststring
6614       done
6615       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6616       # If test is not a shell built-in, we'll probably end up computing a
6617       # maximum length that is only half of the actual maximum length, but
6618       # we can't tell.
6619       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6620                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6621               test $i != 17 # 1/2 MB should be enough
6622       do
6623         i=`expr $i + 1`
6624         teststring=$teststring$teststring
6625       done
6626       # Only check the string length outside the loop.
6627       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6628       teststring=
6629       # Add a significant safety factor because C++ compilers can tack on
6630       # massive amounts of additional arguments before passing them to the
6631       # linker.  It appears as though 1/2 is a usable value.
6632       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6633     fi
6634     ;;
6635   esac
6636
6637 fi
6638
6639 if test -n $lt_cv_sys_max_cmd_len ; then
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6641 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6642 else
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6644 $as_echo "none" >&6; }
6645 fi
6646 max_cmd_len=$lt_cv_sys_max_cmd_len
6647
6648
6649
6650
6651
6652
6653 : ${CP="cp -f"}
6654 : ${MV="mv -f"}
6655 : ${RM="rm -f"}
6656
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6658 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6659 # Try some XSI features
6660 xsi_shell=no
6661 ( _lt_dummy="a/b/c"
6662   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6663       = c,a/b,b/c, \
6664     && eval 'test $(( 1 + 1 )) -eq 2 \
6665     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6666   && xsi_shell=yes
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6668 $as_echo "$xsi_shell" >&6; }
6669
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6672 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6673 lt_shell_append=no
6674 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6675     >/dev/null 2>&1 \
6676   && lt_shell_append=yes
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6678 $as_echo "$lt_shell_append" >&6; }
6679
6680
6681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6682   lt_unset=unset
6683 else
6684   lt_unset=false
6685 fi
6686
6687
6688
6689
6690
6691 # test EBCDIC or ASCII
6692 case `echo X|tr X '\101'` in
6693  A) # ASCII based system
6694     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6695   lt_SP2NL='tr \040 \012'
6696   lt_NL2SP='tr \015\012 \040\040'
6697   ;;
6698  *) # EBCDIC based system
6699   lt_SP2NL='tr \100 \n'
6700   lt_NL2SP='tr \r\n \100\100'
6701   ;;
6702 esac
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6713 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6714 if ${lt_cv_to_host_file_cmd+:} false; then :
6715   $as_echo_n "(cached) " >&6
6716 else
6717   case $host in
6718   *-*-mingw* )
6719     case $build in
6720       *-*-mingw* ) # actually msys
6721         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6722         ;;
6723       *-*-cygwin* )
6724         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6725         ;;
6726       * ) # otherwise, assume *nix
6727         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6728         ;;
6729     esac
6730     ;;
6731   *-*-cygwin* )
6732     case $build in
6733       *-*-mingw* ) # actually msys
6734         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6735         ;;
6736       *-*-cygwin* )
6737         lt_cv_to_host_file_cmd=func_convert_file_noop
6738         ;;
6739       * ) # otherwise, assume *nix
6740         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6741         ;;
6742     esac
6743     ;;
6744   * ) # unhandled hosts (and "normal" native builds)
6745     lt_cv_to_host_file_cmd=func_convert_file_noop
6746     ;;
6747 esac
6748
6749 fi
6750
6751 to_host_file_cmd=$lt_cv_to_host_file_cmd
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6753 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6754
6755
6756
6757
6758
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6760 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6761 if ${lt_cv_to_tool_file_cmd+:} false; then :
6762   $as_echo_n "(cached) " >&6
6763 else
6764   #assume ordinary cross tools, or native build.
6765 lt_cv_to_tool_file_cmd=func_convert_file_noop
6766 case $host in
6767   *-*-mingw* )
6768     case $build in
6769       *-*-mingw* ) # actually msys
6770         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6771         ;;
6772     esac
6773     ;;
6774 esac
6775
6776 fi
6777
6778 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6780 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6781
6782
6783
6784
6785
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6787 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6788 if ${lt_cv_ld_reload_flag+:} false; then :
6789   $as_echo_n "(cached) " >&6
6790 else
6791   lt_cv_ld_reload_flag='-r'
6792 fi
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6794 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6795 reload_flag=$lt_cv_ld_reload_flag
6796 case $reload_flag in
6797 "" | " "*) ;;
6798 *) reload_flag=" $reload_flag" ;;
6799 esac
6800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6801 case $host_os in
6802   cygwin* | mingw* | pw32* | cegcc*)
6803     if test "$GCC" != yes; then
6804       reload_cmds=false
6805     fi
6806     ;;
6807   darwin*)
6808     if test "$GCC" = yes; then
6809       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6810     else
6811       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6812     fi
6813     ;;
6814 esac
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 if test -n "$ac_tool_prefix"; then
6825   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_OBJDUMP+:} false; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   if test -n "$OBJDUMP"; then
6833   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840     for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847   done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 OBJDUMP=$ac_cv_prog_OBJDUMP
6853 if test -n "$OBJDUMP"; then
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6855 $as_echo "$OBJDUMP" >&6; }
6856 else
6857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_OBJDUMP"; then
6864   ac_ct_OBJDUMP=$OBJDUMP
6865   # Extract the first word of "objdump", so it can be a program name with args.
6866 set dummy objdump; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   if test -n "$ac_ct_OBJDUMP"; then
6873   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887   done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6893 if test -n "$ac_ct_OBJDUMP"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6895 $as_echo "$ac_ct_OBJDUMP" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901   if test "x$ac_ct_OBJDUMP" = x; then
6902     OBJDUMP="false"
6903   else
6904     case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910     OBJDUMP=$ac_ct_OBJDUMP
6911   fi
6912 else
6913   OBJDUMP="$ac_cv_prog_OBJDUMP"
6914 fi
6915
6916 test -z "$OBJDUMP" && OBJDUMP=objdump
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6927 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6928 if ${lt_cv_deplibs_check_method+:} false; then :
6929   $as_echo_n "(cached) " >&6
6930 else
6931   lt_cv_file_magic_cmd='$MAGIC_CMD'
6932 lt_cv_file_magic_test_file=
6933 lt_cv_deplibs_check_method='unknown'
6934 # Need to set the preceding variable on all platforms that support
6935 # interlibrary dependencies.
6936 # 'none' -- dependencies not supported.
6937 # `unknown' -- same as none, but documents that we really don't know.
6938 # 'pass_all' -- all dependencies passed with no checks.
6939 # 'test_compile' -- check by making test program.
6940 # 'file_magic [[regex]]' -- check by looking for files in library path
6941 # which responds to the $file_magic_cmd with a given extended regex.
6942 # If you have `file' or equivalent on your system and you're not sure
6943 # whether `pass_all' will *always* work, you probably want this one.
6944
6945 case $host_os in
6946 aix[4-9]*)
6947   lt_cv_deplibs_check_method=pass_all
6948   ;;
6949
6950 beos*)
6951   lt_cv_deplibs_check_method=pass_all
6952   ;;
6953
6954 bsdi[45]*)
6955   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6956   lt_cv_file_magic_cmd='/usr/bin/file -L'
6957   lt_cv_file_magic_test_file=/shlib/libc.so
6958   ;;
6959
6960 cygwin*)
6961   # func_win32_libid is a shell function defined in ltmain.sh
6962   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6963   lt_cv_file_magic_cmd='func_win32_libid'
6964   ;;
6965
6966 mingw* | pw32*)
6967   # Base MSYS/MinGW do not provide the 'file' command needed by
6968   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6969   # unless we find 'file', for example because we are cross-compiling.
6970   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6971   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6972     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6973     lt_cv_file_magic_cmd='func_win32_libid'
6974   else
6975     # Keep this pattern in sync with the one in func_win32_libid.
6976     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6977     lt_cv_file_magic_cmd='$OBJDUMP -f'
6978   fi
6979   ;;
6980
6981 cegcc*)
6982   # use the weaker test based on 'objdump'. See mingw*.
6983   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6984   lt_cv_file_magic_cmd='$OBJDUMP -f'
6985   ;;
6986
6987 darwin* | rhapsody*)
6988   lt_cv_deplibs_check_method=pass_all
6989   ;;
6990
6991 freebsd* | dragonfly*)
6992   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6993     case $host_cpu in
6994     i*86 )
6995       # Not sure whether the presence of OpenBSD here was a mistake.
6996       # Let's accept both of them until this is cleared up.
6997       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6998       lt_cv_file_magic_cmd=/usr/bin/file
6999       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7000       ;;
7001     esac
7002   else
7003     lt_cv_deplibs_check_method=pass_all
7004   fi
7005   ;;
7006
7007 gnu*)
7008   lt_cv_deplibs_check_method=pass_all
7009   ;;
7010
7011 haiku*)
7012   lt_cv_deplibs_check_method=pass_all
7013   ;;
7014
7015 hpux10.20* | hpux11*)
7016   lt_cv_file_magic_cmd=/usr/bin/file
7017   case $host_cpu in
7018   ia64*)
7019     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7020     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7021     ;;
7022   hppa*64*)
7023     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]'
7024     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7025     ;;
7026   *)
7027     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7028     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7029     ;;
7030   esac
7031   ;;
7032
7033 interix[3-9]*)
7034   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7035   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7036   ;;
7037
7038 irix5* | irix6* | nonstopux*)
7039   case $LD in
7040   *-32|*"-32 ") libmagic=32-bit;;
7041   *-n32|*"-n32 ") libmagic=N32;;
7042   *-64|*"-64 ") libmagic=64-bit;;
7043   *) libmagic=never-match;;
7044   esac
7045   lt_cv_deplibs_check_method=pass_all
7046   ;;
7047
7048 # This must be Linux ELF.
7049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7050   lt_cv_deplibs_check_method=pass_all
7051   ;;
7052
7053 netbsd*)
7054   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7055     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7056   else
7057     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7058   fi
7059   ;;
7060
7061 newos6*)
7062   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7063   lt_cv_file_magic_cmd=/usr/bin/file
7064   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7065   ;;
7066
7067 *nto* | *qnx*)
7068   lt_cv_deplibs_check_method=pass_all
7069   ;;
7070
7071 openbsd*)
7072   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7074   else
7075     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7076   fi
7077   ;;
7078
7079 osf3* | osf4* | osf5*)
7080   lt_cv_deplibs_check_method=pass_all
7081   ;;
7082
7083 rdos*)
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 solaris*)
7088   lt_cv_deplibs_check_method=pass_all
7089   ;;
7090
7091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7092   lt_cv_deplibs_check_method=pass_all
7093   ;;
7094
7095 sysv4 | sysv4.3*)
7096   case $host_vendor in
7097   motorola)
7098     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]'
7099     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7100     ;;
7101   ncr)
7102     lt_cv_deplibs_check_method=pass_all
7103     ;;
7104   sequent)
7105     lt_cv_file_magic_cmd='/bin/file'
7106     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7107     ;;
7108   sni)
7109     lt_cv_file_magic_cmd='/bin/file'
7110     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7111     lt_cv_file_magic_test_file=/lib/libc.so
7112     ;;
7113   siemens)
7114     lt_cv_deplibs_check_method=pass_all
7115     ;;
7116   pc)
7117     lt_cv_deplibs_check_method=pass_all
7118     ;;
7119   esac
7120   ;;
7121
7122 tpf*)
7123   lt_cv_deplibs_check_method=pass_all
7124   ;;
7125 esac
7126
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7129 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7130
7131 file_magic_glob=
7132 want_nocaseglob=no
7133 if test "$build" = "$host"; then
7134   case $host_os in
7135   mingw* | pw32*)
7136     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7137       want_nocaseglob=yes
7138     else
7139       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7140     fi
7141     ;;
7142   esac
7143 fi
7144
7145 file_magic_cmd=$lt_cv_file_magic_cmd
7146 deplibs_check_method=$lt_cv_deplibs_check_method
7147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170 if test -n "$ac_tool_prefix"; then
7171   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_DLLTOOL+:} false; then :
7176   $as_echo_n "(cached) " >&6
7177 else
7178   if test -n "$DLLTOOL"; then
7179   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186     for ac_exec_ext in '' $ac_executable_extensions; do
7187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7188     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193   done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 DLLTOOL=$ac_cv_prog_DLLTOOL
7199 if test -n "$DLLTOOL"; then
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7201 $as_echo "$DLLTOOL" >&6; }
7202 else
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207
7208 fi
7209 if test -z "$ac_cv_prog_DLLTOOL"; then
7210   ac_ct_DLLTOOL=$DLLTOOL
7211   # Extract the first word of "dlltool", so it can be a program name with args.
7212 set dummy dlltool; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7216   $as_echo_n "(cached) " >&6
7217 else
7218   if test -n "$ac_ct_DLLTOOL"; then
7219   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226     for ac_exec_ext in '' $ac_executable_extensions; do
7227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233   done
7234 IFS=$as_save_IFS
7235
7236 fi
7237 fi
7238 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7239 if test -n "$ac_ct_DLLTOOL"; then
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7241 $as_echo "$ac_ct_DLLTOOL" >&6; }
7242 else
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245 fi
7246
7247   if test "x$ac_ct_DLLTOOL" = x; then
7248     DLLTOOL="false"
7249   else
7250     case $cross_compiling:$ac_tool_warned in
7251 yes:)
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254 ac_tool_warned=yes ;;
7255 esac
7256     DLLTOOL=$ac_ct_DLLTOOL
7257   fi
7258 else
7259   DLLTOOL="$ac_cv_prog_DLLTOOL"
7260 fi
7261
7262 test -z "$DLLTOOL" && DLLTOOL=dlltool
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7274 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7275 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7276   $as_echo_n "(cached) " >&6
7277 else
7278   lt_cv_sharedlib_from_linklib_cmd='unknown'
7279
7280 case $host_os in
7281 cygwin* | mingw* | pw32* | cegcc*)
7282   # two different shell functions defined in ltmain.sh
7283   # decide which to use based on capabilities of $DLLTOOL
7284   case `$DLLTOOL --help 2>&1` in
7285   *--identify-strict*)
7286     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7287     ;;
7288   *)
7289     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7290     ;;
7291   esac
7292   ;;
7293 *)
7294   # fallback: assume linklib IS sharedlib
7295   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7296   ;;
7297 esac
7298
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7301 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7302 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7303 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7304
7305
7306
7307
7308
7309
7310
7311 if test -n "$ac_tool_prefix"; then
7312   for ac_prog in ar
7313   do
7314     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_AR+:} false; then :
7319   $as_echo_n "(cached) " >&6
7320 else
7321   if test -n "$AR"; then
7322   ac_cv_prog_AR="$AR" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329     for ac_exec_ext in '' $ac_executable_extensions; do
7330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7331     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336   done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 AR=$ac_cv_prog_AR
7342 if test -n "$AR"; then
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7344 $as_echo "$AR" >&6; }
7345 else
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350
7351     test -n "$AR" && break
7352   done
7353 fi
7354 if test -z "$AR"; then
7355   ac_ct_AR=$AR
7356   for ac_prog in ar
7357 do
7358   # Extract the first word of "$ac_prog", so it can be a program name with args.
7359 set dummy $ac_prog; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365   if test -n "$ac_ct_AR"; then
7366   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373     for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_prog_ac_ct_AR="$ac_prog"
7376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380   done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7386 if test -n "$ac_ct_AR"; then
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7388 $as_echo "$ac_ct_AR" >&6; }
7389 else
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394
7395   test -n "$ac_ct_AR" && break
7396 done
7397
7398   if test "x$ac_ct_AR" = x; then
7399     AR="false"
7400   else
7401     case $cross_compiling:$ac_tool_warned in
7402 yes:)
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7405 ac_tool_warned=yes ;;
7406 esac
7407     AR=$ac_ct_AR
7408   fi
7409 fi
7410
7411 : ${AR=ar}
7412 : ${AR_FLAGS=cru}
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7425 $as_echo_n "checking for archiver @FILE support... " >&6; }
7426 if ${lt_cv_ar_at_file+:} false; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   lt_cv_ar_at_file=no
7430    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h.  */
7432
7433 int
7434 main ()
7435 {
7436
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442   echo conftest.$ac_objext > conftest.lst
7443       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7444       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7445   (eval $lt_ar_try) 2>&5
7446   ac_status=$?
7447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448   test $ac_status = 0; }
7449       if test "$ac_status" -eq 0; then
7450         # Ensure the archiver fails upon bogus file names.
7451         rm -f conftest.$ac_objext libconftest.a
7452         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7453   (eval $lt_ar_try) 2>&5
7454   ac_status=$?
7455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7456   test $ac_status = 0; }
7457         if test "$ac_status" -ne 0; then
7458           lt_cv_ar_at_file=@
7459         fi
7460       fi
7461       rm -f conftest.* libconftest.a
7462
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465
7466 fi
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7468 $as_echo "$lt_cv_ar_at_file" >&6; }
7469
7470 if test "x$lt_cv_ar_at_file" = xno; then
7471   archiver_list_spec=
7472 else
7473   archiver_list_spec=$lt_cv_ar_at_file
7474 fi
7475
7476
7477
7478
7479
7480
7481
7482 if test -n "$ac_tool_prefix"; then
7483   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7484 set dummy ${ac_tool_prefix}strip; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_STRIP+:} false; then :
7488   $as_echo_n "(cached) " >&6
7489 else
7490   if test -n "$STRIP"; then
7491   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496   IFS=$as_save_IFS
7497   test -z "$as_dir" && as_dir=.
7498     for ac_exec_ext in '' $ac_executable_extensions; do
7499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502     break 2
7503   fi
7504 done
7505   done
7506 IFS=$as_save_IFS
7507
7508 fi
7509 fi
7510 STRIP=$ac_cv_prog_STRIP
7511 if test -n "$STRIP"; then
7512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7513 $as_echo "$STRIP" >&6; }
7514 else
7515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517 fi
7518
7519
7520 fi
7521 if test -z "$ac_cv_prog_STRIP"; then
7522   ac_ct_STRIP=$STRIP
7523   # Extract the first word of "strip", so it can be a program name with args.
7524 set dummy strip; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530   if test -n "$ac_ct_STRIP"; then
7531   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536   IFS=$as_save_IFS
7537   test -z "$as_dir" && as_dir=.
7538     for ac_exec_ext in '' $ac_executable_extensions; do
7539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7540     ac_cv_prog_ac_ct_STRIP="strip"
7541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542     break 2
7543   fi
7544 done
7545   done
7546 IFS=$as_save_IFS
7547
7548 fi
7549 fi
7550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7551 if test -n "$ac_ct_STRIP"; then
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7553 $as_echo "$ac_ct_STRIP" >&6; }
7554 else
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 fi
7558
7559   if test "x$ac_ct_STRIP" = x; then
7560     STRIP=":"
7561   else
7562     case $cross_compiling:$ac_tool_warned in
7563 yes:)
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566 ac_tool_warned=yes ;;
7567 esac
7568     STRIP=$ac_ct_STRIP
7569   fi
7570 else
7571   STRIP="$ac_cv_prog_STRIP"
7572 fi
7573
7574 test -z "$STRIP" && STRIP=:
7575
7576
7577
7578
7579
7580
7581 if test -n "$ac_tool_prefix"; then
7582   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_RANLIB+:} false; then :
7587   $as_echo_n "(cached) " >&6
7588 else
7589   if test -n "$RANLIB"; then
7590   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595   IFS=$as_save_IFS
7596   test -z "$as_dir" && as_dir=.
7597     for ac_exec_ext in '' $ac_executable_extensions; do
7598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601     break 2
7602   fi
7603 done
7604   done
7605 IFS=$as_save_IFS
7606
7607 fi
7608 fi
7609 RANLIB=$ac_cv_prog_RANLIB
7610 if test -n "$RANLIB"; then
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7612 $as_echo "$RANLIB" >&6; }
7613 else
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618
7619 fi
7620 if test -z "$ac_cv_prog_RANLIB"; then
7621   ac_ct_RANLIB=$RANLIB
7622   # Extract the first word of "ranlib", so it can be a program name with args.
7623 set dummy ranlib; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7627   $as_echo_n "(cached) " >&6
7628 else
7629   if test -n "$ac_ct_RANLIB"; then
7630   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637     for ac_exec_ext in '' $ac_executable_extensions; do
7638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639     ac_cv_prog_ac_ct_RANLIB="ranlib"
7640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644   done
7645 IFS=$as_save_IFS
7646
7647 fi
7648 fi
7649 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7650 if test -n "$ac_ct_RANLIB"; then
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7652 $as_echo "$ac_ct_RANLIB" >&6; }
7653 else
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7656 fi
7657
7658   if test "x$ac_ct_RANLIB" = x; then
7659     RANLIB=":"
7660   else
7661     case $cross_compiling:$ac_tool_warned in
7662 yes:)
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665 ac_tool_warned=yes ;;
7666 esac
7667     RANLIB=$ac_ct_RANLIB
7668   fi
7669 else
7670   RANLIB="$ac_cv_prog_RANLIB"
7671 fi
7672
7673 test -z "$RANLIB" && RANLIB=:
7674
7675
7676
7677
7678
7679
7680 # Determine commands to create old-style static archives.
7681 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7682 old_postinstall_cmds='chmod 644 $oldlib'
7683 old_postuninstall_cmds=
7684
7685 if test -n "$RANLIB"; then
7686   case $host_os in
7687   openbsd*)
7688     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7689     ;;
7690   *)
7691     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7692     ;;
7693   esac
7694   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7695 fi
7696
7697 case $host_os in
7698   darwin*)
7699     lock_old_archive_extraction=yes ;;
7700   *)
7701     lock_old_archive_extraction=no ;;
7702 esac
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742 # If no C compiler was specified, use CC.
7743 LTCC=${LTCC-"$CC"}
7744
7745 # If no C compiler flags were specified, use CFLAGS.
7746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7747
7748 # Allow CC to be a program name with arguments.
7749 compiler=$CC
7750
7751
7752 # Check for command to grab the raw symbol name followed by C symbol from nm.
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7754 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7755 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758
7759 # These are sane defaults that work on at least a few old systems.
7760 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7761
7762 # Character class describing NM global symbol codes.
7763 symcode='[BCDEGRST]'
7764
7765 # Regexp to match symbols that can be accessed directly from C.
7766 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7767
7768 # Define system-specific variables.
7769 case $host_os in
7770 aix*)
7771   symcode='[BCDT]'
7772   ;;
7773 cygwin* | mingw* | pw32* | cegcc*)
7774   symcode='[ABCDGISTW]'
7775   ;;
7776 hpux*)
7777   if test "$host_cpu" = ia64; then
7778     symcode='[ABCDEGRST]'
7779   fi
7780   ;;
7781 irix* | nonstopux*)
7782   symcode='[BCDEGRST]'
7783   ;;
7784 osf*)
7785   symcode='[BCDEGQRST]'
7786   ;;
7787 solaris*)
7788   symcode='[BDRT]'
7789   ;;
7790 sco3.2v5*)
7791   symcode='[DT]'
7792   ;;
7793 sysv4.2uw2*)
7794   symcode='[DT]'
7795   ;;
7796 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7797   symcode='[ABDT]'
7798   ;;
7799 sysv4)
7800   symcode='[DFNSTU]'
7801   ;;
7802 esac
7803
7804 # If we're using GNU nm, then use its standard symbol codes.
7805 case `$NM -V 2>&1` in
7806 *GNU* | *'with BFD'*)
7807   symcode='[ABCDGIRSTW]' ;;
7808 esac
7809
7810 # Transform an extracted symbol line into a proper C declaration.
7811 # Some systems (esp. on ia64) link data and code symbols differently,
7812 # so use this general approach.
7813 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7814
7815 # Transform an extracted symbol line into symbol name and symbol address
7816 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7817 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'"
7818
7819 # Handle CRLF in mingw tool chain
7820 opt_cr=
7821 case $build_os in
7822 mingw*)
7823   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7824   ;;
7825 esac
7826
7827 # Try without a prefix underscore, then with it.
7828 for ac_symprfx in "" "_"; do
7829
7830   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7831   symxfrm="\\1 $ac_symprfx\\2 \\2"
7832
7833   # Write the raw and C identifiers.
7834   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7835     # Fake it for dumpbin and say T for any non-static function
7836     # and D for any global variable.
7837     # Also find C++ and __fastcall symbols from MSVC++,
7838     # which start with @ or ?.
7839     lt_cv_sys_global_symbol_pipe="$AWK '"\
7840 "     {last_section=section; section=\$ 3};"\
7841 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7842 "     \$ 0!~/External *\|/{next};"\
7843 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7844 "     {if(hide[section]) next};"\
7845 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7846 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7847 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7848 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7849 "     ' prfx=^$ac_symprfx"
7850   else
7851     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7852   fi
7853   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7854
7855   # Check to see that the pipe works correctly.
7856   pipe_works=no
7857
7858   rm -f conftest*
7859   cat > conftest.$ac_ext <<_LT_EOF
7860 #ifdef __cplusplus
7861 extern "C" {
7862 #endif
7863 char nm_test_var;
7864 void nm_test_func(void);
7865 void nm_test_func(void){}
7866 #ifdef __cplusplus
7867 }
7868 #endif
7869 int main(){nm_test_var='a';nm_test_func();return(0);}
7870 _LT_EOF
7871
7872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7873   (eval $ac_compile) 2>&5
7874   ac_status=$?
7875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876   test $ac_status = 0; }; then
7877     # Now try to grab the symbols.
7878     nlist=conftest.nm
7879     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7880   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7881   ac_status=$?
7882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883   test $ac_status = 0; } && test -s "$nlist"; then
7884       # Try sorting and uniquifying the output.
7885       if sort "$nlist" | uniq > "$nlist"T; then
7886         mv -f "$nlist"T "$nlist"
7887       else
7888         rm -f "$nlist"T
7889       fi
7890
7891       # Make sure that we snagged all the symbols we need.
7892       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7893         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7894           cat <<_LT_EOF > conftest.$ac_ext
7895 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7896 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7897 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7898    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7899 # define LT_DLSYM_CONST
7900 #elif defined(__osf__)
7901 /* This system does not cope well with relocations in const data.  */
7902 # define LT_DLSYM_CONST
7903 #else
7904 # define LT_DLSYM_CONST const
7905 #endif
7906
7907 #ifdef __cplusplus
7908 extern "C" {
7909 #endif
7910
7911 _LT_EOF
7912           # Now generate the symbol file.
7913           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7914
7915           cat <<_LT_EOF >> conftest.$ac_ext
7916
7917 /* The mapping between symbol names and symbols.  */
7918 LT_DLSYM_CONST struct {
7919   const char *name;
7920   void       *address;
7921 }
7922 lt__PROGRAM__LTX_preloaded_symbols[] =
7923 {
7924   { "@PROGRAM@", (void *) 0 },
7925 _LT_EOF
7926           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7927           cat <<\_LT_EOF >> conftest.$ac_ext
7928   {0, (void *) 0}
7929 };
7930
7931 /* This works around a problem in FreeBSD linker */
7932 #ifdef FREEBSD_WORKAROUND
7933 static const void *lt_preloaded_setup() {
7934   return lt__PROGRAM__LTX_preloaded_symbols;
7935 }
7936 #endif
7937
7938 #ifdef __cplusplus
7939 }
7940 #endif
7941 _LT_EOF
7942           # Now try linking the two files.
7943           mv conftest.$ac_objext conftstm.$ac_objext
7944           lt_globsym_save_LIBS=$LIBS
7945           lt_globsym_save_CFLAGS=$CFLAGS
7946           LIBS="conftstm.$ac_objext"
7947           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7948           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7949   (eval $ac_link) 2>&5
7950   ac_status=$?
7951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7953             pipe_works=yes
7954           fi
7955           LIBS=$lt_globsym_save_LIBS
7956           CFLAGS=$lt_globsym_save_CFLAGS
7957         else
7958           echo "cannot find nm_test_func in $nlist" >&5
7959         fi
7960       else
7961         echo "cannot find nm_test_var in $nlist" >&5
7962       fi
7963     else
7964       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7965     fi
7966   else
7967     echo "$progname: failed program was:" >&5
7968     cat conftest.$ac_ext >&5
7969   fi
7970   rm -rf conftest* conftst*
7971
7972   # Do not use the global_symbol_pipe unless it works.
7973   if test "$pipe_works" = yes; then
7974     break
7975   else
7976     lt_cv_sys_global_symbol_pipe=
7977   fi
7978 done
7979
7980 fi
7981
7982 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7983   lt_cv_sys_global_symbol_to_cdecl=
7984 fi
7985 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7987 $as_echo "failed" >&6; }
7988 else
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7990 $as_echo "ok" >&6; }
7991 fi
7992
7993 # Response file support.
7994 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7995   nm_file_list_spec='@'
7996 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7997   nm_file_list_spec='@'
7998 fi
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8027 $as_echo_n "checking for sysroot... " >&6; }
8028
8029 # Check whether --with-sysroot was given.
8030 if test "${with_sysroot+set}" = set; then :
8031   withval=$with_sysroot;
8032 else
8033   with_sysroot=no
8034 fi
8035
8036
8037 lt_sysroot=
8038 case ${with_sysroot} in #(
8039  yes)
8040    if test "$GCC" = yes; then
8041      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8042    fi
8043    ;; #(
8044  /*)
8045    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8046    ;; #(
8047  no|'')
8048    ;; #(
8049  *)
8050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8051 $as_echo "${with_sysroot}" >&6; }
8052    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8053    ;;
8054 esac
8055
8056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8057 $as_echo "${lt_sysroot:-no}" >&6; }
8058
8059
8060
8061
8062
8063 # Check whether --enable-libtool-lock was given.
8064 if test "${enable_libtool_lock+set}" = set; then :
8065   enableval=$enable_libtool_lock;
8066 fi
8067
8068 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8069
8070 # Some flags need to be propagated to the compiler or linker for good
8071 # libtool support.
8072 case $host in
8073 ia64-*-hpux*)
8074   # Find out which ABI we are using.
8075   echo 'int i;' > conftest.$ac_ext
8076   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8077   (eval $ac_compile) 2>&5
8078   ac_status=$?
8079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8080   test $ac_status = 0; }; then
8081     case `/usr/bin/file conftest.$ac_objext` in
8082       *ELF-32*)
8083         HPUX_IA64_MODE="32"
8084         ;;
8085       *ELF-64*)
8086         HPUX_IA64_MODE="64"
8087         ;;
8088     esac
8089   fi
8090   rm -rf conftest*
8091   ;;
8092 *-*-irix6*)
8093   # Find out which ABI we are using.
8094   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8095   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8096   (eval $ac_compile) 2>&5
8097   ac_status=$?
8098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8099   test $ac_status = 0; }; then
8100     if test "$lt_cv_prog_gnu_ld" = yes; then
8101       case `/usr/bin/file conftest.$ac_objext` in
8102         *32-bit*)
8103           LD="${LD-ld} -melf32bsmip"
8104           ;;
8105         *N32*)
8106           LD="${LD-ld} -melf32bmipn32"
8107           ;;
8108         *64-bit*)
8109           LD="${LD-ld} -melf64bmip"
8110         ;;
8111       esac
8112     else
8113       case `/usr/bin/file conftest.$ac_objext` in
8114         *32-bit*)
8115           LD="${LD-ld} -32"
8116           ;;
8117         *N32*)
8118           LD="${LD-ld} -n32"
8119           ;;
8120         *64-bit*)
8121           LD="${LD-ld} -64"
8122           ;;
8123       esac
8124     fi
8125   fi
8126   rm -rf conftest*
8127   ;;
8128
8129 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8130 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8131   # Find out which ABI we are using.
8132   echo 'int i;' > conftest.$ac_ext
8133   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8134   (eval $ac_compile) 2>&5
8135   ac_status=$?
8136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8137   test $ac_status = 0; }; then
8138     case `/usr/bin/file conftest.o` in
8139       *32-bit*)
8140         case $host in
8141           x86_64-*kfreebsd*-gnu)
8142             LD="${LD-ld} -m elf_i386_fbsd"
8143             ;;
8144           x86_64-*linux*)
8145             LD="${LD-ld} -m elf_i386"
8146             ;;
8147           ppc64-*linux*|powerpc64-*linux*)
8148             LD="${LD-ld} -m elf32ppclinux"
8149             ;;
8150           s390x-*linux*)
8151             LD="${LD-ld} -m elf_s390"
8152             ;;
8153           sparc64-*linux*)
8154             LD="${LD-ld} -m elf32_sparc"
8155             ;;
8156         esac
8157         ;;
8158       *64-bit*)
8159         case $host in
8160           x86_64-*kfreebsd*-gnu)
8161             LD="${LD-ld} -m elf_x86_64_fbsd"
8162             ;;
8163           x86_64-*linux*)
8164             LD="${LD-ld} -m elf_x86_64"
8165             ;;
8166           ppc*-*linux*|powerpc*-*linux*)
8167             LD="${LD-ld} -m elf64ppc"
8168             ;;
8169           s390*-*linux*|s390*-*tpf*)
8170             LD="${LD-ld} -m elf64_s390"
8171             ;;
8172           sparc*-*linux*)
8173             LD="${LD-ld} -m elf64_sparc"
8174             ;;
8175         esac
8176         ;;
8177     esac
8178   fi
8179   rm -rf conftest*
8180   ;;
8181
8182 *-*-sco3.2v5*)
8183   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8184   SAVE_CFLAGS="$CFLAGS"
8185   CFLAGS="$CFLAGS -belf"
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8187 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8188 if ${lt_cv_cc_needs_belf+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   ac_ext=c
8192 ac_cpp='$CPP $CPPFLAGS'
8193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8196
8197      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h.  */
8199
8200 int
8201 main ()
8202 {
8203
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"; then :
8209   lt_cv_cc_needs_belf=yes
8210 else
8211   lt_cv_cc_needs_belf=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext \
8214     conftest$ac_exeext conftest.$ac_ext
8215      ac_ext=c
8216 ac_cpp='$CPP $CPPFLAGS'
8217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8223 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8224   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8225     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8226     CFLAGS="$SAVE_CFLAGS"
8227   fi
8228   ;;
8229 sparc*-*solaris*)
8230   # Find out which ABI we are using.
8231   echo 'int i;' > conftest.$ac_ext
8232   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8233   (eval $ac_compile) 2>&5
8234   ac_status=$?
8235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8236   test $ac_status = 0; }; then
8237     case `/usr/bin/file conftest.o` in
8238     *64-bit*)
8239       case $lt_cv_prog_gnu_ld in
8240       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8241       *)
8242         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8243           LD="${LD-ld} -64"
8244         fi
8245         ;;
8246       esac
8247       ;;
8248     esac
8249   fi
8250   rm -rf conftest*
8251   ;;
8252 esac
8253
8254 need_locks="$enable_libtool_lock"
8255
8256 if test -n "$ac_tool_prefix"; then
8257   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8258 set dummy ${ac_tool_prefix}mt; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   if test -n "$MANIFEST_TOOL"; then
8265   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270   IFS=$as_save_IFS
8271   test -z "$as_dir" && as_dir=.
8272     for ac_exec_ext in '' $ac_executable_extensions; do
8273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276     break 2
8277   fi
8278 done
8279   done
8280 IFS=$as_save_IFS
8281
8282 fi
8283 fi
8284 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8285 if test -n "$MANIFEST_TOOL"; then
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8287 $as_echo "$MANIFEST_TOOL" >&6; }
8288 else
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293
8294 fi
8295 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8296   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8297   # Extract the first word of "mt", so it can be a program name with args.
8298 set dummy mt; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   if test -n "$ac_ct_MANIFEST_TOOL"; then
8305   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310   IFS=$as_save_IFS
8311   test -z "$as_dir" && as_dir=.
8312     for ac_exec_ext in '' $ac_executable_extensions; do
8313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316     break 2
8317   fi
8318 done
8319   done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8325 if test -n "$ac_ct_MANIFEST_TOOL"; then
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8327 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8328 else
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8331 fi
8332
8333   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8334     MANIFEST_TOOL=":"
8335   else
8336     case $cross_compiling:$ac_tool_warned in
8337 yes:)
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8341 esac
8342     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8343   fi
8344 else
8345   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8346 fi
8347
8348 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8350 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8351 if ${lt_cv_path_mainfest_tool+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   lt_cv_path_mainfest_tool=no
8355   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8356   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8357   cat conftest.err >&5
8358   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8359     lt_cv_path_mainfest_tool=yes
8360   fi
8361   rm -f conftest*
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8364 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8365 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8366   MANIFEST_TOOL=:
8367 fi
8368
8369
8370
8371
8372
8373
8374   case $host_os in
8375     rhapsody* | darwin*)
8376     if test -n "$ac_tool_prefix"; then
8377   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8378 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   if test -n "$DSYMUTIL"; then
8385   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390   IFS=$as_save_IFS
8391   test -z "$as_dir" && as_dir=.
8392     for ac_exec_ext in '' $ac_executable_extensions; do
8393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396     break 2
8397   fi
8398 done
8399   done
8400 IFS=$as_save_IFS
8401
8402 fi
8403 fi
8404 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8405 if test -n "$DSYMUTIL"; then
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8407 $as_echo "$DSYMUTIL" >&6; }
8408 else
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412
8413
8414 fi
8415 if test -z "$ac_cv_prog_DSYMUTIL"; then
8416   ac_ct_DSYMUTIL=$DSYMUTIL
8417   # Extract the first word of "dsymutil", so it can be a program name with args.
8418 set dummy dsymutil; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8422   $as_echo_n "(cached) " >&6
8423 else
8424   if test -n "$ac_ct_DSYMUTIL"; then
8425   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8426 else
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8429 do
8430   IFS=$as_save_IFS
8431   test -z "$as_dir" && as_dir=.
8432     for ac_exec_ext in '' $ac_executable_extensions; do
8433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436     break 2
8437   fi
8438 done
8439   done
8440 IFS=$as_save_IFS
8441
8442 fi
8443 fi
8444 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8445 if test -n "$ac_ct_DSYMUTIL"; then
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8447 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8448 else
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8451 fi
8452
8453   if test "x$ac_ct_DSYMUTIL" = x; then
8454     DSYMUTIL=":"
8455   else
8456     case $cross_compiling:$ac_tool_warned in
8457 yes:)
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460 ac_tool_warned=yes ;;
8461 esac
8462     DSYMUTIL=$ac_ct_DSYMUTIL
8463   fi
8464 else
8465   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8466 fi
8467
8468     if test -n "$ac_tool_prefix"; then
8469   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8470 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_NMEDIT+:} false; then :
8474   $as_echo_n "(cached) " >&6
8475 else
8476   if test -n "$NMEDIT"; then
8477   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482   IFS=$as_save_IFS
8483   test -z "$as_dir" && as_dir=.
8484     for ac_exec_ext in '' $ac_executable_extensions; do
8485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488     break 2
8489   fi
8490 done
8491   done
8492 IFS=$as_save_IFS
8493
8494 fi
8495 fi
8496 NMEDIT=$ac_cv_prog_NMEDIT
8497 if test -n "$NMEDIT"; then
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8499 $as_echo "$NMEDIT" >&6; }
8500 else
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8503 fi
8504
8505
8506 fi
8507 if test -z "$ac_cv_prog_NMEDIT"; then
8508   ac_ct_NMEDIT=$NMEDIT
8509   # Extract the first word of "nmedit", so it can be a program name with args.
8510 set dummy nmedit; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8514   $as_echo_n "(cached) " >&6
8515 else
8516   if test -n "$ac_ct_NMEDIT"; then
8517   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8518 else
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522   IFS=$as_save_IFS
8523   test -z "$as_dir" && as_dir=.
8524     for ac_exec_ext in '' $ac_executable_extensions; do
8525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528     break 2
8529   fi
8530 done
8531   done
8532 IFS=$as_save_IFS
8533
8534 fi
8535 fi
8536 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8537 if test -n "$ac_ct_NMEDIT"; then
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8539 $as_echo "$ac_ct_NMEDIT" >&6; }
8540 else
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8543 fi
8544
8545   if test "x$ac_ct_NMEDIT" = x; then
8546     NMEDIT=":"
8547   else
8548     case $cross_compiling:$ac_tool_warned in
8549 yes:)
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8553 esac
8554     NMEDIT=$ac_ct_NMEDIT
8555   fi
8556 else
8557   NMEDIT="$ac_cv_prog_NMEDIT"
8558 fi
8559
8560     if test -n "$ac_tool_prefix"; then
8561   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_LIPO+:} false; then :
8566   $as_echo_n "(cached) " >&6
8567 else
8568   if test -n "$LIPO"; then
8569   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574   IFS=$as_save_IFS
8575   test -z "$as_dir" && as_dir=.
8576     for ac_exec_ext in '' $ac_executable_extensions; do
8577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580     break 2
8581   fi
8582 done
8583   done
8584 IFS=$as_save_IFS
8585
8586 fi
8587 fi
8588 LIPO=$ac_cv_prog_LIPO
8589 if test -n "$LIPO"; then
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8591 $as_echo "$LIPO" >&6; }
8592 else
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8596
8597
8598 fi
8599 if test -z "$ac_cv_prog_LIPO"; then
8600   ac_ct_LIPO=$LIPO
8601   # Extract the first word of "lipo", so it can be a program name with args.
8602 set dummy lipo; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   if test -n "$ac_ct_LIPO"; then
8609   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614   IFS=$as_save_IFS
8615   test -z "$as_dir" && as_dir=.
8616     for ac_exec_ext in '' $ac_executable_extensions; do
8617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618     ac_cv_prog_ac_ct_LIPO="lipo"
8619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620     break 2
8621   fi
8622 done
8623   done
8624 IFS=$as_save_IFS
8625
8626 fi
8627 fi
8628 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8629 if test -n "$ac_ct_LIPO"; then
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8631 $as_echo "$ac_ct_LIPO" >&6; }
8632 else
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637   if test "x$ac_ct_LIPO" = x; then
8638     LIPO=":"
8639   else
8640     case $cross_compiling:$ac_tool_warned in
8641 yes:)
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8645 esac
8646     LIPO=$ac_ct_LIPO
8647   fi
8648 else
8649   LIPO="$ac_cv_prog_LIPO"
8650 fi
8651
8652     if test -n "$ac_tool_prefix"; then
8653   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8654 set dummy ${ac_tool_prefix}otool; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_prog_OTOOL+:} false; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   if test -n "$OTOOL"; then
8661   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666   IFS=$as_save_IFS
8667   test -z "$as_dir" && as_dir=.
8668     for ac_exec_ext in '' $ac_executable_extensions; do
8669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672     break 2
8673   fi
8674 done
8675   done
8676 IFS=$as_save_IFS
8677
8678 fi
8679 fi
8680 OTOOL=$ac_cv_prog_OTOOL
8681 if test -n "$OTOOL"; then
8682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8683 $as_echo "$OTOOL" >&6; }
8684 else
8685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688
8689
8690 fi
8691 if test -z "$ac_cv_prog_OTOOL"; then
8692   ac_ct_OTOOL=$OTOOL
8693   # Extract the first word of "otool", so it can be a program name with args.
8694 set dummy otool; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8698   $as_echo_n "(cached) " >&6
8699 else
8700   if test -n "$ac_ct_OTOOL"; then
8701   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706   IFS=$as_save_IFS
8707   test -z "$as_dir" && as_dir=.
8708     for ac_exec_ext in '' $ac_executable_extensions; do
8709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710     ac_cv_prog_ac_ct_OTOOL="otool"
8711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712     break 2
8713   fi
8714 done
8715   done
8716 IFS=$as_save_IFS
8717
8718 fi
8719 fi
8720 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8721 if test -n "$ac_ct_OTOOL"; then
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8723 $as_echo "$ac_ct_OTOOL" >&6; }
8724 else
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728
8729   if test "x$ac_ct_OTOOL" = x; then
8730     OTOOL=":"
8731   else
8732     case $cross_compiling:$ac_tool_warned in
8733 yes:)
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8736 ac_tool_warned=yes ;;
8737 esac
8738     OTOOL=$ac_ct_OTOOL
8739   fi
8740 else
8741   OTOOL="$ac_cv_prog_OTOOL"
8742 fi
8743
8744     if test -n "$ac_tool_prefix"; then
8745   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8746 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8748 $as_echo_n "checking for $ac_word... " >&6; }
8749 if ${ac_cv_prog_OTOOL64+:} false; then :
8750   $as_echo_n "(cached) " >&6
8751 else
8752   if test -n "$OTOOL64"; then
8753   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8754 else
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756 for as_dir in $PATH
8757 do
8758   IFS=$as_save_IFS
8759   test -z "$as_dir" && as_dir=.
8760     for ac_exec_ext in '' $ac_executable_extensions; do
8761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8762     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8764     break 2
8765   fi
8766 done
8767   done
8768 IFS=$as_save_IFS
8769
8770 fi
8771 fi
8772 OTOOL64=$ac_cv_prog_OTOOL64
8773 if test -n "$OTOOL64"; then
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8775 $as_echo "$OTOOL64" >&6; }
8776 else
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8779 fi
8780
8781
8782 fi
8783 if test -z "$ac_cv_prog_OTOOL64"; then
8784   ac_ct_OTOOL64=$OTOOL64
8785   # Extract the first word of "otool64", so it can be a program name with args.
8786 set dummy otool64; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8790   $as_echo_n "(cached) " >&6
8791 else
8792   if test -n "$ac_ct_OTOOL64"; then
8793   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8794 else
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8797 do
8798   IFS=$as_save_IFS
8799   test -z "$as_dir" && as_dir=.
8800     for ac_exec_ext in '' $ac_executable_extensions; do
8801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802     ac_cv_prog_ac_ct_OTOOL64="otool64"
8803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804     break 2
8805   fi
8806 done
8807   done
8808 IFS=$as_save_IFS
8809
8810 fi
8811 fi
8812 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8813 if test -n "$ac_ct_OTOOL64"; then
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8815 $as_echo "$ac_ct_OTOOL64" >&6; }
8816 else
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8819 fi
8820
8821   if test "x$ac_ct_OTOOL64" = x; then
8822     OTOOL64=":"
8823   else
8824     case $cross_compiling:$ac_tool_warned in
8825 yes:)
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8828 ac_tool_warned=yes ;;
8829 esac
8830     OTOOL64=$ac_ct_OTOOL64
8831   fi
8832 else
8833   OTOOL64="$ac_cv_prog_OTOOL64"
8834 fi
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8863 $as_echo_n "checking for -single_module linker flag... " >&6; }
8864 if ${lt_cv_apple_cc_single_mod+:} false; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   lt_cv_apple_cc_single_mod=no
8868       if test -z "${LT_MULTI_MODULE}"; then
8869         # By default we will add the -single_module flag. You can override
8870         # by either setting the environment variable LT_MULTI_MODULE
8871         # non-empty at configure time, or by adding -multi_module to the
8872         # link flags.
8873         rm -rf libconftest.dylib*
8874         echo "int foo(void){return 1;}" > conftest.c
8875         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8876 -dynamiclib -Wl,-single_module conftest.c" >&5
8877         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8878           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8879         _lt_result=$?
8880         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8881           lt_cv_apple_cc_single_mod=yes
8882         else
8883           cat conftest.err >&5
8884         fi
8885         rm -rf libconftest.dylib*
8886         rm -f conftest.*
8887       fi
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8890 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8892 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8893 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8894   $as_echo_n "(cached) " >&6
8895 else
8896   lt_cv_ld_exported_symbols_list=no
8897       save_LDFLAGS=$LDFLAGS
8898       echo "_main" > conftest.sym
8899       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8900       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h.  */
8902
8903 int
8904 main ()
8905 {
8906
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912   lt_cv_ld_exported_symbols_list=yes
8913 else
8914   lt_cv_ld_exported_symbols_list=no
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext \
8917     conftest$ac_exeext conftest.$ac_ext
8918         LDFLAGS="$save_LDFLAGS"
8919
8920 fi
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8922 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8924 $as_echo_n "checking for -force_load linker flag... " >&6; }
8925 if ${lt_cv_ld_force_load+:} false; then :
8926   $as_echo_n "(cached) " >&6
8927 else
8928   lt_cv_ld_force_load=no
8929       cat > conftest.c << _LT_EOF
8930 int forced_loaded() { return 2;}
8931 _LT_EOF
8932       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8933       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8934       echo "$AR cru libconftest.a conftest.o" >&5
8935       $AR cru libconftest.a conftest.o 2>&5
8936       echo "$RANLIB libconftest.a" >&5
8937       $RANLIB libconftest.a 2>&5
8938       cat > conftest.c << _LT_EOF
8939 int main() { return 0;}
8940 _LT_EOF
8941       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8942       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8943       _lt_result=$?
8944       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8945         lt_cv_ld_force_load=yes
8946       else
8947         cat conftest.err >&5
8948       fi
8949         rm -f conftest.err libconftest.a conftest conftest.c
8950         rm -rf conftest.dSYM
8951
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8954 $as_echo "$lt_cv_ld_force_load" >&6; }
8955     case $host_os in
8956     rhapsody* | darwin1.[012])
8957       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8958     darwin1.*)
8959       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8960     darwin*) # darwin 5.x on
8961       # if running on 10.5 or later, the deployment target defaults
8962       # to the OS version, if on x86, and 10.4, the deployment
8963       # target defaults to 10.4. Don't you love it?
8964       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8965         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8966           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8967         10.[012]*)
8968           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8969         10.*)
8970           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8971       esac
8972     ;;
8973   esac
8974     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8975       _lt_dar_single_mod='$single_module'
8976     fi
8977     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8978       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8979     else
8980       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8981     fi
8982     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8983       _lt_dsymutil='~$DSYMUTIL $lib || :'
8984     else
8985       _lt_dsymutil=
8986     fi
8987     ;;
8988   esac
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8991 $as_echo_n "checking for ANSI C header files... " >&6; }
8992 if ${ac_cv_header_stdc+:} false; then :
8993   $as_echo_n "(cached) " >&6
8994 else
8995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h.  */
8997 #include <stdlib.h>
8998 #include <stdarg.h>
8999 #include <string.h>
9000 #include <float.h>
9001
9002 int
9003 main ()
9004 {
9005
9006   ;
9007   return 0;
9008 }
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011   ac_cv_header_stdc=yes
9012 else
9013   ac_cv_header_stdc=no
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016
9017 if test $ac_cv_header_stdc = yes; then
9018   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h.  */
9021 #include <string.h>
9022
9023 _ACEOF
9024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9025   $EGREP "memchr" >/dev/null 2>&1; then :
9026
9027 else
9028   ac_cv_header_stdc=no
9029 fi
9030 rm -f conftest*
9031
9032 fi
9033
9034 if test $ac_cv_header_stdc = yes; then
9035   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h.  */
9038 #include <stdlib.h>
9039
9040 _ACEOF
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042   $EGREP "free" >/dev/null 2>&1; then :
9043
9044 else
9045   ac_cv_header_stdc=no
9046 fi
9047 rm -f conftest*
9048
9049 fi
9050
9051 if test $ac_cv_header_stdc = yes; then
9052   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9053   if test "$cross_compiling" = yes; then :
9054   :
9055 else
9056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h.  */
9058 #include <ctype.h>
9059 #include <stdlib.h>
9060 #if ((' ' & 0x0FF) == 0x020)
9061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9063 #else
9064 # define ISLOWER(c) \
9065                    (('a' <= (c) && (c) <= 'i') \
9066                      || ('j' <= (c) && (c) <= 'r') \
9067                      || ('s' <= (c) && (c) <= 'z'))
9068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9069 #endif
9070
9071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9072 int
9073 main ()
9074 {
9075   int i;
9076   for (i = 0; i < 256; i++)
9077     if (XOR (islower (i), ISLOWER (i))
9078         || toupper (i) != TOUPPER (i))
9079       return 2;
9080   return 0;
9081 }
9082 _ACEOF
9083 if ac_fn_c_try_run "$LINENO"; then :
9084
9085 else
9086   ac_cv_header_stdc=no
9087 fi
9088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9089   conftest.$ac_objext conftest.beam conftest.$ac_ext
9090 fi
9091
9092 fi
9093 fi
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9095 $as_echo "$ac_cv_header_stdc" >&6; }
9096 if test $ac_cv_header_stdc = yes; then
9097
9098 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9099
9100 fi
9101
9102 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9103 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9104                   inttypes.h stdint.h unistd.h
9105 do :
9106   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9107 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9108 "
9109 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9110   cat >>confdefs.h <<_ACEOF
9111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9112 _ACEOF
9113
9114 fi
9115
9116 done
9117
9118
9119 for ac_header in dlfcn.h
9120 do :
9121   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9122 "
9123 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9124   cat >>confdefs.h <<_ACEOF
9125 #define HAVE_DLFCN_H 1
9126 _ACEOF
9127
9128 fi
9129
9130 done
9131
9132
9133
9134
9135 func_stripname_cnf ()
9136 {
9137   case ${2} in
9138   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9139   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9140   esac
9141 } # func_stripname_cnf
9142
9143
9144
9145
9146
9147 # Set options
9148 # Check whether --enable-shared was given.
9149 if test "${enable_shared+set}" = set; then :
9150   enableval=$enable_shared; p=${PACKAGE-default}
9151     case $enableval in
9152     yes) enable_shared=yes ;;
9153     no) enable_shared=no ;;
9154     *)
9155       enable_shared=no
9156       # Look at the argument we got.  We use all the common list separators.
9157       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9158       for pkg in $enableval; do
9159         IFS="$lt_save_ifs"
9160         if test "X$pkg" = "X$p"; then
9161           enable_shared=yes
9162         fi
9163       done
9164       IFS="$lt_save_ifs"
9165       ;;
9166     esac
9167 else
9168   enable_shared=yes
9169 fi
9170
9171
9172
9173
9174
9175
9176
9177 # Check whether --enable-static was given.
9178 if test "${enable_static+set}" = set; then :
9179   enableval=$enable_static; p=${PACKAGE-default}
9180     case $enableval in
9181     yes) enable_static=yes ;;
9182     no) enable_static=no ;;
9183     *)
9184      enable_static=no
9185       # Look at the argument we got.  We use all the common list separators.
9186       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9187       for pkg in $enableval; do
9188         IFS="$lt_save_ifs"
9189         if test "X$pkg" = "X$p"; then
9190           enable_static=yes
9191         fi
9192       done
9193       IFS="$lt_save_ifs"
9194       ;;
9195     esac
9196 else
9197   enable_static=no
9198 fi
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209         enable_dlopen=no
9210
9211
9212   enable_win32_dll=no
9213
9214
9215
9216
9217
9218 # Check whether --with-pic was given.
9219 if test "${with_pic+set}" = set; then :
9220   withval=$with_pic; pic_mode="$withval"
9221 else
9222   pic_mode=default
9223 fi
9224
9225
9226 test -z "$pic_mode" && pic_mode=default
9227
9228
9229
9230
9231
9232
9233
9234   # Check whether --enable-fast-install was given.
9235 if test "${enable_fast_install+set}" = set; then :
9236   enableval=$enable_fast_install; p=${PACKAGE-default}
9237     case $enableval in
9238     yes) enable_fast_install=yes ;;
9239     no) enable_fast_install=no ;;
9240     *)
9241       enable_fast_install=no
9242       # Look at the argument we got.  We use all the common list separators.
9243       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9244       for pkg in $enableval; do
9245         IFS="$lt_save_ifs"
9246         if test "X$pkg" = "X$p"; then
9247           enable_fast_install=yes
9248         fi
9249       done
9250       IFS="$lt_save_ifs"
9251       ;;
9252     esac
9253 else
9254   enable_fast_install=yes
9255 fi
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267 # This can be used to rebuild libtool when needed
9268 LIBTOOL_DEPS="$ltmain"
9269
9270 # Always use our own libtool.
9271 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298 test -z "$LN_S" && LN_S="ln -s"
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313 if test -n "${ZSH_VERSION+set}" ; then
9314    setopt NO_GLOB_SUBST
9315 fi
9316
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9318 $as_echo_n "checking for objdir... " >&6; }
9319 if ${lt_cv_objdir+:} false; then :
9320   $as_echo_n "(cached) " >&6
9321 else
9322   rm -f .libs 2>/dev/null
9323 mkdir .libs 2>/dev/null
9324 if test -d .libs; then
9325   lt_cv_objdir=.libs
9326 else
9327   # MS-DOS does not allow filenames that begin with a dot.
9328   lt_cv_objdir=_libs
9329 fi
9330 rmdir .libs 2>/dev/null
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9333 $as_echo "$lt_cv_objdir" >&6; }
9334 objdir=$lt_cv_objdir
9335
9336
9337
9338
9339
9340 cat >>confdefs.h <<_ACEOF
9341 #define LT_OBJDIR "$lt_cv_objdir/"
9342 _ACEOF
9343
9344
9345
9346
9347 case $host_os in
9348 aix3*)
9349   # AIX sometimes has problems with the GCC collect2 program.  For some
9350   # reason, if we set the COLLECT_NAMES environment variable, the problems
9351   # vanish in a puff of smoke.
9352   if test "X${COLLECT_NAMES+set}" != Xset; then
9353     COLLECT_NAMES=
9354     export COLLECT_NAMES
9355   fi
9356   ;;
9357 esac
9358
9359 # Global variables:
9360 ofile=libtool
9361 can_build_shared=yes
9362
9363 # All known linkers require a `.a' archive for static linking (except MSVC,
9364 # which needs '.lib').
9365 libext=a
9366
9367 with_gnu_ld="$lt_cv_prog_gnu_ld"
9368
9369 old_CC="$CC"
9370 old_CFLAGS="$CFLAGS"
9371
9372 # Set sane defaults for various variables
9373 test -z "$CC" && CC=cc
9374 test -z "$LTCC" && LTCC=$CC
9375 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9376 test -z "$LD" && LD=ld
9377 test -z "$ac_objext" && ac_objext=o
9378
9379 for cc_temp in $compiler""; do
9380   case $cc_temp in
9381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9383     \-*) ;;
9384     *) break;;
9385   esac
9386 done
9387 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9388
9389
9390 # Only perform the check for file, if the check method requires it
9391 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9392 case $deplibs_check_method in
9393 file_magic*)
9394   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9396 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9397 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9398   $as_echo_n "(cached) " >&6
9399 else
9400   case $MAGIC_CMD in
9401 [\\/*] |  ?:[\\/]*)
9402   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9403   ;;
9404 *)
9405   lt_save_MAGIC_CMD="$MAGIC_CMD"
9406   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9407   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9408   for ac_dir in $ac_dummy; do
9409     IFS="$lt_save_ifs"
9410     test -z "$ac_dir" && ac_dir=.
9411     if test -f $ac_dir/${ac_tool_prefix}file; then
9412       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9413       if test -n "$file_magic_test_file"; then
9414         case $deplibs_check_method in
9415         "file_magic "*)
9416           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9417           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9418           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9419             $EGREP "$file_magic_regex" > /dev/null; then
9420             :
9421           else
9422             cat <<_LT_EOF 1>&2
9423
9424 *** Warning: the command libtool uses to detect shared libraries,
9425 *** $file_magic_cmd, produces output that libtool cannot recognize.
9426 *** The result is that libtool may fail to recognize shared libraries
9427 *** as such.  This will affect the creation of libtool libraries that
9428 *** depend on shared libraries, but programs linked with such libtool
9429 *** libraries will work regardless of this problem.  Nevertheless, you
9430 *** may want to report the problem to your system manager and/or to
9431 *** bug-libtool@gnu.org
9432
9433 _LT_EOF
9434           fi ;;
9435         esac
9436       fi
9437       break
9438     fi
9439   done
9440   IFS="$lt_save_ifs"
9441   MAGIC_CMD="$lt_save_MAGIC_CMD"
9442   ;;
9443 esac
9444 fi
9445
9446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9447 if test -n "$MAGIC_CMD"; then
9448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9449 $as_echo "$MAGIC_CMD" >&6; }
9450 else
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9453 fi
9454
9455
9456
9457
9458
9459 if test -z "$lt_cv_path_MAGIC_CMD"; then
9460   if test -n "$ac_tool_prefix"; then
9461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9462 $as_echo_n "checking for file... " >&6; }
9463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9464   $as_echo_n "(cached) " >&6
9465 else
9466   case $MAGIC_CMD in
9467 [\\/*] |  ?:[\\/]*)
9468   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9469   ;;
9470 *)
9471   lt_save_MAGIC_CMD="$MAGIC_CMD"
9472   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9473   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9474   for ac_dir in $ac_dummy; do
9475     IFS="$lt_save_ifs"
9476     test -z "$ac_dir" && ac_dir=.
9477     if test -f $ac_dir/file; then
9478       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9479       if test -n "$file_magic_test_file"; then
9480         case $deplibs_check_method in
9481         "file_magic "*)
9482           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9483           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9484           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9485             $EGREP "$file_magic_regex" > /dev/null; then
9486             :
9487           else
9488             cat <<_LT_EOF 1>&2
9489
9490 *** Warning: the command libtool uses to detect shared libraries,
9491 *** $file_magic_cmd, produces output that libtool cannot recognize.
9492 *** The result is that libtool may fail to recognize shared libraries
9493 *** as such.  This will affect the creation of libtool libraries that
9494 *** depend on shared libraries, but programs linked with such libtool
9495 *** libraries will work regardless of this problem.  Nevertheless, you
9496 *** may want to report the problem to your system manager and/or to
9497 *** bug-libtool@gnu.org
9498
9499 _LT_EOF
9500           fi ;;
9501         esac
9502       fi
9503       break
9504     fi
9505   done
9506   IFS="$lt_save_ifs"
9507   MAGIC_CMD="$lt_save_MAGIC_CMD"
9508   ;;
9509 esac
9510 fi
9511
9512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9513 if test -n "$MAGIC_CMD"; then
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9515 $as_echo "$MAGIC_CMD" >&6; }
9516 else
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9519 fi
9520
9521
9522   else
9523     MAGIC_CMD=:
9524   fi
9525 fi
9526
9527   fi
9528   ;;
9529 esac
9530
9531 # Use C for the default configuration in the libtool script
9532
9533 lt_save_CC="$CC"
9534 ac_ext=c
9535 ac_cpp='$CPP $CPPFLAGS'
9536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9539
9540
9541 # Source file extension for C test sources.
9542 ac_ext=c
9543
9544 # Object file extension for compiled C test sources.
9545 objext=o
9546 objext=$objext
9547
9548 # Code to be used in simple compile tests
9549 lt_simple_compile_test_code="int some_variable = 0;"
9550
9551 # Code to be used in simple link tests
9552 lt_simple_link_test_code='int main(){return(0);}'
9553
9554
9555
9556
9557
9558
9559
9560 # If no C compiler was specified, use CC.
9561 LTCC=${LTCC-"$CC"}
9562
9563 # If no C compiler flags were specified, use CFLAGS.
9564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9565
9566 # Allow CC to be a program name with arguments.
9567 compiler=$CC
9568
9569 # Save the default compiler, since it gets overwritten when the other
9570 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9571 compiler_DEFAULT=$CC
9572
9573 # save warnings/boilerplate of simple test code
9574 ac_outfile=conftest.$ac_objext
9575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9577 _lt_compiler_boilerplate=`cat conftest.err`
9578 $RM conftest*
9579
9580 ac_outfile=conftest.$ac_objext
9581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9583 _lt_linker_boilerplate=`cat conftest.err`
9584 $RM -r conftest*
9585
9586
9587 ## CAVEAT EMPTOR:
9588 ## There is no encapsulation within the following macros, do not change
9589 ## the running order or otherwise move them around unless you know exactly
9590 ## what you are doing...
9591 if test -n "$compiler"; then
9592
9593 lt_prog_compiler_no_builtin_flag=
9594
9595 if test "$GCC" = yes; then
9596   case $cc_basename in
9597   nvcc*)
9598     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9599   *)
9600     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9601   esac
9602
9603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9604 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9605 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9606   $as_echo_n "(cached) " >&6
9607 else
9608   lt_cv_prog_compiler_rtti_exceptions=no
9609    ac_outfile=conftest.$ac_objext
9610    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9611    lt_compiler_flag="-fno-rtti -fno-exceptions"
9612    # Insert the option either (1) after the last *FLAGS variable, or
9613    # (2) before a word containing "conftest.", or (3) at the end.
9614    # Note that $ac_compile itself does not contain backslashes and begins
9615    # with a dollar sign (not a hyphen), so the echo should work correctly.
9616    # The option is referenced via a variable to avoid confusing sed.
9617    lt_compile=`echo "$ac_compile" | $SED \
9618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9620    -e 's:$: $lt_compiler_flag:'`
9621    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9622    (eval "$lt_compile" 2>conftest.err)
9623    ac_status=$?
9624    cat conftest.err >&5
9625    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626    if (exit $ac_status) && test -s "$ac_outfile"; then
9627      # The compiler can only warn and ignore the option if not recognized
9628      # So say no if there are warnings other than the usual output.
9629      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9630      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9631      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9632        lt_cv_prog_compiler_rtti_exceptions=yes
9633      fi
9634    fi
9635    $RM conftest*
9636
9637 fi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9639 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9640
9641 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9642     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9643 else
9644     :
9645 fi
9646
9647 fi
9648
9649
9650
9651
9652
9653
9654   lt_prog_compiler_wl=
9655 lt_prog_compiler_pic=
9656 lt_prog_compiler_static=
9657
9658
9659   if test "$GCC" = yes; then
9660     lt_prog_compiler_wl='-Wl,'
9661     lt_prog_compiler_static='-static'
9662
9663     case $host_os in
9664       aix*)
9665       # All AIX code is PIC.
9666       if test "$host_cpu" = ia64; then
9667         # AIX 5 now supports IA64 processor
9668         lt_prog_compiler_static='-Bstatic'
9669       fi
9670       ;;
9671
9672     amigaos*)
9673       case $host_cpu in
9674       powerpc)
9675             # see comment about AmigaOS4 .so support
9676             lt_prog_compiler_pic='-fPIC'
9677         ;;
9678       m68k)
9679             # FIXME: we need at least 68020 code to build shared libraries, but
9680             # adding the `-m68020' flag to GCC prevents building anything better,
9681             # like `-m68040'.
9682             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9683         ;;
9684       esac
9685       ;;
9686
9687     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9688       # PIC is the default for these OSes.
9689       ;;
9690
9691     mingw* | cygwin* | pw32* | os2* | cegcc*)
9692       # This hack is so that the source file can tell whether it is being
9693       # built for inclusion in a dll (and should export symbols for example).
9694       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9695       # (--disable-auto-import) libraries
9696       lt_prog_compiler_pic='-DDLL_EXPORT'
9697       ;;
9698
9699     darwin* | rhapsody*)
9700       # PIC is the default on this platform
9701       # Common symbols not allowed in MH_DYLIB files
9702       lt_prog_compiler_pic='-fno-common'
9703       ;;
9704
9705     haiku*)
9706       # PIC is the default for Haiku.
9707       # The "-static" flag exists, but is broken.
9708       lt_prog_compiler_static=
9709       ;;
9710
9711     hpux*)
9712       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9713       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9714       # sets the default TLS model and affects inlining.
9715       case $host_cpu in
9716       hppa*64*)
9717         # +Z the default
9718         ;;
9719       *)
9720         lt_prog_compiler_pic='-fPIC'
9721         ;;
9722       esac
9723       ;;
9724
9725     interix[3-9]*)
9726       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9727       # Instead, we relocate shared libraries at runtime.
9728       ;;
9729
9730     msdosdjgpp*)
9731       # Just because we use GCC doesn't mean we suddenly get shared libraries
9732       # on systems that don't support them.
9733       lt_prog_compiler_can_build_shared=no
9734       enable_shared=no
9735       ;;
9736
9737     *nto* | *qnx*)
9738       # QNX uses GNU C++, but need to define -shared option too, otherwise
9739       # it will coredump.
9740       lt_prog_compiler_pic='-fPIC -shared'
9741       ;;
9742
9743     sysv4*MP*)
9744       if test -d /usr/nec; then
9745         lt_prog_compiler_pic=-Kconform_pic
9746       fi
9747       ;;
9748
9749     *)
9750       lt_prog_compiler_pic='-fPIC'
9751       ;;
9752     esac
9753
9754     case $cc_basename in
9755     nvcc*) # Cuda Compiler Driver 2.2
9756       lt_prog_compiler_wl='-Xlinker '
9757       lt_prog_compiler_pic='-Xcompiler -fPIC'
9758       ;;
9759     esac
9760   else
9761     # PORTME Check for flag to pass linker flags through the system compiler.
9762     case $host_os in
9763     aix*)
9764       lt_prog_compiler_wl='-Wl,'
9765       if test "$host_cpu" = ia64; then
9766         # AIX 5 now supports IA64 processor
9767         lt_prog_compiler_static='-Bstatic'
9768       else
9769         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9770       fi
9771       ;;
9772
9773     mingw* | cygwin* | pw32* | os2* | cegcc*)
9774       # This hack is so that the source file can tell whether it is being
9775       # built for inclusion in a dll (and should export symbols for example).
9776       lt_prog_compiler_pic='-DDLL_EXPORT'
9777       ;;
9778
9779     hpux9* | hpux10* | hpux11*)
9780       lt_prog_compiler_wl='-Wl,'
9781       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9782       # not for PA HP-UX.
9783       case $host_cpu in
9784       hppa*64*|ia64*)
9785         # +Z the default
9786         ;;
9787       *)
9788         lt_prog_compiler_pic='+Z'
9789         ;;
9790       esac
9791       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9792       lt_prog_compiler_static='${wl}-a ${wl}archive'
9793       ;;
9794
9795     irix5* | irix6* | nonstopux*)
9796       lt_prog_compiler_wl='-Wl,'
9797       # PIC (with -KPIC) is the default.
9798       lt_prog_compiler_static='-non_shared'
9799       ;;
9800
9801     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9802       case $cc_basename in
9803       # old Intel for x86_64 which still supported -KPIC.
9804       ecc*)
9805         lt_prog_compiler_wl='-Wl,'
9806         lt_prog_compiler_pic='-KPIC'
9807         lt_prog_compiler_static='-static'
9808         ;;
9809       # icc used to be incompatible with GCC.
9810       # ICC 10 doesn't accept -KPIC any more.
9811       icc* | ifort*)
9812         lt_prog_compiler_wl='-Wl,'
9813         lt_prog_compiler_pic='-fPIC'
9814         lt_prog_compiler_static='-static'
9815         ;;
9816       # Lahey Fortran 8.1.
9817       lf95*)
9818         lt_prog_compiler_wl='-Wl,'
9819         lt_prog_compiler_pic='--shared'
9820         lt_prog_compiler_static='--static'
9821         ;;
9822       nagfor*)
9823         # NAG Fortran compiler
9824         lt_prog_compiler_wl='-Wl,-Wl,,'
9825         lt_prog_compiler_pic='-PIC'
9826         lt_prog_compiler_static='-Bstatic'
9827         ;;
9828       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9829         # Portland Group compilers (*not* the Pentium gcc compiler,
9830         # which looks to be a dead project)
9831         lt_prog_compiler_wl='-Wl,'
9832         lt_prog_compiler_pic='-fpic'
9833         lt_prog_compiler_static='-Bstatic'
9834         ;;
9835       ccc*)
9836         lt_prog_compiler_wl='-Wl,'
9837         # All Alpha code is PIC.
9838         lt_prog_compiler_static='-non_shared'
9839         ;;
9840       xl* | bgxl* | bgf* | mpixl*)
9841         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9842         lt_prog_compiler_wl='-Wl,'
9843         lt_prog_compiler_pic='-qpic'
9844         lt_prog_compiler_static='-qstaticlink'
9845         ;;
9846       *)
9847         case `$CC -V 2>&1 | sed 5q` in
9848         *Sun\ F* | *Sun*Fortran*)
9849           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9850           lt_prog_compiler_pic='-KPIC'
9851           lt_prog_compiler_static='-Bstatic'
9852           lt_prog_compiler_wl=''
9853           ;;
9854         *Sun\ C*)
9855           # Sun C 5.9
9856           lt_prog_compiler_pic='-KPIC'
9857           lt_prog_compiler_static='-Bstatic'
9858           lt_prog_compiler_wl='-Wl,'
9859           ;;
9860         esac
9861         ;;
9862       esac
9863       ;;
9864
9865     newsos6)
9866       lt_prog_compiler_pic='-KPIC'
9867       lt_prog_compiler_static='-Bstatic'
9868       ;;
9869
9870     *nto* | *qnx*)
9871       # QNX uses GNU C++, but need to define -shared option too, otherwise
9872       # it will coredump.
9873       lt_prog_compiler_pic='-fPIC -shared'
9874       ;;
9875
9876     osf3* | osf4* | osf5*)
9877       lt_prog_compiler_wl='-Wl,'
9878       # All OSF/1 code is PIC.
9879       lt_prog_compiler_static='-non_shared'
9880       ;;
9881
9882     rdos*)
9883       lt_prog_compiler_static='-non_shared'
9884       ;;
9885
9886     solaris*)
9887       lt_prog_compiler_pic='-KPIC'
9888       lt_prog_compiler_static='-Bstatic'
9889       case $cc_basename in
9890       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9891         lt_prog_compiler_wl='-Qoption ld ';;
9892       *)
9893         lt_prog_compiler_wl='-Wl,';;
9894       esac
9895       ;;
9896
9897     sunos4*)
9898       lt_prog_compiler_wl='-Qoption ld '
9899       lt_prog_compiler_pic='-PIC'
9900       lt_prog_compiler_static='-Bstatic'
9901       ;;
9902
9903     sysv4 | sysv4.2uw2* | sysv4.3*)
9904       lt_prog_compiler_wl='-Wl,'
9905       lt_prog_compiler_pic='-KPIC'
9906       lt_prog_compiler_static='-Bstatic'
9907       ;;
9908
9909     sysv4*MP*)
9910       if test -d /usr/nec ;then
9911         lt_prog_compiler_pic='-Kconform_pic'
9912         lt_prog_compiler_static='-Bstatic'
9913       fi
9914       ;;
9915
9916     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9917       lt_prog_compiler_wl='-Wl,'
9918       lt_prog_compiler_pic='-KPIC'
9919       lt_prog_compiler_static='-Bstatic'
9920       ;;
9921
9922     unicos*)
9923       lt_prog_compiler_wl='-Wl,'
9924       lt_prog_compiler_can_build_shared=no
9925       ;;
9926
9927     uts4*)
9928       lt_prog_compiler_pic='-pic'
9929       lt_prog_compiler_static='-Bstatic'
9930       ;;
9931
9932     *)
9933       lt_prog_compiler_can_build_shared=no
9934       ;;
9935     esac
9936   fi
9937
9938 case $host_os in
9939   # For platforms which do not support PIC, -DPIC is meaningless:
9940   *djgpp*)
9941     lt_prog_compiler_pic=
9942     ;;
9943   *)
9944     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9945     ;;
9946 esac
9947
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9949 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9950 if ${lt_cv_prog_compiler_pic+:} false; then :
9951   $as_echo_n "(cached) " >&6
9952 else
9953   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9954 fi
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9956 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9957 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9958
9959 #
9960 # Check to make sure the PIC flag actually works.
9961 #
9962 if test -n "$lt_prog_compiler_pic"; then
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9966   $as_echo_n "(cached) " >&6
9967 else
9968   lt_cv_prog_compiler_pic_works=no
9969    ac_outfile=conftest.$ac_objext
9970    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9971    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9972    # Insert the option either (1) after the last *FLAGS variable, or
9973    # (2) before a word containing "conftest.", or (3) at the end.
9974    # Note that $ac_compile itself does not contain backslashes and begins
9975    # with a dollar sign (not a hyphen), so the echo should work correctly.
9976    # The option is referenced via a variable to avoid confusing sed.
9977    lt_compile=`echo "$ac_compile" | $SED \
9978    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9980    -e 's:$: $lt_compiler_flag:'`
9981    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9982    (eval "$lt_compile" 2>conftest.err)
9983    ac_status=$?
9984    cat conftest.err >&5
9985    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986    if (exit $ac_status) && test -s "$ac_outfile"; then
9987      # The compiler can only warn and ignore the option if not recognized
9988      # So say no if there are warnings other than the usual output.
9989      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9990      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9991      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9992        lt_cv_prog_compiler_pic_works=yes
9993      fi
9994    fi
9995    $RM conftest*
9996
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10000
10001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10002     case $lt_prog_compiler_pic in
10003      "" | " "*) ;;
10004      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10005      esac
10006 else
10007     lt_prog_compiler_pic=
10008      lt_prog_compiler_can_build_shared=no
10009 fi
10010
10011 fi
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023 #
10024 # Check to make sure the static flag actually works.
10025 #
10026 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10028 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10029 if ${lt_cv_prog_compiler_static_works+:} false; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   lt_cv_prog_compiler_static_works=no
10033    save_LDFLAGS="$LDFLAGS"
10034    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10035    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10036    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10037      # The linker can only warn and ignore the option if not recognized
10038      # So say no if there are warnings
10039      if test -s conftest.err; then
10040        # Append any errors to the config.log.
10041        cat conftest.err 1>&5
10042        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10043        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10044        if diff conftest.exp conftest.er2 >/dev/null; then
10045          lt_cv_prog_compiler_static_works=yes
10046        fi
10047      else
10048        lt_cv_prog_compiler_static_works=yes
10049      fi
10050    fi
10051    $RM -r conftest*
10052    LDFLAGS="$save_LDFLAGS"
10053
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10056 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10057
10058 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10059     :
10060 else
10061     lt_prog_compiler_static=
10062 fi
10063
10064
10065
10066
10067
10068
10069
10070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10072 if ${lt_cv_prog_compiler_c_o+:} false; then :
10073   $as_echo_n "(cached) " >&6
10074 else
10075   lt_cv_prog_compiler_c_o=no
10076    $RM -r conftest 2>/dev/null
10077    mkdir conftest
10078    cd conftest
10079    mkdir out
10080    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10081
10082    lt_compiler_flag="-o out/conftest2.$ac_objext"
10083    # Insert the option either (1) after the last *FLAGS variable, or
10084    # (2) before a word containing "conftest.", or (3) at the end.
10085    # Note that $ac_compile itself does not contain backslashes and begins
10086    # with a dollar sign (not a hyphen), so the echo should work correctly.
10087    lt_compile=`echo "$ac_compile" | $SED \
10088    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10090    -e 's:$: $lt_compiler_flag:'`
10091    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10092    (eval "$lt_compile" 2>out/conftest.err)
10093    ac_status=$?
10094    cat out/conftest.err >&5
10095    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10097    then
10098      # The compiler can only warn and ignore the option if not recognized
10099      # So say no if there are warnings
10100      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10101      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10102      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10103        lt_cv_prog_compiler_c_o=yes
10104      fi
10105    fi
10106    chmod u+w . 2>&5
10107    $RM conftest*
10108    # SGI C++ compiler will create directory out/ii_files/ for
10109    # template instantiation
10110    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10111    $RM out/* && rmdir out
10112    cd ..
10113    $RM -r conftest
10114    $RM conftest*
10115
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10118 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10119
10120
10121
10122
10123
10124
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10127 if ${lt_cv_prog_compiler_c_o+:} false; then :
10128   $as_echo_n "(cached) " >&6
10129 else
10130   lt_cv_prog_compiler_c_o=no
10131    $RM -r conftest 2>/dev/null
10132    mkdir conftest
10133    cd conftest
10134    mkdir out
10135    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10136
10137    lt_compiler_flag="-o out/conftest2.$ac_objext"
10138    # Insert the option either (1) after the last *FLAGS variable, or
10139    # (2) before a word containing "conftest.", or (3) at the end.
10140    # Note that $ac_compile itself does not contain backslashes and begins
10141    # with a dollar sign (not a hyphen), so the echo should work correctly.
10142    lt_compile=`echo "$ac_compile" | $SED \
10143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10145    -e 's:$: $lt_compiler_flag:'`
10146    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10147    (eval "$lt_compile" 2>out/conftest.err)
10148    ac_status=$?
10149    cat out/conftest.err >&5
10150    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10152    then
10153      # The compiler can only warn and ignore the option if not recognized
10154      # So say no if there are warnings
10155      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10156      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10157      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10158        lt_cv_prog_compiler_c_o=yes
10159      fi
10160    fi
10161    chmod u+w . 2>&5
10162    $RM conftest*
10163    # SGI C++ compiler will create directory out/ii_files/ for
10164    # template instantiation
10165    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10166    $RM out/* && rmdir out
10167    cd ..
10168    $RM -r conftest
10169    $RM conftest*
10170
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10173 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10174
10175
10176
10177
10178 hard_links="nottested"
10179 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10180   # do not overwrite the value of need_locks provided by the user
10181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10182 $as_echo_n "checking if we can lock with hard links... " >&6; }
10183   hard_links=yes
10184   $RM conftest*
10185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10186   touch conftest.a
10187   ln conftest.a conftest.b 2>&5 || hard_links=no
10188   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10190 $as_echo "$hard_links" >&6; }
10191   if test "$hard_links" = no; then
10192     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10193 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10194     need_locks=warn
10195   fi
10196 else
10197   need_locks=no
10198 fi
10199
10200
10201
10202
10203
10204
10205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10206 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10207
10208   runpath_var=
10209   allow_undefined_flag=
10210   always_export_symbols=no
10211   archive_cmds=
10212   archive_expsym_cmds=
10213   compiler_needs_object=no
10214   enable_shared_with_static_runtimes=no
10215   export_dynamic_flag_spec=
10216   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10217   hardcode_automatic=no
10218   hardcode_direct=no
10219   hardcode_direct_absolute=no
10220   hardcode_libdir_flag_spec=
10221   hardcode_libdir_flag_spec_ld=
10222   hardcode_libdir_separator=
10223   hardcode_minus_L=no
10224   hardcode_shlibpath_var=unsupported
10225   inherit_rpath=no
10226   link_all_deplibs=unknown
10227   module_cmds=
10228   module_expsym_cmds=
10229   old_archive_from_new_cmds=
10230   old_archive_from_expsyms_cmds=
10231   thread_safe_flag_spec=
10232   whole_archive_flag_spec=
10233   # include_expsyms should be a list of space-separated symbols to be *always*
10234   # included in the symbol list
10235   include_expsyms=
10236   # exclude_expsyms can be an extended regexp of symbols to exclude
10237   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10238   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10239   # as well as any symbol that contains `d'.
10240   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10241   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10242   # platforms (ab)use it in PIC code, but their linkers get confused if
10243   # the symbol is explicitly referenced.  Since portable code cannot
10244   # rely on this symbol name, it's probably fine to never include it in
10245   # preloaded symbol tables.
10246   # Exclude shared library initialization/finalization symbols.
10247   extract_expsyms_cmds=
10248
10249   case $host_os in
10250   cygwin* | mingw* | pw32* | cegcc*)
10251     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10252     # When not using gcc, we currently assume that we are using
10253     # Microsoft Visual C++.
10254     if test "$GCC" != yes; then
10255       with_gnu_ld=no
10256     fi
10257     ;;
10258   interix*)
10259     # we just hope/assume this is gcc and not c89 (= MSVC++)
10260     with_gnu_ld=yes
10261     ;;
10262   openbsd*)
10263     with_gnu_ld=no
10264     ;;
10265   esac
10266
10267   ld_shlibs=yes
10268
10269   # On some targets, GNU ld is compatible enough with the native linker
10270   # that we're better off using the native interface for both.
10271   lt_use_gnu_ld_interface=no
10272   if test "$with_gnu_ld" = yes; then
10273     case $host_os in
10274       aix*)
10275         # The AIX port of GNU ld has always aspired to compatibility
10276         # with the native linker.  However, as the warning in the GNU ld
10277         # block says, versions before 2.19.5* couldn't really create working
10278         # shared libraries, regardless of the interface used.
10279         case `$LD -v 2>&1` in
10280           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10281           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10282           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10283           *)
10284             lt_use_gnu_ld_interface=yes
10285             ;;
10286         esac
10287         ;;
10288       *)
10289         lt_use_gnu_ld_interface=yes
10290         ;;
10291     esac
10292   fi
10293
10294   if test "$lt_use_gnu_ld_interface" = yes; then
10295     # If archive_cmds runs LD, not CC, wlarc should be empty
10296     wlarc='${wl}'
10297
10298     # Set some defaults for GNU ld with shared library support. These
10299     # are reset later if shared libraries are not supported. Putting them
10300     # here allows them to be overridden if necessary.
10301     runpath_var=LD_RUN_PATH
10302     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10303     export_dynamic_flag_spec='${wl}--export-dynamic'
10304     # ancient GNU ld didn't support --whole-archive et. al.
10305     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10306       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10307     else
10308       whole_archive_flag_spec=
10309     fi
10310     supports_anon_versioning=no
10311     case `$LD -v 2>&1` in
10312       *GNU\ gold*) supports_anon_versioning=yes ;;
10313       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10314       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10315       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10316       *\ 2.11.*) ;; # other 2.11 versions
10317       *) supports_anon_versioning=yes ;;
10318     esac
10319
10320     # See if GNU ld supports shared libraries.
10321     case $host_os in
10322     aix[3-9]*)
10323       # On AIX/PPC, the GNU linker is very broken
10324       if test "$host_cpu" != ia64; then
10325         ld_shlibs=no
10326         cat <<_LT_EOF 1>&2
10327
10328 *** Warning: the GNU linker, at least up to release 2.19, is reported
10329 *** to be unable to reliably create shared libraries on AIX.
10330 *** Therefore, libtool is disabling shared libraries support.  If you
10331 *** really care for shared libraries, you may want to install binutils
10332 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10333 *** You will then need to restart the configuration process.
10334
10335 _LT_EOF
10336       fi
10337       ;;
10338
10339     amigaos*)
10340       case $host_cpu in
10341       powerpc)
10342             # see comment about AmigaOS4 .so support
10343             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10344             archive_expsym_cmds=''
10345         ;;
10346       m68k)
10347             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)'
10348             hardcode_libdir_flag_spec='-L$libdir'
10349             hardcode_minus_L=yes
10350         ;;
10351       esac
10352       ;;
10353
10354     beos*)
10355       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10356         allow_undefined_flag=unsupported
10357         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10358         # support --undefined.  This deserves some investigation.  FIXME
10359         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10360       else
10361         ld_shlibs=no
10362       fi
10363       ;;
10364
10365     cygwin* | mingw* | pw32* | cegcc*)
10366       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10367       # as there is no search path for DLLs.
10368       hardcode_libdir_flag_spec='-L$libdir'
10369       export_dynamic_flag_spec='${wl}--export-all-symbols'
10370       allow_undefined_flag=unsupported
10371       always_export_symbols=no
10372       enable_shared_with_static_runtimes=yes
10373       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'
10374       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10375
10376       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10377         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10378         # If the export-symbols file already is a .def file (1st line
10379         # is EXPORTS), use it as is; otherwise, prepend...
10380         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10381           cp $export_symbols $output_objdir/$soname.def;
10382         else
10383           echo EXPORTS > $output_objdir/$soname.def;
10384           cat $export_symbols >> $output_objdir/$soname.def;
10385         fi~
10386         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10387       else
10388         ld_shlibs=no
10389       fi
10390       ;;
10391
10392     haiku*)
10393       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10394       link_all_deplibs=yes
10395       ;;
10396
10397     interix[3-9]*)
10398       hardcode_direct=no
10399       hardcode_shlibpath_var=no
10400       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10401       export_dynamic_flag_spec='${wl}-E'
10402       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10403       # Instead, shared libraries are loaded at an image base (0x10000000 by
10404       # default) and relocated if they conflict, which is a slow very memory
10405       # consuming and fragmenting process.  To avoid this, we pick a random,
10406       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10407       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10408       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10409       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'
10410       ;;
10411
10412     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10413       tmp_diet=no
10414       if test "$host_os" = linux-dietlibc; then
10415         case $cc_basename in
10416           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10417         esac
10418       fi
10419       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10420          && test "$tmp_diet" = no
10421       then
10422         tmp_addflag=' $pic_flag'
10423         tmp_sharedflag='-shared'
10424         case $cc_basename,$host_cpu in
10425         pgcc*)                          # Portland Group C compiler
10426           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'
10427           tmp_addflag=' $pic_flag'
10428           ;;
10429         pgf77* | pgf90* | pgf95* | pgfortran*)
10430                                         # Portland Group f77 and f90 compilers
10431           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'
10432           tmp_addflag=' $pic_flag -Mnomain' ;;
10433         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10434           tmp_addflag=' -i_dynamic' ;;
10435         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10436           tmp_addflag=' -i_dynamic -nofor_main' ;;
10437         ifc* | ifort*)                  # Intel Fortran compiler
10438           tmp_addflag=' -nofor_main' ;;
10439         lf95*)                          # Lahey Fortran 8.1
10440           whole_archive_flag_spec=
10441           tmp_sharedflag='--shared' ;;
10442         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10443           tmp_sharedflag='-qmkshrobj'
10444           tmp_addflag= ;;
10445         nvcc*)  # Cuda Compiler Driver 2.2
10446           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'
10447           compiler_needs_object=yes
10448           ;;
10449         esac
10450         case `$CC -V 2>&1 | sed 5q` in
10451         *Sun\ C*)                       # Sun C 5.9
10452           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'
10453           compiler_needs_object=yes
10454           tmp_sharedflag='-G' ;;
10455         *Sun\ F*)                       # Sun Fortran 8.3
10456           tmp_sharedflag='-G' ;;
10457         esac
10458         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10459
10460         if test "x$supports_anon_versioning" = xyes; then
10461           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10462             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10463             echo "local: *; };" >> $output_objdir/$libname.ver~
10464             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10465         fi
10466
10467         case $cc_basename in
10468         xlf* | bgf* | bgxlf* | mpixlf*)
10469           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10470           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10471           hardcode_libdir_flag_spec=
10472           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10473           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10474           if test "x$supports_anon_versioning" = xyes; then
10475             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10476               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10477               echo "local: *; };" >> $output_objdir/$libname.ver~
10478               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10479           fi
10480           ;;
10481         esac
10482       else
10483         ld_shlibs=no
10484       fi
10485       ;;
10486
10487     netbsd*)
10488       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10489         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10490         wlarc=
10491       else
10492         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10493         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10494       fi
10495       ;;
10496
10497     solaris*)
10498       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10499         ld_shlibs=no
10500         cat <<_LT_EOF 1>&2
10501
10502 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10503 *** create shared libraries on Solaris systems.  Therefore, libtool
10504 *** is disabling shared libraries support.  We urge you to upgrade GNU
10505 *** binutils to release 2.9.1 or newer.  Another option is to modify
10506 *** your PATH or compiler configuration so that the native linker is
10507 *** used, and then restart.
10508
10509 _LT_EOF
10510       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10511         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10512         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10513       else
10514         ld_shlibs=no
10515       fi
10516       ;;
10517
10518     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10519       case `$LD -v 2>&1` in
10520         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10521         ld_shlibs=no
10522         cat <<_LT_EOF 1>&2
10523
10524 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10525 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10526 *** is disabling shared libraries support.  We urge you to upgrade GNU
10527 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10528 *** your PATH or compiler configuration so that the native linker is
10529 *** used, and then restart.
10530
10531 _LT_EOF
10532         ;;
10533         *)
10534           # For security reasons, it is highly recommended that you always
10535           # use absolute paths for naming shared libraries, and exclude the
10536           # DT_RUNPATH tag from executables and libraries.  But doing so
10537           # requires that you compile everything twice, which is a pain.
10538           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10539             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10541             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10542           else
10543             ld_shlibs=no
10544           fi
10545         ;;
10546       esac
10547       ;;
10548
10549     sunos4*)
10550       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10551       wlarc=
10552       hardcode_direct=yes
10553       hardcode_shlibpath_var=no
10554       ;;
10555
10556     *)
10557       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10558         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10560       else
10561         ld_shlibs=no
10562       fi
10563       ;;
10564     esac
10565
10566     if test "$ld_shlibs" = no; then
10567       runpath_var=
10568       hardcode_libdir_flag_spec=
10569       export_dynamic_flag_spec=
10570       whole_archive_flag_spec=
10571     fi
10572   else
10573     # PORTME fill in a description of your system's linker (not GNU ld)
10574     case $host_os in
10575     aix3*)
10576       allow_undefined_flag=unsupported
10577       always_export_symbols=yes
10578       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'
10579       # Note: this linker hardcodes the directories in LIBPATH if there
10580       # are no directories specified by -L.
10581       hardcode_minus_L=yes
10582       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10583         # Neither direct hardcoding nor static linking is supported with a
10584         # broken collect2.
10585         hardcode_direct=unsupported
10586       fi
10587       ;;
10588
10589     aix[4-9]*)
10590       if test "$host_cpu" = ia64; then
10591         # On IA64, the linker does run time linking by default, so we don't
10592         # have to do anything special.
10593         aix_use_runtimelinking=no
10594         exp_sym_flag='-Bexport'
10595         no_entry_flag=""
10596       else
10597         # If we're using GNU nm, then we don't want the "-C" option.
10598         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10599         # Also, AIX nm treats weak defined symbols like other global
10600         # defined symbols, whereas GNU nm marks them as "W".
10601         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10602           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'
10603         else
10604           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'
10605         fi
10606         aix_use_runtimelinking=no
10607
10608         # Test if we are trying to use run time linking or normal
10609         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10610         # need to do runtime linking.
10611         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10612           for ld_flag in $LDFLAGS; do
10613           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10614             aix_use_runtimelinking=yes
10615             break
10616           fi
10617           done
10618           ;;
10619         esac
10620
10621         exp_sym_flag='-bexport'
10622         no_entry_flag='-bnoentry'
10623       fi
10624
10625       # When large executables or shared objects are built, AIX ld can
10626       # have problems creating the table of contents.  If linking a library
10627       # or program results in "error TOC overflow" add -mminimal-toc to
10628       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10629       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10630
10631       archive_cmds=''
10632       hardcode_direct=yes
10633       hardcode_direct_absolute=yes
10634       hardcode_libdir_separator=':'
10635       link_all_deplibs=yes
10636       file_list_spec='${wl}-f,'
10637
10638       if test "$GCC" = yes; then
10639         case $host_os in aix4.[012]|aix4.[012].*)
10640         # We only want to do this on AIX 4.2 and lower, the check
10641         # below for broken collect2 doesn't work under 4.3+
10642           collect2name=`${CC} -print-prog-name=collect2`
10643           if test -f "$collect2name" &&
10644            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10645           then
10646           # We have reworked collect2
10647           :
10648           else
10649           # We have old collect2
10650           hardcode_direct=unsupported
10651           # It fails to find uninstalled libraries when the uninstalled
10652           # path is not listed in the libpath.  Setting hardcode_minus_L
10653           # to unsupported forces relinking
10654           hardcode_minus_L=yes
10655           hardcode_libdir_flag_spec='-L$libdir'
10656           hardcode_libdir_separator=
10657           fi
10658           ;;
10659         esac
10660         shared_flag='-shared'
10661         if test "$aix_use_runtimelinking" = yes; then
10662           shared_flag="$shared_flag "'${wl}-G'
10663         fi
10664       else
10665         # not using gcc
10666         if test "$host_cpu" = ia64; then
10667         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10668         # chokes on -Wl,-G. The following line is correct:
10669           shared_flag='-G'
10670         else
10671           if test "$aix_use_runtimelinking" = yes; then
10672             shared_flag='${wl}-G'
10673           else
10674             shared_flag='${wl}-bM:SRE'
10675           fi
10676         fi
10677       fi
10678
10679       export_dynamic_flag_spec='${wl}-bexpall'
10680       # It seems that -bexpall does not export symbols beginning with
10681       # underscore (_), so it is better to generate a list of symbols to export.
10682       always_export_symbols=yes
10683       if test "$aix_use_runtimelinking" = yes; then
10684         # Warning - without using the other runtime loading flags (-brtl),
10685         # -berok will link without error, but may produce a broken library.
10686         allow_undefined_flag='-berok'
10687         # Determine the default libpath from the value encoded in an
10688         # empty executable.
10689         if test "${lt_cv_aix_libpath+set}" = set; then
10690   aix_libpath=$lt_cv_aix_libpath
10691 else
10692   if ${lt_cv_aix_libpath_+:} false; then :
10693   $as_echo_n "(cached) " >&6
10694 else
10695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h.  */
10697
10698 int
10699 main ()
10700 {
10701
10702   ;
10703   return 0;
10704 }
10705 _ACEOF
10706 if ac_fn_c_try_link "$LINENO"; then :
10707
10708   lt_aix_libpath_sed='
10709       /Import File Strings/,/^$/ {
10710           /^0/ {
10711               s/^0  *\([^ ]*\) *$/\1/
10712               p
10713           }
10714       }'
10715   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10716   # Check for a 64-bit object if we didn't find anything.
10717   if test -z "$lt_cv_aix_libpath_"; then
10718     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10719   fi
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext \
10722     conftest$ac_exeext conftest.$ac_ext
10723   if test -z "$lt_cv_aix_libpath_"; then
10724     lt_cv_aix_libpath_="/usr/lib:/lib"
10725   fi
10726
10727 fi
10728
10729   aix_libpath=$lt_cv_aix_libpath_
10730 fi
10731
10732         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10733         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"
10734       else
10735         if test "$host_cpu" = ia64; then
10736           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10737           allow_undefined_flag="-z nodefs"
10738           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"
10739         else
10740          # Determine the default libpath from the value encoded in an
10741          # empty executable.
10742          if test "${lt_cv_aix_libpath+set}" = set; then
10743   aix_libpath=$lt_cv_aix_libpath
10744 else
10745   if ${lt_cv_aix_libpath_+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h.  */
10750
10751 int
10752 main ()
10753 {
10754
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 if ac_fn_c_try_link "$LINENO"; then :
10760
10761   lt_aix_libpath_sed='
10762       /Import File Strings/,/^$/ {
10763           /^0/ {
10764               s/^0  *\([^ ]*\) *$/\1/
10765               p
10766           }
10767       }'
10768   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10769   # Check for a 64-bit object if we didn't find anything.
10770   if test -z "$lt_cv_aix_libpath_"; then
10771     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10772   fi
10773 fi
10774 rm -f core conftest.err conftest.$ac_objext \
10775     conftest$ac_exeext conftest.$ac_ext
10776   if test -z "$lt_cv_aix_libpath_"; then
10777     lt_cv_aix_libpath_="/usr/lib:/lib"
10778   fi
10779
10780 fi
10781
10782   aix_libpath=$lt_cv_aix_libpath_
10783 fi
10784
10785          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10786           # Warning - without using the other run time loading flags,
10787           # -berok will link without error, but may produce a broken library.
10788           no_undefined_flag=' ${wl}-bernotok'
10789           allow_undefined_flag=' ${wl}-berok'
10790           if test "$with_gnu_ld" = yes; then
10791             # We only use this code for GNU lds that support --whole-archive.
10792             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10793           else
10794             # Exported symbols can be pulled into shared objects from archives
10795             whole_archive_flag_spec='$convenience'
10796           fi
10797           archive_cmds_need_lc=yes
10798           # This is similar to how AIX traditionally builds its shared libraries.
10799           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'
10800         fi
10801       fi
10802       ;;
10803
10804     amigaos*)
10805       case $host_cpu in
10806       powerpc)
10807             # see comment about AmigaOS4 .so support
10808             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10809             archive_expsym_cmds=''
10810         ;;
10811       m68k)
10812             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)'
10813             hardcode_libdir_flag_spec='-L$libdir'
10814             hardcode_minus_L=yes
10815         ;;
10816       esac
10817       ;;
10818
10819     bsdi[45]*)
10820       export_dynamic_flag_spec=-rdynamic
10821       ;;
10822
10823     cygwin* | mingw* | pw32* | cegcc*)
10824       # When not using gcc, we currently assume that we are using
10825       # Microsoft Visual C++.
10826       # hardcode_libdir_flag_spec is actually meaningless, as there is
10827       # no search path for DLLs.
10828       case $cc_basename in
10829       cl*)
10830         # Native MSVC
10831         hardcode_libdir_flag_spec=' '
10832         allow_undefined_flag=unsupported
10833         always_export_symbols=yes
10834         file_list_spec='@'
10835         # Tell ltmain to make .lib files, not .a files.
10836         libext=lib
10837         # Tell ltmain to make .dll files, not .so files.
10838         shrext_cmds=".dll"
10839         # FIXME: Setting linknames here is a bad hack.
10840         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10841         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10842             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10843           else
10844             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10845           fi~
10846           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10847           linknames='
10848         # The linker will not automatically build a static lib if we build a DLL.
10849         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10850         enable_shared_with_static_runtimes=yes
10851         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10852         # Don't use ranlib
10853         old_postinstall_cmds='chmod 644 $oldlib'
10854         postlink_cmds='lt_outputfile="@OUTPUT@"~
10855           lt_tool_outputfile="@TOOL_OUTPUT@"~
10856           case $lt_outputfile in
10857             *.exe|*.EXE) ;;
10858             *)
10859               lt_outputfile="$lt_outputfile.exe"
10860               lt_tool_outputfile="$lt_tool_outputfile.exe"
10861               ;;
10862           esac~
10863           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10864             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10865             $RM "$lt_outputfile.manifest";
10866           fi'
10867         ;;
10868       *)
10869         # Assume MSVC wrapper
10870         hardcode_libdir_flag_spec=' '
10871         allow_undefined_flag=unsupported
10872         # Tell ltmain to make .lib files, not .a files.
10873         libext=lib
10874         # Tell ltmain to make .dll files, not .so files.
10875         shrext_cmds=".dll"
10876         # FIXME: Setting linknames here is a bad hack.
10877         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10878         # The linker will automatically build a .lib file if we build a DLL.
10879         old_archive_from_new_cmds='true'
10880         # FIXME: Should let the user specify the lib program.
10881         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10882         enable_shared_with_static_runtimes=yes
10883         ;;
10884       esac
10885       ;;
10886
10887     darwin* | rhapsody*)
10888
10889
10890   archive_cmds_need_lc=no
10891   hardcode_direct=no
10892   hardcode_automatic=yes
10893   hardcode_shlibpath_var=unsupported
10894   if test "$lt_cv_ld_force_load" = "yes"; then
10895     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\"`'
10896   else
10897     whole_archive_flag_spec=''
10898   fi
10899   link_all_deplibs=yes
10900   allow_undefined_flag="$_lt_dar_allow_undefined"
10901   case $cc_basename in
10902      ifort*) _lt_dar_can_shared=yes ;;
10903      *) _lt_dar_can_shared=$GCC ;;
10904   esac
10905   if test "$_lt_dar_can_shared" = "yes"; then
10906     output_verbose_link_cmd=func_echo_all
10907     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10908     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10909     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}"
10910     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}"
10911
10912   else
10913   ld_shlibs=no
10914   fi
10915
10916       ;;
10917
10918     dgux*)
10919       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920       hardcode_libdir_flag_spec='-L$libdir'
10921       hardcode_shlibpath_var=no
10922       ;;
10923
10924     freebsd1*)
10925       ld_shlibs=no
10926       ;;
10927
10928     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10929     # support.  Future versions do this automatically, but an explicit c++rt0.o
10930     # does not break anything, and helps significantly (at the cost of a little
10931     # extra space).
10932     freebsd2.2*)
10933       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10934       hardcode_libdir_flag_spec='-R$libdir'
10935       hardcode_direct=yes
10936       hardcode_shlibpath_var=no
10937       ;;
10938
10939     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10940     freebsd2*)
10941       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10942       hardcode_direct=yes
10943       hardcode_minus_L=yes
10944       hardcode_shlibpath_var=no
10945       ;;
10946
10947     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10948     freebsd* | dragonfly*)
10949       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10950       hardcode_libdir_flag_spec='-R$libdir'
10951       hardcode_direct=yes
10952       hardcode_shlibpath_var=no
10953       ;;
10954
10955     hpux9*)
10956       if test "$GCC" = yes; then
10957         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'
10958       else
10959         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'
10960       fi
10961       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10962       hardcode_libdir_separator=:
10963       hardcode_direct=yes
10964
10965       # hardcode_minus_L: Not really in the search PATH,
10966       # but as the default location of the library.
10967       hardcode_minus_L=yes
10968       export_dynamic_flag_spec='${wl}-E'
10969       ;;
10970
10971     hpux10*)
10972       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10973         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10974       else
10975         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10976       fi
10977       if test "$with_gnu_ld" = no; then
10978         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10979         hardcode_libdir_flag_spec_ld='+b $libdir'
10980         hardcode_libdir_separator=:
10981         hardcode_direct=yes
10982         hardcode_direct_absolute=yes
10983         export_dynamic_flag_spec='${wl}-E'
10984         # hardcode_minus_L: Not really in the search PATH,
10985         # but as the default location of the library.
10986         hardcode_minus_L=yes
10987       fi
10988       ;;
10989
10990     hpux11*)
10991       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10992         case $host_cpu in
10993         hppa*64*)
10994           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10995           ;;
10996         ia64*)
10997           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10998           ;;
10999         *)
11000           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11001           ;;
11002         esac
11003       else
11004         case $host_cpu in
11005         hppa*64*)
11006           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11007           ;;
11008         ia64*)
11009           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11010           ;;
11011         *)
11012
11013           # Older versions of the 11.00 compiler do not understand -b yet
11014           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11015           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11016 $as_echo_n "checking if $CC understands -b... " >&6; }
11017 if ${lt_cv_prog_compiler__b+:} false; then :
11018   $as_echo_n "(cached) " >&6
11019 else
11020   lt_cv_prog_compiler__b=no
11021    save_LDFLAGS="$LDFLAGS"
11022    LDFLAGS="$LDFLAGS -b"
11023    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11024    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11025      # The linker can only warn and ignore the option if not recognized
11026      # So say no if there are warnings
11027      if test -s conftest.err; then
11028        # Append any errors to the config.log.
11029        cat conftest.err 1>&5
11030        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11031        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11032        if diff conftest.exp conftest.er2 >/dev/null; then
11033          lt_cv_prog_compiler__b=yes
11034        fi
11035      else
11036        lt_cv_prog_compiler__b=yes
11037      fi
11038    fi
11039    $RM -r conftest*
11040    LDFLAGS="$save_LDFLAGS"
11041
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11044 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11045
11046 if test x"$lt_cv_prog_compiler__b" = xyes; then
11047     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11048 else
11049     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11050 fi
11051
11052           ;;
11053         esac
11054       fi
11055       if test "$with_gnu_ld" = no; then
11056         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11057         hardcode_libdir_separator=:
11058
11059         case $host_cpu in
11060         hppa*64*|ia64*)
11061           hardcode_direct=no
11062           hardcode_shlibpath_var=no
11063           ;;
11064         *)
11065           hardcode_direct=yes
11066           hardcode_direct_absolute=yes
11067           export_dynamic_flag_spec='${wl}-E'
11068
11069           # hardcode_minus_L: Not really in the search PATH,
11070           # but as the default location of the library.
11071           hardcode_minus_L=yes
11072           ;;
11073         esac
11074       fi
11075       ;;
11076
11077     irix5* | irix6* | nonstopux*)
11078       if test "$GCC" = yes; then
11079         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'
11080         # Try to use the -exported_symbol ld option, if it does not
11081         # work, assume that -exports_file does not work either and
11082         # implicitly export all symbols.
11083         # This should be the same for all languages, so no per-tag cache variable.
11084         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11085 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11086 if ${lt_cv_irix_exported_symbol+:} false; then :
11087   $as_echo_n "(cached) " >&6
11088 else
11089   save_LDFLAGS="$LDFLAGS"
11090            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11091            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h.  */
11093 int foo (void) { return 0; }
11094 _ACEOF
11095 if ac_fn_c_try_link "$LINENO"; then :
11096   lt_cv_irix_exported_symbol=yes
11097 else
11098   lt_cv_irix_exported_symbol=no
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext \
11101     conftest$ac_exeext conftest.$ac_ext
11102            LDFLAGS="$save_LDFLAGS"
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11105 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11106         if test "$lt_cv_irix_exported_symbol" = yes; then
11107           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'
11108         fi
11109       else
11110         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'
11111         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'
11112       fi
11113       archive_cmds_need_lc='no'
11114       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11115       hardcode_libdir_separator=:
11116       inherit_rpath=yes
11117       link_all_deplibs=yes
11118       ;;
11119
11120     netbsd*)
11121       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11122         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11123       else
11124         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11125       fi
11126       hardcode_libdir_flag_spec='-R$libdir'
11127       hardcode_direct=yes
11128       hardcode_shlibpath_var=no
11129       ;;
11130
11131     newsos6)
11132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133       hardcode_direct=yes
11134       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11135       hardcode_libdir_separator=:
11136       hardcode_shlibpath_var=no
11137       ;;
11138
11139     *nto* | *qnx*)
11140       ;;
11141
11142     openbsd*)
11143       if test -f /usr/libexec/ld.so; then
11144         hardcode_direct=yes
11145         hardcode_shlibpath_var=no
11146         hardcode_direct_absolute=yes
11147         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11149           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11150           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11151           export_dynamic_flag_spec='${wl}-E'
11152         else
11153           case $host_os in
11154            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11155              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11156              hardcode_libdir_flag_spec='-R$libdir'
11157              ;;
11158            *)
11159              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11160              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11161              ;;
11162           esac
11163         fi
11164       else
11165         ld_shlibs=no
11166       fi
11167       ;;
11168
11169     os2*)
11170       hardcode_libdir_flag_spec='-L$libdir'
11171       hardcode_minus_L=yes
11172       allow_undefined_flag=unsupported
11173       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'
11174       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11175       ;;
11176
11177     osf3*)
11178       if test "$GCC" = yes; then
11179         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11180         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'
11181       else
11182         allow_undefined_flag=' -expect_unresolved \*'
11183         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'
11184       fi
11185       archive_cmds_need_lc='no'
11186       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11187       hardcode_libdir_separator=:
11188       ;;
11189
11190     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11191       if test "$GCC" = yes; then
11192         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11193         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'
11194         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11195       else
11196         allow_undefined_flag=' -expect_unresolved \*'
11197         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'
11198         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~
11199         $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'
11200
11201         # Both c and cxx compiler support -rpath directly
11202         hardcode_libdir_flag_spec='-rpath $libdir'
11203       fi
11204       archive_cmds_need_lc='no'
11205       hardcode_libdir_separator=:
11206       ;;
11207
11208     solaris*)
11209       no_undefined_flag=' -z defs'
11210       if test "$GCC" = yes; then
11211         wlarc='${wl}'
11212         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11213         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11214           $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'
11215       else
11216         case `$CC -V 2>&1` in
11217         *"Compilers 5.0"*)
11218           wlarc=''
11219           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11220           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11221           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11222           ;;
11223         *)
11224           wlarc='${wl}'
11225           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11226           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11227           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11228           ;;
11229         esac
11230       fi
11231       hardcode_libdir_flag_spec='-R$libdir'
11232       hardcode_shlibpath_var=no
11233       case $host_os in
11234       solaris2.[0-5] | solaris2.[0-5].*) ;;
11235       *)
11236         # The compiler driver will combine and reorder linker options,
11237         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11238         # but is careful enough not to reorder.
11239         # Supported since Solaris 2.6 (maybe 2.5.1?)
11240         if test "$GCC" = yes; then
11241           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11242         else
11243           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11244         fi
11245         ;;
11246       esac
11247       link_all_deplibs=yes
11248       ;;
11249
11250     sunos4*)
11251       if test "x$host_vendor" = xsequent; then
11252         # Use $CC to link under sequent, because it throws in some extra .o
11253         # files that make .init and .fini sections work.
11254         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11255       else
11256         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11257       fi
11258       hardcode_libdir_flag_spec='-L$libdir'
11259       hardcode_direct=yes
11260       hardcode_minus_L=yes
11261       hardcode_shlibpath_var=no
11262       ;;
11263
11264     sysv4)
11265       case $host_vendor in
11266         sni)
11267           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11268           hardcode_direct=yes # is this really true???
11269         ;;
11270         siemens)
11271           ## LD is ld it makes a PLAMLIB
11272           ## CC just makes a GrossModule.
11273           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11274           reload_cmds='$CC -r -o $output$reload_objs'
11275           hardcode_direct=no
11276         ;;
11277         motorola)
11278           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11280         ;;
11281       esac
11282       runpath_var='LD_RUN_PATH'
11283       hardcode_shlibpath_var=no
11284       ;;
11285
11286     sysv4.3*)
11287       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288       hardcode_shlibpath_var=no
11289       export_dynamic_flag_spec='-Bexport'
11290       ;;
11291
11292     sysv4*MP*)
11293       if test -d /usr/nec; then
11294         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11295         hardcode_shlibpath_var=no
11296         runpath_var=LD_RUN_PATH
11297         hardcode_runpath_var=yes
11298         ld_shlibs=yes
11299       fi
11300       ;;
11301
11302     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11303       no_undefined_flag='${wl}-z,text'
11304       archive_cmds_need_lc=no
11305       hardcode_shlibpath_var=no
11306       runpath_var='LD_RUN_PATH'
11307
11308       if test "$GCC" = yes; then
11309         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311       else
11312         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314       fi
11315       ;;
11316
11317     sysv5* | sco3.2v5* | sco5v6*)
11318       # Note: We can NOT use -z defs as we might desire, because we do not
11319       # link with -lc, and that would cause any symbols used from libc to
11320       # always be unresolved, which means just about no library would
11321       # ever link correctly.  If we're not using GNU ld we use -z text
11322       # though, which does catch some bad symbols but isn't as heavy-handed
11323       # as -z defs.
11324       no_undefined_flag='${wl}-z,text'
11325       allow_undefined_flag='${wl}-z,nodefs'
11326       archive_cmds_need_lc=no
11327       hardcode_shlibpath_var=no
11328       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11329       hardcode_libdir_separator=':'
11330       link_all_deplibs=yes
11331       export_dynamic_flag_spec='${wl}-Bexport'
11332       runpath_var='LD_RUN_PATH'
11333
11334       if test "$GCC" = yes; then
11335         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11337       else
11338         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11340       fi
11341       ;;
11342
11343     uts4*)
11344       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345       hardcode_libdir_flag_spec='-L$libdir'
11346       hardcode_shlibpath_var=no
11347       ;;
11348
11349     *)
11350       ld_shlibs=no
11351       ;;
11352     esac
11353
11354     if test x$host_vendor = xsni; then
11355       case $host in
11356       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11357         export_dynamic_flag_spec='${wl}-Blargedynsym'
11358         ;;
11359       esac
11360     fi
11361   fi
11362
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11364 $as_echo "$ld_shlibs" >&6; }
11365 test "$ld_shlibs" = no && can_build_shared=no
11366
11367 with_gnu_ld=$with_gnu_ld
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383 #
11384 # Do we need to explicitly link libc?
11385 #
11386 case "x$archive_cmds_need_lc" in
11387 x|xyes)
11388   # Assume -lc should be added
11389   archive_cmds_need_lc=yes
11390
11391   if test "$enable_shared" = yes && test "$GCC" = yes; then
11392     case $archive_cmds in
11393     *'~'*)
11394       # FIXME: we may have to deal with multi-command sequences.
11395       ;;
11396     '$CC '*)
11397       # Test whether the compiler implicitly links with -lc since on some
11398       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11399       # to ld, don't add -lc before -lgcc.
11400       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11401 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11402 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11403   $as_echo_n "(cached) " >&6
11404 else
11405   $RM conftest*
11406         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11407
11408         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11409   (eval $ac_compile) 2>&5
11410   ac_status=$?
11411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412   test $ac_status = 0; } 2>conftest.err; then
11413           soname=conftest
11414           lib=conftest
11415           libobjs=conftest.$ac_objext
11416           deplibs=
11417           wl=$lt_prog_compiler_wl
11418           pic_flag=$lt_prog_compiler_pic
11419           compiler_flags=-v
11420           linker_flags=-v
11421           verstring=
11422           output_objdir=.
11423           libname=conftest
11424           lt_save_allow_undefined_flag=$allow_undefined_flag
11425           allow_undefined_flag=
11426           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11427   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11428   ac_status=$?
11429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430   test $ac_status = 0; }
11431           then
11432             lt_cv_archive_cmds_need_lc=no
11433           else
11434             lt_cv_archive_cmds_need_lc=yes
11435           fi
11436           allow_undefined_flag=$lt_save_allow_undefined_flag
11437         else
11438           cat conftest.err 1>&5
11439         fi
11440         $RM conftest*
11441
11442 fi
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11444 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11445       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11446       ;;
11447     esac
11448   fi
11449   ;;
11450 esac
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11609 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11610
11611 if test "$GCC" = yes; then
11612   case $host_os in
11613     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11614     *) lt_awk_arg="/^libraries:/" ;;
11615   esac
11616   case $host_os in
11617     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11618     *) lt_sed_strip_eq="s,=/,/,g" ;;
11619   esac
11620   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11621   case $lt_search_path_spec in
11622   *\;*)
11623     # if the path contains ";" then we assume it to be the separator
11624     # otherwise default to the standard path separator (i.e. ":") - it is
11625     # assumed that no part of a normal pathname contains ";" but that should
11626     # okay in the real world where ";" in dirpaths is itself problematic.
11627     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11628     ;;
11629   *)
11630     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11631     ;;
11632   esac
11633   # Ok, now we have the path, separated by spaces, we can step through it
11634   # and add multilib dir if necessary.
11635   lt_tmp_lt_search_path_spec=
11636   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11637   for lt_sys_path in $lt_search_path_spec; do
11638     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11639       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11640     else
11641       test -d "$lt_sys_path" && \
11642         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11643     fi
11644   done
11645   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11646 BEGIN {RS=" "; FS="/|\n";} {
11647   lt_foo="";
11648   lt_count=0;
11649   for (lt_i = NF; lt_i > 0; lt_i--) {
11650     if ($lt_i != "" && $lt_i != ".") {
11651       if ($lt_i == "..") {
11652         lt_count++;
11653       } else {
11654         if (lt_count == 0) {
11655           lt_foo="/" $lt_i lt_foo;
11656         } else {
11657           lt_count--;
11658         }
11659       }
11660     }
11661   }
11662   if (lt_foo != "") { lt_freq[lt_foo]++; }
11663   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11664 }'`
11665   # AWK program above erroneously prepends '/' to C:/dos/paths
11666   # for these hosts.
11667   case $host_os in
11668     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11669       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11670   esac
11671   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11672 else
11673   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11674 fi
11675 library_names_spec=
11676 libname_spec='lib$name'
11677 soname_spec=
11678 shrext_cmds=".so"
11679 postinstall_cmds=
11680 postuninstall_cmds=
11681 finish_cmds=
11682 finish_eval=
11683 shlibpath_var=
11684 shlibpath_overrides_runpath=unknown
11685 version_type=none
11686 dynamic_linker="$host_os ld.so"
11687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11688 need_lib_prefix=unknown
11689 hardcode_into_libs=no
11690
11691 # when you set need_version to no, make sure it does not cause -set_version
11692 # flags to be left without arguments
11693 need_version=unknown
11694
11695 case $host_os in
11696 aix3*)
11697   version_type=linux
11698   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11699   shlibpath_var=LIBPATH
11700
11701   # AIX 3 has no versioning support, so we append a major version to the name.
11702   soname_spec='${libname}${release}${shared_ext}$major'
11703   ;;
11704
11705 aix[4-9]*)
11706   version_type=linux
11707   need_lib_prefix=no
11708   need_version=no
11709   hardcode_into_libs=yes
11710   if test "$host_cpu" = ia64; then
11711     # AIX 5 supports IA64
11712     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11713     shlibpath_var=LD_LIBRARY_PATH
11714   else
11715     # With GCC up to 2.95.x, collect2 would create an import file
11716     # for dependence libraries.  The import file would start with
11717     # the line `#! .'.  This would cause the generated library to
11718     # depend on `.', always an invalid library.  This was fixed in
11719     # development snapshots of GCC prior to 3.0.
11720     case $host_os in
11721       aix4 | aix4.[01] | aix4.[01].*)
11722       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11723            echo ' yes '
11724            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11725         :
11726       else
11727         can_build_shared=no
11728       fi
11729       ;;
11730     esac
11731     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11732     # soname into executable. Probably we can add versioning support to
11733     # collect2, so additional links can be useful in future.
11734     if test "$aix_use_runtimelinking" = yes; then
11735       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11736       # instead of lib<name>.a to let people know that these are not
11737       # typical AIX shared libraries.
11738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739     else
11740       # We preserve .a as extension for shared libraries through AIX4.2
11741       # and later when we are not doing run time linking.
11742       library_names_spec='${libname}${release}.a $libname.a'
11743       soname_spec='${libname}${release}${shared_ext}$major'
11744     fi
11745     shlibpath_var=LIBPATH
11746   fi
11747   ;;
11748
11749 amigaos*)
11750   case $host_cpu in
11751   powerpc)
11752     # Since July 2007 AmigaOS4 officially supports .so libraries.
11753     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755     ;;
11756   m68k)
11757     library_names_spec='$libname.ixlibrary $libname.a'
11758     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11759     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'
11760     ;;
11761   esac
11762   ;;
11763
11764 beos*)
11765   library_names_spec='${libname}${shared_ext}'
11766   dynamic_linker="$host_os ld.so"
11767   shlibpath_var=LIBRARY_PATH
11768   ;;
11769
11770 bsdi[45]*)
11771   version_type=linux
11772   need_version=no
11773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774   soname_spec='${libname}${release}${shared_ext}$major'
11775   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11776   shlibpath_var=LD_LIBRARY_PATH
11777   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11778   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11779   # the default ld.so.conf also contains /usr/contrib/lib and
11780   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11781   # libtool to hard-code these into programs
11782   ;;
11783
11784 cygwin* | mingw* | pw32* | cegcc*)
11785   version_type=windows
11786   shrext_cmds=".dll"
11787   need_version=no
11788   need_lib_prefix=no
11789
11790   case $GCC,$cc_basename in
11791   yes,*)
11792     # gcc
11793     library_names_spec='$libname.dll.a'
11794     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11795     postinstall_cmds='base_file=`basename \${file}`~
11796       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11797       dldir=$destdir/`dirname \$dlpath`~
11798       test -d \$dldir || mkdir -p \$dldir~
11799       $install_prog $dir/$dlname \$dldir/$dlname~
11800       chmod a+x \$dldir/$dlname~
11801       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11802         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11803       fi'
11804     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11805       dlpath=$dir/\$dldll~
11806        $RM \$dlpath'
11807     shlibpath_overrides_runpath=yes
11808
11809     case $host_os in
11810     cygwin*)
11811       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11812       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11813
11814       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11815       ;;
11816     mingw* | cegcc*)
11817       # MinGW DLLs use traditional 'lib' prefix
11818       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11819       ;;
11820     pw32*)
11821       # pw32 DLLs use 'pw' prefix rather than 'lib'
11822       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11823       ;;
11824     esac
11825     dynamic_linker='Win32 ld.exe'
11826     ;;
11827
11828   *,cl*)
11829     # Native MSVC
11830     libname_spec='$name'
11831     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11832     library_names_spec='${libname}.dll.lib'
11833
11834     case $build_os in
11835     mingw*)
11836       sys_lib_search_path_spec=
11837       lt_save_ifs=$IFS
11838       IFS=';'
11839       for lt_path in $LIB
11840       do
11841         IFS=$lt_save_ifs
11842         # Let DOS variable expansion print the short 8.3 style file name.
11843         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11844         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11845       done
11846       IFS=$lt_save_ifs
11847       # Convert to MSYS style.
11848       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11849       ;;
11850     cygwin*)
11851       # Convert to unix form, then to dos form, then back to unix form
11852       # but this time dos style (no spaces!) so that the unix form looks
11853       # like /cygdrive/c/PROGRA~1:/cygdr...
11854       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11855       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11856       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11857       ;;
11858     *)
11859       sys_lib_search_path_spec="$LIB"
11860       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11861         # It is most probably a Windows format PATH.
11862         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11863       else
11864         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11865       fi
11866       # FIXME: find the short name or the path components, as spaces are
11867       # common. (e.g. "Program Files" -> "PROGRA~1")
11868       ;;
11869     esac
11870
11871     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11872     postinstall_cmds='base_file=`basename \${file}`~
11873       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11874       dldir=$destdir/`dirname \$dlpath`~
11875       test -d \$dldir || mkdir -p \$dldir~
11876       $install_prog $dir/$dlname \$dldir/$dlname'
11877     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11878       dlpath=$dir/\$dldll~
11879        $RM \$dlpath'
11880     shlibpath_overrides_runpath=yes
11881     dynamic_linker='Win32 link.exe'
11882     ;;
11883
11884   *)
11885     # Assume MSVC wrapper
11886     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11887     dynamic_linker='Win32 ld.exe'
11888     ;;
11889   esac
11890   # FIXME: first we should search . and the directory the executable is in
11891   shlibpath_var=PATH
11892   ;;
11893
11894 darwin* | rhapsody*)
11895   dynamic_linker="$host_os dyld"
11896   version_type=darwin
11897   need_lib_prefix=no
11898   need_version=no
11899   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11900   soname_spec='${libname}${release}${major}$shared_ext'
11901   shlibpath_overrides_runpath=yes
11902   shlibpath_var=DYLD_LIBRARY_PATH
11903   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11904
11905   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11906   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11907   ;;
11908
11909 dgux*)
11910   version_type=linux
11911   need_lib_prefix=no
11912   need_version=no
11913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11914   soname_spec='${libname}${release}${shared_ext}$major'
11915   shlibpath_var=LD_LIBRARY_PATH
11916   ;;
11917
11918 freebsd1*)
11919   dynamic_linker=no
11920   ;;
11921
11922 freebsd* | dragonfly*)
11923   # DragonFly does not have aout.  When/if they implement a new
11924   # versioning mechanism, adjust this.
11925   if test -x /usr/bin/objformat; then
11926     objformat=`/usr/bin/objformat`
11927   else
11928     case $host_os in
11929     freebsd[123]*) objformat=aout ;;
11930     *) objformat=elf ;;
11931     esac
11932   fi
11933   version_type=freebsd-$objformat
11934   case $version_type in
11935     freebsd-elf*)
11936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11937       need_version=no
11938       need_lib_prefix=no
11939       ;;
11940     freebsd-*)
11941       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11942       need_version=yes
11943       ;;
11944   esac
11945   shlibpath_var=LD_LIBRARY_PATH
11946   case $host_os in
11947   freebsd2*)
11948     shlibpath_overrides_runpath=yes
11949     ;;
11950   freebsd3.[01]* | freebsdelf3.[01]*)
11951     shlibpath_overrides_runpath=yes
11952     hardcode_into_libs=yes
11953     ;;
11954   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11955   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11956     shlibpath_overrides_runpath=no
11957     hardcode_into_libs=yes
11958     ;;
11959   *) # from 4.6 on, and DragonFly
11960     shlibpath_overrides_runpath=yes
11961     hardcode_into_libs=yes
11962     ;;
11963   esac
11964   ;;
11965
11966 gnu*)
11967   version_type=linux
11968   need_lib_prefix=no
11969   need_version=no
11970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11971   soname_spec='${libname}${release}${shared_ext}$major'
11972   shlibpath_var=LD_LIBRARY_PATH
11973   hardcode_into_libs=yes
11974   ;;
11975
11976 haiku*)
11977   version_type=linux
11978   need_lib_prefix=no
11979   need_version=no
11980   dynamic_linker="$host_os runtime_loader"
11981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11982   soname_spec='${libname}${release}${shared_ext}$major'
11983   shlibpath_var=LIBRARY_PATH
11984   shlibpath_overrides_runpath=yes
11985   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11986   hardcode_into_libs=yes
11987   ;;
11988
11989 hpux9* | hpux10* | hpux11*)
11990   # Give a soname corresponding to the major version so that dld.sl refuses to
11991   # link against other versions.
11992   version_type=sunos
11993   need_lib_prefix=no
11994   need_version=no
11995   case $host_cpu in
11996   ia64*)
11997     shrext_cmds='.so'
11998     hardcode_into_libs=yes
11999     dynamic_linker="$host_os dld.so"
12000     shlibpath_var=LD_LIBRARY_PATH
12001     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003     soname_spec='${libname}${release}${shared_ext}$major'
12004     if test "X$HPUX_IA64_MODE" = X32; then
12005       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12006     else
12007       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12008     fi
12009     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12010     ;;
12011   hppa*64*)
12012     shrext_cmds='.sl'
12013     hardcode_into_libs=yes
12014     dynamic_linker="$host_os dld.sl"
12015     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12016     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12018     soname_spec='${libname}${release}${shared_ext}$major'
12019     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12020     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12021     ;;
12022   *)
12023     shrext_cmds='.sl'
12024     dynamic_linker="$host_os dld.sl"
12025     shlibpath_var=SHLIB_PATH
12026     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028     soname_spec='${libname}${release}${shared_ext}$major'
12029     ;;
12030   esac
12031   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12032   postinstall_cmds='chmod 555 $lib'
12033   # or fails outright, so override atomically:
12034   install_override_mode=555
12035   ;;
12036
12037 interix[3-9]*)
12038   version_type=linux
12039   need_lib_prefix=no
12040   need_version=no
12041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12042   soname_spec='${libname}${release}${shared_ext}$major'
12043   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12044   shlibpath_var=LD_LIBRARY_PATH
12045   shlibpath_overrides_runpath=no
12046   hardcode_into_libs=yes
12047   ;;
12048
12049 irix5* | irix6* | nonstopux*)
12050   case $host_os in
12051     nonstopux*) version_type=nonstopux ;;
12052     *)
12053         if test "$lt_cv_prog_gnu_ld" = yes; then
12054                 version_type=linux
12055         else
12056                 version_type=irix
12057         fi ;;
12058   esac
12059   need_lib_prefix=no
12060   need_version=no
12061   soname_spec='${libname}${release}${shared_ext}$major'
12062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12063   case $host_os in
12064   irix5* | nonstopux*)
12065     libsuff= shlibsuff=
12066     ;;
12067   *)
12068     case $LD in # libtool.m4 will add one of these switches to LD
12069     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12070       libsuff= shlibsuff= libmagic=32-bit;;
12071     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12072       libsuff=32 shlibsuff=N32 libmagic=N32;;
12073     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12074       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12075     *) libsuff= shlibsuff= libmagic=never-match;;
12076     esac
12077     ;;
12078   esac
12079   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12080   shlibpath_overrides_runpath=no
12081   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12082   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12083   hardcode_into_libs=yes
12084   ;;
12085
12086 # No shared lib support for Linux oldld, aout, or coff.
12087 linux*oldld* | linux*aout* | linux*coff*)
12088   dynamic_linker=no
12089   ;;
12090
12091 # This must be Linux ELF.
12092 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12093   version_type=linux
12094   need_lib_prefix=no
12095   need_version=no
12096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097   soname_spec='${libname}${release}${shared_ext}$major'
12098   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12099   shlibpath_var=LD_LIBRARY_PATH
12100   shlibpath_overrides_runpath=no
12101
12102   # Some binutils ld are patched to set DT_RUNPATH
12103   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   lt_cv_shlibpath_overrides_runpath=no
12107     save_LDFLAGS=$LDFLAGS
12108     save_libdir=$libdir
12109     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12110          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12111     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h.  */
12113
12114 int
12115 main ()
12116 {
12117
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 if ac_fn_c_try_link "$LINENO"; then :
12123   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12124   lt_cv_shlibpath_overrides_runpath=yes
12125 fi
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext \
12128     conftest$ac_exeext conftest.$ac_ext
12129     LDFLAGS=$save_LDFLAGS
12130     libdir=$save_libdir
12131
12132 fi
12133
12134   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12135
12136   # This implies no fast_install, which is unacceptable.
12137   # Some rework will be needed to allow for fast_install
12138   # before this can be enabled.
12139   hardcode_into_libs=yes
12140
12141   # Append ld.so.conf contents to the search path
12142   if test -f /etc/ld.so.conf; then
12143     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' ' '`
12144     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12145   fi
12146
12147   # We used to test for /lib/ld.so.1 and disable shared libraries on
12148   # powerpc, because MkLinux only supported shared libraries with the
12149   # GNU dynamic linker.  Since this was broken with cross compilers,
12150   # most powerpc-linux boxes support dynamic linking these days and
12151   # people can always --disable-shared, the test was removed, and we
12152   # assume the GNU/Linux dynamic linker is in use.
12153   dynamic_linker='GNU/Linux ld.so'
12154   ;;
12155
12156 netbsd*)
12157   version_type=sunos
12158   need_lib_prefix=no
12159   need_version=no
12160   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12162     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12163     dynamic_linker='NetBSD (a.out) ld.so'
12164   else
12165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12166     soname_spec='${libname}${release}${shared_ext}$major'
12167     dynamic_linker='NetBSD ld.elf_so'
12168   fi
12169   shlibpath_var=LD_LIBRARY_PATH
12170   shlibpath_overrides_runpath=yes
12171   hardcode_into_libs=yes
12172   ;;
12173
12174 newsos6)
12175   version_type=linux
12176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12177   shlibpath_var=LD_LIBRARY_PATH
12178   shlibpath_overrides_runpath=yes
12179   ;;
12180
12181 *nto* | *qnx*)
12182   version_type=qnx
12183   need_lib_prefix=no
12184   need_version=no
12185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186   soname_spec='${libname}${release}${shared_ext}$major'
12187   shlibpath_var=LD_LIBRARY_PATH
12188   shlibpath_overrides_runpath=no
12189   hardcode_into_libs=yes
12190   dynamic_linker='ldqnx.so'
12191   ;;
12192
12193 openbsd*)
12194   version_type=sunos
12195   sys_lib_dlsearch_path_spec="/usr/lib"
12196   need_lib_prefix=no
12197   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12198   case $host_os in
12199     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12200     *)                          need_version=no  ;;
12201   esac
12202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12203   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12204   shlibpath_var=LD_LIBRARY_PATH
12205   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12206     case $host_os in
12207       openbsd2.[89] | openbsd2.[89].*)
12208         shlibpath_overrides_runpath=no
12209         ;;
12210       *)
12211         shlibpath_overrides_runpath=yes
12212         ;;
12213       esac
12214   else
12215     shlibpath_overrides_runpath=yes
12216   fi
12217   ;;
12218
12219 os2*)
12220   libname_spec='$name'
12221   shrext_cmds=".dll"
12222   need_lib_prefix=no
12223   library_names_spec='$libname${shared_ext} $libname.a'
12224   dynamic_linker='OS/2 ld.exe'
12225   shlibpath_var=LIBPATH
12226   ;;
12227
12228 osf3* | osf4* | osf5*)
12229   version_type=osf
12230   need_lib_prefix=no
12231   need_version=no
12232   soname_spec='${libname}${release}${shared_ext}$major'
12233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234   shlibpath_var=LD_LIBRARY_PATH
12235   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12236   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12237   ;;
12238
12239 rdos*)
12240   dynamic_linker=no
12241   ;;
12242
12243 solaris*)
12244   version_type=linux
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=yes
12251   hardcode_into_libs=yes
12252   # ldd complains unless libraries are executable
12253   postinstall_cmds='chmod +x $lib'
12254   ;;
12255
12256 sunos4*)
12257   version_type=sunos
12258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12259   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12260   shlibpath_var=LD_LIBRARY_PATH
12261   shlibpath_overrides_runpath=yes
12262   if test "$with_gnu_ld" = yes; then
12263     need_lib_prefix=no
12264   fi
12265   need_version=yes
12266   ;;
12267
12268 sysv4 | sysv4.3*)
12269   version_type=linux
12270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12271   soname_spec='${libname}${release}${shared_ext}$major'
12272   shlibpath_var=LD_LIBRARY_PATH
12273   case $host_vendor in
12274     sni)
12275       shlibpath_overrides_runpath=no
12276       need_lib_prefix=no
12277       runpath_var=LD_RUN_PATH
12278       ;;
12279     siemens)
12280       need_lib_prefix=no
12281       ;;
12282     motorola)
12283       need_lib_prefix=no
12284       need_version=no
12285       shlibpath_overrides_runpath=no
12286       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12287       ;;
12288   esac
12289   ;;
12290
12291 sysv4*MP*)
12292   if test -d /usr/nec ;then
12293     version_type=linux
12294     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12295     soname_spec='$libname${shared_ext}.$major'
12296     shlibpath_var=LD_LIBRARY_PATH
12297   fi
12298   ;;
12299
12300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12301   version_type=freebsd-elf
12302   need_lib_prefix=no
12303   need_version=no
12304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12305   soname_spec='${libname}${release}${shared_ext}$major'
12306   shlibpath_var=LD_LIBRARY_PATH
12307   shlibpath_overrides_runpath=yes
12308   hardcode_into_libs=yes
12309   if test "$with_gnu_ld" = yes; then
12310     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12311   else
12312     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12313     case $host_os in
12314       sco3.2v5*)
12315         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12316         ;;
12317     esac
12318   fi
12319   sys_lib_dlsearch_path_spec='/usr/lib'
12320   ;;
12321
12322 tpf*)
12323   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12324   version_type=linux
12325   need_lib_prefix=no
12326   need_version=no
12327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328   shlibpath_var=LD_LIBRARY_PATH
12329   shlibpath_overrides_runpath=no
12330   hardcode_into_libs=yes
12331   ;;
12332
12333 uts4*)
12334   version_type=linux
12335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12336   soname_spec='${libname}${release}${shared_ext}$major'
12337   shlibpath_var=LD_LIBRARY_PATH
12338   ;;
12339
12340 *)
12341   dynamic_linker=no
12342   ;;
12343 esac
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12345 $as_echo "$dynamic_linker" >&6; }
12346 test "$dynamic_linker" = no && can_build_shared=no
12347
12348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12349 if test "$GCC" = yes; then
12350   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12351 fi
12352
12353 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12354   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12355 fi
12356 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12357   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12358 fi
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12452 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12453 hardcode_action=
12454 if test -n "$hardcode_libdir_flag_spec" ||
12455    test -n "$runpath_var" ||
12456    test "X$hardcode_automatic" = "Xyes" ; then
12457
12458   # We can hardcode non-existent directories.
12459   if test "$hardcode_direct" != no &&
12460      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12461      # have to relink, otherwise we might link with an installed library
12462      # when we should be linking with a yet-to-be-installed one
12463      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12464      test "$hardcode_minus_L" != no; then
12465     # Linking always hardcodes the temporary library directory.
12466     hardcode_action=relink
12467   else
12468     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12469     hardcode_action=immediate
12470   fi
12471 else
12472   # We cannot hardcode anything, or else we can only hardcode existing
12473   # directories.
12474   hardcode_action=unsupported
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12477 $as_echo "$hardcode_action" >&6; }
12478
12479 if test "$hardcode_action" = relink ||
12480    test "$inherit_rpath" = yes; then
12481   # Fast installation is not supported
12482   enable_fast_install=no
12483 elif test "$shlibpath_overrides_runpath" = yes ||
12484      test "$enable_shared" = no; then
12485   # Fast installation is not necessary
12486   enable_fast_install=needless
12487 fi
12488
12489
12490
12491
12492
12493
12494   if test "x$enable_dlopen" != xyes; then
12495   enable_dlopen=unknown
12496   enable_dlopen_self=unknown
12497   enable_dlopen_self_static=unknown
12498 else
12499   lt_cv_dlopen=no
12500   lt_cv_dlopen_libs=
12501
12502   case $host_os in
12503   beos*)
12504     lt_cv_dlopen="load_add_on"
12505     lt_cv_dlopen_libs=
12506     lt_cv_dlopen_self=yes
12507     ;;
12508
12509   mingw* | pw32* | cegcc*)
12510     lt_cv_dlopen="LoadLibrary"
12511     lt_cv_dlopen_libs=
12512     ;;
12513
12514   cygwin*)
12515     lt_cv_dlopen="dlopen"
12516     lt_cv_dlopen_libs=
12517     ;;
12518
12519   darwin*)
12520   # if libdl is installed we need to link against it
12521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12522 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12523 if ${ac_cv_lib_dl_dlopen+:} false; then :
12524   $as_echo_n "(cached) " >&6
12525 else
12526   ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-ldl  $LIBS"
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h.  */
12530
12531 /* Override any GCC internal prototype to avoid an error.
12532    Use char because int might match the return type of a GCC
12533    builtin and then its argument prototype would still apply.  */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char dlopen ();
12538 int
12539 main ()
12540 {
12541 return dlopen ();
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 if ac_fn_c_try_link "$LINENO"; then :
12547   ac_cv_lib_dl_dlopen=yes
12548 else
12549   ac_cv_lib_dl_dlopen=no
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext \
12552     conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12554 fi
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12556 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12557 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12558   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12559 else
12560
12561     lt_cv_dlopen="dyld"
12562     lt_cv_dlopen_libs=
12563     lt_cv_dlopen_self=yes
12564
12565 fi
12566
12567     ;;
12568
12569   *)
12570     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12571 if test "x$ac_cv_func_shl_load" = xyes; then :
12572   lt_cv_dlopen="shl_load"
12573 else
12574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12575 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12576 if ${ac_cv_lib_dld_shl_load+:} false; then :
12577   $as_echo_n "(cached) " >&6
12578 else
12579   ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-ldld  $LIBS"
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h.  */
12583
12584 /* Override any GCC internal prototype to avoid an error.
12585    Use char because int might match the return type of a GCC
12586    builtin and then its argument prototype would still apply.  */
12587 #ifdef __cplusplus
12588 extern "C"
12589 #endif
12590 char shl_load ();
12591 int
12592 main ()
12593 {
12594 return shl_load ();
12595   ;
12596   return 0;
12597 }
12598 _ACEOF
12599 if ac_fn_c_try_link "$LINENO"; then :
12600   ac_cv_lib_dld_shl_load=yes
12601 else
12602   ac_cv_lib_dld_shl_load=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext \
12605     conftest$ac_exeext conftest.$ac_ext
12606 LIBS=$ac_check_lib_save_LIBS
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12609 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12610 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12611   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12612 else
12613   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12614 if test "x$ac_cv_func_dlopen" = xyes; then :
12615   lt_cv_dlopen="dlopen"
12616 else
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12619 if ${ac_cv_lib_dl_dlopen+:} false; then :
12620   $as_echo_n "(cached) " >&6
12621 else
12622   ac_check_lib_save_LIBS=$LIBS
12623 LIBS="-ldl  $LIBS"
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h.  */
12626
12627 /* Override any GCC internal prototype to avoid an error.
12628    Use char because int might match the return type of a GCC
12629    builtin and then its argument prototype would still apply.  */
12630 #ifdef __cplusplus
12631 extern "C"
12632 #endif
12633 char dlopen ();
12634 int
12635 main ()
12636 {
12637 return dlopen ();
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643   ac_cv_lib_dl_dlopen=yes
12644 else
12645   ac_cv_lib_dl_dlopen=no
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext \
12648     conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12652 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12653 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12654   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12655 else
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12657 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12658 if ${ac_cv_lib_svld_dlopen+:} false; then :
12659   $as_echo_n "(cached) " >&6
12660 else
12661   ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lsvld  $LIBS"
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h.  */
12665
12666 /* Override any GCC internal prototype to avoid an error.
12667    Use char because int might match the return type of a GCC
12668    builtin and then its argument prototype would still apply.  */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 char dlopen ();
12673 int
12674 main ()
12675 {
12676 return dlopen ();
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 if ac_fn_c_try_link "$LINENO"; then :
12682   ac_cv_lib_svld_dlopen=yes
12683 else
12684   ac_cv_lib_svld_dlopen=no
12685 fi
12686 rm -f core conftest.err conftest.$ac_objext \
12687     conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12689 fi
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12691 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12692 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12693   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12694 else
12695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12696 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12697 if ${ac_cv_lib_dld_dld_link+:} false; then :
12698   $as_echo_n "(cached) " >&6
12699 else
12700   ac_check_lib_save_LIBS=$LIBS
12701 LIBS="-ldld  $LIBS"
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h.  */
12704
12705 /* Override any GCC internal prototype to avoid an error.
12706    Use char because int might match the return type of a GCC
12707    builtin and then its argument prototype would still apply.  */
12708 #ifdef __cplusplus
12709 extern "C"
12710 #endif
12711 char dld_link ();
12712 int
12713 main ()
12714 {
12715 return dld_link ();
12716   ;
12717   return 0;
12718 }
12719 _ACEOF
12720 if ac_fn_c_try_link "$LINENO"; then :
12721   ac_cv_lib_dld_dld_link=yes
12722 else
12723   ac_cv_lib_dld_dld_link=no
12724 fi
12725 rm -f core conftest.err conftest.$ac_objext \
12726     conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12730 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12731 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12732   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12733 fi
12734
12735
12736 fi
12737
12738
12739 fi
12740
12741
12742 fi
12743
12744
12745 fi
12746
12747
12748 fi
12749
12750     ;;
12751   esac
12752
12753   if test "x$lt_cv_dlopen" != xno; then
12754     enable_dlopen=yes
12755   else
12756     enable_dlopen=no
12757   fi
12758
12759   case $lt_cv_dlopen in
12760   dlopen)
12761     save_CPPFLAGS="$CPPFLAGS"
12762     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12763
12764     save_LDFLAGS="$LDFLAGS"
12765     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12766
12767     save_LIBS="$LIBS"
12768     LIBS="$lt_cv_dlopen_libs $LIBS"
12769
12770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12771 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12772 if ${lt_cv_dlopen_self+:} false; then :
12773   $as_echo_n "(cached) " >&6
12774 else
12775           if test "$cross_compiling" = yes; then :
12776   lt_cv_dlopen_self=cross
12777 else
12778   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12779   lt_status=$lt_dlunknown
12780   cat > conftest.$ac_ext <<_LT_EOF
12781 #line $LINENO "configure"
12782 #include "confdefs.h"
12783
12784 #if HAVE_DLFCN_H
12785 #include <dlfcn.h>
12786 #endif
12787
12788 #include <stdio.h>
12789
12790 #ifdef RTLD_GLOBAL
12791 #  define LT_DLGLOBAL           RTLD_GLOBAL
12792 #else
12793 #  ifdef DL_GLOBAL
12794 #    define LT_DLGLOBAL         DL_GLOBAL
12795 #  else
12796 #    define LT_DLGLOBAL         0
12797 #  endif
12798 #endif
12799
12800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12801    find out it does not work in some platform. */
12802 #ifndef LT_DLLAZY_OR_NOW
12803 #  ifdef RTLD_LAZY
12804 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12805 #  else
12806 #    ifdef DL_LAZY
12807 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12808 #    else
12809 #      ifdef RTLD_NOW
12810 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12811 #      else
12812 #        ifdef DL_NOW
12813 #          define LT_DLLAZY_OR_NOW      DL_NOW
12814 #        else
12815 #          define LT_DLLAZY_OR_NOW      0
12816 #        endif
12817 #      endif
12818 #    endif
12819 #  endif
12820 #endif
12821
12822 /* When -fvisbility=hidden is used, assume the code has been annotated
12823    correspondingly for the symbols needed.  */
12824 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12825 int fnord () __attribute__((visibility("default")));
12826 #endif
12827
12828 int fnord () { return 42; }
12829 int main ()
12830 {
12831   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12832   int status = $lt_dlunknown;
12833
12834   if (self)
12835     {
12836       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12837       else
12838         {
12839           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12840           else puts (dlerror ());
12841         }
12842       /* dlclose (self); */
12843     }
12844   else
12845     puts (dlerror ());
12846
12847   return status;
12848 }
12849 _LT_EOF
12850   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12851   (eval $ac_link) 2>&5
12852   ac_status=$?
12853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12854   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12855     (./conftest; exit; ) >&5 2>/dev/null
12856     lt_status=$?
12857     case x$lt_status in
12858       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12859       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12860       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12861     esac
12862   else :
12863     # compilation failed
12864     lt_cv_dlopen_self=no
12865   fi
12866 fi
12867 rm -fr conftest*
12868
12869
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12872 $as_echo "$lt_cv_dlopen_self" >&6; }
12873
12874     if test "x$lt_cv_dlopen_self" = xyes; then
12875       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12876       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12877 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12878 if ${lt_cv_dlopen_self_static+:} false; then :
12879   $as_echo_n "(cached) " >&6
12880 else
12881           if test "$cross_compiling" = yes; then :
12882   lt_cv_dlopen_self_static=cross
12883 else
12884   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12885   lt_status=$lt_dlunknown
12886   cat > conftest.$ac_ext <<_LT_EOF
12887 #line $LINENO "configure"
12888 #include "confdefs.h"
12889
12890 #if HAVE_DLFCN_H
12891 #include <dlfcn.h>
12892 #endif
12893
12894 #include <stdio.h>
12895
12896 #ifdef RTLD_GLOBAL
12897 #  define LT_DLGLOBAL           RTLD_GLOBAL
12898 #else
12899 #  ifdef DL_GLOBAL
12900 #    define LT_DLGLOBAL         DL_GLOBAL
12901 #  else
12902 #    define LT_DLGLOBAL         0
12903 #  endif
12904 #endif
12905
12906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12907    find out it does not work in some platform. */
12908 #ifndef LT_DLLAZY_OR_NOW
12909 #  ifdef RTLD_LAZY
12910 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12911 #  else
12912 #    ifdef DL_LAZY
12913 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12914 #    else
12915 #      ifdef RTLD_NOW
12916 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12917 #      else
12918 #        ifdef DL_NOW
12919 #          define LT_DLLAZY_OR_NOW      DL_NOW
12920 #        else
12921 #          define LT_DLLAZY_OR_NOW      0
12922 #        endif
12923 #      endif
12924 #    endif
12925 #  endif
12926 #endif
12927
12928 /* When -fvisbility=hidden is used, assume the code has been annotated
12929    correspondingly for the symbols needed.  */
12930 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12931 int fnord () __attribute__((visibility("default")));
12932 #endif
12933
12934 int fnord () { return 42; }
12935 int main ()
12936 {
12937   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938   int status = $lt_dlunknown;
12939
12940   if (self)
12941     {
12942       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12943       else
12944         {
12945           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12946           else puts (dlerror ());
12947         }
12948       /* dlclose (self); */
12949     }
12950   else
12951     puts (dlerror ());
12952
12953   return status;
12954 }
12955 _LT_EOF
12956   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12957   (eval $ac_link) 2>&5
12958   ac_status=$?
12959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12960   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12961     (./conftest; exit; ) >&5 2>/dev/null
12962     lt_status=$?
12963     case x$lt_status in
12964       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12965       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12966       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12967     esac
12968   else :
12969     # compilation failed
12970     lt_cv_dlopen_self_static=no
12971   fi
12972 fi
12973 rm -fr conftest*
12974
12975
12976 fi
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12978 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12979     fi
12980
12981     CPPFLAGS="$save_CPPFLAGS"
12982     LDFLAGS="$save_LDFLAGS"
12983     LIBS="$save_LIBS"
12984     ;;
12985   esac
12986
12987   case $lt_cv_dlopen_self in
12988   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12989   *) enable_dlopen_self=unknown ;;
12990   esac
12991
12992   case $lt_cv_dlopen_self_static in
12993   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12994   *) enable_dlopen_self_static=unknown ;;
12995   esac
12996 fi
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014 striplib=
13015 old_striplib=
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13017 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13018 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13019   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13020   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13022 $as_echo "yes" >&6; }
13023 else
13024 # FIXME - insert some real tests, host_os isn't really good enough
13025   case $host_os in
13026   darwin*)
13027     if test -n "$STRIP" ; then
13028       striplib="$STRIP -x"
13029       old_striplib="$STRIP -S"
13030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13032     else
13033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13035     fi
13036     ;;
13037   *)
13038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040     ;;
13041   esac
13042 fi
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055   # Report which library types will actually be built
13056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13057 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13059 $as_echo "$can_build_shared" >&6; }
13060
13061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13062 $as_echo_n "checking whether to build shared libraries... " >&6; }
13063   test "$can_build_shared" = "no" && enable_shared=no
13064
13065   # On AIX, shared libraries and static libraries use the same namespace, and
13066   # are all built from PIC.
13067   case $host_os in
13068   aix3*)
13069     test "$enable_shared" = yes && enable_static=no
13070     if test -n "$RANLIB"; then
13071       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13072       postinstall_cmds='$RANLIB $lib'
13073     fi
13074     ;;
13075
13076   aix[4-9]*)
13077     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13078       test "$enable_shared" = yes && enable_static=no
13079     fi
13080     ;;
13081   esac
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13083 $as_echo "$enable_shared" >&6; }
13084
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13086 $as_echo_n "checking whether to build static libraries... " >&6; }
13087   # Make sure either enable_shared or enable_static is yes.
13088   test "$enable_shared" = yes || enable_static=yes
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13090 $as_echo "$enable_static" >&6; }
13091
13092
13093
13094
13095 fi
13096 ac_ext=c
13097 ac_cpp='$CPP $CPPFLAGS'
13098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13101
13102 CC="$lt_save_CC"
13103
13104       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13105     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13106     (test "X$CXX" != "Xg++"))) ; then
13107   ac_ext=cpp
13108 ac_cpp='$CXXCPP $CPPFLAGS'
13109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13113 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13114 if test -z "$CXXCPP"; then
13115   if ${ac_cv_prog_CXXCPP+:} false; then :
13116   $as_echo_n "(cached) " >&6
13117 else
13118       # Double quotes because CXXCPP needs to be expanded
13119     for CXXCPP in "$CXX -E" "/lib/cpp"
13120     do
13121       ac_preproc_ok=false
13122 for ac_cxx_preproc_warn_flag in '' yes
13123 do
13124   # Use a header file that comes with gcc, so configuring glibc
13125   # with a fresh cross-compiler works.
13126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13127   # <limits.h> exists even on freestanding compilers.
13128   # On the NeXT, cc -E runs the code through the compiler's parser,
13129   # not just through cpp. "Syntax error" is here to catch this case.
13130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h.  */
13132 #ifdef __STDC__
13133 # include <limits.h>
13134 #else
13135 # include <assert.h>
13136 #endif
13137                      Syntax error
13138 _ACEOF
13139 if ac_fn_cxx_try_cpp "$LINENO"; then :
13140
13141 else
13142   # Broken: fails on valid input.
13143 continue
13144 fi
13145 rm -f conftest.err conftest.i conftest.$ac_ext
13146
13147   # OK, works on sane cases.  Now check whether nonexistent headers
13148   # can be detected and how.
13149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h.  */
13151 #include <ac_nonexistent.h>
13152 _ACEOF
13153 if ac_fn_cxx_try_cpp "$LINENO"; then :
13154   # Broken: success on invalid input.
13155 continue
13156 else
13157   # Passes both tests.
13158 ac_preproc_ok=:
13159 break
13160 fi
13161 rm -f conftest.err conftest.i conftest.$ac_ext
13162
13163 done
13164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13165 rm -f conftest.i conftest.err conftest.$ac_ext
13166 if $ac_preproc_ok; then :
13167   break
13168 fi
13169
13170     done
13171     ac_cv_prog_CXXCPP=$CXXCPP
13172
13173 fi
13174   CXXCPP=$ac_cv_prog_CXXCPP
13175 else
13176   ac_cv_prog_CXXCPP=$CXXCPP
13177 fi
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13179 $as_echo "$CXXCPP" >&6; }
13180 ac_preproc_ok=false
13181 for ac_cxx_preproc_warn_flag in '' yes
13182 do
13183   # Use a header file that comes with gcc, so configuring glibc
13184   # with a fresh cross-compiler works.
13185   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13186   # <limits.h> exists even on freestanding compilers.
13187   # On the NeXT, cc -E runs the code through the compiler's parser,
13188   # not just through cpp. "Syntax error" is here to catch this case.
13189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h.  */
13191 #ifdef __STDC__
13192 # include <limits.h>
13193 #else
13194 # include <assert.h>
13195 #endif
13196                      Syntax error
13197 _ACEOF
13198 if ac_fn_cxx_try_cpp "$LINENO"; then :
13199
13200 else
13201   # Broken: fails on valid input.
13202 continue
13203 fi
13204 rm -f conftest.err conftest.i conftest.$ac_ext
13205
13206   # OK, works on sane cases.  Now check whether nonexistent headers
13207   # can be detected and how.
13208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h.  */
13210 #include <ac_nonexistent.h>
13211 _ACEOF
13212 if ac_fn_cxx_try_cpp "$LINENO"; then :
13213   # Broken: success on invalid input.
13214 continue
13215 else
13216   # Passes both tests.
13217 ac_preproc_ok=:
13218 break
13219 fi
13220 rm -f conftest.err conftest.i conftest.$ac_ext
13221
13222 done
13223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13224 rm -f conftest.i conftest.err conftest.$ac_ext
13225 if $ac_preproc_ok; then :
13226
13227 else
13228   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13230 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13231 See \`config.log' for more details" "$LINENO" 5; }
13232 fi
13233
13234 ac_ext=c
13235 ac_cpp='$CPP $CPPFLAGS'
13236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13239
13240 else
13241   _lt_caught_CXX_error=yes
13242 fi
13243
13244 ac_ext=cpp
13245 ac_cpp='$CXXCPP $CPPFLAGS'
13246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13249
13250 archive_cmds_need_lc_CXX=no
13251 allow_undefined_flag_CXX=
13252 always_export_symbols_CXX=no
13253 archive_expsym_cmds_CXX=
13254 compiler_needs_object_CXX=no
13255 export_dynamic_flag_spec_CXX=
13256 hardcode_direct_CXX=no
13257 hardcode_direct_absolute_CXX=no
13258 hardcode_libdir_flag_spec_CXX=
13259 hardcode_libdir_flag_spec_ld_CXX=
13260 hardcode_libdir_separator_CXX=
13261 hardcode_minus_L_CXX=no
13262 hardcode_shlibpath_var_CXX=unsupported
13263 hardcode_automatic_CXX=no
13264 inherit_rpath_CXX=no
13265 module_cmds_CXX=
13266 module_expsym_cmds_CXX=
13267 link_all_deplibs_CXX=unknown
13268 old_archive_cmds_CXX=$old_archive_cmds
13269 reload_flag_CXX=$reload_flag
13270 reload_cmds_CXX=$reload_cmds
13271 no_undefined_flag_CXX=
13272 whole_archive_flag_spec_CXX=
13273 enable_shared_with_static_runtimes_CXX=no
13274
13275 # Source file extension for C++ test sources.
13276 ac_ext=cpp
13277
13278 # Object file extension for compiled C++ test sources.
13279 objext=o
13280 objext_CXX=$objext
13281
13282 # No sense in running all these tests if we already determined that
13283 # the CXX compiler isn't working.  Some variables (like enable_shared)
13284 # are currently assumed to apply to all compilers on this platform,
13285 # and will be corrupted by setting them based on a non-working compiler.
13286 if test "$_lt_caught_CXX_error" != yes; then
13287   # Code to be used in simple compile tests
13288   lt_simple_compile_test_code="int some_variable = 0;"
13289
13290   # Code to be used in simple link tests
13291   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13292
13293   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13294
13295
13296
13297
13298
13299
13300 # If no C compiler was specified, use CC.
13301 LTCC=${LTCC-"$CC"}
13302
13303 # If no C compiler flags were specified, use CFLAGS.
13304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13305
13306 # Allow CC to be a program name with arguments.
13307 compiler=$CC
13308
13309
13310   # save warnings/boilerplate of simple test code
13311   ac_outfile=conftest.$ac_objext
13312 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13314 _lt_compiler_boilerplate=`cat conftest.err`
13315 $RM conftest*
13316
13317   ac_outfile=conftest.$ac_objext
13318 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13320 _lt_linker_boilerplate=`cat conftest.err`
13321 $RM -r conftest*
13322
13323
13324   # Allow CC to be a program name with arguments.
13325   lt_save_CC=$CC
13326   lt_save_CFLAGS=$CFLAGS
13327   lt_save_LD=$LD
13328   lt_save_GCC=$GCC
13329   GCC=$GXX
13330   lt_save_with_gnu_ld=$with_gnu_ld
13331   lt_save_path_LD=$lt_cv_path_LD
13332   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13333     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13334   else
13335     $as_unset lt_cv_prog_gnu_ld
13336   fi
13337   if test -n "${lt_cv_path_LDCXX+set}"; then
13338     lt_cv_path_LD=$lt_cv_path_LDCXX
13339   else
13340     $as_unset lt_cv_path_LD
13341   fi
13342   test -z "${LDCXX+set}" || LD=$LDCXX
13343   CC=${CXX-"c++"}
13344   CFLAGS=$CXXFLAGS
13345   compiler=$CC
13346   compiler_CXX=$CC
13347   for cc_temp in $compiler""; do
13348   case $cc_temp in
13349     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13350     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13351     \-*) ;;
13352     *) break;;
13353   esac
13354 done
13355 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13356
13357
13358   if test -n "$compiler"; then
13359     # We don't want -fno-exception when compiling C++ code, so set the
13360     # no_builtin_flag separately
13361     if test "$GXX" = yes; then
13362       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13363     else
13364       lt_prog_compiler_no_builtin_flag_CXX=
13365     fi
13366
13367     if test "$GXX" = yes; then
13368       # Set up default GNU C++ configuration
13369
13370
13371
13372 # Check whether --with-gnu-ld was given.
13373 if test "${with_gnu_ld+set}" = set; then :
13374   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13375 else
13376   with_gnu_ld=no
13377 fi
13378
13379 ac_prog=ld
13380 if test "$GCC" = yes; then
13381   # Check if gcc -print-prog-name=ld gives a path.
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13383 $as_echo_n "checking for ld used by $CC... " >&6; }
13384   case $host in
13385   *-*-mingw*)
13386     # gcc leaves a trailing carriage return which upsets mingw
13387     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13388   *)
13389     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13390   esac
13391   case $ac_prog in
13392     # Accept absolute paths.
13393     [\\/]* | ?:[\\/]*)
13394       re_direlt='/[^/][^/]*/\.\./'
13395       # Canonicalize the pathname of ld
13396       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13397       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13398         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13399       done
13400       test -z "$LD" && LD="$ac_prog"
13401       ;;
13402   "")
13403     # If it fails, then pretend we aren't using GCC.
13404     ac_prog=ld
13405     ;;
13406   *)
13407     # If it is relative, then search for the first ld in PATH.
13408     with_gnu_ld=unknown
13409     ;;
13410   esac
13411 elif test "$with_gnu_ld" = yes; then
13412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13413 $as_echo_n "checking for GNU ld... " >&6; }
13414 else
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13416 $as_echo_n "checking for non-GNU ld... " >&6; }
13417 fi
13418 if ${lt_cv_path_LD+:} false; then :
13419   $as_echo_n "(cached) " >&6
13420 else
13421   if test -z "$LD"; then
13422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13423   for ac_dir in $PATH; do
13424     IFS="$lt_save_ifs"
13425     test -z "$ac_dir" && ac_dir=.
13426     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13427       lt_cv_path_LD="$ac_dir/$ac_prog"
13428       # Check to see if the program is GNU ld.  I'd rather use --version,
13429       # but apparently some variants of GNU ld only accept -v.
13430       # Break only if it was the GNU/non-GNU ld that we prefer.
13431       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13432       *GNU* | *'with BFD'*)
13433         test "$with_gnu_ld" != no && break
13434         ;;
13435       *)
13436         test "$with_gnu_ld" != yes && break
13437         ;;
13438       esac
13439     fi
13440   done
13441   IFS="$lt_save_ifs"
13442 else
13443   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13444 fi
13445 fi
13446
13447 LD="$lt_cv_path_LD"
13448 if test -n "$LD"; then
13449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13450 $as_echo "$LD" >&6; }
13451 else
13452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13454 fi
13455 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13458 if ${lt_cv_prog_gnu_ld+:} false; then :
13459   $as_echo_n "(cached) " >&6
13460 else
13461   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13462 case `$LD -v 2>&1 </dev/null` in
13463 *GNU* | *'with BFD'*)
13464   lt_cv_prog_gnu_ld=yes
13465   ;;
13466 *)
13467   lt_cv_prog_gnu_ld=no
13468   ;;
13469 esac
13470 fi
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13473 with_gnu_ld=$lt_cv_prog_gnu_ld
13474
13475
13476
13477
13478
13479
13480
13481       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13482       # archiving commands below assume that GNU ld is being used.
13483       if test "$with_gnu_ld" = yes; then
13484         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13485         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'
13486
13487         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13488         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13489
13490         # If archive_cmds runs LD, not CC, wlarc should be empty
13491         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13492         #     investigate it a little bit more. (MM)
13493         wlarc='${wl}'
13494
13495         # ancient GNU ld didn't support --whole-archive et. al.
13496         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13497           $GREP 'no-whole-archive' > /dev/null; then
13498           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13499         else
13500           whole_archive_flag_spec_CXX=
13501         fi
13502       else
13503         with_gnu_ld=no
13504         wlarc=
13505
13506         # A generic and very simple default shared library creation
13507         # command for GNU C++ for the case where it uses the native
13508         # linker, instead of GNU ld.  If possible, this setting should
13509         # overridden to take advantage of the native linker features on
13510         # the platform it is being used on.
13511         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13512       fi
13513
13514       # Commands to make compiler produce verbose output that lists
13515       # what "hidden" libraries, object files and flags are used when
13516       # linking a shared library.
13517       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13518
13519     else
13520       GXX=no
13521       with_gnu_ld=no
13522       wlarc=
13523     fi
13524
13525     # PORTME: fill in a description of your system's C++ link characteristics
13526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13527 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13528     ld_shlibs_CXX=yes
13529     case $host_os in
13530       aix3*)
13531         # FIXME: insert proper C++ library support
13532         ld_shlibs_CXX=no
13533         ;;
13534       aix[4-9]*)
13535         if test "$host_cpu" = ia64; then
13536           # On IA64, the linker does run time linking by default, so we don't
13537           # have to do anything special.
13538           aix_use_runtimelinking=no
13539           exp_sym_flag='-Bexport'
13540           no_entry_flag=""
13541         else
13542           aix_use_runtimelinking=no
13543
13544           # Test if we are trying to use run time linking or normal
13545           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13546           # need to do runtime linking.
13547           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13548             for ld_flag in $LDFLAGS; do
13549               case $ld_flag in
13550               *-brtl*)
13551                 aix_use_runtimelinking=yes
13552                 break
13553                 ;;
13554               esac
13555             done
13556             ;;
13557           esac
13558
13559           exp_sym_flag='-bexport'
13560           no_entry_flag='-bnoentry'
13561         fi
13562
13563         # When large executables or shared objects are built, AIX ld can
13564         # have problems creating the table of contents.  If linking a library
13565         # or program results in "error TOC overflow" add -mminimal-toc to
13566         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13567         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13568
13569         archive_cmds_CXX=''
13570         hardcode_direct_CXX=yes
13571         hardcode_direct_absolute_CXX=yes
13572         hardcode_libdir_separator_CXX=':'
13573         link_all_deplibs_CXX=yes
13574         file_list_spec_CXX='${wl}-f,'
13575
13576         if test "$GXX" = yes; then
13577           case $host_os in aix4.[012]|aix4.[012].*)
13578           # We only want to do this on AIX 4.2 and lower, the check
13579           # below for broken collect2 doesn't work under 4.3+
13580           collect2name=`${CC} -print-prog-name=collect2`
13581           if test -f "$collect2name" &&
13582              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13583           then
13584             # We have reworked collect2
13585             :
13586           else
13587             # We have old collect2
13588             hardcode_direct_CXX=unsupported
13589             # It fails to find uninstalled libraries when the uninstalled
13590             # path is not listed in the libpath.  Setting hardcode_minus_L
13591             # to unsupported forces relinking
13592             hardcode_minus_L_CXX=yes
13593             hardcode_libdir_flag_spec_CXX='-L$libdir'
13594             hardcode_libdir_separator_CXX=
13595           fi
13596           esac
13597           shared_flag='-shared'
13598           if test "$aix_use_runtimelinking" = yes; then
13599             shared_flag="$shared_flag "'${wl}-G'
13600           fi
13601         else
13602           # not using gcc
13603           if test "$host_cpu" = ia64; then
13604           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13605           # chokes on -Wl,-G. The following line is correct:
13606           shared_flag='-G'
13607           else
13608             if test "$aix_use_runtimelinking" = yes; then
13609               shared_flag='${wl}-G'
13610             else
13611               shared_flag='${wl}-bM:SRE'
13612             fi
13613           fi
13614         fi
13615
13616         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13617         # It seems that -bexpall does not export symbols beginning with
13618         # underscore (_), so it is better to generate a list of symbols to
13619         # export.
13620         always_export_symbols_CXX=yes
13621         if test "$aix_use_runtimelinking" = yes; then
13622           # Warning - without using the other runtime loading flags (-brtl),
13623           # -berok will link without error, but may produce a broken library.
13624           allow_undefined_flag_CXX='-berok'
13625           # Determine the default libpath from the value encoded in an empty
13626           # executable.
13627           if test "${lt_cv_aix_libpath+set}" = set; then
13628   aix_libpath=$lt_cv_aix_libpath
13629 else
13630   if ${lt_cv_aix_libpath__CXX+:} false; then :
13631   $as_echo_n "(cached) " >&6
13632 else
13633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h.  */
13635
13636 int
13637 main ()
13638 {
13639
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 if ac_fn_cxx_try_link "$LINENO"; then :
13645
13646   lt_aix_libpath_sed='
13647       /Import File Strings/,/^$/ {
13648           /^0/ {
13649               s/^0  *\([^ ]*\) *$/\1/
13650               p
13651           }
13652       }'
13653   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13654   # Check for a 64-bit object if we didn't find anything.
13655   if test -z "$lt_cv_aix_libpath__CXX"; then
13656     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13657   fi
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext \
13660     conftest$ac_exeext conftest.$ac_ext
13661   if test -z "$lt_cv_aix_libpath__CXX"; then
13662     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13663   fi
13664
13665 fi
13666
13667   aix_libpath=$lt_cv_aix_libpath__CXX
13668 fi
13669
13670           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13671
13672           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"
13673         else
13674           if test "$host_cpu" = ia64; then
13675             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13676             allow_undefined_flag_CXX="-z nodefs"
13677             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"
13678           else
13679             # Determine the default libpath from the value encoded in an
13680             # empty executable.
13681             if test "${lt_cv_aix_libpath+set}" = set; then
13682   aix_libpath=$lt_cv_aix_libpath
13683 else
13684   if ${lt_cv_aix_libpath__CXX+:} false; then :
13685   $as_echo_n "(cached) " >&6
13686 else
13687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h.  */
13689
13690 int
13691 main ()
13692 {
13693
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 if ac_fn_cxx_try_link "$LINENO"; then :
13699
13700   lt_aix_libpath_sed='
13701       /Import File Strings/,/^$/ {
13702           /^0/ {
13703               s/^0  *\([^ ]*\) *$/\1/
13704               p
13705           }
13706       }'
13707   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13708   # Check for a 64-bit object if we didn't find anything.
13709   if test -z "$lt_cv_aix_libpath__CXX"; then
13710     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711   fi
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext \
13714     conftest$ac_exeext conftest.$ac_ext
13715   if test -z "$lt_cv_aix_libpath__CXX"; then
13716     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13717   fi
13718
13719 fi
13720
13721   aix_libpath=$lt_cv_aix_libpath__CXX
13722 fi
13723
13724             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13725             # Warning - without using the other run time loading flags,
13726             # -berok will link without error, but may produce a broken library.
13727             no_undefined_flag_CXX=' ${wl}-bernotok'
13728             allow_undefined_flag_CXX=' ${wl}-berok'
13729             if test "$with_gnu_ld" = yes; then
13730               # We only use this code for GNU lds that support --whole-archive.
13731               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13732             else
13733               # Exported symbols can be pulled into shared objects from archives
13734               whole_archive_flag_spec_CXX='$convenience'
13735             fi
13736             archive_cmds_need_lc_CXX=yes
13737             # This is similar to how AIX traditionally builds its shared
13738             # libraries.
13739             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'
13740           fi
13741         fi
13742         ;;
13743
13744       beos*)
13745         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13746           allow_undefined_flag_CXX=unsupported
13747           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13748           # support --undefined.  This deserves some investigation.  FIXME
13749           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13750         else
13751           ld_shlibs_CXX=no
13752         fi
13753         ;;
13754
13755       chorus*)
13756         case $cc_basename in
13757           *)
13758           # FIXME: insert proper C++ library support
13759           ld_shlibs_CXX=no
13760           ;;
13761         esac
13762         ;;
13763
13764       cygwin* | mingw* | pw32* | cegcc*)
13765         case $GXX,$cc_basename in
13766         ,cl* | no,cl*)
13767           # Native MSVC
13768           # hardcode_libdir_flag_spec is actually meaningless, as there is
13769           # no search path for DLLs.
13770           hardcode_libdir_flag_spec_CXX=' '
13771           allow_undefined_flag_CXX=unsupported
13772           always_export_symbols_CXX=yes
13773           file_list_spec_CXX='@'
13774           # Tell ltmain to make .lib files, not .a files.
13775           libext=lib
13776           # Tell ltmain to make .dll files, not .so files.
13777           shrext_cmds=".dll"
13778           # FIXME: Setting linknames here is a bad hack.
13779           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13780           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13781               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13782             else
13783               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13784             fi~
13785             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13786             linknames='
13787           # The linker will not automatically build a static lib if we build a DLL.
13788           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13789           enable_shared_with_static_runtimes_CXX=yes
13790           # Don't use ranlib
13791           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13792           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13793             lt_tool_outputfile="@TOOL_OUTPUT@"~
13794             case $lt_outputfile in
13795               *.exe|*.EXE) ;;
13796               *)
13797                 lt_outputfile="$lt_outputfile.exe"
13798                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13799                 ;;
13800             esac~
13801             func_to_tool_file "$lt_outputfile"~
13802             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13803               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13804               $RM "$lt_outputfile.manifest";
13805             fi'
13806           ;;
13807         *)
13808           # g++
13809           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13810           # as there is no search path for DLLs.
13811           hardcode_libdir_flag_spec_CXX='-L$libdir'
13812           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13813           allow_undefined_flag_CXX=unsupported
13814           always_export_symbols_CXX=no
13815           enable_shared_with_static_runtimes_CXX=yes
13816
13817           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13818             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'
13819             # If the export-symbols file already is a .def file (1st line
13820             # is EXPORTS), use it as is; otherwise, prepend...
13821             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13822               cp $export_symbols $output_objdir/$soname.def;
13823             else
13824               echo EXPORTS > $output_objdir/$soname.def;
13825               cat $export_symbols >> $output_objdir/$soname.def;
13826             fi~
13827             $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'
13828           else
13829             ld_shlibs_CXX=no
13830           fi
13831           ;;
13832         esac
13833         ;;
13834       darwin* | rhapsody*)
13835
13836
13837   archive_cmds_need_lc_CXX=no
13838   hardcode_direct_CXX=no
13839   hardcode_automatic_CXX=yes
13840   hardcode_shlibpath_var_CXX=unsupported
13841   if test "$lt_cv_ld_force_load" = "yes"; then
13842     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\"`'
13843   else
13844     whole_archive_flag_spec_CXX=''
13845   fi
13846   link_all_deplibs_CXX=yes
13847   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13848   case $cc_basename in
13849      ifort*) _lt_dar_can_shared=yes ;;
13850      *) _lt_dar_can_shared=$GCC ;;
13851   esac
13852   if test "$_lt_dar_can_shared" = "yes"; then
13853     output_verbose_link_cmd=func_echo_all
13854     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}"
13855     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13856     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}"
13857     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}"
13858        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13859       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}"
13860       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}"
13861     fi
13862
13863   else
13864   ld_shlibs_CXX=no
13865   fi
13866
13867         ;;
13868
13869       dgux*)
13870         case $cc_basename in
13871           ec++*)
13872             # FIXME: insert proper C++ library support
13873             ld_shlibs_CXX=no
13874             ;;
13875           ghcx*)
13876             # Green Hills C++ Compiler
13877             # FIXME: insert proper C++ library support
13878             ld_shlibs_CXX=no
13879             ;;
13880           *)
13881             # FIXME: insert proper C++ library support
13882             ld_shlibs_CXX=no
13883             ;;
13884         esac
13885         ;;
13886
13887       freebsd[12]*)
13888         # C++ shared libraries reported to be fairly broken before
13889         # switch to ELF
13890         ld_shlibs_CXX=no
13891         ;;
13892
13893       freebsd-elf*)
13894         archive_cmds_need_lc_CXX=no
13895         ;;
13896
13897       freebsd* | dragonfly*)
13898         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13899         # conventions
13900         ld_shlibs_CXX=yes
13901         ;;
13902
13903       gnu*)
13904         ;;
13905
13906       haiku*)
13907         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13908         link_all_deplibs_CXX=yes
13909         ;;
13910
13911       hpux9*)
13912         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13913         hardcode_libdir_separator_CXX=:
13914         export_dynamic_flag_spec_CXX='${wl}-E'
13915         hardcode_direct_CXX=yes
13916         hardcode_minus_L_CXX=yes # Not in the search PATH,
13917                                              # but as the default
13918                                              # location of the library.
13919
13920         case $cc_basename in
13921           CC*)
13922             # FIXME: insert proper C++ library support
13923             ld_shlibs_CXX=no
13924             ;;
13925           aCC*)
13926             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'
13927             # Commands to make compiler produce verbose output that lists
13928             # what "hidden" libraries, object files and flags are used when
13929             # linking a shared library.
13930             #
13931             # There doesn't appear to be a way to prevent this compiler from
13932             # explicitly linking system object files so we need to strip them
13933             # from the output so that they don't get included in the library
13934             # dependencies.
13935             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"'
13936             ;;
13937           *)
13938             if test "$GXX" = yes; then
13939               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'
13940             else
13941               # FIXME: insert proper C++ library support
13942               ld_shlibs_CXX=no
13943             fi
13944             ;;
13945         esac
13946         ;;
13947
13948       hpux10*|hpux11*)
13949         if test $with_gnu_ld = no; then
13950           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13951           hardcode_libdir_separator_CXX=:
13952
13953           case $host_cpu in
13954             hppa*64*|ia64*)
13955               ;;
13956             *)
13957               export_dynamic_flag_spec_CXX='${wl}-E'
13958               ;;
13959           esac
13960         fi
13961         case $host_cpu in
13962           hppa*64*|ia64*)
13963             hardcode_direct_CXX=no
13964             hardcode_shlibpath_var_CXX=no
13965             ;;
13966           *)
13967             hardcode_direct_CXX=yes
13968             hardcode_direct_absolute_CXX=yes
13969             hardcode_minus_L_CXX=yes # Not in the search PATH,
13970                                                  # but as the default
13971                                                  # location of the library.
13972             ;;
13973         esac
13974
13975         case $cc_basename in
13976           CC*)
13977             # FIXME: insert proper C++ library support
13978             ld_shlibs_CXX=no
13979             ;;
13980           aCC*)
13981             case $host_cpu in
13982               hppa*64*)
13983                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13984                 ;;
13985               ia64*)
13986                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13987                 ;;
13988               *)
13989                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13990                 ;;
13991             esac
13992             # Commands to make compiler produce verbose output that lists
13993             # what "hidden" libraries, object files and flags are used when
13994             # linking a shared library.
13995             #
13996             # There doesn't appear to be a way to prevent this compiler from
13997             # explicitly linking system object files so we need to strip them
13998             # from the output so that they don't get included in the library
13999             # dependencies.
14000             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"'
14001             ;;
14002           *)
14003             if test "$GXX" = yes; then
14004               if test $with_gnu_ld = no; then
14005                 case $host_cpu in
14006                   hppa*64*)
14007                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14008                     ;;
14009                   ia64*)
14010                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14011                     ;;
14012                   *)
14013                     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'
14014                     ;;
14015                 esac
14016               fi
14017             else
14018               # FIXME: insert proper C++ library support
14019               ld_shlibs_CXX=no
14020             fi
14021             ;;
14022         esac
14023         ;;
14024
14025       interix[3-9]*)
14026         hardcode_direct_CXX=no
14027         hardcode_shlibpath_var_CXX=no
14028         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14029         export_dynamic_flag_spec_CXX='${wl}-E'
14030         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14031         # Instead, shared libraries are loaded at an image base (0x10000000 by
14032         # default) and relocated if they conflict, which is a slow very memory
14033         # consuming and fragmenting process.  To avoid this, we pick a random,
14034         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14035         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14036         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'
14037         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'
14038         ;;
14039       irix5* | irix6*)
14040         case $cc_basename in
14041           CC*)
14042             # SGI C++
14043             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'
14044
14045             # Archives containing C++ object files must be created using
14046             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14047             # necessary to make sure instantiated templates are included
14048             # in the archive.
14049             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14050             ;;
14051           *)
14052             if test "$GXX" = yes; then
14053               if test "$with_gnu_ld" = no; then
14054                 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'
14055               else
14056                 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'
14057               fi
14058             fi
14059             link_all_deplibs_CXX=yes
14060             ;;
14061         esac
14062         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14063         hardcode_libdir_separator_CXX=:
14064         inherit_rpath_CXX=yes
14065         ;;
14066
14067       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14068         case $cc_basename in
14069           KCC*)
14070             # Kuck and Associates, Inc. (KAI) C++ Compiler
14071
14072             # KCC will only create a shared library if the output file
14073             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14074             # to its proper name (with version) after linking.
14075             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'
14076             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'
14077             # Commands to make compiler produce verbose output that lists
14078             # what "hidden" libraries, object files and flags are used when
14079             # linking a shared library.
14080             #
14081             # There doesn't appear to be a way to prevent this compiler from
14082             # explicitly linking system object files so we need to strip them
14083             # from the output so that they don't get included in the library
14084             # dependencies.
14085             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"'
14086
14087             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14088             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14089
14090             # Archives containing C++ object files must be created using
14091             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14092             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14093             ;;
14094           icpc* | ecpc* )
14095             # Intel C++
14096             with_gnu_ld=yes
14097             # version 8.0 and above of icpc choke on multiply defined symbols
14098             # if we add $predep_objects and $postdep_objects, however 7.1 and
14099             # earlier do not add the objects themselves.
14100             case `$CC -V 2>&1` in
14101               *"Version 7."*)
14102                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14103                 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'
14104                 ;;
14105               *)  # Version 8.0 or newer
14106                 tmp_idyn=
14107                 case $host_cpu in
14108                   ia64*) tmp_idyn=' -i_dynamic';;
14109                 esac
14110                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14111                 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'
14112                 ;;
14113             esac
14114             archive_cmds_need_lc_CXX=no
14115             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14116             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14117             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14118             ;;
14119           pgCC* | pgcpp*)
14120             # Portland Group C++ compiler
14121             case `$CC -V` in
14122             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14123               prelink_cmds_CXX='tpldir=Template.dir~
14124                 rm -rf $tpldir~
14125                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14126                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14127               old_archive_cmds_CXX='tpldir=Template.dir~
14128                 rm -rf $tpldir~
14129                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14130                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14131                 $RANLIB $oldlib'
14132               archive_cmds_CXX='tpldir=Template.dir~
14133                 rm -rf $tpldir~
14134                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14135                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14136               archive_expsym_cmds_CXX='tpldir=Template.dir~
14137                 rm -rf $tpldir~
14138                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14139                 $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'
14140               ;;
14141             *) # Version 6 and above use weak symbols
14142               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14143               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'
14144               ;;
14145             esac
14146
14147             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14148             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14149             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'
14150             ;;
14151           cxx*)
14152             # Compaq C++
14153             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154             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'
14155
14156             runpath_var=LD_RUN_PATH
14157             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14158             hardcode_libdir_separator_CXX=:
14159
14160             # Commands to make compiler produce verbose output that lists
14161             # what "hidden" libraries, object files and flags are used when
14162             # linking a shared library.
14163             #
14164             # There doesn't appear to be a way to prevent this compiler from
14165             # explicitly linking system object files so we need to strip them
14166             # from the output so that they don't get included in the library
14167             # dependencies.
14168             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'
14169             ;;
14170           xl* | mpixl* | bgxl*)
14171             # IBM XL 8.0 on PPC, with GNU ld
14172             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14173             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14174             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175             if test "x$supports_anon_versioning" = xyes; then
14176               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14177                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14178                 echo "local: *; };" >> $output_objdir/$libname.ver~
14179                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14180             fi
14181             ;;
14182           *)
14183             case `$CC -V 2>&1 | sed 5q` in
14184             *Sun\ C*)
14185               # Sun C++ 5.9
14186               no_undefined_flag_CXX=' -zdefs'
14187               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14188               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'
14189               hardcode_libdir_flag_spec_CXX='-R$libdir'
14190               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'
14191               compiler_needs_object_CXX=yes
14192
14193               # Not sure whether something based on
14194               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14195               # would be better.
14196               output_verbose_link_cmd='func_echo_all'
14197
14198               # Archives containing C++ object files must be created using
14199               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14200               # necessary to make sure instantiated templates are included
14201               # in the archive.
14202               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14203               ;;
14204             esac
14205             ;;
14206         esac
14207         ;;
14208
14209       lynxos*)
14210         # FIXME: insert proper C++ library support
14211         ld_shlibs_CXX=no
14212         ;;
14213
14214       m88k*)
14215         # FIXME: insert proper C++ library support
14216         ld_shlibs_CXX=no
14217         ;;
14218
14219       mvs*)
14220         case $cc_basename in
14221           cxx*)
14222             # FIXME: insert proper C++ library support
14223             ld_shlibs_CXX=no
14224             ;;
14225           *)
14226             # FIXME: insert proper C++ library support
14227             ld_shlibs_CXX=no
14228             ;;
14229         esac
14230         ;;
14231
14232       netbsd*)
14233         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14234           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14235           wlarc=
14236           hardcode_libdir_flag_spec_CXX='-R$libdir'
14237           hardcode_direct_CXX=yes
14238           hardcode_shlibpath_var_CXX=no
14239         fi
14240         # Workaround some broken pre-1.5 toolchains
14241         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14242         ;;
14243
14244       *nto* | *qnx*)
14245         ld_shlibs_CXX=yes
14246         ;;
14247
14248       openbsd2*)
14249         # C++ shared libraries are fairly broken
14250         ld_shlibs_CXX=no
14251         ;;
14252
14253       openbsd*)
14254         if test -f /usr/libexec/ld.so; then
14255           hardcode_direct_CXX=yes
14256           hardcode_shlibpath_var_CXX=no
14257           hardcode_direct_absolute_CXX=yes
14258           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14259           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14260           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14261             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14262             export_dynamic_flag_spec_CXX='${wl}-E'
14263             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14264           fi
14265           output_verbose_link_cmd=func_echo_all
14266         else
14267           ld_shlibs_CXX=no
14268         fi
14269         ;;
14270
14271       osf3* | osf4* | osf5*)
14272         case $cc_basename in
14273           KCC*)
14274             # Kuck and Associates, Inc. (KAI) C++ Compiler
14275
14276             # KCC will only create a shared library if the output file
14277             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14278             # to its proper name (with version) after linking.
14279             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'
14280
14281             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14282             hardcode_libdir_separator_CXX=:
14283
14284             # Archives containing C++ object files must be created using
14285             # the KAI C++ compiler.
14286             case $host in
14287               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14288               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14289             esac
14290             ;;
14291           RCC*)
14292             # Rational C++ 2.4.1
14293             # FIXME: insert proper C++ library support
14294             ld_shlibs_CXX=no
14295             ;;
14296           cxx*)
14297             case $host in
14298               osf3*)
14299                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14300                 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'
14301                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14302                 ;;
14303               *)
14304                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14305                 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'
14306                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14307                   echo "-hidden">> $lib.exp~
14308                   $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~
14309                   $RM $lib.exp'
14310                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14311                 ;;
14312             esac
14313
14314             hardcode_libdir_separator_CXX=:
14315
14316             # Commands to make compiler produce verbose output that lists
14317             # what "hidden" libraries, object files and flags are used when
14318             # linking a shared library.
14319             #
14320             # There doesn't appear to be a way to prevent this compiler from
14321             # explicitly linking system object files so we need to strip them
14322             # from the output so that they don't get included in the library
14323             # dependencies.
14324             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"'
14325             ;;
14326           *)
14327             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14328               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14329               case $host in
14330                 osf3*)
14331                   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'
14332                   ;;
14333                 *)
14334                   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'
14335                   ;;
14336               esac
14337
14338               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14339               hardcode_libdir_separator_CXX=:
14340
14341               # Commands to make compiler produce verbose output that lists
14342               # what "hidden" libraries, object files and flags are used when
14343               # linking a shared library.
14344               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14345
14346             else
14347               # FIXME: insert proper C++ library support
14348               ld_shlibs_CXX=no
14349             fi
14350             ;;
14351         esac
14352         ;;
14353
14354       psos*)
14355         # FIXME: insert proper C++ library support
14356         ld_shlibs_CXX=no
14357         ;;
14358
14359       sunos4*)
14360         case $cc_basename in
14361           CC*)
14362             # Sun C++ 4.x
14363             # FIXME: insert proper C++ library support
14364             ld_shlibs_CXX=no
14365             ;;
14366           lcc*)
14367             # Lucid
14368             # FIXME: insert proper C++ library support
14369             ld_shlibs_CXX=no
14370             ;;
14371           *)
14372             # FIXME: insert proper C++ library support
14373             ld_shlibs_CXX=no
14374             ;;
14375         esac
14376         ;;
14377
14378       solaris*)
14379         case $cc_basename in
14380           CC* | sunCC*)
14381             # Sun C++ 4.2, 5.x and Centerline C++
14382             archive_cmds_need_lc_CXX=yes
14383             no_undefined_flag_CXX=' -zdefs'
14384             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14385             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14386               $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'
14387
14388             hardcode_libdir_flag_spec_CXX='-R$libdir'
14389             hardcode_shlibpath_var_CXX=no
14390             case $host_os in
14391               solaris2.[0-5] | solaris2.[0-5].*) ;;
14392               *)
14393                 # The compiler driver will combine and reorder linker options,
14394                 # but understands `-z linker_flag'.
14395                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14396                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14397                 ;;
14398             esac
14399             link_all_deplibs_CXX=yes
14400
14401             output_verbose_link_cmd='func_echo_all'
14402
14403             # Archives containing C++ object files must be created using
14404             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14405             # necessary to make sure instantiated templates are included
14406             # in the archive.
14407             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14408             ;;
14409           gcx*)
14410             # Green Hills C++ Compiler
14411             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14412
14413             # The C++ compiler must be used to create the archive.
14414             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14415             ;;
14416           *)
14417             # GNU C++ compiler with Solaris linker
14418             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14419               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14420               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14421                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14422                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14423                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14424
14425                 # Commands to make compiler produce verbose output that lists
14426                 # what "hidden" libraries, object files and flags are used when
14427                 # linking a shared library.
14428                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14429               else
14430                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14431                 # platform.
14432                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14433                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14434                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14435
14436                 # Commands to make compiler produce verbose output that lists
14437                 # what "hidden" libraries, object files and flags are used when
14438                 # linking a shared library.
14439                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14440               fi
14441
14442               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14443               case $host_os in
14444                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14445                 *)
14446                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14447                   ;;
14448               esac
14449             fi
14450             ;;
14451         esac
14452         ;;
14453
14454     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14455       no_undefined_flag_CXX='${wl}-z,text'
14456       archive_cmds_need_lc_CXX=no
14457       hardcode_shlibpath_var_CXX=no
14458       runpath_var='LD_RUN_PATH'
14459
14460       case $cc_basename in
14461         CC*)
14462           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14463           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14464           ;;
14465         *)
14466           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14467           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14468           ;;
14469       esac
14470       ;;
14471
14472       sysv5* | sco3.2v5* | sco5v6*)
14473         # Note: We can NOT use -z defs as we might desire, because we do not
14474         # link with -lc, and that would cause any symbols used from libc to
14475         # always be unresolved, which means just about no library would
14476         # ever link correctly.  If we're not using GNU ld we use -z text
14477         # though, which does catch some bad symbols but isn't as heavy-handed
14478         # as -z defs.
14479         no_undefined_flag_CXX='${wl}-z,text'
14480         allow_undefined_flag_CXX='${wl}-z,nodefs'
14481         archive_cmds_need_lc_CXX=no
14482         hardcode_shlibpath_var_CXX=no
14483         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14484         hardcode_libdir_separator_CXX=':'
14485         link_all_deplibs_CXX=yes
14486         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14487         runpath_var='LD_RUN_PATH'
14488
14489         case $cc_basename in
14490           CC*)
14491             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14493             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14494               '"$old_archive_cmds_CXX"
14495             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14496               '"$reload_cmds_CXX"
14497             ;;
14498           *)
14499             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14500             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501             ;;
14502         esac
14503       ;;
14504
14505       tandem*)
14506         case $cc_basename in
14507           NCC*)
14508             # NonStop-UX NCC 3.20
14509             # FIXME: insert proper C++ library support
14510             ld_shlibs_CXX=no
14511             ;;
14512           *)
14513             # FIXME: insert proper C++ library support
14514             ld_shlibs_CXX=no
14515             ;;
14516         esac
14517         ;;
14518
14519       vxworks*)
14520         # FIXME: insert proper C++ library support
14521         ld_shlibs_CXX=no
14522         ;;
14523
14524       *)
14525         # FIXME: insert proper C++ library support
14526         ld_shlibs_CXX=no
14527         ;;
14528     esac
14529
14530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14531 $as_echo "$ld_shlibs_CXX" >&6; }
14532     test "$ld_shlibs_CXX" = no && can_build_shared=no
14533
14534     GCC_CXX="$GXX"
14535     LD_CXX="$LD"
14536
14537     ## CAVEAT EMPTOR:
14538     ## There is no encapsulation within the following macros, do not change
14539     ## the running order or otherwise move them around unless you know exactly
14540     ## what you are doing...
14541     # Dependencies to place before and after the object being linked:
14542 predep_objects_CXX=
14543 postdep_objects_CXX=
14544 predeps_CXX=
14545 postdeps_CXX=
14546 compiler_lib_search_path_CXX=
14547
14548 cat > conftest.$ac_ext <<_LT_EOF
14549 class Foo
14550 {
14551 public:
14552   Foo (void) { a = 0; }
14553 private:
14554   int a;
14555 };
14556 _LT_EOF
14557
14558
14559 _lt_libdeps_save_CFLAGS=$CFLAGS
14560 case "$CC $CFLAGS " in #(
14561 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14562 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14563 esac
14564
14565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14566   (eval $ac_compile) 2>&5
14567   ac_status=$?
14568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569   test $ac_status = 0; }; then
14570   # Parse the compiler output and extract the necessary
14571   # objects, libraries and library flags.
14572
14573   # Sentinel used to keep track of whether or not we are before
14574   # the conftest object file.
14575   pre_test_object_deps_done=no
14576
14577   for p in `eval "$output_verbose_link_cmd"`; do
14578     case ${prev}${p} in
14579
14580     -L* | -R* | -l*)
14581        # Some compilers place space between "-{L,R}" and the path.
14582        # Remove the space.
14583        if test $p = "-L" ||
14584           test $p = "-R"; then
14585          prev=$p
14586          continue
14587        fi
14588
14589        # Expand the sysroot to ease extracting the directories later.
14590        if test -z "$prev"; then
14591          case $p in
14592          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14593          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14594          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14595          esac
14596        fi
14597        case $p in
14598        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14599        esac
14600        if test "$pre_test_object_deps_done" = no; then
14601          case ${prev} in
14602          -L | -R)
14603            # Internal compiler library paths should come after those
14604            # provided the user.  The postdeps already come after the
14605            # user supplied libs so there is no need to process them.
14606            if test -z "$compiler_lib_search_path_CXX"; then
14607              compiler_lib_search_path_CXX="${prev}${p}"
14608            else
14609              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14610            fi
14611            ;;
14612          # The "-l" case would never come before the object being
14613          # linked, so don't bother handling this case.
14614          esac
14615        else
14616          if test -z "$postdeps_CXX"; then
14617            postdeps_CXX="${prev}${p}"
14618          else
14619            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14620          fi
14621        fi
14622        prev=
14623        ;;
14624
14625     *.lto.$objext) ;; # Ignore GCC LTO objects
14626     *.$objext)
14627        # This assumes that the test object file only shows up
14628        # once in the compiler output.
14629        if test "$p" = "conftest.$objext"; then
14630          pre_test_object_deps_done=yes
14631          continue
14632        fi
14633
14634        if test "$pre_test_object_deps_done" = no; then
14635          if test -z "$predep_objects_CXX"; then
14636            predep_objects_CXX="$p"
14637          else
14638            predep_objects_CXX="$predep_objects_CXX $p"
14639          fi
14640        else
14641          if test -z "$postdep_objects_CXX"; then
14642            postdep_objects_CXX="$p"
14643          else
14644            postdep_objects_CXX="$postdep_objects_CXX $p"
14645          fi
14646        fi
14647        ;;
14648
14649     *) ;; # Ignore the rest.
14650
14651     esac
14652   done
14653
14654   # Clean up.
14655   rm -f a.out a.exe
14656 else
14657   echo "libtool.m4: error: problem compiling CXX test program"
14658 fi
14659
14660 $RM -f confest.$objext
14661 CFLAGS=$_lt_libdeps_save_CFLAGS
14662
14663 # PORTME: override above test on systems where it is broken
14664 case $host_os in
14665 interix[3-9]*)
14666   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14667   # hack all around it, let's just trust "g++" to DTRT.
14668   predep_objects_CXX=
14669   postdep_objects_CXX=
14670   postdeps_CXX=
14671   ;;
14672
14673 linux*)
14674   case `$CC -V 2>&1 | sed 5q` in
14675   *Sun\ C*)
14676     # Sun C++ 5.9
14677
14678     # The more standards-conforming stlport4 library is
14679     # incompatible with the Cstd library. Avoid specifying
14680     # it if it's in CXXFLAGS. Ignore libCrun as
14681     # -library=stlport4 depends on it.
14682     case " $CXX $CXXFLAGS " in
14683     *" -library=stlport4 "*)
14684       solaris_use_stlport4=yes
14685       ;;
14686     esac
14687
14688     if test "$solaris_use_stlport4" != yes; then
14689       postdeps_CXX='-library=Cstd -library=Crun'
14690     fi
14691     ;;
14692   esac
14693   ;;
14694
14695 solaris*)
14696   case $cc_basename in
14697   CC* | sunCC*)
14698     # The more standards-conforming stlport4 library is
14699     # incompatible with the Cstd library. Avoid specifying
14700     # it if it's in CXXFLAGS. Ignore libCrun as
14701     # -library=stlport4 depends on it.
14702     case " $CXX $CXXFLAGS " in
14703     *" -library=stlport4 "*)
14704       solaris_use_stlport4=yes
14705       ;;
14706     esac
14707
14708     # Adding this requires a known-good setup of shared libraries for
14709     # Sun compiler versions before 5.6, else PIC objects from an old
14710     # archive will be linked into the output, leading to subtle bugs.
14711     if test "$solaris_use_stlport4" != yes; then
14712       postdeps_CXX='-library=Cstd -library=Crun'
14713     fi
14714     ;;
14715   esac
14716   ;;
14717 esac
14718
14719
14720 case " $postdeps_CXX " in
14721 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14722 esac
14723  compiler_lib_search_dirs_CXX=
14724 if test -n "${compiler_lib_search_path_CXX}"; then
14725  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14726 fi
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758     lt_prog_compiler_wl_CXX=
14759 lt_prog_compiler_pic_CXX=
14760 lt_prog_compiler_static_CXX=
14761
14762
14763   # C++ specific cases for pic, static, wl, etc.
14764   if test "$GXX" = yes; then
14765     lt_prog_compiler_wl_CXX='-Wl,'
14766     lt_prog_compiler_static_CXX='-static'
14767
14768     case $host_os in
14769     aix*)
14770       # All AIX code is PIC.
14771       if test "$host_cpu" = ia64; then
14772         # AIX 5 now supports IA64 processor
14773         lt_prog_compiler_static_CXX='-Bstatic'
14774       fi
14775       ;;
14776
14777     amigaos*)
14778       case $host_cpu in
14779       powerpc)
14780             # see comment about AmigaOS4 .so support
14781             lt_prog_compiler_pic_CXX='-fPIC'
14782         ;;
14783       m68k)
14784             # FIXME: we need at least 68020 code to build shared libraries, but
14785             # adding the `-m68020' flag to GCC prevents building anything better,
14786             # like `-m68040'.
14787             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14788         ;;
14789       esac
14790       ;;
14791
14792     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14793       # PIC is the default for these OSes.
14794       ;;
14795     mingw* | cygwin* | os2* | pw32* | cegcc*)
14796       # This hack is so that the source file can tell whether it is being
14797       # built for inclusion in a dll (and should export symbols for example).
14798       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14799       # (--disable-auto-import) libraries
14800       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14801       ;;
14802     darwin* | rhapsody*)
14803       # PIC is the default on this platform
14804       # Common symbols not allowed in MH_DYLIB files
14805       lt_prog_compiler_pic_CXX='-fno-common'
14806       ;;
14807     *djgpp*)
14808       # DJGPP does not support shared libraries at all
14809       lt_prog_compiler_pic_CXX=
14810       ;;
14811     haiku*)
14812       # PIC is the default for Haiku.
14813       # The "-static" flag exists, but is broken.
14814       lt_prog_compiler_static_CXX=
14815       ;;
14816     interix[3-9]*)
14817       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14818       # Instead, we relocate shared libraries at runtime.
14819       ;;
14820     sysv4*MP*)
14821       if test -d /usr/nec; then
14822         lt_prog_compiler_pic_CXX=-Kconform_pic
14823       fi
14824       ;;
14825     hpux*)
14826       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14827       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14828       # sets the default TLS model and affects inlining.
14829       case $host_cpu in
14830       hppa*64*)
14831         ;;
14832       *)
14833         lt_prog_compiler_pic_CXX='-fPIC'
14834         ;;
14835       esac
14836       ;;
14837     *qnx* | *nto*)
14838       # QNX uses GNU C++, but need to define -shared option too, otherwise
14839       # it will coredump.
14840       lt_prog_compiler_pic_CXX='-fPIC -shared'
14841       ;;
14842     *)
14843       lt_prog_compiler_pic_CXX='-fPIC'
14844       ;;
14845     esac
14846   else
14847     case $host_os in
14848       aix[4-9]*)
14849         # All AIX code is PIC.
14850         if test "$host_cpu" = ia64; then
14851           # AIX 5 now supports IA64 processor
14852           lt_prog_compiler_static_CXX='-Bstatic'
14853         else
14854           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14855         fi
14856         ;;
14857       chorus*)
14858         case $cc_basename in
14859         cxch68*)
14860           # Green Hills C++ Compiler
14861           # _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"
14862           ;;
14863         esac
14864         ;;
14865       mingw* | cygwin* | os2* | pw32* | cegcc*)
14866         # This hack is so that the source file can tell whether it is being
14867         # built for inclusion in a dll (and should export symbols for example).
14868         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14869         ;;
14870       dgux*)
14871         case $cc_basename in
14872           ec++*)
14873             lt_prog_compiler_pic_CXX='-KPIC'
14874             ;;
14875           ghcx*)
14876             # Green Hills C++ Compiler
14877             lt_prog_compiler_pic_CXX='-pic'
14878             ;;
14879           *)
14880             ;;
14881         esac
14882         ;;
14883       freebsd* | dragonfly*)
14884         # FreeBSD uses GNU C++
14885         ;;
14886       hpux9* | hpux10* | hpux11*)
14887         case $cc_basename in
14888           CC*)
14889             lt_prog_compiler_wl_CXX='-Wl,'
14890             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14891             if test "$host_cpu" != ia64; then
14892               lt_prog_compiler_pic_CXX='+Z'
14893             fi
14894             ;;
14895           aCC*)
14896             lt_prog_compiler_wl_CXX='-Wl,'
14897             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14898             case $host_cpu in
14899             hppa*64*|ia64*)
14900               # +Z the default
14901               ;;
14902             *)
14903               lt_prog_compiler_pic_CXX='+Z'
14904               ;;
14905             esac
14906             ;;
14907           *)
14908             ;;
14909         esac
14910         ;;
14911       interix*)
14912         # This is c89, which is MS Visual C++ (no shared libs)
14913         # Anyone wants to do a port?
14914         ;;
14915       irix5* | irix6* | nonstopux*)
14916         case $cc_basename in
14917           CC*)
14918             lt_prog_compiler_wl_CXX='-Wl,'
14919             lt_prog_compiler_static_CXX='-non_shared'
14920             # CC pic flag -KPIC is the default.
14921             ;;
14922           *)
14923             ;;
14924         esac
14925         ;;
14926       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14927         case $cc_basename in
14928           KCC*)
14929             # KAI C++ Compiler
14930             lt_prog_compiler_wl_CXX='--backend -Wl,'
14931             lt_prog_compiler_pic_CXX='-fPIC'
14932             ;;
14933           ecpc* )
14934             # old Intel C++ for x86_64 which still supported -KPIC.
14935             lt_prog_compiler_wl_CXX='-Wl,'
14936             lt_prog_compiler_pic_CXX='-KPIC'
14937             lt_prog_compiler_static_CXX='-static'
14938             ;;
14939           icpc* )
14940             # Intel C++, used to be incompatible with GCC.
14941             # ICC 10 doesn't accept -KPIC any more.
14942             lt_prog_compiler_wl_CXX='-Wl,'
14943             lt_prog_compiler_pic_CXX='-fPIC'
14944             lt_prog_compiler_static_CXX='-static'
14945             ;;
14946           pgCC* | pgcpp*)
14947             # Portland Group C++ compiler
14948             lt_prog_compiler_wl_CXX='-Wl,'
14949             lt_prog_compiler_pic_CXX='-fpic'
14950             lt_prog_compiler_static_CXX='-Bstatic'
14951             ;;
14952           cxx*)
14953             # Compaq C++
14954             # Make sure the PIC flag is empty.  It appears that all Alpha
14955             # Linux and Compaq Tru64 Unix objects are PIC.
14956             lt_prog_compiler_pic_CXX=
14957             lt_prog_compiler_static_CXX='-non_shared'
14958             ;;
14959           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14960             # IBM XL 8.0, 9.0 on PPC and BlueGene
14961             lt_prog_compiler_wl_CXX='-Wl,'
14962             lt_prog_compiler_pic_CXX='-qpic'
14963             lt_prog_compiler_static_CXX='-qstaticlink'
14964             ;;
14965           *)
14966             case `$CC -V 2>&1 | sed 5q` in
14967             *Sun\ C*)
14968               # Sun C++ 5.9
14969               lt_prog_compiler_pic_CXX='-KPIC'
14970               lt_prog_compiler_static_CXX='-Bstatic'
14971               lt_prog_compiler_wl_CXX='-Qoption ld '
14972               ;;
14973             esac
14974             ;;
14975         esac
14976         ;;
14977       lynxos*)
14978         ;;
14979       m88k*)
14980         ;;
14981       mvs*)
14982         case $cc_basename in
14983           cxx*)
14984             lt_prog_compiler_pic_CXX='-W c,exportall'
14985             ;;
14986           *)
14987             ;;
14988         esac
14989         ;;
14990       netbsd*)
14991         ;;
14992       *qnx* | *nto*)
14993         # QNX uses GNU C++, but need to define -shared option too, otherwise
14994         # it will coredump.
14995         lt_prog_compiler_pic_CXX='-fPIC -shared'
14996         ;;
14997       osf3* | osf4* | osf5*)
14998         case $cc_basename in
14999           KCC*)
15000             lt_prog_compiler_wl_CXX='--backend -Wl,'
15001             ;;
15002           RCC*)
15003             # Rational C++ 2.4.1
15004             lt_prog_compiler_pic_CXX='-pic'
15005             ;;
15006           cxx*)
15007             # Digital/Compaq C++
15008             lt_prog_compiler_wl_CXX='-Wl,'
15009             # Make sure the PIC flag is empty.  It appears that all Alpha
15010             # Linux and Compaq Tru64 Unix objects are PIC.
15011             lt_prog_compiler_pic_CXX=
15012             lt_prog_compiler_static_CXX='-non_shared'
15013             ;;
15014           *)
15015             ;;
15016         esac
15017         ;;
15018       psos*)
15019         ;;
15020       solaris*)
15021         case $cc_basename in
15022           CC* | sunCC*)
15023             # Sun C++ 4.2, 5.x and Centerline C++
15024             lt_prog_compiler_pic_CXX='-KPIC'
15025             lt_prog_compiler_static_CXX='-Bstatic'
15026             lt_prog_compiler_wl_CXX='-Qoption ld '
15027             ;;
15028           gcx*)
15029             # Green Hills C++ Compiler
15030             lt_prog_compiler_pic_CXX='-PIC'
15031             ;;
15032           *)
15033             ;;
15034         esac
15035         ;;
15036       sunos4*)
15037         case $cc_basename in
15038           CC*)
15039             # Sun C++ 4.x
15040             lt_prog_compiler_pic_CXX='-pic'
15041             lt_prog_compiler_static_CXX='-Bstatic'
15042             ;;
15043           lcc*)
15044             # Lucid
15045             lt_prog_compiler_pic_CXX='-pic'
15046             ;;
15047           *)
15048             ;;
15049         esac
15050         ;;
15051       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15052         case $cc_basename in
15053           CC*)
15054             lt_prog_compiler_wl_CXX='-Wl,'
15055             lt_prog_compiler_pic_CXX='-KPIC'
15056             lt_prog_compiler_static_CXX='-Bstatic'
15057             ;;
15058         esac
15059         ;;
15060       tandem*)
15061         case $cc_basename in
15062           NCC*)
15063             # NonStop-UX NCC 3.20
15064             lt_prog_compiler_pic_CXX='-KPIC'
15065             ;;
15066           *)
15067             ;;
15068         esac
15069         ;;
15070       vxworks*)
15071         ;;
15072       *)
15073         lt_prog_compiler_can_build_shared_CXX=no
15074         ;;
15075     esac
15076   fi
15077
15078 case $host_os in
15079   # For platforms which do not support PIC, -DPIC is meaningless:
15080   *djgpp*)
15081     lt_prog_compiler_pic_CXX=
15082     ;;
15083   *)
15084     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15085     ;;
15086 esac
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15090 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15091   $as_echo_n "(cached) " >&6
15092 else
15093   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15096 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15097 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15098
15099 #
15100 # Check to make sure the PIC flag actually works.
15101 #
15102 if test -n "$lt_prog_compiler_pic_CXX"; then
15103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15104 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15105 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15106   $as_echo_n "(cached) " >&6
15107 else
15108   lt_cv_prog_compiler_pic_works_CXX=no
15109    ac_outfile=conftest.$ac_objext
15110    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15111    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15112    # Insert the option either (1) after the last *FLAGS variable, or
15113    # (2) before a word containing "conftest.", or (3) at the end.
15114    # Note that $ac_compile itself does not contain backslashes and begins
15115    # with a dollar sign (not a hyphen), so the echo should work correctly.
15116    # The option is referenced via a variable to avoid confusing sed.
15117    lt_compile=`echo "$ac_compile" | $SED \
15118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120    -e 's:$: $lt_compiler_flag:'`
15121    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15122    (eval "$lt_compile" 2>conftest.err)
15123    ac_status=$?
15124    cat conftest.err >&5
15125    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126    if (exit $ac_status) && test -s "$ac_outfile"; then
15127      # The compiler can only warn and ignore the option if not recognized
15128      # So say no if there are warnings other than the usual output.
15129      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15130      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15131      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15132        lt_cv_prog_compiler_pic_works_CXX=yes
15133      fi
15134    fi
15135    $RM conftest*
15136
15137 fi
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15139 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15140
15141 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15142     case $lt_prog_compiler_pic_CXX in
15143      "" | " "*) ;;
15144      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15145      esac
15146 else
15147     lt_prog_compiler_pic_CXX=
15148      lt_prog_compiler_can_build_shared_CXX=no
15149 fi
15150
15151 fi
15152
15153
15154
15155
15156
15157 #
15158 # Check to make sure the static flag actually works.
15159 #
15160 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15162 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15163 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15164   $as_echo_n "(cached) " >&6
15165 else
15166   lt_cv_prog_compiler_static_works_CXX=no
15167    save_LDFLAGS="$LDFLAGS"
15168    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15169    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15170    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15171      # The linker can only warn and ignore the option if not recognized
15172      # So say no if there are warnings
15173      if test -s conftest.err; then
15174        # Append any errors to the config.log.
15175        cat conftest.err 1>&5
15176        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15177        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15178        if diff conftest.exp conftest.er2 >/dev/null; then
15179          lt_cv_prog_compiler_static_works_CXX=yes
15180        fi
15181      else
15182        lt_cv_prog_compiler_static_works_CXX=yes
15183      fi
15184    fi
15185    $RM -r conftest*
15186    LDFLAGS="$save_LDFLAGS"
15187
15188 fi
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15190 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15191
15192 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15193     :
15194 else
15195     lt_prog_compiler_static_CXX=
15196 fi
15197
15198
15199
15200
15201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15203 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15204   $as_echo_n "(cached) " >&6
15205 else
15206   lt_cv_prog_compiler_c_o_CXX=no
15207    $RM -r conftest 2>/dev/null
15208    mkdir conftest
15209    cd conftest
15210    mkdir out
15211    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15212
15213    lt_compiler_flag="-o out/conftest2.$ac_objext"
15214    # Insert the option either (1) after the last *FLAGS variable, or
15215    # (2) before a word containing "conftest.", or (3) at the end.
15216    # Note that $ac_compile itself does not contain backslashes and begins
15217    # with a dollar sign (not a hyphen), so the echo should work correctly.
15218    lt_compile=`echo "$ac_compile" | $SED \
15219    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15221    -e 's:$: $lt_compiler_flag:'`
15222    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15223    (eval "$lt_compile" 2>out/conftest.err)
15224    ac_status=$?
15225    cat out/conftest.err >&5
15226    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15228    then
15229      # The compiler can only warn and ignore the option if not recognized
15230      # So say no if there are warnings
15231      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15232      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15233      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15234        lt_cv_prog_compiler_c_o_CXX=yes
15235      fi
15236    fi
15237    chmod u+w . 2>&5
15238    $RM conftest*
15239    # SGI C++ compiler will create directory out/ii_files/ for
15240    # template instantiation
15241    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15242    $RM out/* && rmdir out
15243    cd ..
15244    $RM -r conftest
15245    $RM conftest*
15246
15247 fi
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15249 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15250
15251
15252
15253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15255 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15256   $as_echo_n "(cached) " >&6
15257 else
15258   lt_cv_prog_compiler_c_o_CXX=no
15259    $RM -r conftest 2>/dev/null
15260    mkdir conftest
15261    cd conftest
15262    mkdir out
15263    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15264
15265    lt_compiler_flag="-o out/conftest2.$ac_objext"
15266    # Insert the option either (1) after the last *FLAGS variable, or
15267    # (2) before a word containing "conftest.", or (3) at the end.
15268    # Note that $ac_compile itself does not contain backslashes and begins
15269    # with a dollar sign (not a hyphen), so the echo should work correctly.
15270    lt_compile=`echo "$ac_compile" | $SED \
15271    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15272    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15273    -e 's:$: $lt_compiler_flag:'`
15274    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15275    (eval "$lt_compile" 2>out/conftest.err)
15276    ac_status=$?
15277    cat out/conftest.err >&5
15278    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15280    then
15281      # The compiler can only warn and ignore the option if not recognized
15282      # So say no if there are warnings
15283      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15284      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15285      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15286        lt_cv_prog_compiler_c_o_CXX=yes
15287      fi
15288    fi
15289    chmod u+w . 2>&5
15290    $RM conftest*
15291    # SGI C++ compiler will create directory out/ii_files/ for
15292    # template instantiation
15293    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15294    $RM out/* && rmdir out
15295    cd ..
15296    $RM -r conftest
15297    $RM conftest*
15298
15299 fi
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15301 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15302
15303
15304
15305
15306 hard_links="nottested"
15307 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15308   # do not overwrite the value of need_locks provided by the user
15309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15310 $as_echo_n "checking if we can lock with hard links... " >&6; }
15311   hard_links=yes
15312   $RM conftest*
15313   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15314   touch conftest.a
15315   ln conftest.a conftest.b 2>&5 || hard_links=no
15316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15318 $as_echo "$hard_links" >&6; }
15319   if test "$hard_links" = no; then
15320     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15321 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15322     need_locks=warn
15323   fi
15324 else
15325   need_locks=no
15326 fi
15327
15328
15329
15330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15331 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15332
15333   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15334   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15335   case $host_os in
15336   aix[4-9]*)
15337     # If we're using GNU nm, then we don't want the "-C" option.
15338     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15339     # Also, AIX nm treats weak defined symbols like other global defined
15340     # symbols, whereas GNU nm marks them as "W".
15341     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15342       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'
15343     else
15344       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'
15345     fi
15346     ;;
15347   pw32*)
15348     export_symbols_cmds_CXX="$ltdll_cmds"
15349     ;;
15350   cygwin* | mingw* | cegcc*)
15351     case $cc_basename in
15352     cl*) ;;
15353     *)
15354       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'
15355       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15356       ;;
15357     esac
15358     ;;
15359   *)
15360     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15361     ;;
15362   esac
15363
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15365 $as_echo "$ld_shlibs_CXX" >&6; }
15366 test "$ld_shlibs_CXX" = no && can_build_shared=no
15367
15368 with_gnu_ld_CXX=$with_gnu_ld
15369
15370
15371
15372
15373
15374
15375 #
15376 # Do we need to explicitly link libc?
15377 #
15378 case "x$archive_cmds_need_lc_CXX" in
15379 x|xyes)
15380   # Assume -lc should be added
15381   archive_cmds_need_lc_CXX=yes
15382
15383   if test "$enable_shared" = yes && test "$GCC" = yes; then
15384     case $archive_cmds_CXX in
15385     *'~'*)
15386       # FIXME: we may have to deal with multi-command sequences.
15387       ;;
15388     '$CC '*)
15389       # Test whether the compiler implicitly links with -lc since on some
15390       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15391       # to ld, don't add -lc before -lgcc.
15392       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15393 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15394 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15395   $as_echo_n "(cached) " >&6
15396 else
15397   $RM conftest*
15398         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15399
15400         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15401   (eval $ac_compile) 2>&5
15402   ac_status=$?
15403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15404   test $ac_status = 0; } 2>conftest.err; then
15405           soname=conftest
15406           lib=conftest
15407           libobjs=conftest.$ac_objext
15408           deplibs=
15409           wl=$lt_prog_compiler_wl_CXX
15410           pic_flag=$lt_prog_compiler_pic_CXX
15411           compiler_flags=-v
15412           linker_flags=-v
15413           verstring=
15414           output_objdir=.
15415           libname=conftest
15416           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15417           allow_undefined_flag_CXX=
15418           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15419   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15420   ac_status=$?
15421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15422   test $ac_status = 0; }
15423           then
15424             lt_cv_archive_cmds_need_lc_CXX=no
15425           else
15426             lt_cv_archive_cmds_need_lc_CXX=yes
15427           fi
15428           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15429         else
15430           cat conftest.err 1>&5
15431         fi
15432         $RM conftest*
15433
15434 fi
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15436 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15437       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15438       ;;
15439     esac
15440   fi
15441   ;;
15442 esac
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15508 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15509
15510 library_names_spec=
15511 libname_spec='lib$name'
15512 soname_spec=
15513 shrext_cmds=".so"
15514 postinstall_cmds=
15515 postuninstall_cmds=
15516 finish_cmds=
15517 finish_eval=
15518 shlibpath_var=
15519 shlibpath_overrides_runpath=unknown
15520 version_type=none
15521 dynamic_linker="$host_os ld.so"
15522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15523 need_lib_prefix=unknown
15524 hardcode_into_libs=no
15525
15526 # when you set need_version to no, make sure it does not cause -set_version
15527 # flags to be left without arguments
15528 need_version=unknown
15529
15530 case $host_os in
15531 aix3*)
15532   version_type=linux
15533   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15534   shlibpath_var=LIBPATH
15535
15536   # AIX 3 has no versioning support, so we append a major version to the name.
15537   soname_spec='${libname}${release}${shared_ext}$major'
15538   ;;
15539
15540 aix[4-9]*)
15541   version_type=linux
15542   need_lib_prefix=no
15543   need_version=no
15544   hardcode_into_libs=yes
15545   if test "$host_cpu" = ia64; then
15546     # AIX 5 supports IA64
15547     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15548     shlibpath_var=LD_LIBRARY_PATH
15549   else
15550     # With GCC up to 2.95.x, collect2 would create an import file
15551     # for dependence libraries.  The import file would start with
15552     # the line `#! .'.  This would cause the generated library to
15553     # depend on `.', always an invalid library.  This was fixed in
15554     # development snapshots of GCC prior to 3.0.
15555     case $host_os in
15556       aix4 | aix4.[01] | aix4.[01].*)
15557       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15558            echo ' yes '
15559            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15560         :
15561       else
15562         can_build_shared=no
15563       fi
15564       ;;
15565     esac
15566     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15567     # soname into executable. Probably we can add versioning support to
15568     # collect2, so additional links can be useful in future.
15569     if test "$aix_use_runtimelinking" = yes; then
15570       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15571       # instead of lib<name>.a to let people know that these are not
15572       # typical AIX shared libraries.
15573       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574     else
15575       # We preserve .a as extension for shared libraries through AIX4.2
15576       # and later when we are not doing run time linking.
15577       library_names_spec='${libname}${release}.a $libname.a'
15578       soname_spec='${libname}${release}${shared_ext}$major'
15579     fi
15580     shlibpath_var=LIBPATH
15581   fi
15582   ;;
15583
15584 amigaos*)
15585   case $host_cpu in
15586   powerpc)
15587     # Since July 2007 AmigaOS4 officially supports .so libraries.
15588     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590     ;;
15591   m68k)
15592     library_names_spec='$libname.ixlibrary $libname.a'
15593     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15594     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'
15595     ;;
15596   esac
15597   ;;
15598
15599 beos*)
15600   library_names_spec='${libname}${shared_ext}'
15601   dynamic_linker="$host_os ld.so"
15602   shlibpath_var=LIBRARY_PATH
15603   ;;
15604
15605 bsdi[45]*)
15606   version_type=linux
15607   need_version=no
15608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609   soname_spec='${libname}${release}${shared_ext}$major'
15610   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15611   shlibpath_var=LD_LIBRARY_PATH
15612   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15613   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15614   # the default ld.so.conf also contains /usr/contrib/lib and
15615   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15616   # libtool to hard-code these into programs
15617   ;;
15618
15619 cygwin* | mingw* | pw32* | cegcc*)
15620   version_type=windows
15621   shrext_cmds=".dll"
15622   need_version=no
15623   need_lib_prefix=no
15624
15625   case $GCC,$cc_basename in
15626   yes,*)
15627     # gcc
15628     library_names_spec='$libname.dll.a'
15629     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15630     postinstall_cmds='base_file=`basename \${file}`~
15631       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15632       dldir=$destdir/`dirname \$dlpath`~
15633       test -d \$dldir || mkdir -p \$dldir~
15634       $install_prog $dir/$dlname \$dldir/$dlname~
15635       chmod a+x \$dldir/$dlname~
15636       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15637         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15638       fi'
15639     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15640       dlpath=$dir/\$dldll~
15641        $RM \$dlpath'
15642     shlibpath_overrides_runpath=yes
15643
15644     case $host_os in
15645     cygwin*)
15646       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15647       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15648
15649       ;;
15650     mingw* | cegcc*)
15651       # MinGW DLLs use traditional 'lib' prefix
15652       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15653       ;;
15654     pw32*)
15655       # pw32 DLLs use 'pw' prefix rather than 'lib'
15656       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15657       ;;
15658     esac
15659     dynamic_linker='Win32 ld.exe'
15660     ;;
15661
15662   *,cl*)
15663     # Native MSVC
15664     libname_spec='$name'
15665     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15666     library_names_spec='${libname}.dll.lib'
15667
15668     case $build_os in
15669     mingw*)
15670       sys_lib_search_path_spec=
15671       lt_save_ifs=$IFS
15672       IFS=';'
15673       for lt_path in $LIB
15674       do
15675         IFS=$lt_save_ifs
15676         # Let DOS variable expansion print the short 8.3 style file name.
15677         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15678         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15679       done
15680       IFS=$lt_save_ifs
15681       # Convert to MSYS style.
15682       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15683       ;;
15684     cygwin*)
15685       # Convert to unix form, then to dos form, then back to unix form
15686       # but this time dos style (no spaces!) so that the unix form looks
15687       # like /cygdrive/c/PROGRA~1:/cygdr...
15688       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15689       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15690       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15691       ;;
15692     *)
15693       sys_lib_search_path_spec="$LIB"
15694       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15695         # It is most probably a Windows format PATH.
15696         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15697       else
15698         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15699       fi
15700       # FIXME: find the short name or the path components, as spaces are
15701       # common. (e.g. "Program Files" -> "PROGRA~1")
15702       ;;
15703     esac
15704
15705     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15706     postinstall_cmds='base_file=`basename \${file}`~
15707       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15708       dldir=$destdir/`dirname \$dlpath`~
15709       test -d \$dldir || mkdir -p \$dldir~
15710       $install_prog $dir/$dlname \$dldir/$dlname'
15711     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15712       dlpath=$dir/\$dldll~
15713        $RM \$dlpath'
15714     shlibpath_overrides_runpath=yes
15715     dynamic_linker='Win32 link.exe'
15716     ;;
15717
15718   *)
15719     # Assume MSVC wrapper
15720     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15721     dynamic_linker='Win32 ld.exe'
15722     ;;
15723   esac
15724   # FIXME: first we should search . and the directory the executable is in
15725   shlibpath_var=PATH
15726   ;;
15727
15728 darwin* | rhapsody*)
15729   dynamic_linker="$host_os dyld"
15730   version_type=darwin
15731   need_lib_prefix=no
15732   need_version=no
15733   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15734   soname_spec='${libname}${release}${major}$shared_ext'
15735   shlibpath_overrides_runpath=yes
15736   shlibpath_var=DYLD_LIBRARY_PATH
15737   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15738
15739   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15740   ;;
15741
15742 dgux*)
15743   version_type=linux
15744   need_lib_prefix=no
15745   need_version=no
15746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15747   soname_spec='${libname}${release}${shared_ext}$major'
15748   shlibpath_var=LD_LIBRARY_PATH
15749   ;;
15750
15751 freebsd1*)
15752   dynamic_linker=no
15753   ;;
15754
15755 freebsd* | dragonfly*)
15756   # DragonFly does not have aout.  When/if they implement a new
15757   # versioning mechanism, adjust this.
15758   if test -x /usr/bin/objformat; then
15759     objformat=`/usr/bin/objformat`
15760   else
15761     case $host_os in
15762     freebsd[123]*) objformat=aout ;;
15763     *) objformat=elf ;;
15764     esac
15765   fi
15766   version_type=freebsd-$objformat
15767   case $version_type in
15768     freebsd-elf*)
15769       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15770       need_version=no
15771       need_lib_prefix=no
15772       ;;
15773     freebsd-*)
15774       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15775       need_version=yes
15776       ;;
15777   esac
15778   shlibpath_var=LD_LIBRARY_PATH
15779   case $host_os in
15780   freebsd2*)
15781     shlibpath_overrides_runpath=yes
15782     ;;
15783   freebsd3.[01]* | freebsdelf3.[01]*)
15784     shlibpath_overrides_runpath=yes
15785     hardcode_into_libs=yes
15786     ;;
15787   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15788   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15789     shlibpath_overrides_runpath=no
15790     hardcode_into_libs=yes
15791     ;;
15792   *) # from 4.6 on, and DragonFly
15793     shlibpath_overrides_runpath=yes
15794     hardcode_into_libs=yes
15795     ;;
15796   esac
15797   ;;
15798
15799 gnu*)
15800   version_type=linux
15801   need_lib_prefix=no
15802   need_version=no
15803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15804   soname_spec='${libname}${release}${shared_ext}$major'
15805   shlibpath_var=LD_LIBRARY_PATH
15806   hardcode_into_libs=yes
15807   ;;
15808
15809 haiku*)
15810   version_type=linux
15811   need_lib_prefix=no
15812   need_version=no
15813   dynamic_linker="$host_os runtime_loader"
15814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15815   soname_spec='${libname}${release}${shared_ext}$major'
15816   shlibpath_var=LIBRARY_PATH
15817   shlibpath_overrides_runpath=yes
15818   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15819   hardcode_into_libs=yes
15820   ;;
15821
15822 hpux9* | hpux10* | hpux11*)
15823   # Give a soname corresponding to the major version so that dld.sl refuses to
15824   # link against other versions.
15825   version_type=sunos
15826   need_lib_prefix=no
15827   need_version=no
15828   case $host_cpu in
15829   ia64*)
15830     shrext_cmds='.so'
15831     hardcode_into_libs=yes
15832     dynamic_linker="$host_os dld.so"
15833     shlibpath_var=LD_LIBRARY_PATH
15834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836     soname_spec='${libname}${release}${shared_ext}$major'
15837     if test "X$HPUX_IA64_MODE" = X32; then
15838       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15839     else
15840       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15841     fi
15842     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15843     ;;
15844   hppa*64*)
15845     shrext_cmds='.sl'
15846     hardcode_into_libs=yes
15847     dynamic_linker="$host_os dld.sl"
15848     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15849     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851     soname_spec='${libname}${release}${shared_ext}$major'
15852     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15853     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15854     ;;
15855   *)
15856     shrext_cmds='.sl'
15857     dynamic_linker="$host_os dld.sl"
15858     shlibpath_var=SHLIB_PATH
15859     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861     soname_spec='${libname}${release}${shared_ext}$major'
15862     ;;
15863   esac
15864   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15865   postinstall_cmds='chmod 555 $lib'
15866   # or fails outright, so override atomically:
15867   install_override_mode=555
15868   ;;
15869
15870 interix[3-9]*)
15871   version_type=linux
15872   need_lib_prefix=no
15873   need_version=no
15874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15875   soname_spec='${libname}${release}${shared_ext}$major'
15876   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15877   shlibpath_var=LD_LIBRARY_PATH
15878   shlibpath_overrides_runpath=no
15879   hardcode_into_libs=yes
15880   ;;
15881
15882 irix5* | irix6* | nonstopux*)
15883   case $host_os in
15884     nonstopux*) version_type=nonstopux ;;
15885     *)
15886         if test "$lt_cv_prog_gnu_ld" = yes; then
15887                 version_type=linux
15888         else
15889                 version_type=irix
15890         fi ;;
15891   esac
15892   need_lib_prefix=no
15893   need_version=no
15894   soname_spec='${libname}${release}${shared_ext}$major'
15895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15896   case $host_os in
15897   irix5* | nonstopux*)
15898     libsuff= shlibsuff=
15899     ;;
15900   *)
15901     case $LD in # libtool.m4 will add one of these switches to LD
15902     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15903       libsuff= shlibsuff= libmagic=32-bit;;
15904     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15905       libsuff=32 shlibsuff=N32 libmagic=N32;;
15906     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15907       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15908     *) libsuff= shlibsuff= libmagic=never-match;;
15909     esac
15910     ;;
15911   esac
15912   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15913   shlibpath_overrides_runpath=no
15914   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15915   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15916   hardcode_into_libs=yes
15917   ;;
15918
15919 # No shared lib support for Linux oldld, aout, or coff.
15920 linux*oldld* | linux*aout* | linux*coff*)
15921   dynamic_linker=no
15922   ;;
15923
15924 # This must be Linux ELF.
15925 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15926   version_type=linux
15927   need_lib_prefix=no
15928   need_version=no
15929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930   soname_spec='${libname}${release}${shared_ext}$major'
15931   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15932   shlibpath_var=LD_LIBRARY_PATH
15933   shlibpath_overrides_runpath=no
15934
15935   # Some binutils ld are patched to set DT_RUNPATH
15936   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15937   $as_echo_n "(cached) " >&6
15938 else
15939   lt_cv_shlibpath_overrides_runpath=no
15940     save_LDFLAGS=$LDFLAGS
15941     save_libdir=$libdir
15942     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15943          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15944     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h.  */
15946
15947 int
15948 main ()
15949 {
15950
15951   ;
15952   return 0;
15953 }
15954 _ACEOF
15955 if ac_fn_cxx_try_link "$LINENO"; then :
15956   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15957   lt_cv_shlibpath_overrides_runpath=yes
15958 fi
15959 fi
15960 rm -f core conftest.err conftest.$ac_objext \
15961     conftest$ac_exeext conftest.$ac_ext
15962     LDFLAGS=$save_LDFLAGS
15963     libdir=$save_libdir
15964
15965 fi
15966
15967   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15968
15969   # This implies no fast_install, which is unacceptable.
15970   # Some rework will be needed to allow for fast_install
15971   # before this can be enabled.
15972   hardcode_into_libs=yes
15973
15974   # Append ld.so.conf contents to the search path
15975   if test -f /etc/ld.so.conf; then
15976     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' ' '`
15977     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15978   fi
15979
15980   # We used to test for /lib/ld.so.1 and disable shared libraries on
15981   # powerpc, because MkLinux only supported shared libraries with the
15982   # GNU dynamic linker.  Since this was broken with cross compilers,
15983   # most powerpc-linux boxes support dynamic linking these days and
15984   # people can always --disable-shared, the test was removed, and we
15985   # assume the GNU/Linux dynamic linker is in use.
15986   dynamic_linker='GNU/Linux ld.so'
15987   ;;
15988
15989 netbsd*)
15990   version_type=sunos
15991   need_lib_prefix=no
15992   need_version=no
15993   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15995     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15996     dynamic_linker='NetBSD (a.out) ld.so'
15997   else
15998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15999     soname_spec='${libname}${release}${shared_ext}$major'
16000     dynamic_linker='NetBSD ld.elf_so'
16001   fi
16002   shlibpath_var=LD_LIBRARY_PATH
16003   shlibpath_overrides_runpath=yes
16004   hardcode_into_libs=yes
16005   ;;
16006
16007 newsos6)
16008   version_type=linux
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010   shlibpath_var=LD_LIBRARY_PATH
16011   shlibpath_overrides_runpath=yes
16012   ;;
16013
16014 *nto* | *qnx*)
16015   version_type=qnx
16016   need_lib_prefix=no
16017   need_version=no
16018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019   soname_spec='${libname}${release}${shared_ext}$major'
16020   shlibpath_var=LD_LIBRARY_PATH
16021   shlibpath_overrides_runpath=no
16022   hardcode_into_libs=yes
16023   dynamic_linker='ldqnx.so'
16024   ;;
16025
16026 openbsd*)
16027   version_type=sunos
16028   sys_lib_dlsearch_path_spec="/usr/lib"
16029   need_lib_prefix=no
16030   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16031   case $host_os in
16032     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16033     *)                          need_version=no  ;;
16034   esac
16035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16036   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16037   shlibpath_var=LD_LIBRARY_PATH
16038   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16039     case $host_os in
16040       openbsd2.[89] | openbsd2.[89].*)
16041         shlibpath_overrides_runpath=no
16042         ;;
16043       *)
16044         shlibpath_overrides_runpath=yes
16045         ;;
16046       esac
16047   else
16048     shlibpath_overrides_runpath=yes
16049   fi
16050   ;;
16051
16052 os2*)
16053   libname_spec='$name'
16054   shrext_cmds=".dll"
16055   need_lib_prefix=no
16056   library_names_spec='$libname${shared_ext} $libname.a'
16057   dynamic_linker='OS/2 ld.exe'
16058   shlibpath_var=LIBPATH
16059   ;;
16060
16061 osf3* | osf4* | osf5*)
16062   version_type=osf
16063   need_lib_prefix=no
16064   need_version=no
16065   soname_spec='${libname}${release}${shared_ext}$major'
16066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067   shlibpath_var=LD_LIBRARY_PATH
16068   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16069   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16070   ;;
16071
16072 rdos*)
16073   dynamic_linker=no
16074   ;;
16075
16076 solaris*)
16077   version_type=linux
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=yes
16084   hardcode_into_libs=yes
16085   # ldd complains unless libraries are executable
16086   postinstall_cmds='chmod +x $lib'
16087   ;;
16088
16089 sunos4*)
16090   version_type=sunos
16091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16092   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16093   shlibpath_var=LD_LIBRARY_PATH
16094   shlibpath_overrides_runpath=yes
16095   if test "$with_gnu_ld" = yes; then
16096     need_lib_prefix=no
16097   fi
16098   need_version=yes
16099   ;;
16100
16101 sysv4 | sysv4.3*)
16102   version_type=linux
16103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104   soname_spec='${libname}${release}${shared_ext}$major'
16105   shlibpath_var=LD_LIBRARY_PATH
16106   case $host_vendor in
16107     sni)
16108       shlibpath_overrides_runpath=no
16109       need_lib_prefix=no
16110       runpath_var=LD_RUN_PATH
16111       ;;
16112     siemens)
16113       need_lib_prefix=no
16114       ;;
16115     motorola)
16116       need_lib_prefix=no
16117       need_version=no
16118       shlibpath_overrides_runpath=no
16119       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16120       ;;
16121   esac
16122   ;;
16123
16124 sysv4*MP*)
16125   if test -d /usr/nec ;then
16126     version_type=linux
16127     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16128     soname_spec='$libname${shared_ext}.$major'
16129     shlibpath_var=LD_LIBRARY_PATH
16130   fi
16131   ;;
16132
16133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16134   version_type=freebsd-elf
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=yes
16141   hardcode_into_libs=yes
16142   if test "$with_gnu_ld" = yes; then
16143     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16144   else
16145     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16146     case $host_os in
16147       sco3.2v5*)
16148         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16149         ;;
16150     esac
16151   fi
16152   sys_lib_dlsearch_path_spec='/usr/lib'
16153   ;;
16154
16155 tpf*)
16156   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16157   version_type=linux
16158   need_lib_prefix=no
16159   need_version=no
16160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161   shlibpath_var=LD_LIBRARY_PATH
16162   shlibpath_overrides_runpath=no
16163   hardcode_into_libs=yes
16164   ;;
16165
16166 uts4*)
16167   version_type=linux
16168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169   soname_spec='${libname}${release}${shared_ext}$major'
16170   shlibpath_var=LD_LIBRARY_PATH
16171   ;;
16172
16173 *)
16174   dynamic_linker=no
16175   ;;
16176 esac
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16178 $as_echo "$dynamic_linker" >&6; }
16179 test "$dynamic_linker" = no && can_build_shared=no
16180
16181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16182 if test "$GCC" = yes; then
16183   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16184 fi
16185
16186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16187   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16188 fi
16189 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16190   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16191 fi
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16232 hardcode_action_CXX=
16233 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16234    test -n "$runpath_var_CXX" ||
16235    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16236
16237   # We can hardcode non-existent directories.
16238   if test "$hardcode_direct_CXX" != no &&
16239      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16240      # have to relink, otherwise we might link with an installed library
16241      # when we should be linking with a yet-to-be-installed one
16242      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16243      test "$hardcode_minus_L_CXX" != no; then
16244     # Linking always hardcodes the temporary library directory.
16245     hardcode_action_CXX=relink
16246   else
16247     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16248     hardcode_action_CXX=immediate
16249   fi
16250 else
16251   # We cannot hardcode anything, or else we can only hardcode existing
16252   # directories.
16253   hardcode_action_CXX=unsupported
16254 fi
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16256 $as_echo "$hardcode_action_CXX" >&6; }
16257
16258 if test "$hardcode_action_CXX" = relink ||
16259    test "$inherit_rpath_CXX" = yes; then
16260   # Fast installation is not supported
16261   enable_fast_install=no
16262 elif test "$shlibpath_overrides_runpath" = yes ||
16263      test "$enable_shared" = no; then
16264   # Fast installation is not necessary
16265   enable_fast_install=needless
16266 fi
16267
16268
16269
16270
16271
16272
16273
16274   fi # test -n "$compiler"
16275
16276   CC=$lt_save_CC
16277   CFLAGS=$lt_save_CFLAGS
16278   LDCXX=$LD
16279   LD=$lt_save_LD
16280   GCC=$lt_save_GCC
16281   with_gnu_ld=$lt_save_with_gnu_ld
16282   lt_cv_path_LDCXX=$lt_cv_path_LD
16283   lt_cv_path_LD=$lt_save_path_LD
16284   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16285   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16286 fi # test "$_lt_caught_CXX_error" != yes
16287
16288 ac_ext=c
16289 ac_cpp='$CPP $CPPFLAGS'
16290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306         ac_config_commands="$ac_config_commands libtool"
16307
16308
16309
16310
16311 # Only expand once:
16312
16313
16314
16315 LT_DLLOADERS=
16316
16317
16318 ac_ext=c
16319 ac_cpp='$CPP $CPPFLAGS'
16320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16323
16324
16325 LIBADD_DLOPEN=
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16327 $as_echo_n "checking for library containing dlopen... " >&6; }
16328 if ${ac_cv_search_dlopen+:} false; then :
16329   $as_echo_n "(cached) " >&6
16330 else
16331   ac_func_search_save_LIBS=$LIBS
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h.  */
16334
16335 /* Override any GCC internal prototype to avoid an error.
16336    Use char because int might match the return type of a GCC
16337    builtin and then its argument prototype would still apply.  */
16338 #ifdef __cplusplus
16339 extern "C"
16340 #endif
16341 char dlopen ();
16342 int
16343 main ()
16344 {
16345 return dlopen ();
16346   ;
16347   return 0;
16348 }
16349 _ACEOF
16350 for ac_lib in '' dl; do
16351   if test -z "$ac_lib"; then
16352     ac_res="none required"
16353   else
16354     ac_res=-l$ac_lib
16355     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16356   fi
16357   if ac_fn_c_try_link "$LINENO"; then :
16358   ac_cv_search_dlopen=$ac_res
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext \
16361     conftest$ac_exeext
16362   if ${ac_cv_search_dlopen+:} false; then :
16363   break
16364 fi
16365 done
16366 if ${ac_cv_search_dlopen+:} false; then :
16367
16368 else
16369   ac_cv_search_dlopen=no
16370 fi
16371 rm conftest.$ac_ext
16372 LIBS=$ac_func_search_save_LIBS
16373 fi
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16375 $as_echo "$ac_cv_search_dlopen" >&6; }
16376 ac_res=$ac_cv_search_dlopen
16377 if test "$ac_res" != no; then :
16378   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16379
16380 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16381
16382         if test "$ac_cv_search_dlopen" != "none required" ; then
16383           LIBADD_DLOPEN="-ldl"
16384         fi
16385         libltdl_cv_lib_dl_dlopen="yes"
16386         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16387 else
16388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h.  */
16390 #if HAVE_DLFCN_H
16391 #  include <dlfcn.h>
16392 #endif
16393
16394 int
16395 main ()
16396 {
16397 dlopen(0, 0);
16398   ;
16399   return 0;
16400 }
16401 _ACEOF
16402 if ac_fn_c_try_link "$LINENO"; then :
16403
16404 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16405
16406             libltdl_cv_func_dlopen="yes"
16407             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16408 else
16409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16410 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16411 if ${ac_cv_lib_svld_dlopen+:} false; then :
16412   $as_echo_n "(cached) " >&6
16413 else
16414   ac_check_lib_save_LIBS=$LIBS
16415 LIBS="-lsvld  $LIBS"
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h.  */
16418
16419 /* Override any GCC internal prototype to avoid an error.
16420    Use char because int might match the return type of a GCC
16421    builtin and then its argument prototype would still apply.  */
16422 #ifdef __cplusplus
16423 extern "C"
16424 #endif
16425 char dlopen ();
16426 int
16427 main ()
16428 {
16429 return dlopen ();
16430   ;
16431   return 0;
16432 }
16433 _ACEOF
16434 if ac_fn_c_try_link "$LINENO"; then :
16435   ac_cv_lib_svld_dlopen=yes
16436 else
16437   ac_cv_lib_svld_dlopen=no
16438 fi
16439 rm -f core conftest.err conftest.$ac_objext \
16440     conftest$ac_exeext conftest.$ac_ext
16441 LIBS=$ac_check_lib_save_LIBS
16442 fi
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16444 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16445 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16446
16447 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16448
16449                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16450                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16451 fi
16452
16453 fi
16454 rm -f core conftest.err conftest.$ac_objext \
16455     conftest$ac_exeext conftest.$ac_ext
16456 fi
16457
16458 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16459 then
16460   lt_save_LIBS="$LIBS"
16461   LIBS="$LIBS $LIBADD_DLOPEN"
16462   for ac_func in dlerror
16463 do :
16464   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16465 if test "x$ac_cv_func_dlerror" = xyes; then :
16466   cat >>confdefs.h <<_ACEOF
16467 #define HAVE_DLERROR 1
16468 _ACEOF
16469
16470 fi
16471 done
16472
16473   LIBS="$lt_save_LIBS"
16474 fi
16475
16476
16477 LIBADD_SHL_LOAD=
16478 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16479 if test "x$ac_cv_func_shl_load" = xyes; then :
16480
16481 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16482
16483         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16484 else
16485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16486 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16487 if ${ac_cv_lib_dld_shl_load+:} false; then :
16488   $as_echo_n "(cached) " >&6
16489 else
16490   ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-ldld  $LIBS"
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h.  */
16494
16495 /* Override any GCC internal prototype to avoid an error.
16496    Use char because int might match the return type of a GCC
16497    builtin and then its argument prototype would still apply.  */
16498 #ifdef __cplusplus
16499 extern "C"
16500 #endif
16501 char shl_load ();
16502 int
16503 main ()
16504 {
16505 return shl_load ();
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_c_try_link "$LINENO"; then :
16511   ac_cv_lib_dld_shl_load=yes
16512 else
16513   ac_cv_lib_dld_shl_load=no
16514 fi
16515 rm -f core conftest.err conftest.$ac_objext \
16516     conftest$ac_exeext conftest.$ac_ext
16517 LIBS=$ac_check_lib_save_LIBS
16518 fi
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16520 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16521 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16522
16523 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16524
16525             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16526             LIBADD_SHL_LOAD="-ldld"
16527 fi
16528
16529 fi
16530
16531
16532
16533 case $host_os in
16534 darwin[1567].*)
16535 # We only want this for pre-Mac OS X 10.4.
16536   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16537 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16538
16539 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16540
16541         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16542 fi
16543
16544   ;;
16545 beos*)
16546   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16547   ;;
16548 cygwin* | mingw* | os2* | pw32*)
16549   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16550 "
16551 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16552   ac_have_decl=1
16553 else
16554   ac_have_decl=0
16555 fi
16556
16557 cat >>confdefs.h <<_ACEOF
16558 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16559 _ACEOF
16560
16561   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16562   ;;
16563 esac
16564
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16566 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16567 if ${ac_cv_lib_dld_dld_link+:} false; then :
16568   $as_echo_n "(cached) " >&6
16569 else
16570   ac_check_lib_save_LIBS=$LIBS
16571 LIBS="-ldld  $LIBS"
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h.  */
16574
16575 /* Override any GCC internal prototype to avoid an error.
16576    Use char because int might match the return type of a GCC
16577    builtin and then its argument prototype would still apply.  */
16578 #ifdef __cplusplus
16579 extern "C"
16580 #endif
16581 char dld_link ();
16582 int
16583 main ()
16584 {
16585 return dld_link ();
16586   ;
16587   return 0;
16588 }
16589 _ACEOF
16590 if ac_fn_c_try_link "$LINENO"; then :
16591   ac_cv_lib_dld_dld_link=yes
16592 else
16593   ac_cv_lib_dld_dld_link=no
16594 fi
16595 rm -f core conftest.err conftest.$ac_objext \
16596     conftest$ac_exeext conftest.$ac_ext
16597 LIBS=$ac_check_lib_save_LIBS
16598 fi
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16600 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16601 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16602
16603 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16604
16605                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16606 fi
16607
16608
16609
16610
16611 LT_DLPREOPEN=
16612 if test -n "$LT_DLLOADERS"
16613 then
16614   for lt_loader in $LT_DLLOADERS; do
16615     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16616   done
16617
16618 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16619
16620 fi
16621
16622
16623 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16624
16625
16626 ac_ext=c
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16631
16632
16633
16634
16635 if test x$use_libtool != xno; then
16636    DEFAULT_OBJECT_TYPE=".lo"
16637    DEFAULT_ARCHIVE_TYPE=".la"
16638    DEFAULT_SHARED_OBJECT_TYPE=".la"
16639    LIBTOOL="\$(LIBTOOL)"
16640    LIBTOOL_INSTALL_TARGET="libtool-install"
16641    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16642    LIBTOOL_CLEAN_TARGET="libtool-clean"
16643    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16644    FD_PLUGIN_DIR="src/plugins/fd"
16645    have_plugins=yes
16646 else
16647    DEFAULT_OBJECT_TYPE=".o"
16648    DEFAULT_ARCHIVE_TYPE=".a"
16649    DEFAULT_SHARED_OBJECT_TYPE=".so"
16650    LIBTOOL="# \$(LIBTOOL)"
16651    LIBTOOL_INSTALL_TARGET=""
16652    LIBTOOL_UNINSTALL_TARGET=""
16653    LIBTOOL_CLEAN_TARGET=""
16654    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16655    FD_PLUGIN_DIR=""
16656    have_plugins=no
16657 fi
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669 # Check whether --enable-includes was given.
16670 if test "${enable_includes+set}" = set; then :
16671   enableval=$enable_includes;
16672        if test x$enableval = xyes; then
16673           install_includes=yes
16674        fi
16675
16676
16677 fi
16678
16679
16680
16681 if test x$use_libtool != xno -a x$install_includes = xyes; then
16682    INCLUDE_INSTALL_TARGET="install-includes"
16683    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16684 else
16685    INCLUDE_INSTALL_TARGET=""
16686    INCLUDE_UNINSTALL_TARGET=""
16687 fi
16688
16689
16690
16691
16692
16693 case $host_os in
16694   *cygwin* ) CYGWIN=yes;;
16695          * ) CYGWIN=no;;
16696 esac
16697
16698 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16699 then
16700
16701
16702 if $TRUEPRG; then
16703   HAVE_SUN_OS_TRUE=
16704   HAVE_SUN_OS_FALSE='#'
16705 else
16706   HAVE_SUN_OS_TRUE='#'
16707   HAVE_SUN_OS_FALSE=
16708 fi
16709         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16710
16711 else
16712
16713
16714 if $FALSEPRG; then
16715   HAVE_SUN_OS_TRUE=
16716   HAVE_SUN_OS_FALSE='#'
16717 else
16718   HAVE_SUN_OS_TRUE='#'
16719   HAVE_SUN_OS_FALSE=
16720 fi
16721 fi
16722
16723 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16724 then
16725
16726
16727 if $TRUEPRG; then
16728   HAVE_HURD_OS_TRUE=
16729   HAVE_HURD_OS_FALSE='#'
16730 else
16731   HAVE_HURD_OS_TRUE='#'
16732   HAVE_HURD_OS_FALSE=
16733 fi
16734         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16735
16736 else
16737
16738
16739 if $FALSEPRG; then
16740   HAVE_HURD_OS_TRUE=
16741   HAVE_HURD_OS_FALSE='#'
16742 else
16743   HAVE_HURD_OS_TRUE='#'
16744   HAVE_HURD_OS_FALSE=
16745 fi
16746 fi
16747
16748 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16749 then
16750
16751
16752 if $TRUEPRG; then
16753   HAVE_OSF1_OS_TRUE=
16754   HAVE_OSF1_OS_FALSE='#'
16755 else
16756   HAVE_OSF1_OS_TRUE='#'
16757   HAVE_OSF1_OS_FALSE=
16758 fi
16759         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16760
16761 else
16762
16763
16764 if $FALSEPRG; then
16765   HAVE_OSF1_OS_TRUE=
16766   HAVE_OSF1_OS_FALSE='#'
16767 else
16768   HAVE_OSF1_OS_TRUE='#'
16769   HAVE_OSF1_OS_FALSE=
16770 fi
16771 fi
16772
16773 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16774 then
16775
16776
16777 if $TRUEPRG; then
16778   HAVE_AIX_OS_TRUE=
16779   HAVE_AIX_OS_FALSE='#'
16780 else
16781   HAVE_AIX_OS_TRUE='#'
16782   HAVE_AIX_OS_FALSE=
16783 fi
16784         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16785
16786 else
16787
16788
16789 if $FALSEPRG; then
16790   HAVE_AIX_OS_TRUE=
16791   HAVE_AIX_OS_FALSE='#'
16792 else
16793   HAVE_AIX_OS_TRUE='#'
16794   HAVE_AIX_OS_FALSE=
16795 fi
16796 fi
16797
16798 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16799 then
16800
16801
16802 if $TRUEPRG; then
16803   HAVE_HPUX_OS_TRUE=
16804   HAVE_HPUX_OS_FALSE='#'
16805 else
16806   HAVE_HPUX_OS_TRUE='#'
16807   HAVE_HPUX_OS_FALSE=
16808 fi
16809         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16810
16811 else
16812
16813
16814 if $FALSEPRG; then
16815   HAVE_HPUX_OS_TRUE=
16816   HAVE_HPUX_OS_FALSE='#'
16817 else
16818   HAVE_HPUX_OS_TRUE='#'
16819   HAVE_HPUX_OS_FALSE=
16820 fi
16821 fi
16822
16823 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16824 then
16825
16826
16827 if $TRUEPRG; then
16828   HAVE_LINUX_OS_TRUE=
16829   HAVE_LINUX_OS_FALSE='#'
16830 else
16831   HAVE_LINUX_OS_TRUE='#'
16832   HAVE_LINUX_OS_FALSE=
16833 fi
16834         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16835
16836 else
16837
16838
16839 if $FALSEPRG; then
16840   HAVE_LINUX_OS_TRUE=
16841   HAVE_LINUX_OS_FALSE='#'
16842 else
16843   HAVE_LINUX_OS_TRUE='#'
16844   HAVE_LINUX_OS_FALSE=
16845 fi
16846 fi
16847
16848 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16849 then
16850
16851
16852 if $TRUEPRG; then
16853   HAVE_FREEBSD_OS_TRUE=
16854   HAVE_FREEBSD_OS_FALSE='#'
16855 else
16856   HAVE_FREEBSD_OS_TRUE='#'
16857   HAVE_FREEBSD_OS_FALSE=
16858 fi
16859         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16860
16861 else
16862
16863
16864 if $FALSEPRG; then
16865   HAVE_FREEBSD_OS_TRUE=
16866   HAVE_FREEBSD_OS_FALSE='#'
16867 else
16868   HAVE_FREEBSD_OS_TRUE='#'
16869   HAVE_FREEBSD_OS_FALSE=
16870 fi
16871 fi
16872
16873 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16874 then
16875
16876
16877 if $TRUEPRG; then
16878   HAVE_NETBSD_OS_TRUE=
16879   HAVE_NETBSD_OS_FALSE='#'
16880 else
16881   HAVE_NETBSD_OS_TRUE='#'
16882   HAVE_NETBSD_OS_FALSE=
16883 fi
16884         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16885
16886 else
16887
16888
16889 if $FALSEPRG; then
16890   HAVE_NETBSD_OS_TRUE=
16891   HAVE_NETBSD_OS_FALSE='#'
16892 else
16893   HAVE_NETBSD_OS_TRUE='#'
16894   HAVE_NETBSD_OS_FALSE=
16895 fi
16896 fi
16897
16898 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16899 then
16900
16901
16902 if $TRUEPRG; then
16903   HAVE_OPENBSD_OS_TRUE=
16904   HAVE_OPENBSD_OS_FALSE='#'
16905 else
16906   HAVE_OPENBSD_OS_TRUE='#'
16907   HAVE_OPENBSD_OS_FALSE=
16908 fi
16909         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16910
16911 else
16912
16913
16914 if $FALSEPRG; then
16915   HAVE_OPENBSD_OS_TRUE=
16916   HAVE_OPENBSD_OS_FALSE='#'
16917 else
16918   HAVE_OPENBSD_OS_TRUE='#'
16919   HAVE_OPENBSD_OS_FALSE=
16920 fi
16921 fi
16922
16923 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16924 then
16925
16926
16927 if $TRUEPRG; then
16928   HAVE_BSDI_OS_TRUE=
16929   HAVE_BSDI_OS_FALSE='#'
16930 else
16931   HAVE_BSDI_OS_TRUE='#'
16932   HAVE_BSDI_OS_FALSE=
16933 fi
16934         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16935
16936 else
16937
16938
16939 if $FALSEPRG; then
16940   HAVE_BSDI_OS_TRUE=
16941   HAVE_BSDI_OS_FALSE='#'
16942 else
16943   HAVE_BSDI_OS_TRUE='#'
16944   HAVE_BSDI_OS_FALSE=
16945 fi
16946 fi
16947
16948 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16949 then
16950
16951
16952 if $TRUEPRG; then
16953   HAVE_SGI_OS_TRUE=
16954   HAVE_SGI_OS_FALSE='#'
16955 else
16956   HAVE_SGI_OS_TRUE='#'
16957   HAVE_SGI_OS_FALSE=
16958 fi
16959         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16960
16961 else
16962
16963
16964 if $FALSEPRG; then
16965   HAVE_SGI_OS_TRUE=
16966   HAVE_SGI_OS_FALSE='#'
16967 else
16968   HAVE_SGI_OS_TRUE='#'
16969   HAVE_SGI_OS_FALSE=
16970 fi
16971 fi
16972
16973 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16974 then
16975
16976
16977 if $TRUEPRG; then
16978   HAVE_IRIX_OS_TRUE=
16979   HAVE_IRIX_OS_FALSE='#'
16980 else
16981   HAVE_IRIX_OS_TRUE='#'
16982   HAVE_IRIX_OS_FALSE=
16983 fi
16984         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16985
16986 else
16987
16988
16989 if $FALSEPRG; then
16990   HAVE_IRIX_OS_TRUE=
16991   HAVE_IRIX_OS_FALSE='#'
16992 else
16993   HAVE_IRIX_OS_TRUE='#'
16994   HAVE_IRIX_OS_FALSE=
16995 fi
16996 fi
16997
16998 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16999 then
17000
17001
17002 if $TRUEPRG; then
17003   HAVE_DARWIN_OS_TRUE=
17004   HAVE_DARWIN_OS_FALSE='#'
17005 else
17006   HAVE_DARWIN_OS_TRUE='#'
17007   HAVE_DARWIN_OS_FALSE=
17008 fi
17009     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17010
17011 else
17012
17013
17014 if $FALSEPRG; then
17015   HAVE_DARWIN_OS_TRUE=
17016   HAVE_DARWIN_OS_FALSE='#'
17017 else
17018   HAVE_DARWIN_OS_TRUE='#'
17019   HAVE_DARWIN_OS_FALSE=
17020 fi
17021 fi
17022
17023
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17025 $as_echo_n "checking for Operating System Distribution... " >&6; }
17026 if test "x$DISTNAME" != "x"
17027 then
17028         echo "distname set to $DISTNAME"
17029 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17030 then
17031         DISTNAME=alpha
17032 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17033 then
17034         DISTNAME=aix
17035 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17036 then
17037         DISTNAME=hpux
17038 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17039 then
17040         DISTNAME=solaris
17041 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17042 then
17043         DISTNAME=hurd
17044 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17045 then
17046         DISTNAME=freebsd
17047 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17048 then
17049         DISTNAME=netbsd
17050 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17051 then
17052         DISTNAME=openbsd
17053 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17054 then
17055         DISTNAME=irix
17056 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17057 then
17058         DISTNAME=bsdi
17059 elif test -f /etc/SuSE-release
17060 then
17061         DISTNAME=suse
17062 elif test -d /etc/SuSEconfig
17063 then
17064         DISTNAME=suse5
17065 elif test -f /etc/mandrake-release
17066 then
17067         DISTNAME=mandrake
17068 elif test -f /etc/whitebox-release
17069 then
17070        DISTNAME=redhat
17071 elif test -f /etc/redhat-release
17072 then
17073         DISTNAME=redhat
17074 elif test -f /etc/gentoo-release
17075 then
17076         DISTNAME=gentoo
17077 elif test -f /etc/debian_version
17078 then
17079         DISTNAME=debian
17080 elif test -f /etc/slackware-version
17081 then
17082         DISTNAME=slackware
17083 elif test x$host_vendor = xapple
17084 then
17085     DISTNAME=osx
17086 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17087 then
17088     DISTNAME=darwin
17089 elif test -f /etc/engarde-version
17090 then
17091         DISTNAME=engarde
17092 elif test -f /etc/arch-release
17093 then
17094         DISTNAME=archlinux
17095 elif test "$CYGWIN" = yes
17096 then
17097         DISTNAME=cygwin
17098         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17099
17100 else
17101         DISTNAME=unknown
17102 fi
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17104 $as_echo "done" >&6; }
17105
17106
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17108 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17109 set x ${MAKE-make}
17110 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17111 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17112   $as_echo_n "(cached) " >&6
17113 else
17114   cat >conftest.make <<\_ACEOF
17115 SHELL = /bin/sh
17116 all:
17117         @echo '@@@%%%=$(MAKE)=@@@%%%'
17118 _ACEOF
17119 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17120 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17121   *@@@%%%=?*=@@@%%%*)
17122     eval ac_cv_prog_make_${ac_make}_set=yes;;
17123   *)
17124     eval ac_cv_prog_make_${ac_make}_set=no;;
17125 esac
17126 rm -f conftest.make
17127 fi
17128 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17130 $as_echo "yes" >&6; }
17131   SET_MAKE=
17132 else
17133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17134 $as_echo "no" >&6; }
17135   SET_MAKE="MAKE=${MAKE-make}"
17136 fi
17137
17138
17139
17140         MKINSTALLDIRS=
17141   if test -n "$ac_aux_dir"; then
17142     case "$ac_aux_dir" in
17143       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17144       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17145     esac
17146   fi
17147   if test -z "$MKINSTALLDIRS"; then
17148     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17149   fi
17150
17151
17152
17153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17154 $as_echo_n "checking whether NLS is requested... " >&6; }
17155     # Check whether --enable-nls was given.
17156 if test "${enable_nls+set}" = set; then :
17157   enableval=$enable_nls; USE_NLS=$enableval
17158 else
17159   USE_NLS=yes
17160 fi
17161
17162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17163 $as_echo "$USE_NLS" >&6; }
17164
17165
17166
17167
17168
17169
17170 # Prepare PATH_SEPARATOR.
17171 # The user is always right.
17172 if test "${PATH_SEPARATOR+set}" != set; then
17173   echo "#! /bin/sh" >conf$$.sh
17174   echo  "exit 0"   >>conf$$.sh
17175   chmod +x conf$$.sh
17176   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17177     PATH_SEPARATOR=';'
17178   else
17179     PATH_SEPARATOR=:
17180   fi
17181   rm -f conf$$.sh
17182 fi
17183
17184 # Find out how to test for executable files. Don't use a zero-byte file,
17185 # as systems may use methods other than mode bits to determine executability.
17186 cat >conf$$.file <<_ASEOF
17187 #! /bin/sh
17188 exit 0
17189 _ASEOF
17190 chmod +x conf$$.file
17191 if test -x conf$$.file >/dev/null 2>&1; then
17192   ac_executable_p="test -x"
17193 else
17194   ac_executable_p="test -f"
17195 fi
17196 rm -f conf$$.file
17197
17198 # Extract the first word of "msgfmt", so it can be a program name with args.
17199 set dummy msgfmt; ac_word=$2
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17201 $as_echo_n "checking for $ac_word... " >&6; }
17202 if ${ac_cv_path_MSGFMT+:} false; then :
17203   $as_echo_n "(cached) " >&6
17204 else
17205   case "$MSGFMT" in
17206   [\\/]* | ?:[\\/]*)
17207     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17208     ;;
17209   *)
17210     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17211     for ac_dir in $PATH; do
17212       IFS="$ac_save_IFS"
17213       test -z "$ac_dir" && ac_dir=.
17214       for ac_exec_ext in '' $ac_executable_extensions; do
17215         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17216           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17217           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17218      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17219             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17220             break 2
17221           fi
17222         fi
17223       done
17224     done
17225     IFS="$ac_save_IFS"
17226   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17227     ;;
17228 esac
17229 fi
17230 MSGFMT="$ac_cv_path_MSGFMT"
17231 if test "$MSGFMT" != ":"; then
17232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17233 $as_echo "$MSGFMT" >&6; }
17234 else
17235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236 $as_echo "no" >&6; }
17237 fi
17238
17239   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17240 set dummy gmsgfmt; ac_word=$2
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17242 $as_echo_n "checking for $ac_word... " >&6; }
17243 if ${ac_cv_path_GMSGFMT+:} false; then :
17244   $as_echo_n "(cached) " >&6
17245 else
17246   case $GMSGFMT in
17247   [\\/]* | ?:[\\/]*)
17248   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17249   ;;
17250   *)
17251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17252 for as_dir in $PATH
17253 do
17254   IFS=$as_save_IFS
17255   test -z "$as_dir" && as_dir=.
17256     for ac_exec_ext in '' $ac_executable_extensions; do
17257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17258     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17260     break 2
17261   fi
17262 done
17263   done
17264 IFS=$as_save_IFS
17265
17266   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17267   ;;
17268 esac
17269 fi
17270 GMSGFMT=$ac_cv_path_GMSGFMT
17271 if test -n "$GMSGFMT"; then
17272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17273 $as_echo "$GMSGFMT" >&6; }
17274 else
17275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17276 $as_echo "no" >&6; }
17277 fi
17278
17279
17280
17281
17282 # Prepare PATH_SEPARATOR.
17283 # The user is always right.
17284 if test "${PATH_SEPARATOR+set}" != set; then
17285   echo "#! /bin/sh" >conf$$.sh
17286   echo  "exit 0"   >>conf$$.sh
17287   chmod +x conf$$.sh
17288   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17289     PATH_SEPARATOR=';'
17290   else
17291     PATH_SEPARATOR=:
17292   fi
17293   rm -f conf$$.sh
17294 fi
17295
17296 # Find out how to test for executable files. Don't use a zero-byte file,
17297 # as systems may use methods other than mode bits to determine executability.
17298 cat >conf$$.file <<_ASEOF
17299 #! /bin/sh
17300 exit 0
17301 _ASEOF
17302 chmod +x conf$$.file
17303 if test -x conf$$.file >/dev/null 2>&1; then
17304   ac_executable_p="test -x"
17305 else
17306   ac_executable_p="test -f"
17307 fi
17308 rm -f conf$$.file
17309
17310 # Extract the first word of "xgettext", so it can be a program name with args.
17311 set dummy xgettext; ac_word=$2
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17313 $as_echo_n "checking for $ac_word... " >&6; }
17314 if ${ac_cv_path_XGETTEXT+:} false; then :
17315   $as_echo_n "(cached) " >&6
17316 else
17317   case "$XGETTEXT" in
17318   [\\/]* | ?:[\\/]*)
17319     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17320     ;;
17321   *)
17322     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17323     for ac_dir in $PATH; do
17324       IFS="$ac_save_IFS"
17325       test -z "$ac_dir" && ac_dir=.
17326       for ac_exec_ext in '' $ac_executable_extensions; do
17327         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17328           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17329           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17330      (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
17331             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17332             break 2
17333           fi
17334         fi
17335       done
17336     done
17337     IFS="$ac_save_IFS"
17338   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17339     ;;
17340 esac
17341 fi
17342 XGETTEXT="$ac_cv_path_XGETTEXT"
17343 if test "$XGETTEXT" != ":"; then
17344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17345 $as_echo "$XGETTEXT" >&6; }
17346 else
17347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17349 fi
17350
17351     rm -f messages.po
17352
17353
17354 # Prepare PATH_SEPARATOR.
17355 # The user is always right.
17356 if test "${PATH_SEPARATOR+set}" != set; then
17357   echo "#! /bin/sh" >conf$$.sh
17358   echo  "exit 0"   >>conf$$.sh
17359   chmod +x conf$$.sh
17360   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17361     PATH_SEPARATOR=';'
17362   else
17363     PATH_SEPARATOR=:
17364   fi
17365   rm -f conf$$.sh
17366 fi
17367
17368 # Find out how to test for executable files. Don't use a zero-byte file,
17369 # as systems may use methods other than mode bits to determine executability.
17370 cat >conf$$.file <<_ASEOF
17371 #! /bin/sh
17372 exit 0
17373 _ASEOF
17374 chmod +x conf$$.file
17375 if test -x conf$$.file >/dev/null 2>&1; then
17376   ac_executable_p="test -x"
17377 else
17378   ac_executable_p="test -f"
17379 fi
17380 rm -f conf$$.file
17381
17382 # Extract the first word of "msgmerge", so it can be a program name with args.
17383 set dummy msgmerge; ac_word=$2
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17385 $as_echo_n "checking for $ac_word... " >&6; }
17386 if ${ac_cv_path_MSGMERGE+:} false; then :
17387   $as_echo_n "(cached) " >&6
17388 else
17389   case "$MSGMERGE" in
17390   [\\/]* | ?:[\\/]*)
17391     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17392     ;;
17393   *)
17394     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17395     for ac_dir in $PATH; do
17396       IFS="$ac_save_IFS"
17397       test -z "$ac_dir" && ac_dir=.
17398       for ac_exec_ext in '' $ac_executable_extensions; do
17399         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17400           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17401           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17402             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17403             break 2
17404           fi
17405         fi
17406       done
17407     done
17408     IFS="$ac_save_IFS"
17409   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17410     ;;
17411 esac
17412 fi
17413 MSGMERGE="$ac_cv_path_MSGMERGE"
17414 if test "$MSGMERGE" != ":"; then
17415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17416 $as_echo "$MSGMERGE" >&6; }
17417 else
17418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17420 fi
17421
17422
17423       if test "$GMSGFMT" != ":"; then
17424             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17425        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17426       : ;
17427     else
17428       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17429       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17430 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17431       GMSGFMT=":"
17432     fi
17433   fi
17434
17435       if test "$XGETTEXT" != ":"; then
17436             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17437        (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
17438       : ;
17439     else
17440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17441 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17442       XGETTEXT=":"
17443     fi
17444         rm -f messages.po
17445   fi
17446
17447   ac_config_commands="$ac_config_commands default-1"
17448
17449
17450
17451       if test "X$prefix" = "XNONE"; then
17452     acl_final_prefix="$ac_default_prefix"
17453   else
17454     acl_final_prefix="$prefix"
17455   fi
17456   if test "X$exec_prefix" = "XNONE"; then
17457     acl_final_exec_prefix='${prefix}'
17458   else
17459     acl_final_exec_prefix="$exec_prefix"
17460   fi
17461   acl_save_prefix="$prefix"
17462   prefix="$acl_final_prefix"
17463   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17464   prefix="$acl_save_prefix"
17465
17466
17467 # Check whether --with-gnu-ld was given.
17468 if test "${with_gnu_ld+set}" = set; then :
17469   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17470 else
17471   with_gnu_ld=no
17472 fi
17473
17474 # Prepare PATH_SEPARATOR.
17475 # The user is always right.
17476 if test "${PATH_SEPARATOR+set}" != set; then
17477   echo "#! /bin/sh" >conf$$.sh
17478   echo  "exit 0"   >>conf$$.sh
17479   chmod +x conf$$.sh
17480   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17481     PATH_SEPARATOR=';'
17482   else
17483     PATH_SEPARATOR=:
17484   fi
17485   rm -f conf$$.sh
17486 fi
17487 ac_prog=ld
17488 if test "$GCC" = yes; then
17489   # Check if gcc -print-prog-name=ld gives a path.
17490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17491 $as_echo_n "checking for ld used by GCC... " >&6; }
17492   case $host in
17493   *-*-mingw*)
17494     # gcc leaves a trailing carriage return which upsets mingw
17495     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17496   *)
17497     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17498   esac
17499   case $ac_prog in
17500     # Accept absolute paths.
17501     [\\/]* | [A-Za-z]:[\\/]*)
17502       re_direlt='/[^/][^/]*/\.\./'
17503       # Canonicalize the path of ld
17504       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17505       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17506         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17507       done
17508       test -z "$LD" && LD="$ac_prog"
17509       ;;
17510   "")
17511     # If it fails, then pretend we aren't using GCC.
17512     ac_prog=ld
17513     ;;
17514   *)
17515     # If it is relative, then search for the first ld in PATH.
17516     with_gnu_ld=unknown
17517     ;;
17518   esac
17519 elif test "$with_gnu_ld" = yes; then
17520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17521 $as_echo_n "checking for GNU ld... " >&6; }
17522 else
17523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17524 $as_echo_n "checking for non-GNU ld... " >&6; }
17525 fi
17526 if ${acl_cv_path_LD+:} false; then :
17527   $as_echo_n "(cached) " >&6
17528 else
17529   if test -z "$LD"; then
17530   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17531   for ac_dir in $PATH; do
17532     test -z "$ac_dir" && ac_dir=.
17533     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17534       acl_cv_path_LD="$ac_dir/$ac_prog"
17535       # Check to see if the program is GNU ld.  I'd rather use --version,
17536       # but apparently some GNU ld's only accept -v.
17537       # Break only if it was the GNU/non-GNU ld that we prefer.
17538       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17539       *GNU* | *'with BFD'*)
17540         test "$with_gnu_ld" != no && break ;;
17541       *)
17542         test "$with_gnu_ld" != yes && break ;;
17543       esac
17544     fi
17545   done
17546   IFS="$ac_save_ifs"
17547 else
17548   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17549 fi
17550 fi
17551
17552 LD="$acl_cv_path_LD"
17553 if test -n "$LD"; then
17554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17555 $as_echo "$LD" >&6; }
17556 else
17557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 $as_echo "no" >&6; }
17559 fi
17560 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17562 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17563 if ${acl_cv_prog_gnu_ld+:} false; then :
17564   $as_echo_n "(cached) " >&6
17565 else
17566   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17567 case `$LD -v 2>&1 </dev/null` in
17568 *GNU* | *'with BFD'*)
17569   acl_cv_prog_gnu_ld=yes ;;
17570 *)
17571   acl_cv_prog_gnu_ld=no ;;
17572 esac
17573 fi
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17575 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17576 with_gnu_ld=$acl_cv_prog_gnu_ld
17577
17578
17579
17580
17581                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17582 $as_echo_n "checking for shared library run path origin... " >&6; }
17583 if ${acl_cv_rpath+:} false; then :
17584   $as_echo_n "(cached) " >&6
17585 else
17586
17587     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17588     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17589     . ./conftest.sh
17590     rm -f ./conftest.sh
17591     acl_cv_rpath=done
17592
17593 fi
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17595 $as_echo "$acl_cv_rpath" >&6; }
17596   wl="$acl_cv_wl"
17597   libext="$acl_cv_libext"
17598   shlibext="$acl_cv_shlibext"
17599   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17600   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17601   hardcode_direct="$acl_cv_hardcode_direct"
17602   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17603     # Check whether --enable-rpath was given.
17604 if test "${enable_rpath+set}" = set; then :
17605   enableval=$enable_rpath; :
17606 else
17607   enable_rpath=yes
17608 fi
17609
17610
17611
17612
17613
17614
17615
17616
17617     use_additional=yes
17618
17619   acl_save_prefix="$prefix"
17620   prefix="$acl_final_prefix"
17621   acl_save_exec_prefix="$exec_prefix"
17622   exec_prefix="$acl_final_exec_prefix"
17623
17624     eval additional_includedir=\"$includedir\"
17625     eval additional_libdir=\"$libdir\"
17626
17627   exec_prefix="$acl_save_exec_prefix"
17628   prefix="$acl_save_prefix"
17629
17630
17631 # Check whether --with-libiconv-prefix was given.
17632 if test "${with_libiconv_prefix+set}" = set; then :
17633   withval=$with_libiconv_prefix;
17634     if test "X$withval" = "Xno"; then
17635       use_additional=no
17636     else
17637       if test "X$withval" = "X"; then
17638
17639   acl_save_prefix="$prefix"
17640   prefix="$acl_final_prefix"
17641   acl_save_exec_prefix="$exec_prefix"
17642   exec_prefix="$acl_final_exec_prefix"
17643
17644           eval additional_includedir=\"$includedir\"
17645           eval additional_libdir=\"$libdir\"
17646
17647   exec_prefix="$acl_save_exec_prefix"
17648   prefix="$acl_save_prefix"
17649
17650       else
17651         additional_includedir="$withval/include"
17652         additional_libdir="$withval/lib"
17653       fi
17654     fi
17655
17656 fi
17657
17658       LIBICONV=
17659   LTLIBICONV=
17660   INCICONV=
17661   rpathdirs=
17662   ltrpathdirs=
17663   names_already_handled=
17664   names_next_round='iconv '
17665   while test -n "$names_next_round"; do
17666     names_this_round="$names_next_round"
17667     names_next_round=
17668     for name in $names_this_round; do
17669       already_handled=
17670       for n in $names_already_handled; do
17671         if test "$n" = "$name"; then
17672           already_handled=yes
17673           break
17674         fi
17675       done
17676       if test -z "$already_handled"; then
17677         names_already_handled="$names_already_handled $name"
17678                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17679         eval value=\"\$HAVE_LIB$uppername\"
17680         if test -n "$value"; then
17681           if test "$value" = yes; then
17682             eval value=\"\$LIB$uppername\"
17683             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17684             eval value=\"\$LTLIB$uppername\"
17685             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17686           else
17687                                     :
17688           fi
17689         else
17690                               found_dir=
17691           found_la=
17692           found_so=
17693           found_a=
17694           if test $use_additional = yes; then
17695             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17696               found_dir="$additional_libdir"
17697               found_so="$additional_libdir/lib$name.$shlibext"
17698               if test -f "$additional_libdir/lib$name.la"; then
17699                 found_la="$additional_libdir/lib$name.la"
17700               fi
17701             else
17702               if test -f "$additional_libdir/lib$name.$libext"; then
17703                 found_dir="$additional_libdir"
17704                 found_a="$additional_libdir/lib$name.$libext"
17705                 if test -f "$additional_libdir/lib$name.la"; then
17706                   found_la="$additional_libdir/lib$name.la"
17707                 fi
17708               fi
17709             fi
17710           fi
17711           if test "X$found_dir" = "X"; then
17712             for x in $LDFLAGS $LTLIBICONV; do
17713
17714   acl_save_prefix="$prefix"
17715   prefix="$acl_final_prefix"
17716   acl_save_exec_prefix="$exec_prefix"
17717   exec_prefix="$acl_final_exec_prefix"
17718   eval x=\"$x\"
17719   exec_prefix="$acl_save_exec_prefix"
17720   prefix="$acl_save_prefix"
17721
17722               case "$x" in
17723                 -L*)
17724                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17725                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17726                     found_dir="$dir"
17727                     found_so="$dir/lib$name.$shlibext"
17728                     if test -f "$dir/lib$name.la"; then
17729                       found_la="$dir/lib$name.la"
17730                     fi
17731                   else
17732                     if test -f "$dir/lib$name.$libext"; then
17733                       found_dir="$dir"
17734                       found_a="$dir/lib$name.$libext"
17735                       if test -f "$dir/lib$name.la"; then
17736                         found_la="$dir/lib$name.la"
17737                       fi
17738                     fi
17739                   fi
17740                   ;;
17741               esac
17742               if test "X$found_dir" != "X"; then
17743                 break
17744               fi
17745             done
17746           fi
17747           if test "X$found_dir" != "X"; then
17748                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17749             if test "X$found_so" != "X"; then
17750                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17751                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17752               else
17753                                                                                 haveit=
17754                 for x in $ltrpathdirs; do
17755                   if test "X$x" = "X$found_dir"; then
17756                     haveit=yes
17757                     break
17758                   fi
17759                 done
17760                 if test -z "$haveit"; then
17761                   ltrpathdirs="$ltrpathdirs $found_dir"
17762                 fi
17763                                 if test "$hardcode_direct" = yes; then
17764                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17765                 else
17766                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17767                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17768                                                             haveit=
17769                     for x in $rpathdirs; do
17770                       if test "X$x" = "X$found_dir"; then
17771                         haveit=yes
17772                         break
17773                       fi
17774                     done
17775                     if test -z "$haveit"; then
17776                       rpathdirs="$rpathdirs $found_dir"
17777                     fi
17778                   else
17779                                                                                 haveit=
17780                     for x in $LDFLAGS $LIBICONV; do
17781
17782   acl_save_prefix="$prefix"
17783   prefix="$acl_final_prefix"
17784   acl_save_exec_prefix="$exec_prefix"
17785   exec_prefix="$acl_final_exec_prefix"
17786   eval x=\"$x\"
17787   exec_prefix="$acl_save_exec_prefix"
17788   prefix="$acl_save_prefix"
17789
17790                       if test "X$x" = "X-L$found_dir"; then
17791                         haveit=yes
17792                         break
17793                       fi
17794                     done
17795                     if test -z "$haveit"; then
17796                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17797                     fi
17798                     if test "$hardcode_minus_L" != no; then
17799                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17800                     else
17801                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17802                     fi
17803                   fi
17804                 fi
17805               fi
17806             else
17807               if test "X$found_a" != "X"; then
17808                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17809               else
17810                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17811               fi
17812             fi
17813                         additional_includedir=
17814             case "$found_dir" in
17815               */lib | */lib/)
17816                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17817                 additional_includedir="$basedir/include"
17818                 ;;
17819             esac
17820             if test "X$additional_includedir" != "X"; then
17821                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17822                 haveit=
17823                 if test "X$additional_includedir" = "X/usr/local/include"; then
17824                   if test -n "$GCC"; then
17825                     case $host_os in
17826                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17827                     esac
17828                   fi
17829                 fi
17830                 if test -z "$haveit"; then
17831                   for x in $CPPFLAGS $INCICONV; do
17832
17833   acl_save_prefix="$prefix"
17834   prefix="$acl_final_prefix"
17835   acl_save_exec_prefix="$exec_prefix"
17836   exec_prefix="$acl_final_exec_prefix"
17837   eval x=\"$x\"
17838   exec_prefix="$acl_save_exec_prefix"
17839   prefix="$acl_save_prefix"
17840
17841                     if test "X$x" = "X-I$additional_includedir"; then
17842                       haveit=yes
17843                       break
17844                     fi
17845                   done
17846                   if test -z "$haveit"; then
17847                     if test -d "$additional_includedir"; then
17848                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17849                     fi
17850                   fi
17851                 fi
17852               fi
17853             fi
17854                         if test -n "$found_la"; then
17855                                                         save_libdir="$libdir"
17856               case "$found_la" in
17857                 */* | *\\*) . "$found_la" ;;
17858                 *) . "./$found_la" ;;
17859               esac
17860               libdir="$save_libdir"
17861                             for dep in $dependency_libs; do
17862                 case "$dep" in
17863                   -L*)
17864                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17865                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17866                       haveit=
17867                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17868                         if test -n "$GCC"; then
17869                           case $host_os in
17870                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17871                           esac
17872                         fi
17873                       fi
17874                       if test -z "$haveit"; then
17875                         haveit=
17876                         for x in $LDFLAGS $LIBICONV; do
17877
17878   acl_save_prefix="$prefix"
17879   prefix="$acl_final_prefix"
17880   acl_save_exec_prefix="$exec_prefix"
17881   exec_prefix="$acl_final_exec_prefix"
17882   eval x=\"$x\"
17883   exec_prefix="$acl_save_exec_prefix"
17884   prefix="$acl_save_prefix"
17885
17886                           if test "X$x" = "X-L$additional_libdir"; then
17887                             haveit=yes
17888                             break
17889                           fi
17890                         done
17891                         if test -z "$haveit"; then
17892                           if test -d "$additional_libdir"; then
17893                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17894                           fi
17895                         fi
17896                         haveit=
17897                         for x in $LDFLAGS $LTLIBICONV; do
17898
17899   acl_save_prefix="$prefix"
17900   prefix="$acl_final_prefix"
17901   acl_save_exec_prefix="$exec_prefix"
17902   exec_prefix="$acl_final_exec_prefix"
17903   eval x=\"$x\"
17904   exec_prefix="$acl_save_exec_prefix"
17905   prefix="$acl_save_prefix"
17906
17907                           if test "X$x" = "X-L$additional_libdir"; then
17908                             haveit=yes
17909                             break
17910                           fi
17911                         done
17912                         if test -z "$haveit"; then
17913                           if test -d "$additional_libdir"; then
17914                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17915                           fi
17916                         fi
17917                       fi
17918                     fi
17919                     ;;
17920                   -R*)
17921                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17922                     if test "$enable_rpath" != no; then
17923                                                                   haveit=
17924                       for x in $rpathdirs; do
17925                         if test "X$x" = "X$dir"; then
17926                           haveit=yes
17927                           break
17928                         fi
17929                       done
17930                       if test -z "$haveit"; then
17931                         rpathdirs="$rpathdirs $dir"
17932                       fi
17933                                                                   haveit=
17934                       for x in $ltrpathdirs; do
17935                         if test "X$x" = "X$dir"; then
17936                           haveit=yes
17937                           break
17938                         fi
17939                       done
17940                       if test -z "$haveit"; then
17941                         ltrpathdirs="$ltrpathdirs $dir"
17942                       fi
17943                     fi
17944                     ;;
17945                   -l*)
17946                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17947                     ;;
17948                   *.la)
17949                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17950                     ;;
17951                   *)
17952                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17953                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17954                     ;;
17955                 esac
17956               done
17957             fi
17958           else
17959                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17960             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17961           fi
17962         fi
17963       fi
17964     done
17965   done
17966   if test "X$rpathdirs" != "X"; then
17967     if test -n "$hardcode_libdir_separator"; then
17968                         alldirs=
17969       for found_dir in $rpathdirs; do
17970         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17971       done
17972             acl_save_libdir="$libdir"
17973       libdir="$alldirs"
17974       eval flag=\"$hardcode_libdir_flag_spec\"
17975       libdir="$acl_save_libdir"
17976       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17977     else
17978             for found_dir in $rpathdirs; do
17979         acl_save_libdir="$libdir"
17980         libdir="$found_dir"
17981         eval flag=\"$hardcode_libdir_flag_spec\"
17982         libdir="$acl_save_libdir"
17983         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17984       done
17985     fi
17986   fi
17987   if test "X$ltrpathdirs" != "X"; then
17988             for found_dir in $ltrpathdirs; do
17989       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17990     done
17991   fi
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18011 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18012 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18013   $as_echo_n "(cached) " >&6
18014 else
18015   gt_save_CPPFLAGS="$CPPFLAGS"
18016      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18017      gt_save_LIBS="$LIBS"
18018      LIBS="$LIBS -framework CoreFoundation"
18019      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h.  */
18021 #include <CFPreferences.h>
18022 int
18023 main ()
18024 {
18025 CFPreferencesCopyAppValue(NULL, NULL)
18026   ;
18027   return 0;
18028 }
18029 _ACEOF
18030 if ac_fn_c_try_link "$LINENO"; then :
18031   gt_cv_func_CFPreferencesCopyAppValue=yes
18032 else
18033   gt_cv_func_CFPreferencesCopyAppValue=no
18034 fi
18035 rm -f core conftest.err conftest.$ac_objext \
18036     conftest$ac_exeext conftest.$ac_ext
18037      CPPFLAGS="$gt_save_CPPFLAGS"
18038      LIBS="$gt_save_LIBS"
18039 fi
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18041 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18042   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18043
18044 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18045
18046   fi
18047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18048 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18049 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18050   $as_echo_n "(cached) " >&6
18051 else
18052   gt_save_CPPFLAGS="$CPPFLAGS"
18053      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18054      gt_save_LIBS="$LIBS"
18055      LIBS="$LIBS -framework CoreFoundation"
18056      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h.  */
18058 #include <CFLocale.h>
18059 int
18060 main ()
18061 {
18062 CFLocaleCopyCurrent();
18063   ;
18064   return 0;
18065 }
18066 _ACEOF
18067 if ac_fn_c_try_link "$LINENO"; then :
18068   gt_cv_func_CFLocaleCopyCurrent=yes
18069 else
18070   gt_cv_func_CFLocaleCopyCurrent=no
18071 fi
18072 rm -f core conftest.err conftest.$ac_objext \
18073     conftest$ac_exeext conftest.$ac_ext
18074      CPPFLAGS="$gt_save_CPPFLAGS"
18075      LIBS="$gt_save_LIBS"
18076 fi
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18078 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18079   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18080
18081 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18082
18083   fi
18084   INTL_MACOSX_LIBS=
18085   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18086     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18087   fi
18088
18089
18090
18091
18092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18093 $as_echo_n "checking whether NLS is requested... " >&6; }
18094     # Check whether --enable-nls was given.
18095 if test "${enable_nls+set}" = set; then :
18096   enableval=$enable_nls; USE_NLS=$enableval
18097 else
18098   USE_NLS=yes
18099 fi
18100
18101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18102 $as_echo "$USE_NLS" >&6; }
18103
18104
18105
18106
18107   LIBINTL=
18108   LTLIBINTL=
18109   POSUB=
18110
18111     if test "$USE_NLS" = "yes"; then
18112     gt_use_preinstalled_gnugettext=no
18113
18114
18115
18116
18117
18118
18119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18120 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18121 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18122   $as_echo_n "(cached) " >&6
18123 else
18124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h.  */
18126 #include <libintl.h>
18127 extern int _nl_msg_cat_cntr;
18128 extern int *_nl_domain_bindings;
18129 int
18130 main ()
18131 {
18132 bindtextdomain ("", "");
18133 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18134   ;
18135   return 0;
18136 }
18137 _ACEOF
18138 if ac_fn_c_try_link "$LINENO"; then :
18139   gt_cv_func_gnugettext1_libc=yes
18140 else
18141   gt_cv_func_gnugettext1_libc=no
18142 fi
18143 rm -f core conftest.err conftest.$ac_objext \
18144     conftest$ac_exeext conftest.$ac_ext
18145 fi
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18147 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18148
18149         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18150
18151
18152
18153
18154
18155           am_save_CPPFLAGS="$CPPFLAGS"
18156
18157   for element in $INCICONV; do
18158     haveit=
18159     for x in $CPPFLAGS; do
18160
18161   acl_save_prefix="$prefix"
18162   prefix="$acl_final_prefix"
18163   acl_save_exec_prefix="$exec_prefix"
18164   exec_prefix="$acl_final_exec_prefix"
18165   eval x=\"$x\"
18166   exec_prefix="$acl_save_exec_prefix"
18167   prefix="$acl_save_prefix"
18168
18169       if test "X$x" = "X$element"; then
18170         haveit=yes
18171         break
18172       fi
18173     done
18174     if test -z "$haveit"; then
18175       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18176     fi
18177   done
18178
18179
18180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18181 $as_echo_n "checking for iconv... " >&6; }
18182 if ${am_cv_func_iconv+:} false; then :
18183   $as_echo_n "(cached) " >&6
18184 else
18185
18186     am_cv_func_iconv="no, consider installing GNU libiconv"
18187     am_cv_lib_iconv=no
18188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h.  */
18190 #include <stdlib.h>
18191 #include <iconv.h>
18192 int
18193 main ()
18194 {
18195 iconv_t cd = iconv_open("","");
18196        iconv(cd,NULL,NULL,NULL,NULL);
18197        iconv_close(cd);
18198   ;
18199   return 0;
18200 }
18201 _ACEOF
18202 if ac_fn_c_try_link "$LINENO"; then :
18203   am_cv_func_iconv=yes
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext \
18206     conftest$ac_exeext conftest.$ac_ext
18207     if test "$am_cv_func_iconv" != yes; then
18208       am_save_LIBS="$LIBS"
18209       LIBS="$LIBS $LIBICONV"
18210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h.  */
18212 #include <stdlib.h>
18213 #include <iconv.h>
18214 int
18215 main ()
18216 {
18217 iconv_t cd = iconv_open("","");
18218          iconv(cd,NULL,NULL,NULL,NULL);
18219          iconv_close(cd);
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 if ac_fn_c_try_link "$LINENO"; then :
18225   am_cv_lib_iconv=yes
18226         am_cv_func_iconv=yes
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext \
18229     conftest$ac_exeext conftest.$ac_ext
18230       LIBS="$am_save_LIBS"
18231     fi
18232
18233 fi
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18235 $as_echo "$am_cv_func_iconv" >&6; }
18236   if test "$am_cv_func_iconv" = yes; then
18237
18238 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18239
18240   fi
18241   if test "$am_cv_lib_iconv" = yes; then
18242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18243 $as_echo_n "checking how to link with libiconv... " >&6; }
18244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18245 $as_echo "$LIBICONV" >&6; }
18246   else
18247             CPPFLAGS="$am_save_CPPFLAGS"
18248     LIBICONV=
18249     LTLIBICONV=
18250   fi
18251
18252
18253
18254
18255
18256
18257     use_additional=yes
18258
18259   acl_save_prefix="$prefix"
18260   prefix="$acl_final_prefix"
18261   acl_save_exec_prefix="$exec_prefix"
18262   exec_prefix="$acl_final_exec_prefix"
18263
18264     eval additional_includedir=\"$includedir\"
18265     eval additional_libdir=\"$libdir\"
18266
18267   exec_prefix="$acl_save_exec_prefix"
18268   prefix="$acl_save_prefix"
18269
18270
18271 # Check whether --with-libintl-prefix was given.
18272 if test "${with_libintl_prefix+set}" = set; then :
18273   withval=$with_libintl_prefix;
18274     if test "X$withval" = "Xno"; then
18275       use_additional=no
18276     else
18277       if test "X$withval" = "X"; then
18278
18279   acl_save_prefix="$prefix"
18280   prefix="$acl_final_prefix"
18281   acl_save_exec_prefix="$exec_prefix"
18282   exec_prefix="$acl_final_exec_prefix"
18283
18284           eval additional_includedir=\"$includedir\"
18285           eval additional_libdir=\"$libdir\"
18286
18287   exec_prefix="$acl_save_exec_prefix"
18288   prefix="$acl_save_prefix"
18289
18290       else
18291         additional_includedir="$withval/include"
18292         additional_libdir="$withval/lib"
18293       fi
18294     fi
18295
18296 fi
18297
18298       LIBINTL=
18299   LTLIBINTL=
18300   INCINTL=
18301   rpathdirs=
18302   ltrpathdirs=
18303   names_already_handled=
18304   names_next_round='intl '
18305   while test -n "$names_next_round"; do
18306     names_this_round="$names_next_round"
18307     names_next_round=
18308     for name in $names_this_round; do
18309       already_handled=
18310       for n in $names_already_handled; do
18311         if test "$n" = "$name"; then
18312           already_handled=yes
18313           break
18314         fi
18315       done
18316       if test -z "$already_handled"; then
18317         names_already_handled="$names_already_handled $name"
18318                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18319         eval value=\"\$HAVE_LIB$uppername\"
18320         if test -n "$value"; then
18321           if test "$value" = yes; then
18322             eval value=\"\$LIB$uppername\"
18323             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18324             eval value=\"\$LTLIB$uppername\"
18325             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18326           else
18327                                     :
18328           fi
18329         else
18330                               found_dir=
18331           found_la=
18332           found_so=
18333           found_a=
18334           if test $use_additional = yes; then
18335             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18336               found_dir="$additional_libdir"
18337               found_so="$additional_libdir/lib$name.$shlibext"
18338               if test -f "$additional_libdir/lib$name.la"; then
18339                 found_la="$additional_libdir/lib$name.la"
18340               fi
18341             else
18342               if test -f "$additional_libdir/lib$name.$libext"; then
18343                 found_dir="$additional_libdir"
18344                 found_a="$additional_libdir/lib$name.$libext"
18345                 if test -f "$additional_libdir/lib$name.la"; then
18346                   found_la="$additional_libdir/lib$name.la"
18347                 fi
18348               fi
18349             fi
18350           fi
18351           if test "X$found_dir" = "X"; then
18352             for x in $LDFLAGS $LTLIBINTL; do
18353
18354   acl_save_prefix="$prefix"
18355   prefix="$acl_final_prefix"
18356   acl_save_exec_prefix="$exec_prefix"
18357   exec_prefix="$acl_final_exec_prefix"
18358   eval x=\"$x\"
18359   exec_prefix="$acl_save_exec_prefix"
18360   prefix="$acl_save_prefix"
18361
18362               case "$x" in
18363                 -L*)
18364                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18365                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18366                     found_dir="$dir"
18367                     found_so="$dir/lib$name.$shlibext"
18368                     if test -f "$dir/lib$name.la"; then
18369                       found_la="$dir/lib$name.la"
18370                     fi
18371                   else
18372                     if test -f "$dir/lib$name.$libext"; then
18373                       found_dir="$dir"
18374                       found_a="$dir/lib$name.$libext"
18375                       if test -f "$dir/lib$name.la"; then
18376                         found_la="$dir/lib$name.la"
18377                       fi
18378                     fi
18379                   fi
18380                   ;;
18381               esac
18382               if test "X$found_dir" != "X"; then
18383                 break
18384               fi
18385             done
18386           fi
18387           if test "X$found_dir" != "X"; then
18388                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18389             if test "X$found_so" != "X"; then
18390                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18391                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18392               else
18393                                                                                 haveit=
18394                 for x in $ltrpathdirs; do
18395                   if test "X$x" = "X$found_dir"; then
18396                     haveit=yes
18397                     break
18398                   fi
18399                 done
18400                 if test -z "$haveit"; then
18401                   ltrpathdirs="$ltrpathdirs $found_dir"
18402                 fi
18403                                 if test "$hardcode_direct" = yes; then
18404                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18405                 else
18406                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18407                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18408                                                             haveit=
18409                     for x in $rpathdirs; do
18410                       if test "X$x" = "X$found_dir"; then
18411                         haveit=yes
18412                         break
18413                       fi
18414                     done
18415                     if test -z "$haveit"; then
18416                       rpathdirs="$rpathdirs $found_dir"
18417                     fi
18418                   else
18419                                                                                 haveit=
18420                     for x in $LDFLAGS $LIBINTL; do
18421
18422   acl_save_prefix="$prefix"
18423   prefix="$acl_final_prefix"
18424   acl_save_exec_prefix="$exec_prefix"
18425   exec_prefix="$acl_final_exec_prefix"
18426   eval x=\"$x\"
18427   exec_prefix="$acl_save_exec_prefix"
18428   prefix="$acl_save_prefix"
18429
18430                       if test "X$x" = "X-L$found_dir"; then
18431                         haveit=yes
18432                         break
18433                       fi
18434                     done
18435                     if test -z "$haveit"; then
18436                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18437                     fi
18438                     if test "$hardcode_minus_L" != no; then
18439                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18440                     else
18441                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18442                     fi
18443                   fi
18444                 fi
18445               fi
18446             else
18447               if test "X$found_a" != "X"; then
18448                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18449               else
18450                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18451               fi
18452             fi
18453                         additional_includedir=
18454             case "$found_dir" in
18455               */lib | */lib/)
18456                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18457                 additional_includedir="$basedir/include"
18458                 ;;
18459             esac
18460             if test "X$additional_includedir" != "X"; then
18461                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18462                 haveit=
18463                 if test "X$additional_includedir" = "X/usr/local/include"; then
18464                   if test -n "$GCC"; then
18465                     case $host_os in
18466                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18467                     esac
18468                   fi
18469                 fi
18470                 if test -z "$haveit"; then
18471                   for x in $CPPFLAGS $INCINTL; do
18472
18473   acl_save_prefix="$prefix"
18474   prefix="$acl_final_prefix"
18475   acl_save_exec_prefix="$exec_prefix"
18476   exec_prefix="$acl_final_exec_prefix"
18477   eval x=\"$x\"
18478   exec_prefix="$acl_save_exec_prefix"
18479   prefix="$acl_save_prefix"
18480
18481                     if test "X$x" = "X-I$additional_includedir"; then
18482                       haveit=yes
18483                       break
18484                     fi
18485                   done
18486                   if test -z "$haveit"; then
18487                     if test -d "$additional_includedir"; then
18488                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18489                     fi
18490                   fi
18491                 fi
18492               fi
18493             fi
18494                         if test -n "$found_la"; then
18495                                                         save_libdir="$libdir"
18496               case "$found_la" in
18497                 */* | *\\*) . "$found_la" ;;
18498                 *) . "./$found_la" ;;
18499               esac
18500               libdir="$save_libdir"
18501                             for dep in $dependency_libs; do
18502                 case "$dep" in
18503                   -L*)
18504                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18505                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18506                       haveit=
18507                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18508                         if test -n "$GCC"; then
18509                           case $host_os in
18510                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18511                           esac
18512                         fi
18513                       fi
18514                       if test -z "$haveit"; then
18515                         haveit=
18516                         for x in $LDFLAGS $LIBINTL; do
18517
18518   acl_save_prefix="$prefix"
18519   prefix="$acl_final_prefix"
18520   acl_save_exec_prefix="$exec_prefix"
18521   exec_prefix="$acl_final_exec_prefix"
18522   eval x=\"$x\"
18523   exec_prefix="$acl_save_exec_prefix"
18524   prefix="$acl_save_prefix"
18525
18526                           if test "X$x" = "X-L$additional_libdir"; then
18527                             haveit=yes
18528                             break
18529                           fi
18530                         done
18531                         if test -z "$haveit"; then
18532                           if test -d "$additional_libdir"; then
18533                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18534                           fi
18535                         fi
18536                         haveit=
18537                         for x in $LDFLAGS $LTLIBINTL; do
18538
18539   acl_save_prefix="$prefix"
18540   prefix="$acl_final_prefix"
18541   acl_save_exec_prefix="$exec_prefix"
18542   exec_prefix="$acl_final_exec_prefix"
18543   eval x=\"$x\"
18544   exec_prefix="$acl_save_exec_prefix"
18545   prefix="$acl_save_prefix"
18546
18547                           if test "X$x" = "X-L$additional_libdir"; then
18548                             haveit=yes
18549                             break
18550                           fi
18551                         done
18552                         if test -z "$haveit"; then
18553                           if test -d "$additional_libdir"; then
18554                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18555                           fi
18556                         fi
18557                       fi
18558                     fi
18559                     ;;
18560                   -R*)
18561                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18562                     if test "$enable_rpath" != no; then
18563                                                                   haveit=
18564                       for x in $rpathdirs; do
18565                         if test "X$x" = "X$dir"; then
18566                           haveit=yes
18567                           break
18568                         fi
18569                       done
18570                       if test -z "$haveit"; then
18571                         rpathdirs="$rpathdirs $dir"
18572                       fi
18573                                                                   haveit=
18574                       for x in $ltrpathdirs; do
18575                         if test "X$x" = "X$dir"; then
18576                           haveit=yes
18577                           break
18578                         fi
18579                       done
18580                       if test -z "$haveit"; then
18581                         ltrpathdirs="$ltrpathdirs $dir"
18582                       fi
18583                     fi
18584                     ;;
18585                   -l*)
18586                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18587                     ;;
18588                   *.la)
18589                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18590                     ;;
18591                   *)
18592                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18593                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18594                     ;;
18595                 esac
18596               done
18597             fi
18598           else
18599                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18600             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18601           fi
18602         fi
18603       fi
18604     done
18605   done
18606   if test "X$rpathdirs" != "X"; then
18607     if test -n "$hardcode_libdir_separator"; then
18608                         alldirs=
18609       for found_dir in $rpathdirs; do
18610         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18611       done
18612             acl_save_libdir="$libdir"
18613       libdir="$alldirs"
18614       eval flag=\"$hardcode_libdir_flag_spec\"
18615       libdir="$acl_save_libdir"
18616       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18617     else
18618             for found_dir in $rpathdirs; do
18619         acl_save_libdir="$libdir"
18620         libdir="$found_dir"
18621         eval flag=\"$hardcode_libdir_flag_spec\"
18622         libdir="$acl_save_libdir"
18623         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18624       done
18625     fi
18626   fi
18627   if test "X$ltrpathdirs" != "X"; then
18628             for found_dir in $ltrpathdirs; do
18629       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18630     done
18631   fi
18632
18633           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18634 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18635 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18636   $as_echo_n "(cached) " >&6
18637 else
18638   gt_save_CPPFLAGS="$CPPFLAGS"
18639             CPPFLAGS="$CPPFLAGS $INCINTL"
18640             gt_save_LIBS="$LIBS"
18641             LIBS="$LIBS $LIBINTL"
18642                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h.  */
18644 #include <libintl.h>
18645 extern int _nl_msg_cat_cntr;
18646 extern
18647 #ifdef __cplusplus
18648 "C"
18649 #endif
18650 const char *_nl_expand_alias (const char *);
18651 int
18652 main ()
18653 {
18654 bindtextdomain ("", "");
18655 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18656   ;
18657   return 0;
18658 }
18659 _ACEOF
18660 if ac_fn_c_try_link "$LINENO"; then :
18661   gt_cv_func_gnugettext1_libintl=yes
18662 else
18663   gt_cv_func_gnugettext1_libintl=no
18664 fi
18665 rm -f core conftest.err conftest.$ac_objext \
18666     conftest$ac_exeext conftest.$ac_ext
18667                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18668               LIBS="$LIBS $LIBICONV"
18669               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h.  */
18671 #include <libintl.h>
18672 extern int _nl_msg_cat_cntr;
18673 extern
18674 #ifdef __cplusplus
18675 "C"
18676 #endif
18677 const char *_nl_expand_alias (const char *);
18678 int
18679 main ()
18680 {
18681 bindtextdomain ("", "");
18682 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18683   ;
18684   return 0;
18685 }
18686 _ACEOF
18687 if ac_fn_c_try_link "$LINENO"; then :
18688   LIBINTL="$LIBINTL $LIBICONV"
18689                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18690                 gt_cv_func_gnugettext1_libintl=yes
18691
18692 fi
18693 rm -f core conftest.err conftest.$ac_objext \
18694     conftest$ac_exeext conftest.$ac_ext
18695             fi
18696             CPPFLAGS="$gt_save_CPPFLAGS"
18697             LIBS="$gt_save_LIBS"
18698 fi
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18700 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18701         fi
18702
18703                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18704            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18705                 && test "$PACKAGE" != gettext-runtime \
18706                 && test "$PACKAGE" != gettext-tools; }; then
18707           gt_use_preinstalled_gnugettext=yes
18708         else
18709                     LIBINTL=
18710           LTLIBINTL=
18711           INCINTL=
18712         fi
18713
18714
18715
18716     if test -n "$INTL_MACOSX_LIBS"; then
18717       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18718          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18719                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18720         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18721       fi
18722     fi
18723
18724     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18725        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18726
18727 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18728
18729     else
18730       USE_NLS=no
18731     fi
18732   fi
18733
18734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18735 $as_echo_n "checking whether to use NLS... " >&6; }
18736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18737 $as_echo "$USE_NLS" >&6; }
18738   if test "$USE_NLS" = "yes"; then
18739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18740 $as_echo_n "checking where the gettext function comes from... " >&6; }
18741     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18742       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18743         gt_source="external libintl"
18744       else
18745         gt_source="libc"
18746       fi
18747     else
18748       gt_source="included intl directory"
18749     fi
18750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18751 $as_echo "$gt_source" >&6; }
18752   fi
18753
18754   if test "$USE_NLS" = "yes"; then
18755
18756     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18757       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18759 $as_echo_n "checking how to link with libintl... " >&6; }
18760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18761 $as_echo "$LIBINTL" >&6; }
18762
18763   for element in $INCINTL; do
18764     haveit=
18765     for x in $CPPFLAGS; do
18766
18767   acl_save_prefix="$prefix"
18768   prefix="$acl_final_prefix"
18769   acl_save_exec_prefix="$exec_prefix"
18770   exec_prefix="$acl_final_exec_prefix"
18771   eval x=\"$x\"
18772   exec_prefix="$acl_save_exec_prefix"
18773   prefix="$acl_save_prefix"
18774
18775       if test "X$x" = "X$element"; then
18776         haveit=yes
18777         break
18778       fi
18779     done
18780     if test -z "$haveit"; then
18781       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18782     fi
18783   done
18784
18785       fi
18786
18787
18788 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18789
18790
18791 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18792
18793     fi
18794
18795         POSUB=po
18796   fi
18797
18798
18799
18800     INTLLIBS="$LIBINTL"
18801
18802
18803
18804
18805
18806
18807
18808 os_name=`uname -s 2>/dev/null`
18809 if test x${prefix} = xNONE ; then
18810    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18811       sysconfdir=/etc/bacula
18812    fi
18813
18814    if test `eval echo ${libdir}` = NONE/lib ; then
18815       case ${os_name} in
18816       Linux)
18817          os_processor=`uname -p 2>/dev/null`
18818          case ${os_processor} in
18819          x86_64)
18820             libdir=/usr/lib64
18821             ;;
18822          *)
18823             libdir=/usr/lib
18824             ;;
18825          esac
18826          ;;
18827       *)
18828          libdir=/usr/lib
18829          ;;
18830       esac
18831    fi
18832
18833    if test `eval echo ${includedir}` = NONE/include ; then
18834       includedir=/usr/include
18835    fi
18836
18837    if test `eval echo ${datarootdir}` = NONE/share ; then
18838       datarootdir=/usr/share
18839    fi
18840    prefix=
18841 fi
18842
18843 if test x${exec_prefix} = xNONE ; then
18844    exec_prefix=${prefix}
18845 fi
18846
18847 sysconfdir=`eval echo ${sysconfdir}`
18848 datarootdir=`eval echo ${datarootdir}`
18849 docdir=`eval echo ${docdir}`
18850 htmldir=`eval echo ${htmldir}`
18851 libdir=`eval echo ${libdir}`
18852 includedir=`eval echo ${includedir}`
18853 localedir=`eval echo ${datarootdir}/locale`
18854 cat >>confdefs.h <<_ACEOF
18855 #define SYSCONFDIR "$sysconfdir"
18856 _ACEOF
18857
18858 cat >>confdefs.h <<_ACEOF
18859 #define LOCALEDIR "$localedir"
18860 _ACEOF
18861
18862
18863 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18864    sbindir=${exec_prefix}/sbin
18865 fi
18866 sbindir=`eval echo ${sbindir}`
18867
18868 if test x$mandir = x'${prefix}/man' ; then
18869    mandir=/usr/share/man
18870 fi
18871
18872 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18873    htmldir=`eval echo ${docdir}html`
18874 fi
18875
18876 if test x$docdir = x'/usr/share/doc/' ; then
18877    docdir=`eval echo ${docdir}bacula`
18878 fi
18879
18880
18881 for ac_prog in msgfmt
18882 do
18883   # Extract the first word of "$ac_prog", so it can be a program name with args.
18884 set dummy $ac_prog; ac_word=$2
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18886 $as_echo_n "checking for $ac_word... " >&6; }
18887 if ${ac_cv_path_MSGFMT+:} false; then :
18888   $as_echo_n "(cached) " >&6
18889 else
18890   case $MSGFMT in
18891   [\\/]* | ?:[\\/]*)
18892   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18893   ;;
18894   *)
18895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896 for as_dir in $PATH
18897 do
18898   IFS=$as_save_IFS
18899   test -z "$as_dir" && as_dir=.
18900     for ac_exec_ext in '' $ac_executable_extensions; do
18901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18902     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18904     break 2
18905   fi
18906 done
18907   done
18908 IFS=$as_save_IFS
18909
18910   ;;
18911 esac
18912 fi
18913 MSGFMT=$ac_cv_path_MSGFMT
18914 if test -n "$MSGFMT"; then
18915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18916 $as_echo "$MSGFMT" >&6; }
18917 else
18918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18919 $as_echo "no" >&6; }
18920 fi
18921
18922
18923   test -n "$MSGFMT" && break
18924 done
18925 test -n "$MSGFMT" || MSGFMT="no"
18926
18927 if test "$MSGFMT" = "no"
18928 then
18929    echo 'msgfmt program not found, disabling NLS !'
18930    USE_NLS=no
18931    USE_INCLUDED_LIBINTL=no
18932 #else
18933
18934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18935 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18936 if ${ac_cv_gnu_library_2+:} false; then :
18937   $as_echo_n "(cached) " >&6
18938 else
18939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h.  */
18941
18942 #include <features.h>
18943 #ifdef __GNU_LIBRARY__
18944  #if (__GLIBC__ >= 2)
18945   Lucky GNU user
18946  #endif
18947 #endif
18948
18949 _ACEOF
18950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18951   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18952   ac_cv_gnu_library_2=yes
18953 else
18954   ac_cv_gnu_library_2=no
18955 fi
18956 rm -f conftest*
18957
18958
18959
18960 fi
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18962 $as_echo "$ac_cv_gnu_library_2" >&6; }
18963
18964     GLIBC2="$ac_cv_gnu_library_2"
18965
18966
18967 if test -n "$ac_tool_prefix"; then
18968   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18971 $as_echo_n "checking for $ac_word... " >&6; }
18972 if ${ac_cv_prog_RANLIB+:} false; then :
18973   $as_echo_n "(cached) " >&6
18974 else
18975   if test -n "$RANLIB"; then
18976   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18977 else
18978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18979 for as_dir in $PATH
18980 do
18981   IFS=$as_save_IFS
18982   test -z "$as_dir" && as_dir=.
18983     for ac_exec_ext in '' $ac_executable_extensions; do
18984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18985     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18987     break 2
18988   fi
18989 done
18990   done
18991 IFS=$as_save_IFS
18992
18993 fi
18994 fi
18995 RANLIB=$ac_cv_prog_RANLIB
18996 if test -n "$RANLIB"; then
18997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18998 $as_echo "$RANLIB" >&6; }
18999 else
19000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19001 $as_echo "no" >&6; }
19002 fi
19003
19004
19005 fi
19006 if test -z "$ac_cv_prog_RANLIB"; then
19007   ac_ct_RANLIB=$RANLIB
19008   # Extract the first word of "ranlib", so it can be a program name with args.
19009 set dummy ranlib; ac_word=$2
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19011 $as_echo_n "checking for $ac_word... " >&6; }
19012 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19013   $as_echo_n "(cached) " >&6
19014 else
19015   if test -n "$ac_ct_RANLIB"; then
19016   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19017 else
19018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19019 for as_dir in $PATH
19020 do
19021   IFS=$as_save_IFS
19022   test -z "$as_dir" && as_dir=.
19023     for ac_exec_ext in '' $ac_executable_extensions; do
19024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19025     ac_cv_prog_ac_ct_RANLIB="ranlib"
19026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19027     break 2
19028   fi
19029 done
19030   done
19031 IFS=$as_save_IFS
19032
19033 fi
19034 fi
19035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19036 if test -n "$ac_ct_RANLIB"; then
19037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19038 $as_echo "$ac_ct_RANLIB" >&6; }
19039 else
19040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19041 $as_echo "no" >&6; }
19042 fi
19043
19044   if test "x$ac_ct_RANLIB" = x; then
19045     RANLIB=":"
19046   else
19047     case $cross_compiling:$ac_tool_warned in
19048 yes:)
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19051 ac_tool_warned=yes ;;
19052 esac
19053     RANLIB=$ac_ct_RANLIB
19054   fi
19055 else
19056   RANLIB="$ac_cv_prog_RANLIB"
19057 fi
19058
19059
19060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19061 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19062 if ${ac_cv_lib_cposix_strerror+:} false; then :
19063   $as_echo_n "(cached) " >&6
19064 else
19065   ac_check_lib_save_LIBS=$LIBS
19066 LIBS="-lcposix  $LIBS"
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h.  */
19069
19070 /* Override any GCC internal prototype to avoid an error.
19071    Use char because int might match the return type of a GCC
19072    builtin and then its argument prototype would still apply.  */
19073 #ifdef __cplusplus
19074 extern "C"
19075 #endif
19076 char strerror ();
19077 int
19078 main ()
19079 {
19080 return strerror ();
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 if ac_fn_c_try_link "$LINENO"; then :
19086   ac_cv_lib_cposix_strerror=yes
19087 else
19088   ac_cv_lib_cposix_strerror=no
19089 fi
19090 rm -f core conftest.err conftest.$ac_objext \
19091     conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19093 fi
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19095 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19096 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19097   LIBS="$LIBS -lcposix"
19098 fi
19099
19100
19101
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19103 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19104 if ${ac_cv_c_const+:} false; then :
19105   $as_echo_n "(cached) " >&6
19106 else
19107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h.  */
19109
19110 int
19111 main ()
19112 {
19113 /* FIXME: Include the comments suggested by Paul. */
19114 #ifndef __cplusplus
19115   /* Ultrix mips cc rejects this.  */
19116   typedef int charset[2];
19117   const charset cs;
19118   /* SunOS 4.1.1 cc rejects this.  */
19119   char const *const *pcpcc;
19120   char **ppc;
19121   /* NEC SVR4.0.2 mips cc rejects this.  */
19122   struct point {int x, y;};
19123   static struct point const zero = {0,0};
19124   /* AIX XL C 1.02.0.0 rejects this.
19125      It does not let you subtract one const X* pointer from another in
19126      an arm of an if-expression whose if-part is not a constant
19127      expression */
19128   const char *g = "string";
19129   pcpcc = &g + (g ? g-g : 0);
19130   /* HPUX 7.0 cc rejects these. */
19131   ++pcpcc;
19132   ppc = (char**) pcpcc;
19133   pcpcc = (char const *const *) ppc;
19134   { /* SCO 3.2v4 cc rejects this.  */
19135     char *t;
19136     char const *s = 0 ? (char *) 0 : (char const *) 0;
19137
19138     *t++ = 0;
19139     if (s) return 0;
19140   }
19141   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19142     int x[] = {25, 17};
19143     const int *foo = &x[0];
19144     ++foo;
19145   }
19146   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19147     typedef const int *iptr;
19148     iptr p = 0;
19149     ++p;
19150   }
19151   { /* AIX XL C 1.02.0.0 rejects this saying
19152        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19153     struct s { int j; const int *ap[3]; };
19154     struct s *b; b->j = 5;
19155   }
19156   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19157     const int foo = 10;
19158     if (!foo) return 0;
19159   }
19160   return !cs[0] && !zero.x;
19161 #endif
19162
19163   ;
19164   return 0;
19165 }
19166 _ACEOF
19167 if ac_fn_c_try_compile "$LINENO"; then :
19168   ac_cv_c_const=yes
19169 else
19170   ac_cv_c_const=no
19171 fi
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 fi
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19175 $as_echo "$ac_cv_c_const" >&6; }
19176 if test $ac_cv_c_const = no; then
19177
19178 $as_echo "#define const /**/" >>confdefs.h
19179
19180 fi
19181
19182
19183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19184 $as_echo_n "checking for signed... " >&6; }
19185 if ${bh_cv_c_signed+:} false; then :
19186   $as_echo_n "(cached) " >&6
19187 else
19188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h.  */
19190
19191 int
19192 main ()
19193 {
19194 signed char x;
19195   ;
19196   return 0;
19197 }
19198 _ACEOF
19199 if ac_fn_c_try_compile "$LINENO"; then :
19200   bh_cv_c_signed=yes
19201 else
19202   bh_cv_c_signed=no
19203 fi
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205 fi
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19207 $as_echo "$bh_cv_c_signed" >&6; }
19208   if test $bh_cv_c_signed = no; then
19209
19210 $as_echo "#define signed /**/" >>confdefs.h
19211
19212   fi
19213
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19215 $as_echo_n "checking for inline... " >&6; }
19216 if ${ac_cv_c_inline+:} false; then :
19217   $as_echo_n "(cached) " >&6
19218 else
19219   ac_cv_c_inline=no
19220 for ac_kw in inline __inline__ __inline; do
19221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222 /* end confdefs.h.  */
19223 #ifndef __cplusplus
19224 typedef int foo_t;
19225 static $ac_kw foo_t static_foo () {return 0; }
19226 $ac_kw foo_t foo () {return 0; }
19227 #endif
19228
19229 _ACEOF
19230 if ac_fn_c_try_compile "$LINENO"; then :
19231   ac_cv_c_inline=$ac_kw
19232 fi
19233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19234   test "$ac_cv_c_inline" != no && break
19235 done
19236
19237 fi
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19239 $as_echo "$ac_cv_c_inline" >&6; }
19240
19241 case $ac_cv_c_inline in
19242   inline | yes) ;;
19243   *)
19244     case $ac_cv_c_inline in
19245       no) ac_val=;;
19246       *) ac_val=$ac_cv_c_inline;;
19247     esac
19248     cat >>confdefs.h <<_ACEOF
19249 #ifndef __cplusplus
19250 #define inline $ac_val
19251 #endif
19252 _ACEOF
19253     ;;
19254 esac
19255
19256 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19257 if test "x$ac_cv_type_off_t" = xyes; then :
19258
19259 else
19260
19261 cat >>confdefs.h <<_ACEOF
19262 #define off_t long int
19263 _ACEOF
19264
19265 fi
19266
19267 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19268 if test "x$ac_cv_type_size_t" = xyes; then :
19269
19270 else
19271
19272 cat >>confdefs.h <<_ACEOF
19273 #define size_t unsigned int
19274 _ACEOF
19275
19276 fi
19277
19278
19279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19280 $as_echo_n "checking for long long... " >&6; }
19281 if ${ac_cv_type_long_long+:} false; then :
19282   $as_echo_n "(cached) " >&6
19283 else
19284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h.  */
19286 long long ll = 1LL; int i = 63;
19287 int
19288 main ()
19289 {
19290 long long llmax = (long long) -1;
19291      return ll << i | ll >> i | llmax / ll | llmax % ll;
19292   ;
19293   return 0;
19294 }
19295 _ACEOF
19296 if ac_fn_c_try_link "$LINENO"; then :
19297   ac_cv_type_long_long=yes
19298 else
19299   ac_cv_type_long_long=no
19300 fi
19301 rm -f core conftest.err conftest.$ac_objext \
19302     conftest$ac_exeext conftest.$ac_ext
19303 fi
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19305 $as_echo "$ac_cv_type_long_long" >&6; }
19306   if test $ac_cv_type_long_long = yes; then
19307
19308 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19309
19310   fi
19311
19312
19313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19314 $as_echo_n "checking for long double... " >&6; }
19315 if ${gt_cv_c_long_double+:} false; then :
19316   $as_echo_n "(cached) " >&6
19317 else
19318   if test "$GCC" = yes; then
19319        gt_cv_c_long_double=yes
19320      else
19321        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h.  */
19323
19324          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19325          long double foo = 0.0;
19326          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19327          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19328
19329 int
19330 main ()
19331 {
19332
19333   ;
19334   return 0;
19335 }
19336 _ACEOF
19337 if ac_fn_c_try_compile "$LINENO"; then :
19338   gt_cv_c_long_double=yes
19339 else
19340   gt_cv_c_long_double=no
19341 fi
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343      fi
19344 fi
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19346 $as_echo "$gt_cv_c_long_double" >&6; }
19347   if test $gt_cv_c_long_double = yes; then
19348
19349 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19350
19351   fi
19352
19353
19354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19355 $as_echo_n "checking for wchar_t... " >&6; }
19356 if ${gt_cv_c_wchar_t+:} false; then :
19357   $as_echo_n "(cached) " >&6
19358 else
19359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h.  */
19361 #include <stddef.h>
19362        wchar_t foo = (wchar_t)'\0';
19363 int
19364 main ()
19365 {
19366
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 if ac_fn_c_try_compile "$LINENO"; then :
19372   gt_cv_c_wchar_t=yes
19373 else
19374   gt_cv_c_wchar_t=no
19375 fi
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 fi
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19379 $as_echo "$gt_cv_c_wchar_t" >&6; }
19380   if test $gt_cv_c_wchar_t = yes; then
19381
19382 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19383
19384   fi
19385
19386
19387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19388 $as_echo_n "checking for wint_t... " >&6; }
19389 if ${gt_cv_c_wint_t+:} false; then :
19390   $as_echo_n "(cached) " >&6
19391 else
19392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h.  */
19394 #include <wchar.h>
19395        wint_t foo = (wchar_t)'\0';
19396 int
19397 main ()
19398 {
19399
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 if ac_fn_c_try_compile "$LINENO"; then :
19405   gt_cv_c_wint_t=yes
19406 else
19407   gt_cv_c_wint_t=no
19408 fi
19409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19410 fi
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19412 $as_echo "$gt_cv_c_wint_t" >&6; }
19413   if test $gt_cv_c_wint_t = yes; then
19414
19415 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19416
19417   fi
19418
19419
19420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19421 $as_echo_n "checking for inttypes.h... " >&6; }
19422 if ${gl_cv_header_inttypes_h+:} false; then :
19423   $as_echo_n "(cached) " >&6
19424 else
19425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h.  */
19427 #include <sys/types.h>
19428 #include <inttypes.h>
19429 int
19430 main ()
19431 {
19432 uintmax_t i = (uintmax_t) -1;
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 if ac_fn_c_try_compile "$LINENO"; then :
19438   gl_cv_header_inttypes_h=yes
19439 else
19440   gl_cv_header_inttypes_h=no
19441 fi
19442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19443 fi
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19445 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19446   if test $gl_cv_header_inttypes_h = yes; then
19447
19448 cat >>confdefs.h <<_ACEOF
19449 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19450 _ACEOF
19451
19452   fi
19453
19454
19455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19456 $as_echo_n "checking for stdint.h... " >&6; }
19457 if ${gl_cv_header_stdint_h+:} false; then :
19458   $as_echo_n "(cached) " >&6
19459 else
19460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h.  */
19462 #include <sys/types.h>
19463 #include <stdint.h>
19464 int
19465 main ()
19466 {
19467 uintmax_t i = (uintmax_t) -1;
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 if ac_fn_c_try_compile "$LINENO"; then :
19473   gl_cv_header_stdint_h=yes
19474 else
19475   gl_cv_header_stdint_h=no
19476 fi
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 fi
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19480 $as_echo "$gl_cv_header_stdint_h" >&6; }
19481   if test $gl_cv_header_stdint_h = yes; then
19482
19483 cat >>confdefs.h <<_ACEOF
19484 #define HAVE_STDINT_H_WITH_UINTMAX 1
19485 _ACEOF
19486
19487   fi
19488
19489
19490
19491
19492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19493 $as_echo_n "checking for intmax_t... " >&6; }
19494 if ${gt_cv_c_intmax_t+:} false; then :
19495   $as_echo_n "(cached) " >&6
19496 else
19497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h.  */
19499
19500 #include <stddef.h>
19501 #include <stdlib.h>
19502 #if HAVE_STDINT_H_WITH_UINTMAX
19503 #include <stdint.h>
19504 #endif
19505 #if HAVE_INTTYPES_H_WITH_UINTMAX
19506 #include <inttypes.h>
19507 #endif
19508
19509 int
19510 main ()
19511 {
19512 intmax_t x = -1;
19513   ;
19514   return 0;
19515 }
19516 _ACEOF
19517 if ac_fn_c_try_compile "$LINENO"; then :
19518   gt_cv_c_intmax_t=yes
19519 else
19520   gt_cv_c_intmax_t=no
19521 fi
19522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19523 fi
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19525 $as_echo "$gt_cv_c_intmax_t" >&6; }
19526   if test $gt_cv_c_intmax_t = yes; then
19527
19528 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19529
19530   fi
19531
19532
19533
19534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19535 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19536 if ${gt_cv_func_printf_posix+:} false; then :
19537   $as_echo_n "(cached) " >&6
19538 else
19539
19540       if test "$cross_compiling" = yes; then :
19541
19542         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h.  */
19544
19545 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19546   notposix
19547 #endif
19548
19549 _ACEOF
19550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19551   $EGREP "notposix" >/dev/null 2>&1; then :
19552   gt_cv_func_printf_posix="guessing no"
19553 else
19554   gt_cv_func_printf_posix="guessing yes"
19555 fi
19556 rm -f conftest*
19557
19558
19559 else
19560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561 /* end confdefs.h.  */
19562
19563 #include <stdio.h>
19564 #include <string.h>
19565 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19566    dollar expansion (possibly an autoconf bug).  */
19567 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19568 static char buf[100];
19569 int main ()
19570 {
19571   sprintf (buf, format, 33, 55);
19572   return (strcmp (buf, "55 33") != 0);
19573 }
19574 _ACEOF
19575 if ac_fn_c_try_run "$LINENO"; then :
19576   gt_cv_func_printf_posix=yes
19577 else
19578   gt_cv_func_printf_posix=no
19579 fi
19580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19581   conftest.$ac_objext conftest.beam conftest.$ac_ext
19582 fi
19583
19584
19585 fi
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19587 $as_echo "$gt_cv_func_printf_posix" >&6; }
19588   case $gt_cv_func_printf_posix in
19589     *yes)
19590
19591 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19592
19593       ;;
19594   esac
19595
19596 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19597 # for constant arguments.  Useless!
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19599 $as_echo_n "checking for working alloca.h... " >&6; }
19600 if ${ac_cv_working_alloca_h+:} false; then :
19601   $as_echo_n "(cached) " >&6
19602 else
19603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h.  */
19605 #include <alloca.h>
19606 int
19607 main ()
19608 {
19609 char *p = (char *) alloca (2 * sizeof (int));
19610                           if (p) return 0;
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 if ac_fn_c_try_link "$LINENO"; then :
19616   ac_cv_working_alloca_h=yes
19617 else
19618   ac_cv_working_alloca_h=no
19619 fi
19620 rm -f core conftest.err conftest.$ac_objext \
19621     conftest$ac_exeext conftest.$ac_ext
19622 fi
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19624 $as_echo "$ac_cv_working_alloca_h" >&6; }
19625 if test $ac_cv_working_alloca_h = yes; then
19626
19627 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19628
19629 fi
19630
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19632 $as_echo_n "checking for alloca... " >&6; }
19633 if ${ac_cv_func_alloca_works+:} false; then :
19634   $as_echo_n "(cached) " >&6
19635 else
19636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h.  */
19638 #ifdef __GNUC__
19639 # define alloca __builtin_alloca
19640 #else
19641 # ifdef _MSC_VER
19642 #  include <malloc.h>
19643 #  define alloca _alloca
19644 # else
19645 #  ifdef HAVE_ALLOCA_H
19646 #   include <alloca.h>
19647 #  else
19648 #   ifdef _AIX
19649  #pragma alloca
19650 #   else
19651 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19652 void *alloca (size_t);
19653 #    endif
19654 #   endif
19655 #  endif
19656 # endif
19657 #endif
19658
19659 int
19660 main ()
19661 {
19662 char *p = (char *) alloca (1);
19663                                     if (p) return 0;
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 if ac_fn_c_try_link "$LINENO"; then :
19669   ac_cv_func_alloca_works=yes
19670 else
19671   ac_cv_func_alloca_works=no
19672 fi
19673 rm -f core conftest.err conftest.$ac_objext \
19674     conftest$ac_exeext conftest.$ac_ext
19675 fi
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19677 $as_echo "$ac_cv_func_alloca_works" >&6; }
19678
19679 if test $ac_cv_func_alloca_works = yes; then
19680
19681 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19682
19683 else
19684   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19685 # that cause trouble.  Some versions do not even contain alloca or
19686 # contain a buggy version.  If you still want to use their alloca,
19687 # use ar to extract alloca.o from them instead of compiling alloca.c.
19688
19689 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19690
19691 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19692
19693
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19695 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19696 if ${ac_cv_os_cray+:} false; then :
19697   $as_echo_n "(cached) " >&6
19698 else
19699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h.  */
19701 #if defined CRAY && ! defined CRAY2
19702 webecray
19703 #else
19704 wenotbecray
19705 #endif
19706
19707 _ACEOF
19708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19709   $EGREP "webecray" >/dev/null 2>&1; then :
19710   ac_cv_os_cray=yes
19711 else
19712   ac_cv_os_cray=no
19713 fi
19714 rm -f conftest*
19715
19716 fi
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19718 $as_echo "$ac_cv_os_cray" >&6; }
19719 if test $ac_cv_os_cray = yes; then
19720   for ac_func in _getb67 GETB67 getb67; do
19721     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19723 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19724
19725 cat >>confdefs.h <<_ACEOF
19726 #define CRAY_STACKSEG_END $ac_func
19727 _ACEOF
19728
19729     break
19730 fi
19731
19732   done
19733 fi
19734
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19736 $as_echo_n "checking stack direction for C alloca... " >&6; }
19737 if ${ac_cv_c_stack_direction+:} false; then :
19738   $as_echo_n "(cached) " >&6
19739 else
19740   if test "$cross_compiling" = yes; then :
19741   ac_cv_c_stack_direction=0
19742 else
19743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h.  */
19745 $ac_includes_default
19746 int
19747 find_stack_direction ()
19748 {
19749   static char *addr = 0;
19750   auto char dummy;
19751   if (addr == 0)
19752     {
19753       addr = &dummy;
19754       return find_stack_direction ();
19755     }
19756   else
19757     return (&dummy > addr) ? 1 : -1;
19758 }
19759
19760 int
19761 main ()
19762 {
19763   return find_stack_direction () < 0;
19764 }
19765 _ACEOF
19766 if ac_fn_c_try_run "$LINENO"; then :
19767   ac_cv_c_stack_direction=1
19768 else
19769   ac_cv_c_stack_direction=-1
19770 fi
19771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19772   conftest.$ac_objext conftest.beam conftest.$ac_ext
19773 fi
19774
19775 fi
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19777 $as_echo "$ac_cv_c_stack_direction" >&6; }
19778 cat >>confdefs.h <<_ACEOF
19779 #define STACK_DIRECTION $ac_cv_c_stack_direction
19780 _ACEOF
19781
19782
19783 fi
19784
19785
19786
19787
19788   for ac_header in $ac_header_list
19789 do :
19790   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19791 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19792 "
19793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19794   cat >>confdefs.h <<_ACEOF
19795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19796 _ACEOF
19797
19798 fi
19799
19800 done
19801
19802
19803
19804
19805
19806
19807
19808
19809 for ac_func in getpagesize
19810 do :
19811   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19812 if test "x$ac_cv_func_getpagesize" = xyes; then :
19813   cat >>confdefs.h <<_ACEOF
19814 #define HAVE_GETPAGESIZE 1
19815 _ACEOF
19816
19817 fi
19818 done
19819
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19821 $as_echo_n "checking for working mmap... " >&6; }
19822 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19823   $as_echo_n "(cached) " >&6
19824 else
19825   if test "$cross_compiling" = yes; then :
19826   ac_cv_func_mmap_fixed_mapped=no
19827 else
19828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h.  */
19830 $ac_includes_default
19831 /* malloc might have been renamed as rpl_malloc. */
19832 #undef malloc
19833
19834 /* Thanks to Mike Haertel and Jim Avera for this test.
19835    Here is a matrix of mmap possibilities:
19836         mmap private not fixed
19837         mmap private fixed at somewhere currently unmapped
19838         mmap private fixed at somewhere already mapped
19839         mmap shared not fixed
19840         mmap shared fixed at somewhere currently unmapped
19841         mmap shared fixed at somewhere already mapped
19842    For private mappings, we should verify that changes cannot be read()
19843    back from the file, nor mmap's back from the file at a different
19844    address.  (There have been systems where private was not correctly
19845    implemented like the infamous i386 svr4.0, and systems where the
19846    VM page cache was not coherent with the file system buffer cache
19847    like early versions of FreeBSD and possibly contemporary NetBSD.)
19848    For shared mappings, we should conversely verify that changes get
19849    propagated back to all the places they're supposed to be.
19850
19851    Grep wants private fixed already mapped.
19852    The main things grep needs to know about mmap are:
19853    * does it exist and is it safe to write into the mmap'd area
19854    * how to use it (BSD variants)  */
19855
19856 #include <fcntl.h>
19857 #include <sys/mman.h>
19858
19859 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19860 char *malloc ();
19861 #endif
19862
19863 /* This mess was copied from the GNU getpagesize.h.  */
19864 #ifndef HAVE_GETPAGESIZE
19865 # ifdef _SC_PAGESIZE
19866 #  define getpagesize() sysconf(_SC_PAGESIZE)
19867 # else /* no _SC_PAGESIZE */
19868 #  ifdef HAVE_SYS_PARAM_H
19869 #   include <sys/param.h>
19870 #   ifdef EXEC_PAGESIZE
19871 #    define getpagesize() EXEC_PAGESIZE
19872 #   else /* no EXEC_PAGESIZE */
19873 #    ifdef NBPG
19874 #     define getpagesize() NBPG * CLSIZE
19875 #     ifndef CLSIZE
19876 #      define CLSIZE 1
19877 #     endif /* no CLSIZE */
19878 #    else /* no NBPG */
19879 #     ifdef NBPC
19880 #      define getpagesize() NBPC
19881 #     else /* no NBPC */
19882 #      ifdef PAGESIZE
19883 #       define getpagesize() PAGESIZE
19884 #      endif /* PAGESIZE */
19885 #     endif /* no NBPC */
19886 #    endif /* no NBPG */
19887 #   endif /* no EXEC_PAGESIZE */
19888 #  else /* no HAVE_SYS_PARAM_H */
19889 #   define getpagesize() 8192   /* punt totally */
19890 #  endif /* no HAVE_SYS_PARAM_H */
19891 # endif /* no _SC_PAGESIZE */
19892
19893 #endif /* no HAVE_GETPAGESIZE */
19894
19895 int
19896 main ()
19897 {
19898   char *data, *data2, *data3;
19899   const char *cdata2;
19900   int i, pagesize;
19901   int fd, fd2;
19902
19903   pagesize = getpagesize ();
19904
19905   /* First, make a file with some known garbage in it. */
19906   data = (char *) malloc (pagesize);
19907   if (!data)
19908     return 1;
19909   for (i = 0; i < pagesize; ++i)
19910     *(data + i) = rand ();
19911   umask (0);
19912   fd = creat ("conftest.mmap", 0600);
19913   if (fd < 0)
19914     return 2;
19915   if (write (fd, data, pagesize) != pagesize)
19916     return 3;
19917   close (fd);
19918
19919   /* Next, check that the tail of a page is zero-filled.  File must have
19920      non-zero length, otherwise we risk SIGBUS for entire page.  */
19921   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19922   if (fd2 < 0)
19923     return 4;
19924   cdata2 = "";
19925   if (write (fd2, cdata2, 1) != 1)
19926     return 5;
19927   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19928   if (data2 == MAP_FAILED)
19929     return 6;
19930   for (i = 0; i < pagesize; ++i)
19931     if (*(data2 + i))
19932       return 7;
19933   close (fd2);
19934   if (munmap (data2, pagesize))
19935     return 8;
19936
19937   /* Next, try to mmap the file at a fixed address which already has
19938      something else allocated at it.  If we can, also make sure that
19939      we see the same garbage.  */
19940   fd = open ("conftest.mmap", O_RDWR);
19941   if (fd < 0)
19942     return 9;
19943   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19944                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19945     return 10;
19946   for (i = 0; i < pagesize; ++i)
19947     if (*(data + i) != *(data2 + i))
19948       return 11;
19949
19950   /* Finally, make sure that changes to the mapped area do not
19951      percolate back to the file as seen by read().  (This is a bug on
19952      some variants of i386 svr4.0.)  */
19953   for (i = 0; i < pagesize; ++i)
19954     *(data2 + i) = *(data2 + i) + 1;
19955   data3 = (char *) malloc (pagesize);
19956   if (!data3)
19957     return 12;
19958   if (read (fd, data3, pagesize) != pagesize)
19959     return 13;
19960   for (i = 0; i < pagesize; ++i)
19961     if (*(data + i) != *(data3 + i))
19962       return 14;
19963   close (fd);
19964   return 0;
19965 }
19966 _ACEOF
19967 if ac_fn_c_try_run "$LINENO"; then :
19968   ac_cv_func_mmap_fixed_mapped=yes
19969 else
19970   ac_cv_func_mmap_fixed_mapped=no
19971 fi
19972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19973   conftest.$ac_objext conftest.beam conftest.$ac_ext
19974 fi
19975
19976 fi
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19978 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19979 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19980
19981 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19982
19983 fi
19984 rm -f conftest.mmap conftest.txt
19985
19986
19987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19988 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19989 if ${ac_cv_gnu_library_2_1+:} false; then :
19990   $as_echo_n "(cached) " >&6
19991 else
19992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19993 /* end confdefs.h.  */
19994
19995 #include <features.h>
19996 #ifdef __GNU_LIBRARY__
19997  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19998   Lucky GNU user
19999  #endif
20000 #endif
20001
20002 _ACEOF
20003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20004   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20005   ac_cv_gnu_library_2_1=yes
20006 else
20007   ac_cv_gnu_library_2_1=no
20008 fi
20009 rm -f conftest*
20010
20011
20012
20013 fi
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20015 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20016
20017     GLIBC21="$ac_cv_gnu_library_2_1"
20018
20019
20020
20021
20022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20023 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20024 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20025   $as_echo_n "(cached) " >&6
20026 else
20027
20028       if test "$cross_compiling" = yes; then :
20029
20030           # Guess based on the CPU.
20031           case "$host_cpu" in
20032             alpha* | i3456786 | m68k | s390*)
20033               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20034             *)
20035               gt_cv_int_divbyzero_sigfpe="guessing no";;
20036           esac
20037
20038 else
20039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h.  */
20041
20042 #include <stdlib.h>
20043 #include <signal.h>
20044
20045 static void
20046 #ifdef __cplusplus
20047 sigfpe_handler (int sig)
20048 #else
20049 sigfpe_handler (sig) int sig;
20050 #endif
20051 {
20052   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20053   exit (sig != SIGFPE);
20054 }
20055
20056 int x = 1;
20057 int y = 0;
20058 int z;
20059 int nan;
20060
20061 int main ()
20062 {
20063   signal (SIGFPE, sigfpe_handler);
20064 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20065 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20066   signal (SIGTRAP, sigfpe_handler);
20067 #endif
20068 /* Linux/SPARC yields signal SIGILL.  */
20069 #if defined (__sparc__) && defined (__linux__)
20070   signal (SIGILL, sigfpe_handler);
20071 #endif
20072
20073   z = x / y;
20074   nan = y / y;
20075   exit (1);
20076 }
20077
20078 _ACEOF
20079 if ac_fn_c_try_run "$LINENO"; then :
20080   gt_cv_int_divbyzero_sigfpe=yes
20081 else
20082   gt_cv_int_divbyzero_sigfpe=no
20083 fi
20084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20085   conftest.$ac_objext conftest.beam conftest.$ac_ext
20086 fi
20087
20088
20089 fi
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20091 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20092   case "$gt_cv_int_divbyzero_sigfpe" in
20093     *yes) value=1;;
20094     *) value=0;;
20095   esac
20096
20097 cat >>confdefs.h <<_ACEOF
20098 #define INTDIV0_RAISES_SIGFPE $value
20099 _ACEOF
20100
20101
20102
20103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20104 $as_echo_n "checking for unsigned long long... " >&6; }
20105 if ${ac_cv_type_unsigned_long_long+:} false; then :
20106   $as_echo_n "(cached) " >&6
20107 else
20108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h.  */
20110 unsigned long long ull = 1ULL; int i = 63;
20111 int
20112 main ()
20113 {
20114 unsigned long long ullmax = (unsigned long long) -1;
20115      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20116   ;
20117   return 0;
20118 }
20119 _ACEOF
20120 if ac_fn_c_try_link "$LINENO"; then :
20121   ac_cv_type_unsigned_long_long=yes
20122 else
20123   ac_cv_type_unsigned_long_long=no
20124 fi
20125 rm -f core conftest.err conftest.$ac_objext \
20126     conftest$ac_exeext conftest.$ac_ext
20127 fi
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20129 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20130   if test $ac_cv_type_unsigned_long_long = yes; then
20131
20132 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20133
20134   fi
20135
20136
20137
20138
20139   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20140
20141     test $ac_cv_type_unsigned_long_long = yes \
20142       && ac_type='unsigned long long' \
20143       || ac_type='unsigned long'
20144
20145 cat >>confdefs.h <<_ACEOF
20146 #define uintmax_t $ac_type
20147 _ACEOF
20148
20149   else
20150
20151 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20152
20153   fi
20154
20155
20156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20157 $as_echo_n "checking for inttypes.h... " >&6; }
20158 if ${gt_cv_header_inttypes_h+:} false; then :
20159   $as_echo_n "(cached) " >&6
20160 else
20161
20162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h.  */
20164 #include <sys/types.h>
20165 #include <inttypes.h>
20166 int
20167 main ()
20168 {
20169
20170   ;
20171   return 0;
20172 }
20173 _ACEOF
20174 if ac_fn_c_try_compile "$LINENO"; then :
20175   gt_cv_header_inttypes_h=yes
20176 else
20177   gt_cv_header_inttypes_h=no
20178 fi
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180
20181 fi
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20183 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20184   if test $gt_cv_header_inttypes_h = yes; then
20185
20186 cat >>confdefs.h <<_ACEOF
20187 #define HAVE_INTTYPES_H 1
20188 _ACEOF
20189
20190   fi
20191
20192
20193
20194   if test $gt_cv_header_inttypes_h = yes; then
20195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20196 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20197 if ${gt_cv_inttypes_pri_broken+:} false; then :
20198   $as_echo_n "(cached) " >&6
20199 else
20200
20201         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h.  */
20203 #include <inttypes.h>
20204 #ifdef PRId32
20205 char *p = PRId32;
20206 #endif
20207
20208 int
20209 main ()
20210 {
20211
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 if ac_fn_c_try_compile "$LINENO"; then :
20217   gt_cv_inttypes_pri_broken=no
20218 else
20219   gt_cv_inttypes_pri_broken=yes
20220 fi
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222
20223 fi
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20225 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20226   fi
20227   if test "$gt_cv_inttypes_pri_broken" = yes; then
20228
20229 cat >>confdefs.h <<_ACEOF
20230 #define PRI_MACROS_BROKEN 1
20231 _ACEOF
20232
20233   fi
20234
20235
20236   for ac_header in stdint.h
20237 do :
20238   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20239 if test "x$ac_cv_header_stdint_h" = xyes; then :
20240   cat >>confdefs.h <<_ACEOF
20241 #define HAVE_STDINT_H 1
20242 _ACEOF
20243
20244 fi
20245
20246 done
20247
20248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20249 $as_echo_n "checking for SIZE_MAX... " >&6; }
20250   result=
20251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h.  */
20253
20254 #include <limits.h>
20255 #if HAVE_STDINT_H
20256 #include <stdint.h>
20257 #endif
20258 #ifdef SIZE_MAX
20259 Found it
20260 #endif
20261
20262 _ACEOF
20263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20264   $EGREP "Found it" >/dev/null 2>&1; then :
20265   result=yes
20266 fi
20267 rm -f conftest*
20268
20269   if test -z "$result"; then
20270                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20271
20272 else
20273   result=?
20274 fi
20275
20276
20277     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20278
20279 else
20280   result=?
20281 fi
20282
20283
20284     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20285
20286 else
20287   result=?
20288 fi
20289
20290
20291     if test "$fits_in_uint" = 1; then
20292                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h.  */
20294 #include <stddef.h>
20295         extern size_t foo;
20296         extern unsigned long foo;
20297
20298 int
20299 main ()
20300 {
20301
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 if ac_fn_c_try_compile "$LINENO"; then :
20307   fits_in_uint=0
20308 fi
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20310     fi
20311     if test -z "$result"; then
20312       if test "$fits_in_uint" = 1; then
20313         result="$res_hi$res_lo"U
20314       else
20315         result="$res_hi$res_lo"UL
20316       fi
20317     else
20318             result='~(size_t)0'
20319     fi
20320   fi
20321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20322 $as_echo "$result" >&6; }
20323   if test "$result" != yes; then
20324
20325 cat >>confdefs.h <<_ACEOF
20326 #define SIZE_MAX $result
20327 _ACEOF
20328
20329   fi
20330
20331
20332
20333
20334   for ac_header in stdint.h
20335 do :
20336   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20337 if test "x$ac_cv_header_stdint_h" = xyes; then :
20338   cat >>confdefs.h <<_ACEOF
20339 #define HAVE_STDINT_H 1
20340 _ACEOF
20341
20342 fi
20343
20344 done
20345
20346
20347
20348
20349
20350
20351
20352
20353   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20354 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20355
20356 else
20357
20358 $as_echo "#define ptrdiff_t long" >>confdefs.h
20359
20360
20361 fi
20362
20363   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20364 stdlib.h string.h unistd.h sys/param.h
20365 do :
20366   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20367 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20369   cat >>confdefs.h <<_ACEOF
20370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20371 _ACEOF
20372
20373 fi
20374
20375 done
20376
20377   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20378 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20379 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20380 __fsetlocking
20381 do :
20382   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20384 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20385   cat >>confdefs.h <<_ACEOF
20386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20387 _ACEOF
20388
20389 fi
20390 done
20391
20392
20393
20394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20395 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20396 if ${ac_cv_have_decl__snprintf+:} false; then :
20397   $as_echo_n "(cached) " >&6
20398 else
20399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h.  */
20401 #include <stdio.h>
20402 int
20403 main ()
20404 {
20405
20406 #ifndef _snprintf
20407   char *p = (char *) _snprintf;
20408 #endif
20409
20410   ;
20411   return 0;
20412 }
20413 _ACEOF
20414 if ac_fn_c_try_compile "$LINENO"; then :
20415   ac_cv_have_decl__snprintf=yes
20416 else
20417   ac_cv_have_decl__snprintf=no
20418 fi
20419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420 fi
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20422 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20423   if test $ac_cv_have_decl__snprintf = yes; then
20424     gt_value=1
20425   else
20426     gt_value=0
20427   fi
20428
20429 cat >>confdefs.h <<_ACEOF
20430 #define HAVE_DECL__SNPRINTF $gt_value
20431 _ACEOF
20432
20433
20434
20435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20436 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20437 if ${ac_cv_have_decl__snwprintf+:} false; then :
20438   $as_echo_n "(cached) " >&6
20439 else
20440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h.  */
20442 #include <stdio.h>
20443 int
20444 main ()
20445 {
20446
20447 #ifndef _snwprintf
20448   char *p = (char *) _snwprintf;
20449 #endif
20450
20451   ;
20452   return 0;
20453 }
20454 _ACEOF
20455 if ac_fn_c_try_compile "$LINENO"; then :
20456   ac_cv_have_decl__snwprintf=yes
20457 else
20458   ac_cv_have_decl__snwprintf=no
20459 fi
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461 fi
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20463 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20464   if test $ac_cv_have_decl__snwprintf = yes; then
20465     gt_value=1
20466   else
20467     gt_value=0
20468   fi
20469
20470 cat >>confdefs.h <<_ACEOF
20471 #define HAVE_DECL__SNWPRINTF $gt_value
20472 _ACEOF
20473
20474
20475
20476
20477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20478 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20479 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20480   $as_echo_n "(cached) " >&6
20481 else
20482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h.  */
20484 #include <stdio.h>
20485 int
20486 main ()
20487 {
20488
20489 #ifndef feof_unlocked
20490   char *p = (char *) feof_unlocked;
20491 #endif
20492
20493   ;
20494   return 0;
20495 }
20496 _ACEOF
20497 if ac_fn_c_try_compile "$LINENO"; then :
20498   ac_cv_have_decl_feof_unlocked=yes
20499 else
20500   ac_cv_have_decl_feof_unlocked=no
20501 fi
20502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503 fi
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20505 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20506   if test $ac_cv_have_decl_feof_unlocked = yes; then
20507     gt_value=1
20508   else
20509     gt_value=0
20510   fi
20511
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20514 _ACEOF
20515
20516
20517
20518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20519 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20520 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20521   $as_echo_n "(cached) " >&6
20522 else
20523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20524 /* end confdefs.h.  */
20525 #include <stdio.h>
20526 int
20527 main ()
20528 {
20529
20530 #ifndef fgets_unlocked
20531   char *p = (char *) fgets_unlocked;
20532 #endif
20533
20534   ;
20535   return 0;
20536 }
20537 _ACEOF
20538 if ac_fn_c_try_compile "$LINENO"; then :
20539   ac_cv_have_decl_fgets_unlocked=yes
20540 else
20541   ac_cv_have_decl_fgets_unlocked=no
20542 fi
20543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 fi
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20546 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20547   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20548     gt_value=1
20549   else
20550     gt_value=0
20551   fi
20552
20553 cat >>confdefs.h <<_ACEOF
20554 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20555 _ACEOF
20556
20557
20558
20559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20560 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20561 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20562   $as_echo_n "(cached) " >&6
20563 else
20564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h.  */
20566 #include <stdio.h>
20567 int
20568 main ()
20569 {
20570
20571 #ifndef getc_unlocked
20572   char *p = (char *) getc_unlocked;
20573 #endif
20574
20575   ;
20576   return 0;
20577 }
20578 _ACEOF
20579 if ac_fn_c_try_compile "$LINENO"; then :
20580   ac_cv_have_decl_getc_unlocked=yes
20581 else
20582   ac_cv_have_decl_getc_unlocked=no
20583 fi
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585 fi
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20587 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20588   if test $ac_cv_have_decl_getc_unlocked = yes; then
20589     gt_value=1
20590   else
20591     gt_value=0
20592   fi
20593
20594 cat >>confdefs.h <<_ACEOF
20595 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20596 _ACEOF
20597
20598
20599
20600   case $gt_cv_func_printf_posix in
20601     *yes) HAVE_POSIX_PRINTF=1 ;;
20602     *) HAVE_POSIX_PRINTF=0 ;;
20603   esac
20604
20605   if test "$ac_cv_func_asprintf" = yes; then
20606     HAVE_ASPRINTF=1
20607   else
20608     HAVE_ASPRINTF=0
20609   fi
20610
20611   if test "$ac_cv_func_snprintf" = yes; then
20612     HAVE_SNPRINTF=1
20613   else
20614     HAVE_SNPRINTF=0
20615   fi
20616
20617   if test "$ac_cv_func_wprintf" = yes; then
20618     HAVE_WPRINTF=1
20619   else
20620     HAVE_WPRINTF=0
20621   fi
20622
20623
20624
20625
20626
20627
20628
20629           am_save_CPPFLAGS="$CPPFLAGS"
20630
20631   for element in $INCICONV; do
20632     haveit=
20633     for x in $CPPFLAGS; do
20634
20635   acl_save_prefix="$prefix"
20636   prefix="$acl_final_prefix"
20637   acl_save_exec_prefix="$exec_prefix"
20638   exec_prefix="$acl_final_exec_prefix"
20639   eval x=\"$x\"
20640   exec_prefix="$acl_save_exec_prefix"
20641   prefix="$acl_save_prefix"
20642
20643       if test "X$x" = "X$element"; then
20644         haveit=yes
20645         break
20646       fi
20647     done
20648     if test -z "$haveit"; then
20649       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20650     fi
20651   done
20652
20653
20654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20655 $as_echo_n "checking for iconv... " >&6; }
20656 if ${am_cv_func_iconv+:} false; then :
20657   $as_echo_n "(cached) " >&6
20658 else
20659
20660     am_cv_func_iconv="no, consider installing GNU libiconv"
20661     am_cv_lib_iconv=no
20662     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663 /* end confdefs.h.  */
20664 #include <stdlib.h>
20665 #include <iconv.h>
20666 int
20667 main ()
20668 {
20669 iconv_t cd = iconv_open("","");
20670        iconv(cd,NULL,NULL,NULL,NULL);
20671        iconv_close(cd);
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 if ac_fn_c_try_link "$LINENO"; then :
20677   am_cv_func_iconv=yes
20678 fi
20679 rm -f core conftest.err conftest.$ac_objext \
20680     conftest$ac_exeext conftest.$ac_ext
20681     if test "$am_cv_func_iconv" != yes; then
20682       am_save_LIBS="$LIBS"
20683       LIBS="$LIBS $LIBICONV"
20684       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h.  */
20686 #include <stdlib.h>
20687 #include <iconv.h>
20688 int
20689 main ()
20690 {
20691 iconv_t cd = iconv_open("","");
20692          iconv(cd,NULL,NULL,NULL,NULL);
20693          iconv_close(cd);
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 if ac_fn_c_try_link "$LINENO"; then :
20699   am_cv_lib_iconv=yes
20700         am_cv_func_iconv=yes
20701 fi
20702 rm -f core conftest.err conftest.$ac_objext \
20703     conftest$ac_exeext conftest.$ac_ext
20704       LIBS="$am_save_LIBS"
20705     fi
20706
20707 fi
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20709 $as_echo "$am_cv_func_iconv" >&6; }
20710   if test "$am_cv_func_iconv" = yes; then
20711
20712 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20713
20714   fi
20715   if test "$am_cv_lib_iconv" = yes; then
20716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20717 $as_echo_n "checking how to link with libiconv... " >&6; }
20718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20719 $as_echo "$LIBICONV" >&6; }
20720   else
20721             CPPFLAGS="$am_save_CPPFLAGS"
20722     LIBICONV=
20723     LTLIBICONV=
20724   fi
20725
20726
20727
20728   if test "$am_cv_func_iconv" = yes; then
20729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20730 $as_echo_n "checking for iconv declaration... " >&6; }
20731     if ${am_cv_proto_iconv+:} false; then :
20732   $as_echo_n "(cached) " >&6
20733 else
20734
20735       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h.  */
20737
20738 #include <stdlib.h>
20739 #include <iconv.h>
20740 extern
20741 #ifdef __cplusplus
20742 "C"
20743 #endif
20744 #if defined(__STDC__) || defined(__cplusplus)
20745 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20746 #else
20747 size_t iconv();
20748 #endif
20749
20750 int
20751 main ()
20752 {
20753
20754   ;
20755   return 0;
20756 }
20757 _ACEOF
20758 if ac_fn_c_try_compile "$LINENO"; then :
20759   am_cv_proto_iconv_arg1=""
20760 else
20761   am_cv_proto_iconv_arg1="const"
20762 fi
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20764       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);"
20765 fi
20766
20767     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20769          }$am_cv_proto_iconv" >&5
20770 $as_echo "${ac_t:-
20771          }$am_cv_proto_iconv" >&6; }
20772
20773 cat >>confdefs.h <<_ACEOF
20774 #define ICONV_CONST $am_cv_proto_iconv_arg1
20775 _ACEOF
20776
20777   fi
20778
20779
20780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20781 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20782 if ${am_cv_langinfo_codeset+:} false; then :
20783   $as_echo_n "(cached) " >&6
20784 else
20785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h.  */
20787 #include <langinfo.h>
20788 int
20789 main ()
20790 {
20791 char* cs = nl_langinfo(CODESET);
20792   ;
20793   return 0;
20794 }
20795 _ACEOF
20796 if ac_fn_c_try_link "$LINENO"; then :
20797   am_cv_langinfo_codeset=yes
20798 else
20799   am_cv_langinfo_codeset=no
20800 fi
20801 rm -f core conftest.err conftest.$ac_objext \
20802     conftest$ac_exeext conftest.$ac_ext
20803
20804 fi
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20806 $as_echo "$am_cv_langinfo_codeset" >&6; }
20807   if test $am_cv_langinfo_codeset = yes; then
20808
20809 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20810
20811   fi
20812
20813   if test $ac_cv_header_locale_h = yes; then
20814
20815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20816 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20817 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20818   $as_echo_n "(cached) " >&6
20819 else
20820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h.  */
20822 #include <locale.h>
20823 int
20824 main ()
20825 {
20826 return LC_MESSAGES
20827   ;
20828   return 0;
20829 }
20830 _ACEOF
20831 if ac_fn_c_try_link "$LINENO"; then :
20832   gt_cv_val_LC_MESSAGES=yes
20833 else
20834   gt_cv_val_LC_MESSAGES=no
20835 fi
20836 rm -f core conftest.err conftest.$ac_objext \
20837     conftest$ac_exeext conftest.$ac_ext
20838 fi
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20840 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20841   if test $gt_cv_val_LC_MESSAGES = yes; then
20842
20843 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20844
20845   fi
20846
20847   fi
20848
20849   if test -n "$INTL_MACOSX_LIBS"; then
20850     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20851   fi
20852
20853                       for ac_prog in bison
20854 do
20855   # Extract the first word of "$ac_prog", so it can be a program name with args.
20856 set dummy $ac_prog; ac_word=$2
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20858 $as_echo_n "checking for $ac_word... " >&6; }
20859 if ${ac_cv_prog_INTLBISON+:} false; then :
20860   $as_echo_n "(cached) " >&6
20861 else
20862   if test -n "$INTLBISON"; then
20863   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20864 else
20865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20866 for as_dir in $PATH
20867 do
20868   IFS=$as_save_IFS
20869   test -z "$as_dir" && as_dir=.
20870     for ac_exec_ext in '' $ac_executable_extensions; do
20871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20872     ac_cv_prog_INTLBISON="$ac_prog"
20873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20874     break 2
20875   fi
20876 done
20877   done
20878 IFS=$as_save_IFS
20879
20880 fi
20881 fi
20882 INTLBISON=$ac_cv_prog_INTLBISON
20883 if test -n "$INTLBISON"; then
20884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20885 $as_echo "$INTLBISON" >&6; }
20886 else
20887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20888 $as_echo "no" >&6; }
20889 fi
20890
20891
20892   test -n "$INTLBISON" && break
20893 done
20894
20895   if test -z "$INTLBISON"; then
20896     ac_verc_fail=yes
20897   else
20898         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20899 $as_echo_n "checking version of bison... " >&6; }
20900     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20901     case $ac_prog_version in
20902       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20903       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20904          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20905       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20906     esac
20907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20908 $as_echo "$ac_prog_version" >&6; }
20909   fi
20910   if test $ac_verc_fail = yes; then
20911     INTLBISON=:
20912   fi
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20930 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20931 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20932   $as_echo_n "(cached) " >&6
20933 else
20934   gt_save_CPPFLAGS="$CPPFLAGS"
20935      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20936      gt_save_LIBS="$LIBS"
20937      LIBS="$LIBS -framework CoreFoundation"
20938      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h.  */
20940 #include <CFPreferences.h>
20941 int
20942 main ()
20943 {
20944 CFPreferencesCopyAppValue(NULL, NULL)
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 if ac_fn_c_try_link "$LINENO"; then :
20950   gt_cv_func_CFPreferencesCopyAppValue=yes
20951 else
20952   gt_cv_func_CFPreferencesCopyAppValue=no
20953 fi
20954 rm -f core conftest.err conftest.$ac_objext \
20955     conftest$ac_exeext conftest.$ac_ext
20956      CPPFLAGS="$gt_save_CPPFLAGS"
20957      LIBS="$gt_save_LIBS"
20958 fi
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20960 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20961   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20962
20963 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20964
20965   fi
20966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20967 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20968 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20969   $as_echo_n "(cached) " >&6
20970 else
20971   gt_save_CPPFLAGS="$CPPFLAGS"
20972      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20973      gt_save_LIBS="$LIBS"
20974      LIBS="$LIBS -framework CoreFoundation"
20975      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h.  */
20977 #include <CFLocale.h>
20978 int
20979 main ()
20980 {
20981 CFLocaleCopyCurrent();
20982   ;
20983   return 0;
20984 }
20985 _ACEOF
20986 if ac_fn_c_try_link "$LINENO"; then :
20987   gt_cv_func_CFLocaleCopyCurrent=yes
20988 else
20989   gt_cv_func_CFLocaleCopyCurrent=no
20990 fi
20991 rm -f core conftest.err conftest.$ac_objext \
20992     conftest$ac_exeext conftest.$ac_ext
20993      CPPFLAGS="$gt_save_CPPFLAGS"
20994      LIBS="$gt_save_LIBS"
20995 fi
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20997 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20998   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20999
21000 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21001
21002   fi
21003   INTL_MACOSX_LIBS=
21004   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21005     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21006   fi
21007
21008
21009
21010
21011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21012 $as_echo_n "checking whether NLS is requested... " >&6; }
21013     # Check whether --enable-nls was given.
21014 if test "${enable_nls+set}" = set; then :
21015   enableval=$enable_nls; USE_NLS=$enableval
21016 else
21017   USE_NLS=yes
21018 fi
21019
21020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21021 $as_echo "$USE_NLS" >&6; }
21022
21023
21024
21025
21026     BUILD_INCLUDED_LIBINTL=no
21027     USE_INCLUDED_LIBINTL=no
21028
21029   LIBINTL=
21030   LTLIBINTL=
21031   POSUB=
21032
21033     if test "$USE_NLS" = "yes"; then
21034     gt_use_preinstalled_gnugettext=no
21035
21036       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21037 $as_echo_n "checking whether included gettext is requested... " >&6; }
21038
21039 # Check whether --with-included-gettext was given.
21040 if test "${with_included_gettext+set}" = set; then :
21041   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21042 else
21043   nls_cv_force_use_gnu_gettext=no
21044 fi
21045
21046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21047 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21048
21049       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21050       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21051
21052
21053
21054
21055
21056
21057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21058 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21059 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21060   $as_echo_n "(cached) " >&6
21061 else
21062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h.  */
21064 #include <libintl.h>
21065 extern int _nl_msg_cat_cntr;
21066 extern int *_nl_domain_bindings;
21067 int
21068 main ()
21069 {
21070 bindtextdomain ("", "");
21071 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21072   ;
21073   return 0;
21074 }
21075 _ACEOF
21076 if ac_fn_c_try_link "$LINENO"; then :
21077   gt_cv_func_gnugettext1_libc=yes
21078 else
21079   gt_cv_func_gnugettext1_libc=no
21080 fi
21081 rm -f core conftest.err conftest.$ac_objext \
21082     conftest$ac_exeext conftest.$ac_ext
21083 fi
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21085 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21086
21087         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21088
21089
21090
21091     use_additional=yes
21092
21093   acl_save_prefix="$prefix"
21094   prefix="$acl_final_prefix"
21095   acl_save_exec_prefix="$exec_prefix"
21096   exec_prefix="$acl_final_exec_prefix"
21097
21098     eval additional_includedir=\"$includedir\"
21099     eval additional_libdir=\"$libdir\"
21100
21101   exec_prefix="$acl_save_exec_prefix"
21102   prefix="$acl_save_prefix"
21103
21104
21105 # Check whether --with-libintl-prefix was given.
21106 if test "${with_libintl_prefix+set}" = set; then :
21107   withval=$with_libintl_prefix;
21108     if test "X$withval" = "Xno"; then
21109       use_additional=no
21110     else
21111       if test "X$withval" = "X"; then
21112
21113   acl_save_prefix="$prefix"
21114   prefix="$acl_final_prefix"
21115   acl_save_exec_prefix="$exec_prefix"
21116   exec_prefix="$acl_final_exec_prefix"
21117
21118           eval additional_includedir=\"$includedir\"
21119           eval additional_libdir=\"$libdir\"
21120
21121   exec_prefix="$acl_save_exec_prefix"
21122   prefix="$acl_save_prefix"
21123
21124       else
21125         additional_includedir="$withval/include"
21126         additional_libdir="$withval/lib"
21127       fi
21128     fi
21129
21130 fi
21131
21132       LIBINTL=
21133   LTLIBINTL=
21134   INCINTL=
21135   rpathdirs=
21136   ltrpathdirs=
21137   names_already_handled=
21138   names_next_round='intl '
21139   while test -n "$names_next_round"; do
21140     names_this_round="$names_next_round"
21141     names_next_round=
21142     for name in $names_this_round; do
21143       already_handled=
21144       for n in $names_already_handled; do
21145         if test "$n" = "$name"; then
21146           already_handled=yes
21147           break
21148         fi
21149       done
21150       if test -z "$already_handled"; then
21151         names_already_handled="$names_already_handled $name"
21152                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21153         eval value=\"\$HAVE_LIB$uppername\"
21154         if test -n "$value"; then
21155           if test "$value" = yes; then
21156             eval value=\"\$LIB$uppername\"
21157             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21158             eval value=\"\$LTLIB$uppername\"
21159             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21160           else
21161                                     :
21162           fi
21163         else
21164                               found_dir=
21165           found_la=
21166           found_so=
21167           found_a=
21168           if test $use_additional = yes; then
21169             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21170               found_dir="$additional_libdir"
21171               found_so="$additional_libdir/lib$name.$shlibext"
21172               if test -f "$additional_libdir/lib$name.la"; then
21173                 found_la="$additional_libdir/lib$name.la"
21174               fi
21175             else
21176               if test -f "$additional_libdir/lib$name.$libext"; then
21177                 found_dir="$additional_libdir"
21178                 found_a="$additional_libdir/lib$name.$libext"
21179                 if test -f "$additional_libdir/lib$name.la"; then
21180                   found_la="$additional_libdir/lib$name.la"
21181                 fi
21182               fi
21183             fi
21184           fi
21185           if test "X$found_dir" = "X"; then
21186             for x in $LDFLAGS $LTLIBINTL; do
21187
21188   acl_save_prefix="$prefix"
21189   prefix="$acl_final_prefix"
21190   acl_save_exec_prefix="$exec_prefix"
21191   exec_prefix="$acl_final_exec_prefix"
21192   eval x=\"$x\"
21193   exec_prefix="$acl_save_exec_prefix"
21194   prefix="$acl_save_prefix"
21195
21196               case "$x" in
21197                 -L*)
21198                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21199                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21200                     found_dir="$dir"
21201                     found_so="$dir/lib$name.$shlibext"
21202                     if test -f "$dir/lib$name.la"; then
21203                       found_la="$dir/lib$name.la"
21204                     fi
21205                   else
21206                     if test -f "$dir/lib$name.$libext"; then
21207                       found_dir="$dir"
21208                       found_a="$dir/lib$name.$libext"
21209                       if test -f "$dir/lib$name.la"; then
21210                         found_la="$dir/lib$name.la"
21211                       fi
21212                     fi
21213                   fi
21214                   ;;
21215               esac
21216               if test "X$found_dir" != "X"; then
21217                 break
21218               fi
21219             done
21220           fi
21221           if test "X$found_dir" != "X"; then
21222                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21223             if test "X$found_so" != "X"; then
21224                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21225                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21226               else
21227                                                                                 haveit=
21228                 for x in $ltrpathdirs; do
21229                   if test "X$x" = "X$found_dir"; then
21230                     haveit=yes
21231                     break
21232                   fi
21233                 done
21234                 if test -z "$haveit"; then
21235                   ltrpathdirs="$ltrpathdirs $found_dir"
21236                 fi
21237                                 if test "$hardcode_direct" = yes; then
21238                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21239                 else
21240                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21241                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21242                                                             haveit=
21243                     for x in $rpathdirs; do
21244                       if test "X$x" = "X$found_dir"; then
21245                         haveit=yes
21246                         break
21247                       fi
21248                     done
21249                     if test -z "$haveit"; then
21250                       rpathdirs="$rpathdirs $found_dir"
21251                     fi
21252                   else
21253                                                                                 haveit=
21254                     for x in $LDFLAGS $LIBINTL; do
21255
21256   acl_save_prefix="$prefix"
21257   prefix="$acl_final_prefix"
21258   acl_save_exec_prefix="$exec_prefix"
21259   exec_prefix="$acl_final_exec_prefix"
21260   eval x=\"$x\"
21261   exec_prefix="$acl_save_exec_prefix"
21262   prefix="$acl_save_prefix"
21263
21264                       if test "X$x" = "X-L$found_dir"; then
21265                         haveit=yes
21266                         break
21267                       fi
21268                     done
21269                     if test -z "$haveit"; then
21270                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21271                     fi
21272                     if test "$hardcode_minus_L" != no; then
21273                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21274                     else
21275                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21276                     fi
21277                   fi
21278                 fi
21279               fi
21280             else
21281               if test "X$found_a" != "X"; then
21282                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21283               else
21284                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21285               fi
21286             fi
21287                         additional_includedir=
21288             case "$found_dir" in
21289               */lib | */lib/)
21290                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21291                 additional_includedir="$basedir/include"
21292                 ;;
21293             esac
21294             if test "X$additional_includedir" != "X"; then
21295                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21296                 haveit=
21297                 if test "X$additional_includedir" = "X/usr/local/include"; then
21298                   if test -n "$GCC"; then
21299                     case $host_os in
21300                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21301                     esac
21302                   fi
21303                 fi
21304                 if test -z "$haveit"; then
21305                   for x in $CPPFLAGS $INCINTL; do
21306
21307   acl_save_prefix="$prefix"
21308   prefix="$acl_final_prefix"
21309   acl_save_exec_prefix="$exec_prefix"
21310   exec_prefix="$acl_final_exec_prefix"
21311   eval x=\"$x\"
21312   exec_prefix="$acl_save_exec_prefix"
21313   prefix="$acl_save_prefix"
21314
21315                     if test "X$x" = "X-I$additional_includedir"; then
21316                       haveit=yes
21317                       break
21318                     fi
21319                   done
21320                   if test -z "$haveit"; then
21321                     if test -d "$additional_includedir"; then
21322                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21323                     fi
21324                   fi
21325                 fi
21326               fi
21327             fi
21328                         if test -n "$found_la"; then
21329                                                         save_libdir="$libdir"
21330               case "$found_la" in
21331                 */* | *\\*) . "$found_la" ;;
21332                 *) . "./$found_la" ;;
21333               esac
21334               libdir="$save_libdir"
21335                             for dep in $dependency_libs; do
21336                 case "$dep" in
21337                   -L*)
21338                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21339                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21340                       haveit=
21341                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21342                         if test -n "$GCC"; then
21343                           case $host_os in
21344                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21345                           esac
21346                         fi
21347                       fi
21348                       if test -z "$haveit"; then
21349                         haveit=
21350                         for x in $LDFLAGS $LIBINTL; do
21351
21352   acl_save_prefix="$prefix"
21353   prefix="$acl_final_prefix"
21354   acl_save_exec_prefix="$exec_prefix"
21355   exec_prefix="$acl_final_exec_prefix"
21356   eval x=\"$x\"
21357   exec_prefix="$acl_save_exec_prefix"
21358   prefix="$acl_save_prefix"
21359
21360                           if test "X$x" = "X-L$additional_libdir"; then
21361                             haveit=yes
21362                             break
21363                           fi
21364                         done
21365                         if test -z "$haveit"; then
21366                           if test -d "$additional_libdir"; then
21367                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21368                           fi
21369                         fi
21370                         haveit=
21371                         for x in $LDFLAGS $LTLIBINTL; do
21372
21373   acl_save_prefix="$prefix"
21374   prefix="$acl_final_prefix"
21375   acl_save_exec_prefix="$exec_prefix"
21376   exec_prefix="$acl_final_exec_prefix"
21377   eval x=\"$x\"
21378   exec_prefix="$acl_save_exec_prefix"
21379   prefix="$acl_save_prefix"
21380
21381                           if test "X$x" = "X-L$additional_libdir"; then
21382                             haveit=yes
21383                             break
21384                           fi
21385                         done
21386                         if test -z "$haveit"; then
21387                           if test -d "$additional_libdir"; then
21388                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21389                           fi
21390                         fi
21391                       fi
21392                     fi
21393                     ;;
21394                   -R*)
21395                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21396                     if test "$enable_rpath" != no; then
21397                                                                   haveit=
21398                       for x in $rpathdirs; do
21399                         if test "X$x" = "X$dir"; then
21400                           haveit=yes
21401                           break
21402                         fi
21403                       done
21404                       if test -z "$haveit"; then
21405                         rpathdirs="$rpathdirs $dir"
21406                       fi
21407                                                                   haveit=
21408                       for x in $ltrpathdirs; do
21409                         if test "X$x" = "X$dir"; then
21410                           haveit=yes
21411                           break
21412                         fi
21413                       done
21414                       if test -z "$haveit"; then
21415                         ltrpathdirs="$ltrpathdirs $dir"
21416                       fi
21417                     fi
21418                     ;;
21419                   -l*)
21420                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21421                     ;;
21422                   *.la)
21423                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21424                     ;;
21425                   *)
21426                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21427                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21428                     ;;
21429                 esac
21430               done
21431             fi
21432           else
21433                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21434             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21435           fi
21436         fi
21437       fi
21438     done
21439   done
21440   if test "X$rpathdirs" != "X"; then
21441     if test -n "$hardcode_libdir_separator"; then
21442                         alldirs=
21443       for found_dir in $rpathdirs; do
21444         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21445       done
21446             acl_save_libdir="$libdir"
21447       libdir="$alldirs"
21448       eval flag=\"$hardcode_libdir_flag_spec\"
21449       libdir="$acl_save_libdir"
21450       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21451     else
21452             for found_dir in $rpathdirs; do
21453         acl_save_libdir="$libdir"
21454         libdir="$found_dir"
21455         eval flag=\"$hardcode_libdir_flag_spec\"
21456         libdir="$acl_save_libdir"
21457         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21458       done
21459     fi
21460   fi
21461   if test "X$ltrpathdirs" != "X"; then
21462             for found_dir in $ltrpathdirs; do
21463       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21464     done
21465   fi
21466
21467           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21468 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21469 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21470   $as_echo_n "(cached) " >&6
21471 else
21472   gt_save_CPPFLAGS="$CPPFLAGS"
21473             CPPFLAGS="$CPPFLAGS $INCINTL"
21474             gt_save_LIBS="$LIBS"
21475             LIBS="$LIBS $LIBINTL"
21476                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21477 /* end confdefs.h.  */
21478 #include <libintl.h>
21479 extern int _nl_msg_cat_cntr;
21480 extern
21481 #ifdef __cplusplus
21482 "C"
21483 #endif
21484 const char *_nl_expand_alias (const char *);
21485 int
21486 main ()
21487 {
21488 bindtextdomain ("", "");
21489 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 if ac_fn_c_try_link "$LINENO"; then :
21495   gt_cv_func_gnugettext1_libintl=yes
21496 else
21497   gt_cv_func_gnugettext1_libintl=no
21498 fi
21499 rm -f core conftest.err conftest.$ac_objext \
21500     conftest$ac_exeext conftest.$ac_ext
21501                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21502               LIBS="$LIBS $LIBICONV"
21503               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h.  */
21505 #include <libintl.h>
21506 extern int _nl_msg_cat_cntr;
21507 extern
21508 #ifdef __cplusplus
21509 "C"
21510 #endif
21511 const char *_nl_expand_alias (const char *);
21512 int
21513 main ()
21514 {
21515 bindtextdomain ("", "");
21516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21517   ;
21518   return 0;
21519 }
21520 _ACEOF
21521 if ac_fn_c_try_link "$LINENO"; then :
21522   LIBINTL="$LIBINTL $LIBICONV"
21523                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21524                 gt_cv_func_gnugettext1_libintl=yes
21525
21526 fi
21527 rm -f core conftest.err conftest.$ac_objext \
21528     conftest$ac_exeext conftest.$ac_ext
21529             fi
21530             CPPFLAGS="$gt_save_CPPFLAGS"
21531             LIBS="$gt_save_LIBS"
21532 fi
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21534 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21535         fi
21536
21537                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21538            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21539                 && test "$PACKAGE" != gettext-runtime \
21540                 && test "$PACKAGE" != gettext-tools; }; then
21541           gt_use_preinstalled_gnugettext=yes
21542         else
21543                     LIBINTL=
21544           LTLIBINTL=
21545           INCINTL=
21546         fi
21547
21548
21549         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21550                               nls_cv_use_gnu_gettext=yes
21551         fi
21552       fi
21553
21554       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21555                 BUILD_INCLUDED_LIBINTL=yes
21556         USE_INCLUDED_LIBINTL=yes
21557         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21558         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21559         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21560       fi
21561
21562       CATOBJEXT=
21563       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21564          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21565                 CATOBJEXT=.gmo
21566       fi
21567
21568
21569     if test -n "$INTL_MACOSX_LIBS"; then
21570       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21571          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21572                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21573         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21574       fi
21575     fi
21576
21577     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21578        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21579
21580 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21581
21582     else
21583       USE_NLS=no
21584     fi
21585   fi
21586
21587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21588 $as_echo_n "checking whether to use NLS... " >&6; }
21589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21590 $as_echo "$USE_NLS" >&6; }
21591   if test "$USE_NLS" = "yes"; then
21592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21593 $as_echo_n "checking where the gettext function comes from... " >&6; }
21594     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21595       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21596         gt_source="external libintl"
21597       else
21598         gt_source="libc"
21599       fi
21600     else
21601       gt_source="included intl directory"
21602     fi
21603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21604 $as_echo "$gt_source" >&6; }
21605   fi
21606
21607   if test "$USE_NLS" = "yes"; then
21608
21609     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21610       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21612 $as_echo_n "checking how to link with libintl... " >&6; }
21613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21614 $as_echo "$LIBINTL" >&6; }
21615
21616   for element in $INCINTL; do
21617     haveit=
21618     for x in $CPPFLAGS; do
21619
21620   acl_save_prefix="$prefix"
21621   prefix="$acl_final_prefix"
21622   acl_save_exec_prefix="$exec_prefix"
21623   exec_prefix="$acl_final_exec_prefix"
21624   eval x=\"$x\"
21625   exec_prefix="$acl_save_exec_prefix"
21626   prefix="$acl_save_prefix"
21627
21628       if test "X$x" = "X$element"; then
21629         haveit=yes
21630         break
21631       fi
21632     done
21633     if test -z "$haveit"; then
21634       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21635     fi
21636   done
21637
21638       fi
21639
21640
21641 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21642
21643
21644 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21645
21646     fi
21647
21648         POSUB=po
21649   fi
21650
21651
21652             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21653       BUILD_INCLUDED_LIBINTL=yes
21654     fi
21655
21656
21657
21658
21659
21660         nls_cv_header_intl=
21661     nls_cv_header_libgt=
21662
21663         DATADIRNAME=share
21664
21665
21666         INSTOBJEXT=.mo
21667
21668
21669         GENCAT=gencat
21670
21671
21672         INTLOBJS=
21673     if test "$USE_INCLUDED_LIBINTL" = yes; then
21674       INTLOBJS="\$(GETTOBJS)"
21675     fi
21676
21677
21678         INTL_LIBTOOL_SUFFIX_PREFIX=
21679
21680
21681
21682     INTLLIBS="$LIBINTL"
21683
21684
21685
21686
21687
21688
21689 fi
21690
21691 support_smartalloc=yes
21692 support_readline=yes
21693 support_lzo=yes
21694 support_conio=yes
21695 support_bat=no
21696 support_tls=no
21697 support_crypto=no
21698 support_static_tools=no
21699 support_static_fd=no
21700 support_static_sd=no
21701 support_static_dir=no
21702 support_static_cons=no
21703 build_client_only=no
21704 build_dird=yes
21705 build_stored=yes
21706 db_backends=""
21707 batch_insert_db_backends=""
21708 support_lockmgr=no
21709
21710
21711 # Check whether --enable-bat was given.
21712 if test "${enable_bat+set}" = set; then :
21713   enableval=$enable_bat;
21714        if test x$enableval = xyes; then
21715
21716 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21717
21718           support_bat=yes
21719        fi
21720
21721
21722 fi
21723
21724
21725 BAT_DIR=
21726 if test x$support_bat = xyes; then
21727    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21728    pkg=$?
21729    if test $pkg = 0; then
21730       BAT_DIR=src/qt-console
21731    else
21732       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21733    fi
21734 fi
21735
21736 got_qwt=no
21737 QWT_INC=
21738 QWT_LDFLAGS=
21739 QWT_LIB=
21740 QWT=
21741 no_qwt=no
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751 # Check whether --enable-smartalloc was given.
21752 if test "${enable_smartalloc+set}" = set; then :
21753   enableval=$enable_smartalloc;
21754        if test x$enableval = xno; then
21755           support_smartalloc=no
21756        fi
21757
21758
21759 fi
21760
21761
21762 if test x$support_smartalloc = xyes; then
21763
21764 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21765
21766 fi
21767
21768 # Check whether --enable-lockmgr was given.
21769 if test "${enable_lockmgr+set}" = set; then :
21770   enableval=$enable_lockmgr;
21771        if test x$enableval = xyes; then
21772           support_lockmgr=yes
21773        fi
21774
21775
21776 fi
21777
21778
21779 if test x$support_lockmgr = xyes; then
21780
21781 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21782
21783 fi
21784
21785
21786 # Check whether --enable-static-tools was given.
21787 if test "${enable_static_tools+set}" = set; then :
21788   enableval=$enable_static_tools;
21789        if test x$enableval = xyes; then
21790           if test x$use_libtool = xyes; then
21791              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21792   please rerun configure with --disable-libtool" "$LINENO" 5
21793           fi
21794           support_static_tools=yes
21795        fi
21796
21797
21798 fi
21799
21800
21801 TTOOL_LDFLAGS=
21802 if test x$support_static_tools = xyes; then
21803    TTOOL_LDFLAGS="-static"
21804 fi
21805
21806
21807 # Check whether --enable-static-fd was given.
21808 if test "${enable_static_fd+set}" = set; then :
21809   enableval=$enable_static_fd;
21810        if test x$enableval = xyes; then
21811           if test x$use_libtool = xyes; then
21812              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21813   please rerun configure with --disable-libtool" "$LINENO" 5
21814           fi
21815           support_static_fd=yes
21816        fi
21817
21818
21819 fi
21820
21821
21822 STATIC_FD=
21823 if test x$support_static_fd = xyes; then
21824    STATIC_FD="static-bacula-fd"
21825 fi
21826
21827
21828 # Check whether --enable-static-sd was given.
21829 if test "${enable_static_sd+set}" = set; then :
21830   enableval=$enable_static_sd;
21831        if test x$enableval = xyes; then
21832           if test x$use_libtool = xyes; then
21833              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21834   please rerun configure with --disable-libtool" "$LINENO" 5
21835           fi
21836           support_static_sd=yes
21837        fi
21838
21839
21840 fi
21841
21842
21843 STATIC_SD=
21844 if test x$support_static_sd = xyes; then
21845    STATIC_SD="static-bacula-sd"
21846 fi
21847
21848
21849 # Check whether --enable-static-dir was given.
21850 if test "${enable_static_dir+set}" = set; then :
21851   enableval=$enable_static_dir;
21852        if test x$enableval = xyes; then
21853           if test x$use_libtool = xyes; then
21854              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21855   please rerun configure with --disable-libtool" "$LINENO" 5
21856           fi
21857           support_static_dir=yes
21858        fi
21859
21860
21861 fi
21862
21863
21864 STATIC_DIR=
21865 if test x$support_static_dir = xyes; then
21866    STATIC_DIR="static-bacula-dir"
21867 fi
21868
21869
21870 # Check whether --enable-static-cons was given.
21871 if test "${enable_static_cons+set}" = set; then :
21872   enableval=$enable_static_cons;
21873        if test x$enableval = xyes; then
21874           if test x$use_libtool = xyes; then
21875              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21876   please rerun configure with --disable-libtool" "$LINENO" 5
21877           fi
21878           support_static_cons=yes
21879        fi
21880
21881
21882 fi
21883
21884
21885 STATIC_CONS=
21886 if test x$support_static_cons = xyes; then
21887    STATIC_CONS="static-bconsole"
21888 fi
21889
21890
21891 # Check whether --enable-client-only was given.
21892 if test "${enable_client_only+set}" = set; then :
21893   enableval=$enable_client_only;
21894        if test x$enableval = xyes; then
21895           build_client_only=yes
21896           db_backends="None"
21897           DB_BACKENDS="none"
21898        fi
21899
21900
21901 fi
21902
21903 if test x$build_client_only = xno; then
21904    ALL_DIRS="subdirs"
21905 else
21906    ALL_DIRS=""
21907 fi
21908
21909
21910 # Check whether --enable-build-dird was given.
21911 if test "${enable_build_dird+set}" = set; then :
21912   enableval=$enable_build_dird;
21913        if test x$enableval = xno; then
21914           build_dird=no
21915        fi
21916
21917
21918 fi
21919
21920 if test x$build_dird = xyes; then
21921    DIRD_DIR="src/dird"
21922    DIR_TOOLS="DIRTOOLS"
21923 else
21924    DIRD_DIR=""
21925    DIR_TOOLS="NODIRTOOLS"
21926 fi
21927
21928
21929
21930 # Check whether --enable-build-stored was given.
21931 if test "${enable_build_stored+set}" = set; then :
21932   enableval=$enable_build_stored;
21933       if test x$enableval = xno; then
21934          build_stored=no
21935       fi
21936
21937
21938 fi
21939
21940 if test x$build_stored = xyes; then
21941    STORED_DIR="src/stored"
21942 else
21943    STORED_DIR=""
21944 fi
21945
21946
21947 # Check whether --enable-conio was given.
21948 if test "${enable_conio+set}" = set; then :
21949   enableval=$enable_conio;
21950        if test x$enableval = xno; then
21951           support_conio=no
21952        fi
21953
21954
21955 fi
21956
21957
21958
21959 support_ipv6=yes
21960 # Check whether --enable-ipv6 was given.
21961 if test "${enable_ipv6+set}" = set; then :
21962   enableval=$enable_ipv6;
21963        if test x$enableval = xno; then
21964           support_ipv6=no
21965        fi
21966
21967
21968 fi
21969
21970
21971 if test x$support_ipv6 = xyes; then
21972     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h.  */
21974  #include <sys/types.h>
21975 #include <sys/socket.h>
21976 #include <netinet/in.h>
21977 int
21978 main ()
21979 {
21980 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21981   ;
21982   return 0;
21983 }
21984 _ACEOF
21985 if ac_fn_c_try_link "$LINENO"; then :
21986   support_ipv6=yes
21987 else
21988   support_ipv6=no
21989 fi
21990 rm -f core conftest.err conftest.$ac_objext \
21991     conftest$ac_exeext conftest.$ac_ext
21992 fi
21993
21994 if test x$support_ipv6 = xyes; then
21995
21996 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21997
21998 fi
21999
22000 TERM_LIB=""
22001 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22002 if test "x$ac_cv_header_curses_h" = xyes; then :
22003
22004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22005 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22006 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22007   $as_echo_n "(cached) " >&6
22008 else
22009   ac_check_lib_save_LIBS=$LIBS
22010 LIBS="-ltinfo  $LIBS"
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h.  */
22013
22014 /* Override any GCC internal prototype to avoid an error.
22015    Use char because int might match the return type of a GCC
22016    builtin and then its argument prototype would still apply.  */
22017 #ifdef __cplusplus
22018 extern "C"
22019 #endif
22020 char tgetent ();
22021 int
22022 main ()
22023 {
22024 return tgetent ();
22025   ;
22026   return 0;
22027 }
22028 _ACEOF
22029 if ac_fn_c_try_link "$LINENO"; then :
22030   ac_cv_lib_tinfo_tgetent=yes
22031 else
22032   ac_cv_lib_tinfo_tgetent=no
22033 fi
22034 rm -f core conftest.err conftest.$ac_objext \
22035     conftest$ac_exeext conftest.$ac_ext
22036 LIBS=$ac_check_lib_save_LIBS
22037 fi
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22039 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22040 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22041    TERM_LIB="-ltinfo"
22042 else
22043
22044       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22045 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22046 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22047   $as_echo_n "(cached) " >&6
22048 else
22049   ac_check_lib_save_LIBS=$LIBS
22050 LIBS="-lncurses  $LIBS"
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h.  */
22053
22054 /* Override any GCC internal prototype to avoid an error.
22055    Use char because int might match the return type of a GCC
22056    builtin and then its argument prototype would still apply.  */
22057 #ifdef __cplusplus
22058 extern "C"
22059 #endif
22060 char tgetent ();
22061 int
22062 main ()
22063 {
22064 return tgetent ();
22065   ;
22066   return 0;
22067 }
22068 _ACEOF
22069 if ac_fn_c_try_link "$LINENO"; then :
22070   ac_cv_lib_ncurses_tgetent=yes
22071 else
22072   ac_cv_lib_ncurses_tgetent=no
22073 fi
22074 rm -f core conftest.err conftest.$ac_objext \
22075     conftest$ac_exeext conftest.$ac_ext
22076 LIBS=$ac_check_lib_save_LIBS
22077 fi
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22079 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22080 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22081    TERM_LIB="-lncurses"
22082 else
22083
22084         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22085 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22086 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22087   $as_echo_n "(cached) " >&6
22088 else
22089   ac_check_lib_save_LIBS=$LIBS
22090 LIBS="-ltermcap  $LIBS"
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h.  */
22093
22094 /* Override any GCC internal prototype to avoid an error.
22095    Use char because int might match the return type of a GCC
22096    builtin and then its argument prototype would still apply.  */
22097 #ifdef __cplusplus
22098 extern "C"
22099 #endif
22100 char tgetent ();
22101 int
22102 main ()
22103 {
22104 return tgetent ();
22105   ;
22106   return 0;
22107 }
22108 _ACEOF
22109 if ac_fn_c_try_link "$LINENO"; then :
22110   ac_cv_lib_termcap_tgetent=yes
22111 else
22112   ac_cv_lib_termcap_tgetent=no
22113 fi
22114 rm -f core conftest.err conftest.$ac_objext \
22115     conftest$ac_exeext conftest.$ac_ext
22116 LIBS=$ac_check_lib_save_LIBS
22117 fi
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22119 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22120 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22121    TERM_LIB="-ltermcap"
22122 fi
22123
22124
22125 fi
22126
22127
22128 fi
22129
22130
22131 else
22132     for ac_header in curses.h
22133 do :
22134   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22135 if test "x$ac_cv_header_curses_h" = xyes; then :
22136   cat >>confdefs.h <<_ACEOF
22137 #define HAVE_CURSES_H 1
22138 _ACEOF
22139
22140 fi
22141
22142 done
22143
22144      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22145 if test "x$ac_cv_header_term_h" = xyes; then :
22146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22147 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22148 if ${ac_cv_lib_curses_tgetent+:} false; then :
22149   $as_echo_n "(cached) " >&6
22150 else
22151   ac_check_lib_save_LIBS=$LIBS
22152 LIBS="-lcurses  $LIBS"
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h.  */
22155
22156 /* Override any GCC internal prototype to avoid an error.
22157    Use char because int might match the return type of a GCC
22158    builtin and then its argument prototype would still apply.  */
22159 #ifdef __cplusplus
22160 extern "C"
22161 #endif
22162 char tgetent ();
22163 int
22164 main ()
22165 {
22166 return tgetent ();
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 if ac_fn_c_try_link "$LINENO"; then :
22172   ac_cv_lib_curses_tgetent=yes
22173 else
22174   ac_cv_lib_curses_tgetent=no
22175 fi
22176 rm -f core conftest.err conftest.$ac_objext \
22177     conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22179 fi
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22181 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22182 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22183    TERM_LIB="-lcurses"
22184 fi
22185
22186
22187 fi
22188
22189
22190
22191 fi
22192
22193
22194
22195
22196 got_conio="no"
22197 if test x$support_conio = xyes; then
22198    if test x$TERM_LIB != x; then
22199       CONS_LIBS=$TERM_LIB
22200       CONS_OBJ="conio.o"
22201       CONS_SRC="conio.c"
22202       got_conio="yes"
22203       support_readline=no
22204
22205 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22206
22207    else
22208       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22209    fi
22210 fi
22211
22212
22213 # Check whether --enable-readline was given.
22214 if test "${enable_readline+set}" = set; then :
22215   enableval=$enable_readline;
22216        if test x$enableval = xno; then
22217           support_readline=no
22218        fi
22219
22220
22221 fi
22222
22223
22224 got_readline="no"
22225 READLINE_SRC=
22226 if test x$support_readline = xyes; then
22227
22228 # Check whether --with-readline was given.
22229 if test "${with_readline+set}" = set; then :
22230   withval=$with_readline;
22231           case "$with_readline" in
22232           no)
22233              :
22234              ;;
22235           yes|*)
22236              if test -f ${with_readline}/readline.h; then
22237                 CONS_INC="-I${with_readline}"
22238                 CONS_LDFLAGS="-L$with_readline"
22239              elif test -f ${with_readline}/include/readline/readline.h; then
22240                 CONS_INC="-I${with_readline}/include/readline"
22241                 CONS_LDFLAGS="-L${with_readline}/lib"
22242                 with_readline="${with_readline}/include/readline"
22243              else
22244                 with_readline="/usr/include/readline"
22245              fi
22246
22247              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22248 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22249 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22250
22251
22252 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22253
22254                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22255                     got_readline="yes"
22256
22257 else
22258
22259                     echo " "
22260                     echo "readline.h not found. readline turned off ..."
22261                     echo " "
22262
22263
22264 fi
22265
22266
22267              ;;
22268           esac
22269
22270 else
22271
22272                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22273 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22274
22275
22276 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22277
22278                 got_readline="yes"
22279                 CONS_INC="-I/usr/include/readline"
22280                 CONS_LIBS="-lreadline ${TERM_LIB}"
22281
22282 else
22283
22284                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22285 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22286 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22287
22288
22289 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22290
22291                         got_readline="yes"
22292                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22293                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22294                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22295                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22296
22297 else
22298
22299                         echo " "
22300                         echo "readline.h not found. readline turned off ..."
22301                         echo " "
22302
22303
22304 fi
22305
22306
22307
22308
22309 fi
22310
22311
22312
22313
22314 fi
22315
22316 fi
22317
22318
22319
22320
22321
22322
22323
22324
22325 MAKE_SHELL=/bin/sh
22326
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22328 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22329 if ${ac_cv_header_stat_broken+:} false; then :
22330   $as_echo_n "(cached) " >&6
22331 else
22332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333 /* end confdefs.h.  */
22334 #include <sys/types.h>
22335 #include <sys/stat.h>
22336
22337 #if defined S_ISBLK && defined S_IFDIR
22338 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22339 #endif
22340
22341 #if defined S_ISBLK && defined S_IFCHR
22342 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22343 #endif
22344
22345 #if defined S_ISLNK && defined S_IFREG
22346 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22347 #endif
22348
22349 #if defined S_ISSOCK && defined S_IFREG
22350 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22351 #endif
22352
22353 _ACEOF
22354 if ac_fn_c_try_compile "$LINENO"; then :
22355   ac_cv_header_stat_broken=no
22356 else
22357   ac_cv_header_stat_broken=yes
22358 fi
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 fi
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22362 $as_echo "$ac_cv_header_stat_broken" >&6; }
22363 if test $ac_cv_header_stat_broken = yes; then
22364
22365 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22366
22367 fi
22368
22369 ac_header_dirent=no
22370 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22371   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22373 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22374 if eval \${$as_ac_Header+:} false; then :
22375   $as_echo_n "(cached) " >&6
22376 else
22377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22378 /* end confdefs.h.  */
22379 #include <sys/types.h>
22380 #include <$ac_hdr>
22381
22382 int
22383 main ()
22384 {
22385 if ((DIR *) 0)
22386 return 0;
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 if ac_fn_c_try_compile "$LINENO"; then :
22392   eval "$as_ac_Header=yes"
22393 else
22394   eval "$as_ac_Header=no"
22395 fi
22396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 fi
22398 eval ac_res=\$$as_ac_Header
22399                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22400 $as_echo "$ac_res" >&6; }
22401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22402   cat >>confdefs.h <<_ACEOF
22403 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22404 _ACEOF
22405
22406 ac_header_dirent=$ac_hdr; break
22407 fi
22408
22409 done
22410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22411 if test $ac_header_dirent = dirent.h; then
22412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22413 $as_echo_n "checking for library containing opendir... " >&6; }
22414 if ${ac_cv_search_opendir+:} false; then :
22415   $as_echo_n "(cached) " >&6
22416 else
22417   ac_func_search_save_LIBS=$LIBS
22418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419 /* end confdefs.h.  */
22420
22421 /* Override any GCC internal prototype to avoid an error.
22422    Use char because int might match the return type of a GCC
22423    builtin and then its argument prototype would still apply.  */
22424 #ifdef __cplusplus
22425 extern "C"
22426 #endif
22427 char opendir ();
22428 int
22429 main ()
22430 {
22431 return opendir ();
22432   ;
22433   return 0;
22434 }
22435 _ACEOF
22436 for ac_lib in '' dir; do
22437   if test -z "$ac_lib"; then
22438     ac_res="none required"
22439   else
22440     ac_res=-l$ac_lib
22441     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22442   fi
22443   if ac_fn_c_try_link "$LINENO"; then :
22444   ac_cv_search_opendir=$ac_res
22445 fi
22446 rm -f core conftest.err conftest.$ac_objext \
22447     conftest$ac_exeext
22448   if ${ac_cv_search_opendir+:} false; then :
22449   break
22450 fi
22451 done
22452 if ${ac_cv_search_opendir+:} false; then :
22453
22454 else
22455   ac_cv_search_opendir=no
22456 fi
22457 rm conftest.$ac_ext
22458 LIBS=$ac_func_search_save_LIBS
22459 fi
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22461 $as_echo "$ac_cv_search_opendir" >&6; }
22462 ac_res=$ac_cv_search_opendir
22463 if test "$ac_res" != no; then :
22464   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22465
22466 fi
22467
22468 else
22469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22470 $as_echo_n "checking for library containing opendir... " >&6; }
22471 if ${ac_cv_search_opendir+:} false; then :
22472   $as_echo_n "(cached) " >&6
22473 else
22474   ac_func_search_save_LIBS=$LIBS
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h.  */
22477
22478 /* Override any GCC internal prototype to avoid an error.
22479    Use char because int might match the return type of a GCC
22480    builtin and then its argument prototype would still apply.  */
22481 #ifdef __cplusplus
22482 extern "C"
22483 #endif
22484 char opendir ();
22485 int
22486 main ()
22487 {
22488 return opendir ();
22489   ;
22490   return 0;
22491 }
22492 _ACEOF
22493 for ac_lib in '' x; do
22494   if test -z "$ac_lib"; then
22495     ac_res="none required"
22496   else
22497     ac_res=-l$ac_lib
22498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22499   fi
22500   if ac_fn_c_try_link "$LINENO"; then :
22501   ac_cv_search_opendir=$ac_res
22502 fi
22503 rm -f core conftest.err conftest.$ac_objext \
22504     conftest$ac_exeext
22505   if ${ac_cv_search_opendir+:} false; then :
22506   break
22507 fi
22508 done
22509 if ${ac_cv_search_opendir+:} false; then :
22510
22511 else
22512   ac_cv_search_opendir=no
22513 fi
22514 rm conftest.$ac_ext
22515 LIBS=$ac_func_search_save_LIBS
22516 fi
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22518 $as_echo "$ac_cv_search_opendir" >&6; }
22519 ac_res=$ac_cv_search_opendir
22520 if test "$ac_res" != no; then :
22521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22522
22523 fi
22524
22525 fi
22526
22527 for ac_func in strcasecmp select setenv putenv tcgetattr
22528 do :
22529   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22530 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22531 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22532   cat >>confdefs.h <<_ACEOF
22533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22534 _ACEOF
22535
22536 fi
22537 done
22538
22539 for ac_func in lstat lchown lchmod futimes fchmod fchown
22540 do :
22541   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22544   cat >>confdefs.h <<_ACEOF
22545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22546 _ACEOF
22547
22548 fi
22549 done
22550
22551 for ac_func in nanosleep nl_langinfo
22552 do :
22553   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22555 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22556   cat >>confdefs.h <<_ACEOF
22557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22558 _ACEOF
22559
22560 fi
22561 done
22562
22563 for ac_header in varargs.h
22564 do :
22565   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22566 if test "x$ac_cv_header_varargs_h" = xyes; then :
22567   cat >>confdefs.h <<_ACEOF
22568 #define HAVE_VARARGS_H 1
22569 _ACEOF
22570
22571 fi
22572
22573 done
22574
22575
22576
22577 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22578 if test "x$ac_cv_func_socket" = xyes; then :
22579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22580 $as_echo "using libc's socket" >&6; }
22581 else
22582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22583 $as_echo_n "checking for socket in -lxnet... " >&6; }
22584 if ${ac_cv_lib_xnet_socket+:} false; then :
22585   $as_echo_n "(cached) " >&6
22586 else
22587   ac_check_lib_save_LIBS=$LIBS
22588 LIBS="-lxnet  $LIBS"
22589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h.  */
22591
22592 /* Override any GCC internal prototype to avoid an error.
22593    Use char because int might match the return type of a GCC
22594    builtin and then its argument prototype would still apply.  */
22595 #ifdef __cplusplus
22596 extern "C"
22597 #endif
22598 char socket ();
22599 int
22600 main ()
22601 {
22602 return socket ();
22603   ;
22604   return 0;
22605 }
22606 _ACEOF
22607 if ac_fn_c_try_link "$LINENO"; then :
22608   ac_cv_lib_xnet_socket=yes
22609 else
22610   ac_cv_lib_xnet_socket=no
22611 fi
22612 rm -f core conftest.err conftest.$ac_objext \
22613     conftest$ac_exeext conftest.$ac_ext
22614 LIBS=$ac_check_lib_save_LIBS
22615 fi
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22617 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22618 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22619   cat >>confdefs.h <<_ACEOF
22620 #define HAVE_LIBXNET 1
22621 _ACEOF
22622
22623   LIBS="-lxnet $LIBS"
22624
22625 fi
22626
22627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22628 $as_echo_n "checking for socket in -lsocket... " >&6; }
22629 if ${ac_cv_lib_socket_socket+:} false; then :
22630   $as_echo_n "(cached) " >&6
22631 else
22632   ac_check_lib_save_LIBS=$LIBS
22633 LIBS="-lsocket  $LIBS"
22634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22635 /* end confdefs.h.  */
22636
22637 /* Override any GCC internal prototype to avoid an error.
22638    Use char because int might match the return type of a GCC
22639    builtin and then its argument prototype would still apply.  */
22640 #ifdef __cplusplus
22641 extern "C"
22642 #endif
22643 char socket ();
22644 int
22645 main ()
22646 {
22647 return socket ();
22648   ;
22649   return 0;
22650 }
22651 _ACEOF
22652 if ac_fn_c_try_link "$LINENO"; then :
22653   ac_cv_lib_socket_socket=yes
22654 else
22655   ac_cv_lib_socket_socket=no
22656 fi
22657 rm -f core conftest.err conftest.$ac_objext \
22658     conftest$ac_exeext conftest.$ac_ext
22659 LIBS=$ac_check_lib_save_LIBS
22660 fi
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22662 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22663 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22664   cat >>confdefs.h <<_ACEOF
22665 #define HAVE_LIBSOCKET 1
22666 _ACEOF
22667
22668   LIBS="-lsocket $LIBS"
22669
22670 fi
22671
22672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22673 $as_echo_n "checking for socket in -linet... " >&6; }
22674 if ${ac_cv_lib_inet_socket+:} false; then :
22675   $as_echo_n "(cached) " >&6
22676 else
22677   ac_check_lib_save_LIBS=$LIBS
22678 LIBS="-linet  $LIBS"
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h.  */
22681
22682 /* Override any GCC internal prototype to avoid an error.
22683    Use char because int might match the return type of a GCC
22684    builtin and then its argument prototype would still apply.  */
22685 #ifdef __cplusplus
22686 extern "C"
22687 #endif
22688 char socket ();
22689 int
22690 main ()
22691 {
22692 return socket ();
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 if ac_fn_c_try_link "$LINENO"; then :
22698   ac_cv_lib_inet_socket=yes
22699 else
22700   ac_cv_lib_inet_socket=no
22701 fi
22702 rm -f core conftest.err conftest.$ac_objext \
22703     conftest$ac_exeext conftest.$ac_ext
22704 LIBS=$ac_check_lib_save_LIBS
22705 fi
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22707 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22708 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22709   cat >>confdefs.h <<_ACEOF
22710 #define HAVE_LIBINET 1
22711 _ACEOF
22712
22713   LIBS="-linet $LIBS"
22714
22715 fi
22716
22717 fi
22718
22719
22720 TCPW_MSG="no"
22721 WRAPLIBS=""
22722
22723 # Check whether --with-tcp-wrappers was given.
22724 if test "${with_tcp_wrappers+set}" = set; then :
22725   withval=$with_tcp_wrappers;
22726        if test "x$withval" != "xno" ; then
22727           saved_LIBS="$LIBS"
22728           LIBS="$saved_LIBS -lwrap"
22729           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22730 $as_echo_n "checking for library containing nanosleep... " >&6; }
22731 if ${ac_cv_search_nanosleep+:} false; then :
22732   $as_echo_n "(cached) " >&6
22733 else
22734   ac_func_search_save_LIBS=$LIBS
22735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22736 /* end confdefs.h.  */
22737
22738 /* Override any GCC internal prototype to avoid an error.
22739    Use char because int might match the return type of a GCC
22740    builtin and then its argument prototype would still apply.  */
22741 #ifdef __cplusplus
22742 extern "C"
22743 #endif
22744 char nanosleep ();
22745 int
22746 main ()
22747 {
22748 return nanosleep ();
22749   ;
22750   return 0;
22751 }
22752 _ACEOF
22753 for ac_lib in '' rt; do
22754   if test -z "$ac_lib"; then
22755     ac_res="none required"
22756   else
22757     ac_res=-l$ac_lib
22758     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22759   fi
22760   if ac_fn_c_try_link "$LINENO"; then :
22761   ac_cv_search_nanosleep=$ac_res
22762 fi
22763 rm -f core conftest.err conftest.$ac_objext \
22764     conftest$ac_exeext
22765   if ${ac_cv_search_nanosleep+:} false; then :
22766   break
22767 fi
22768 done
22769 if ${ac_cv_search_nanosleep+:} false; then :
22770
22771 else
22772   ac_cv_search_nanosleep=no
22773 fi
22774 rm conftest.$ac_ext
22775 LIBS=$ac_func_search_save_LIBS
22776 fi
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22778 $as_echo "$ac_cv_search_nanosleep" >&6; }
22779 ac_res=$ac_cv_search_nanosleep
22780 if test "$ac_res" != no; then :
22781   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22782
22783 fi
22784
22785           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22786 $as_echo_n "checking for libwrap... " >&6; }
22787           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788 /* end confdefs.h.  */
22789
22790                #include <sys/types.h>
22791                #include <tcpd.h>
22792                int deny_severity = 0;
22793                int allow_severity = 0;
22794                struct request_info *req;
22795
22796 int
22797 main ()
22798 {
22799
22800                 hosts_access(req);
22801
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 if ac_fn_c_try_link "$LINENO"; then :
22807
22808                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22809 $as_echo "yes" >&6; }
22810
22811 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22812
22813                  TCPW_MSG="yes"
22814                  LIBS="$saved_LIBS"
22815                  WRAPLIBS="-lwrap"
22816
22817 else
22818
22819                  LIBS="$saved_LIBS -lwrap -lnsl"
22820                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22821                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22822 /* end confdefs.h.  */
22823
22824                        #include <sys/types.h>
22825                        #include <tcpd.h>
22826                        int deny_severity = 0;
22827                        int allow_severity = 0;
22828                        struct request_info *req;
22829
22830 int
22831 main ()
22832 {
22833
22834                        hosts_access(req);
22835
22836   ;
22837   return 0;
22838 }
22839 _ACEOF
22840 if ac_fn_c_try_link "$LINENO"; then :
22841
22842                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22843 $as_echo "yes" >&6; }
22844
22845 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22846
22847                       TCPW_MSG="yes"
22848                       LIBS="$saved_LIBS"
22849                       WRAPLIBS="-lwrap"
22850
22851 else
22852
22853                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22854
22855
22856 fi
22857 rm -f core conftest.err conftest.$ac_objext \
22858     conftest$ac_exeext conftest.$ac_ext
22859
22860
22861 fi
22862 rm -f core conftest.err conftest.$ac_objext \
22863     conftest$ac_exeext conftest.$ac_ext
22864        fi
22865
22866
22867 fi
22868
22869
22870
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22872 $as_echo_n "checking for OpenSSL... " >&6; }
22873
22874 # Check whether --with-openssl was given.
22875 if test "${with_openssl+set}" = set; then :
22876   withval=$with_openssl;
22877         with_openssl_directory=${withval}
22878
22879
22880 fi
22881
22882
22883 if test "x$with_openssl_directory" != "xno"; then
22884    OPENSSL_LIBS="-lssl -lcrypto"
22885    OPENSSL_INC=""
22886
22887    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22888       #
22889       # Make sure the $with_openssl_directory also makes sense
22890       #
22891       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22892          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22893          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22894       fi
22895    fi
22896
22897    saved_LIBS="${LIBS}"
22898    saved_CFLAGS="${CFLAGS}"
22899    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22900    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22901
22902    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903 /* end confdefs.h.  */
22904
22905           #include <openssl/ssl.h>
22906
22907 int
22908 main ()
22909 {
22910
22911            CRYPTO_set_id_callback(NULL);
22912
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 if ac_fn_c_try_link "$LINENO"; then :
22918
22919           support_tls="yes"
22920           support_crypto="yes"
22921
22922 else
22923
22924           support_tls="no"
22925           support_crypto="no"
22926
22927
22928 fi
22929 rm -f core conftest.err conftest.$ac_objext \
22930     conftest$ac_exeext conftest.$ac_ext
22931
22932    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22933 /* end confdefs.h.  */
22934
22935           #include <openssl/evp.h>
22936
22937 int
22938 main ()
22939 {
22940
22941           EVP_sha512();
22942
22943   ;
22944   return 0;
22945 }
22946 _ACEOF
22947 if ac_fn_c_try_link "$LINENO"; then :
22948
22949           ac_cv_openssl_sha2="yes"
22950
22951 else
22952
22953           ac_cv_openssl_sha2="no"
22954
22955
22956 fi
22957 rm -f core conftest.err conftest.$ac_objext \
22958     conftest$ac_exeext conftest.$ac_ext
22959
22960                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h.  */
22962
22963           #include <openssl/evp.h>
22964
22965 int
22966 main ()
22967 {
22968
22969           EVP_aes_192_cbc();
22970
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 if ac_fn_c_try_link "$LINENO"; then :
22976
22977           ac_cv_openssl_export="no"
22978
22979 else
22980
22981           ac_cv_openssl_export="yes"
22982
22983
22984 fi
22985 rm -f core conftest.err conftest.$ac_objext \
22986     conftest$ac_exeext conftest.$ac_ext
22987
22988    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22989 $as_echo "$support_tls" >&6; }
22990    if test "$support_tls" = "yes"; then
22991
22992 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22993
22994
22995 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22996
22997
22998 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22999
23000    fi
23001
23002    if test "$ac_cv_openssl_sha2" = "yes"; then
23003
23004 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23005
23006    fi
23007
23008    if test "$ac_cv_openssl_export" = "yes"; then
23009
23010 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23011
23012    fi
23013
23014    if test "$support_crypto" = "yes"; then
23015       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23016 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23017 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23018   $as_echo_n "(cached) " >&6
23019 else
23020   ac_check_lib_save_LIBS=$LIBS
23021 LIBS="-lcrypto  $LIBS"
23022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23023 /* end confdefs.h.  */
23024
23025 /* Override any GCC internal prototype to avoid an error.
23026    Use char because int might match the return type of a GCC
23027    builtin and then its argument prototype would still apply.  */
23028 #ifdef __cplusplus
23029 extern "C"
23030 #endif
23031 char EVP_PKEY_encrypt_old ();
23032 int
23033 main ()
23034 {
23035 return EVP_PKEY_encrypt_old ();
23036   ;
23037   return 0;
23038 }
23039 _ACEOF
23040 if ac_fn_c_try_link "$LINENO"; then :
23041   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23042 else
23043   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23044 fi
23045 rm -f core conftest.err conftest.$ac_objext \
23046     conftest$ac_exeext conftest.$ac_ext
23047 LIBS=$ac_check_lib_save_LIBS
23048 fi
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23050 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23051 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23052
23053 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23054
23055 fi
23056
23057    fi
23058
23059    LIBS="${saved_LIBS}"
23060    CFLAGS="${saved_CFLAGS}"
23061 else
23062    support_tls="no"
23063    support_crypto="no"
23064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23065 $as_echo "$support_tls" >&6; }
23066 fi
23067
23068 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23069    OPENSSL_LIBS=""
23070    OPENSSL_INC=""
23071 fi
23072
23073
23074
23075
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23077 $as_echo_n "checking for library containing dlopen... " >&6; }
23078 if ${ac_cv_search_dlopen+:} false; then :
23079   $as_echo_n "(cached) " >&6
23080 else
23081   ac_func_search_save_LIBS=$LIBS
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h.  */
23084
23085 /* Override any GCC internal prototype to avoid an error.
23086    Use char because int might match the return type of a GCC
23087    builtin and then its argument prototype would still apply.  */
23088 #ifdef __cplusplus
23089 extern "C"
23090 #endif
23091 char dlopen ();
23092 int
23093 main ()
23094 {
23095 return dlopen ();
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 for ac_lib in '' dl; do
23101   if test -z "$ac_lib"; then
23102     ac_res="none required"
23103   else
23104     ac_res=-l$ac_lib
23105     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23106   fi
23107   if ac_fn_c_try_link "$LINENO"; then :
23108   ac_cv_search_dlopen=$ac_res
23109 fi
23110 rm -f core conftest.err conftest.$ac_objext \
23111     conftest$ac_exeext
23112   if ${ac_cv_search_dlopen+:} false; then :
23113   break
23114 fi
23115 done
23116 if ${ac_cv_search_dlopen+:} false; then :
23117
23118 else
23119   ac_cv_search_dlopen=no
23120 fi
23121 rm conftest.$ac_ext
23122 LIBS=$ac_func_search_save_LIBS
23123 fi
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23125 $as_echo "$ac_cv_search_dlopen" >&6; }
23126 ac_res=$ac_cv_search_dlopen
23127 if test "$ac_res" != no; then :
23128   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23129
23130 fi
23131
23132
23133 working_dir=`eval echo /opt/bacula/working`
23134
23135 # Check whether --with-working-dir was given.
23136 if test "${with_working_dir+set}" = set; then :
23137   withval=$with_working_dir;
23138        if test "x$withval" != "xno" ; then
23139          working_dir=$withval
23140        fi
23141
23142
23143 fi
23144
23145
23146
23147
23148 archivedir=/tmp
23149
23150 # Check whether --with-archivedir was given.
23151 if test "${with_archivedir+set}" = set; then :
23152   withval=$with_archivedir;
23153        if test "x$withval" != "xno" ; then
23154           archivedir=$withval
23155        fi
23156
23157
23158 fi
23159
23160
23161
23162
23163 basename=`hostname`
23164
23165 # Check whether --with-basename was given.
23166 if test "${with_basename+set}" = set; then :
23167   withval=$with_basename;
23168        if test "x$withval" != "xno" ; then
23169           basename=$withval
23170        fi
23171
23172
23173 fi
23174
23175
23176
23177
23178 hostname=`uname -n | cut -d '.' -f 1`
23179 if test x${hostname} = x ; then
23180   hostname="localhost"
23181 fi
23182 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23183 if test ! $? = 0; then
23184   hostname="localhost"
23185 fi
23186
23187 # Check whether --with-hostname was given.
23188 if test "${with_hostname+set}" = set; then :
23189   withval=$with_hostname;
23190        if test "x$withval" != "xno" ; then
23191          hostname=$withval
23192        fi
23193
23194
23195 fi
23196
23197
23198
23199
23200
23201 scriptdir=`eval echo ${sysconfdir}`
23202
23203 # Check whether --with-scriptdir was given.
23204 if test "${with_scriptdir+set}" = set; then :
23205   withval=$with_scriptdir;
23206        if test "x$withval" != "xno" ; then
23207           scriptdir=$withval
23208        fi
23209
23210
23211 fi
23212
23213
23214
23215
23216
23217 bsrdir=`eval echo /opt/bacula/bsr`
23218
23219 # Check whether --with-bsrdir was given.
23220 if test "${with_bsrdir+set}" = set; then :
23221   withval=$with_bsrdir;
23222        if test "x$withval" != "xno" ; then
23223           bsrdir=$withval
23224        fi
23225
23226
23227 fi
23228
23229
23230
23231
23232 logdir=`eval echo /opt/bacula/log`
23233
23234 # Check whether --with-logdir was given.
23235 if test "${with_logdir+set}" = set; then :
23236   withval=$with_logdir;
23237        if test "x$withval" != "xno" ; then
23238           logdir=$withval
23239        fi
23240
23241
23242 fi
23243
23244
23245
23246
23247
23248 # ------------------------------------------
23249 # Where to place plugindir (plugin files)
23250 # ------------------------------------------
23251 plugindir=`eval echo ${libdir}`
23252
23253 # Check whether --with-plugindir was given.
23254 if test "${with_plugindir+set}" = set; then :
23255   withval=$with_plugindir;
23256        if test "x$withval" != "xno" ; then
23257           plugindir=$withval
23258        fi
23259
23260
23261 fi
23262
23263
23264
23265
23266 dump_email=root@localhost
23267
23268 # Check whether --with-dump-email was given.
23269 if test "${with_dump_email+set}" = set; then :
23270   withval=$with_dump_email;
23271        if test "x$withval" != "xno" ; then
23272           dump_email=$withval
23273        fi
23274
23275
23276 fi
23277
23278
23279
23280
23281 job_email=root@localhost
23282
23283 # Check whether --with-job-email was given.
23284 if test "${with_job_email+set}" = set; then :
23285   withval=$with_job_email;
23286        if test "x$withval" != "xno" ; then
23287           job_email=$withval
23288        fi
23289
23290
23291 fi
23292
23293
23294
23295
23296 smtp_host=localhost
23297
23298 # Check whether --with-smtp_host was given.
23299 if test "${with_smtp_host+set}" = set; then :
23300   withval=$with_smtp_host;
23301        if test "x$withval" != "xno" ; then
23302           smtp_host=$withval
23303        fi
23304
23305
23306 fi
23307
23308
23309
23310
23311 piddir=/var/run
23312
23313 # Check whether --with-pid-dir was given.
23314 if test "${with_pid_dir+set}" = set; then :
23315   withval=$with_pid_dir;
23316        if test "x$withval" != "xno" ; then
23317           piddir=$withval
23318        fi
23319
23320
23321 fi
23322
23323
23324 cat >>confdefs.h <<_ACEOF
23325 #define _PATH_BACULA_PIDDIR "$piddir"
23326 _ACEOF
23327
23328
23329
23330 subsysdir=/var/run/subsys
23331 if test -d /var/run/subsys; then
23332    subsysdir=/var/run/subsys
23333 elif test -d /var/lock/subsys; then
23334    subsysdir=/var/lock/subsys
23335 else
23336    subsysdir=/var/run/subsys
23337 fi
23338
23339 # Check whether --with-subsys-dir was given.
23340 if test "${with_subsys_dir+set}" = set; then :
23341   withval=$with_subsys_dir;
23342        if test "x$withval" != "xno" ; then
23343           subsysdir=$withval
23344        fi
23345
23346
23347 fi
23348
23349
23350
23351
23352 baseport=9101
23353
23354 # Check whether --with-baseport was given.
23355 if test "${with_baseport+set}" = set; then :
23356   withval=$with_baseport;
23357        if test "x$withval" != "xno" ; then
23358           baseport=$withval
23359        fi
23360
23361
23362 fi
23363
23364
23365
23366 dir_port=`expr $baseport`
23367 fd_port=`expr $baseport + 1`
23368 sd_port=`expr $fd_port + 1`
23369
23370
23371
23372
23373
23374 dir_password=
23375
23376 # Check whether --with-dir-password was given.
23377 if test "${with_dir_password+set}" = set; then :
23378   withval=$with_dir_password;
23379        if test "x$withval" != "xno" ; then
23380           dir_password=$withval
23381        fi
23382
23383
23384 fi
23385
23386
23387 if test "x$dir_password" = "x" ; then
23388    if test "x$OPENSSL" = "xnone" ; then
23389       key=`autoconf/randpass 33`
23390    else
23391       key=`openssl rand -base64 33`
23392    fi
23393    dir_password=$key
23394 fi
23395
23396 fd_password=
23397
23398 # Check whether --with-fd-password was given.
23399 if test "${with_fd_password+set}" = set; then :
23400   withval=$with_fd_password;
23401        if test "x$withval" != "xno" ; then
23402           fd_password=$withval
23403        fi
23404
23405
23406 fi
23407
23408
23409 if test "x$fd_password" = "x" ; then
23410    if test "x$OPENSSL" = "xnone" ; then
23411       key=`autoconf/randpass 37`
23412    else
23413       key=`openssl rand -base64 33`
23414    fi
23415    fd_password=$key
23416 fi
23417
23418 sd_password=
23419
23420 # Check whether --with-sd-password was given.
23421 if test "${with_sd_password+set}" = set; then :
23422   withval=$with_sd_password;
23423        if test "x$withval" != "xno" ; then
23424           sd_password=$withval
23425        fi
23426
23427
23428 fi
23429
23430
23431 if test "x$sd_password" = "x" ; then
23432    if test "x$OPENSSL" = "xnone" ; then
23433       key=`autoconf/randpass 41`
23434    else
23435       key=`openssl rand -base64 33`
23436    fi
23437    sd_password=$key
23438 fi
23439
23440 mon_dir_password=
23441
23442 # Check whether --with-mon-dir-password was given.
23443 if test "${with_mon_dir_password+set}" = set; then :
23444   withval=$with_mon_dir_password;
23445        if test "x$withval" != "xno" ; then
23446           mon_dir_password=$withval
23447        fi
23448
23449
23450 fi
23451
23452
23453 if test "x$mon_dir_password" = "x" ; then
23454    if test "x$OPENSSL" = "xnone" ; then
23455       key=`autoconf/randpass 33`
23456    else
23457       key=`openssl rand -base64 33`
23458    fi
23459    mon_dir_password=$key
23460 fi
23461
23462 mon_fd_password=
23463
23464 # Check whether --with-mon-fd-password was given.
23465 if test "${with_mon_fd_password+set}" = set; then :
23466   withval=$with_mon_fd_password;
23467        if test "x$withval" != "xno" ; then
23468           mon_fd_password=$withval
23469        fi
23470
23471
23472 fi
23473
23474
23475 if test "x$mon_fd_password" = "x" ; then
23476    if test "x$OPENSSL" = "xnone" ; then
23477       key=`autoconf/randpass 37`
23478    else
23479       key=`openssl rand -base64 33`
23480    fi
23481    mon_fd_password=$key
23482 fi
23483
23484 mon_sd_password=
23485
23486 # Check whether --with-mon-sd-password was given.
23487 if test "${with_mon_sd_password+set}" = set; then :
23488   withval=$with_mon_sd_password;
23489        if test "x$withval" != "xno" ; then
23490           mon_sd_password=$withval
23491        fi
23492
23493
23494 fi
23495
23496
23497 if test "x$mon_sd_password" = "x" ; then
23498    if test "x$OPENSSL" = "xnone" ; then
23499       key=`autoconf/randpass 41`
23500    else
23501       key=`openssl rand -base64 33`
23502    fi
23503    mon_sd_password=$key
23504 fi
23505
23506
23507
23508
23509
23510
23511
23512
23513 db_name=bacula
23514
23515 # Check whether --with-db_name was given.
23516 if test "${with_db_name+set}" = set; then :
23517   withval=$with_db_name;
23518        if test "x$withval" != "x" ; then
23519           db_name=$withval
23520        fi
23521
23522
23523 fi
23524
23525
23526
23527 db_user=bacula
23528
23529 # Check whether --with-db_user was given.
23530 if test "${with_db_user+set}" = set; then :
23531   withval=$with_db_user;
23532        if test "x$withval" != "x" ; then
23533           db_user=$withval
23534        fi
23535
23536
23537 fi
23538
23539
23540
23541 db_password=
23542
23543 # Check whether --with-db_password was given.
23544 if test "${with_db_password+set}" = set; then :
23545   withval=$with_db_password;
23546        if test "x$withval" != "x" ; then
23547           db_password=$withval
23548        fi
23549
23550
23551 fi
23552
23553
23554
23555 db_port=" "
23556
23557 # Check whether --with-db_port was given.
23558 if test "${with_db_port+set}" = set; then :
23559   withval=$with_db_port;
23560        if test "x$withval" != "x" ; then
23561           db_port=$withval
23562        fi
23563
23564
23565 fi
23566
23567
23568
23569 #
23570 # Handle users and groups for each daemon
23571 #
23572 dir_user=
23573
23574 # Check whether --with-dir_user was given.
23575 if test "${with_dir_user+set}" = set; then :
23576   withval=$with_dir_user;
23577        if test "x$withval" != "x" ; then
23578            dir_user=$withval
23579        fi
23580
23581
23582 fi
23583
23584
23585 dir_group=
23586
23587 # Check whether --with-dir_group was given.
23588 if test "${with_dir_group+set}" = set; then :
23589   withval=$with_dir_group;
23590        if test "x$withval" != "x" ; then
23591           dir_group=$withval
23592        fi
23593
23594
23595 fi
23596
23597
23598 sd_user=
23599
23600 # Check whether --with-sd_user was given.
23601 if test "${with_sd_user+set}" = set; then :
23602   withval=$with_sd_user;
23603        if test "x$withval" != "x" ; then
23604           sd_user=$withval
23605        fi
23606
23607
23608 fi
23609
23610
23611 sd_group=
23612
23613 # Check whether --with-sd_group was given.
23614 if test "${with_sd_group+set}" = set; then :
23615   withval=$with_sd_group;
23616        if test "x$withval" != "x" ; then
23617           sd_group=$withval
23618        fi
23619
23620
23621 fi
23622
23623
23624 fd_user=
23625
23626 # Check whether --with-fd_user was given.
23627 if test "${with_fd_user+set}" = set; then :
23628   withval=$with_fd_user;
23629        if test "x$withval" != "x" ; then
23630           fd_user=$withval
23631        fi
23632
23633
23634 fi
23635
23636
23637 fd_group=
23638
23639 # Check whether --with-fd_group was given.
23640 if test "${with_fd_group+set}" = set; then :
23641   withval=$with_fd_group;
23642        if test "x$withval" != "x" ; then
23643           fd_group=$withval
23644        fi
23645
23646
23647 fi
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657 SBINPERM=0750
23658
23659 # Check whether --with-sbin-perm was given.
23660 if test "${with_sbin_perm+set}" = set; then :
23661   withval=$with_sbin_perm;
23662        if test "x$withval" != "x" ; then
23663           SBINPERM=$withval
23664        fi
23665
23666
23667 fi
23668
23669
23670
23671
23672 support_batch_insert=yes
23673 # Check whether --enable-batch-insert was given.
23674 if test "${enable_batch_insert+set}" = set; then :
23675   enableval=$enable_batch_insert;
23676        if test x$enableval = xno; then
23677           support_batch_insert=no
23678        fi
23679
23680
23681 fi
23682
23683
23684 if test x$support_batch_insert = xyes; then
23685
23686 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23687
23688 fi
23689
23690
23691 uncomment_dbi="#"
23692
23693
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23695 $as_echo_n "checking for PostgreSQL support... " >&6; }
23696
23697 # Check whether --with-postgresql was given.
23698 if test "${with_postgresql+set}" = set; then :
23699   withval=$with_postgresql;
23700   if test "$withval" != "no"; then
23701       if test "$withval" = "yes"; then
23702           PG_CONFIG=`which pg_config 2>/dev/null`
23703           if test -n "$PG_CONFIG"; then
23704               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23705               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23706               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23707           elif test -f /usr/local/include/libpq-fe.h; then
23708               POSTGRESQL_INCDIR=/usr/local/include
23709               if test -d /usr/local/lib64; then
23710                  POSTGRESQL_LIBDIR=/usr/local/lib64
23711               else
23712                  POSTGRESQL_LIBDIR=/usr/local/lib
23713               fi
23714               POSTGRESQL_BINDIR=/usr/local/bin
23715           elif test -f /usr/include/libpq-fe.h; then
23716               POSTGRESQL_INCDIR=/usr/include
23717               if test -d /usr/lib64; then
23718                  POSTGRESQL_LIBDIR=/usr/lib64
23719               else
23720                  POSTGRESQL_LIBDIR=/usr/lib
23721               fi
23722               POSTGRESQL_BINDIR=/usr/bin
23723           elif test -f /usr/include/pgsql/libpq-fe.h; then
23724               POSTGRESQL_INCDIR=/usr/include/pgsql
23725               if test -d /usr/lib64/pgsql; then
23726                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23727               else
23728                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23729               fi
23730               POSTGRESQL_BINDIR=/usr/bin
23731           elif test -f /usr/include/postgresql/libpq-fe.h; then
23732               POSTGRESQL_INCDIR=/usr/include/postgresql
23733               if test -d /usr/lib64/postgresql; then
23734                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23735               else
23736                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23737               fi
23738               POSTGRESQL_BINDIR=/usr/bin
23739           else
23740               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23741 $as_echo "no" >&6; }
23742               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23743           fi
23744       elif test -f $withval/include/libpq-fe.h; then
23745           POSTGRESQL_INCDIR=$withval/include
23746           POSTGRESQL_LIBDIR=$withval/lib
23747           POSTGRESQL_BINDIR=$withval/bin
23748       elif test -f $withval/include/postgresql/libpq-fe.h; then
23749           POSTGRESQL_INCDIR=$withval/include/postgresql
23750           if test -d $withval/lib64; then
23751               POSTGRESQL_LIBDIR=$withval/lib64
23752           else
23753               POSTGRESQL_LIBDIR=$withval/lib
23754           fi
23755           POSTGRESQL_BINDIR=$withval/bin
23756       else
23757           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23758 $as_echo "no" >&6; }
23759           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23760       fi
23761
23762 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23763
23764      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23765 $as_echo "yes" >&6; }
23766
23767      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23768      if test x$use_libtool != xno; then
23769         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23770      else
23771         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23772      fi
23773      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23774 if test "x$ac_cv_func_crypt" = xyes; then :
23775
23776 else
23777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23778 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23779 if ${ac_cv_lib_crypt_crypt+:} false; then :
23780   $as_echo_n "(cached) " >&6
23781 else
23782   ac_check_lib_save_LIBS=$LIBS
23783 LIBS="-lcrypt  $LIBS"
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h.  */
23786
23787 /* Override any GCC internal prototype to avoid an error.
23788    Use char because int might match the return type of a GCC
23789    builtin and then its argument prototype would still apply.  */
23790 #ifdef __cplusplus
23791 extern "C"
23792 #endif
23793 char crypt ();
23794 int
23795 main ()
23796 {
23797 return crypt ();
23798   ;
23799   return 0;
23800 }
23801 _ACEOF
23802 if ac_fn_c_try_link "$LINENO"; then :
23803   ac_cv_lib_crypt_crypt=yes
23804 else
23805   ac_cv_lib_crypt_crypt=no
23806 fi
23807 rm -f core conftest.err conftest.$ac_objext \
23808     conftest$ac_exeext conftest.$ac_ext
23809 LIBS=$ac_check_lib_save_LIBS
23810 fi
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23812 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23813 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23814   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23815 fi
23816
23817 fi
23818
23819      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23820      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23821
23822      if test -z "${db_backends}"; then
23823          db_backends="PostgreSQL"
23824      else
23825          db_backends="${db_backends} PostgreSQL"
23826      fi
23827      if test -z "${DB_BACKENDS}"; then
23828          DB_BACKENDS="postgresql"
23829      else
23830          DB_BACKENDS="${DB_BACKENDS} postgresql"
23831      fi
23832
23833                     if test "x$support_batch_insert" = "xyes"; then
23834                   saved_LDFLAGS="${LDFLAGS}"
23835          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23836          saved_LIBS="${LIBS}"
23837          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23838             LIBS="${saved_LIBS} -lcrypt"
23839          fi
23840
23841          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23842 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23843 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23844   $as_echo_n "(cached) " >&6
23845 else
23846   ac_check_lib_save_LIBS=$LIBS
23847 LIBS="-lpq  $LIBS"
23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h.  */
23850
23851 /* Override any GCC internal prototype to avoid an error.
23852    Use char because int might match the return type of a GCC
23853    builtin and then its argument prototype would still apply.  */
23854 #ifdef __cplusplus
23855 extern "C"
23856 #endif
23857 char PQisthreadsafe ();
23858 int
23859 main ()
23860 {
23861 return PQisthreadsafe ();
23862   ;
23863   return 0;
23864 }
23865 _ACEOF
23866 if ac_fn_c_try_link "$LINENO"; then :
23867   ac_cv_lib_pq_PQisthreadsafe=yes
23868 else
23869   ac_cv_lib_pq_PQisthreadsafe=no
23870 fi
23871 rm -f core conftest.err conftest.$ac_objext \
23872     conftest$ac_exeext conftest.$ac_ext
23873 LIBS=$ac_check_lib_save_LIBS
23874 fi
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23876 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23877 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23878
23879 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23880
23881 fi
23882
23883          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23884 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23885 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23886   $as_echo_n "(cached) " >&6
23887 else
23888   ac_check_lib_save_LIBS=$LIBS
23889 LIBS="-lpq  $LIBS"
23890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h.  */
23892
23893 /* Override any GCC internal prototype to avoid an error.
23894    Use char because int might match the return type of a GCC
23895    builtin and then its argument prototype would still apply.  */
23896 #ifdef __cplusplus
23897 extern "C"
23898 #endif
23899 char PQputCopyData ();
23900 int
23901 main ()
23902 {
23903 return PQputCopyData ();
23904   ;
23905   return 0;
23906 }
23907 _ACEOF
23908 if ac_fn_c_try_link "$LINENO"; then :
23909   ac_cv_lib_pq_PQputCopyData=yes
23910 else
23911   ac_cv_lib_pq_PQputCopyData=no
23912 fi
23913 rm -f core conftest.err conftest.$ac_objext \
23914     conftest$ac_exeext conftest.$ac_ext
23915 LIBS=$ac_check_lib_save_LIBS
23916 fi
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23918 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23919 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23920
23921 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23922
23923 fi
23924
23925          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23926              if test $support_batch_insert = yes ; then
23927
23928 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23929
23930                  if test -z "${batch_insert_db_backends}"; then
23931                      batch_insert_db_backends="PostgreSQL"
23932                  else
23933                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
23934                  fi
23935              fi
23936          fi
23937
23938          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23939          then
23940              echo "WARNING: Your PostgreSQL client library is too old to detect "
23941              echo "if it was compiled with --enable-thread-safety, consider to "
23942              echo "upgrade it in order to avoid problems with Batch insert mode"
23943          fi
23944
23945                   LDFLAGS="${saved_LDFLAGS}"
23946          LIBS="${saved_LIBS}"
23947      fi
23948   else
23949      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23950 $as_echo "no" >&6; }
23951   fi
23952
23953 else
23954
23955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23957
23958 fi
23959
23960
23961
23962
23963
23964
23965
23966
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23968 $as_echo_n "checking for MySQL support... " >&6; }
23969
23970 # Check whether --with-mysql was given.
23971 if test "${with_mysql+set}" = set; then :
23972   withval=$with_mysql;
23973   if test "$withval" != "no"; then
23974         if test "$withval" = "yes"; then
23975 #
23976 # This code is very broken on older systems
23977 #
23978 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
23979 #           if test "x${MYSQL_CONFIG}" != x; then
23980 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
23981 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
23982 #              if test $? = 0 ; then
23983 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
23984 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
23985 #              else
23986 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
23987 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
23988 #              fi
23989 #           elif test -f /usr/local/mysql/include/mysql/mysql.h; then
23990            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23991               MYSQL_INCDIR=/usr/local/mysql/include/mysql
23992               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23993                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23994                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23995               else
23996                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23997               fi
23998               MYSQL_BINDIR=/usr/local/mysql/bin
23999            elif test -f /usr/include/mysql/mysql.h; then
24000               MYSQL_INCDIR=/usr/include/mysql
24001               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24002                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24003                  MYSQL_LIBDIR=/usr/lib64/mysql
24004               elif test -f /usr/lib64/libmysqlclient_r.a \
24005                         -o -f /usr/lib64/libmysqlclient_r.so; then
24006                  MYSQL_LIBDIR=/usr/lib64
24007               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24008                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24009                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24010               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24011                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24012                  MYSQL_LIBDIR=/usr/lib/mysql
24013               else
24014                  MYSQL_LIBDIR=/usr/lib
24015               fi
24016               MYSQL_BINDIR=/usr/bin
24017            elif test -f /usr/include/mysql.h; then
24018               MYSQL_INCDIR=/usr/include
24019               if test -f /usr/lib64/libmysqlclient_r.a \
24020                       -o -f /usr/lib64/libmysqlclient_r.so; then
24021                  MYSQL_LIBDIR=/usr/lib64
24022               else
24023                  MYSQL_LIBDIR=/usr/lib
24024               fi
24025               MYSQL_BINDIR=/usr/bin
24026            elif test -f /usr/local/include/mysql/mysql.h; then
24027               MYSQL_INCDIR=/usr/local/include/mysql
24028               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24029                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24030                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24031               else
24032                  MYSQL_LIBDIR=/usr/local/lib/mysql
24033               fi
24034               MYSQL_BINDIR=/usr/local/bin
24035            elif test -f /usr/local/include/mysql.h; then
24036               MYSQL_INCDIR=/usr/local/include
24037               if test -f /usr/local/lib64/libmysqlclient_r.a \
24038                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24039                  MYSQL_LIBDIR=/usr/local/lib64
24040               else
24041                  MYSQL_LIBDIR=/usr/local/lib
24042               fi
24043               MYSQL_BINDIR=/usr/local/bin
24044            else
24045               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24046 $as_echo "no" >&6; }
24047               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24048            fi
24049         else
24050            if test -f $withval/include/mysql/mysql.h; then
24051               MYSQL_INCDIR=$withval/include/mysql
24052               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24053                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24054                  MYSQL_LIBDIR=$withval/lib64/mysql
24055               elif test -f $withval/lib64/libmysqlclient_r.a \
24056                    -o -f $withval/lib64/libmysqlclient_r.so; then
24057                  MYSQL_LIBDIR=$withval/lib64
24058               elif test -f $withval/lib/libmysqlclient_r.a \
24059                    -o -f $withval/lib/libmysqlclient_r.so; then
24060                  MYSQL_LIBDIR=$withval/lib
24061               else
24062                  MYSQL_LIBDIR=$withval/lib/mysql
24063               fi
24064               MYSQL_BINDIR=$withval/bin
24065            elif test -f $withval/include/mysql.h; then
24066               MYSQL_INCDIR=$withval/include
24067               if test -f $withval/lib64/libmysqlclient_r.a \
24068                    -o -f $withval/lib64/libmysqlclient_r.so; then
24069                  MYSQL_LIBDIR=$withval/lib64
24070               else
24071                  MYSQL_LIBDIR=$withval/lib
24072               fi
24073               MYSQL_BINDIR=$withval/bin
24074            else
24075               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24076 $as_echo "no" >&6; }
24077               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24078            fi
24079         fi
24080      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24081      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24082           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24083         if test x$use_libtool != xno; then
24084            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24085         else
24086            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24087         fi
24088         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24089      fi
24090      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24091
24092
24093 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24094
24095      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24096 $as_echo "yes" >&6; }
24097
24098      if test -z "${db_backends}" ; then
24099          db_backends="MySQL"
24100      else
24101          db_backends="${db_backends} MySQL"
24102      fi
24103      if test -z "${DB_BACKENDS}" ; then
24104          DB_BACKENDS="mysql"
24105      else
24106          DB_BACKENDS="${DB_BACKENDS} mysql"
24107      fi
24108
24109                     if test "x$support_batch_insert" = "xyes"; then
24110                   saved_LDFLAGS="${LDFLAGS}"
24111          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24112          saved_LIBS="${LIBS}"
24113          LIBS="${saved_LIBS} -lz"
24114
24115          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24116 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24117 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24118   $as_echo_n "(cached) " >&6
24119 else
24120   ac_check_lib_save_LIBS=$LIBS
24121 LIBS="-lmysqlclient_r  $LIBS"
24122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24123 /* end confdefs.h.  */
24124
24125 /* Override any GCC internal prototype to avoid an error.
24126    Use char because int might match the return type of a GCC
24127    builtin and then its argument prototype would still apply.  */
24128 #ifdef __cplusplus
24129 extern "C"
24130 #endif
24131 char mysql_thread_safe ();
24132 int
24133 main ()
24134 {
24135 return mysql_thread_safe ();
24136   ;
24137   return 0;
24138 }
24139 _ACEOF
24140 if ac_fn_c_try_link "$LINENO"; then :
24141   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24142 else
24143   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24144 fi
24145 rm -f core conftest.err conftest.$ac_objext \
24146     conftest$ac_exeext conftest.$ac_ext
24147 LIBS=$ac_check_lib_save_LIBS
24148 fi
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24150 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24151 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24152
24153 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24154
24155 fi
24156
24157          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24158              if test -z "${batch_insert_db_backends}"; then
24159                  batch_insert_db_backends="MySQL"
24160              else
24161                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24162              fi
24163          fi
24164
24165                   LDFLAGS="${saved_LDFLAGS}"
24166          LIBS="${saved_LIBS}"
24167      fi
24168   else
24169      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24170 $as_echo "no" >&6; }
24171   fi
24172
24173 else
24174
24175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24176 $as_echo "no" >&6; }
24177
24178 fi
24179
24180
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24182 $as_echo_n "checking for MySQL embedded support... " >&6; }
24183
24184 # Check whether --with-embedded-mysql was given.
24185 if test "${with_embedded_mysql+set}" = set; then :
24186   withval=$with_embedded_mysql;
24187   if test "$withval" != "no"; then
24188         if test "$withval" = "yes"; then
24189                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24190                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24191                         if test -d /usr/local/mysql/lib64/mysql; then
24192                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24193                         else
24194                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24195                         fi
24196                         MYSQL_BINDIR=/usr/local/mysql/bin
24197                 elif test -f /usr/include/mysql/mysql.h; then
24198                         MYSQL_INCDIR=/usr/include/mysql
24199                         if test -d /usr/lib64/mysql; then
24200                                 MYSQL_LIBDIR=/usr/lib64/mysql
24201                         else
24202                                 MYSQL_LIBDIR=/usr/lib/mysql
24203                         fi
24204                         MYSQL_BINDIR=/usr/bin
24205                 elif test -f /usr/include/mysql.h; then
24206                         MYSQL_INCDIR=/usr/include
24207                         if test -d /usr/lib64; then
24208                                 MYSQL_LIBDIR=/usr/lib64
24209                         else
24210                                 MYSQL_LIBDIR=/usr/lib
24211                         fi
24212                         MYSQL_BINDIR=/usr/bin
24213                 elif test -f /usr/local/include/mysql/mysql.h; then
24214                         MYSQL_INCDIR=/usr/local/include/mysql
24215                         if test -d /usr/local/lib64/mysql; then
24216                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24217                         else
24218                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24219                         fi
24220                         MYSQL_BINDIR=/usr/local/bin
24221                 elif test -f /usr/local/include/mysql.h; then
24222                         MYSQL_INCDIR=/usr/local/include
24223                         if test -d /usr/local/lib64; then
24224                                 MYSQL_LIBDIR=/usr/local/lib64
24225                         else
24226                                 MYSQL_LIBDIR=/usr/local/lib
24227                         fi
24228                         MYSQL_BINDIR=/usr/local/bin
24229                 else
24230                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231 $as_echo "no" >&6; }
24232                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24233                 fi
24234         else
24235                 if test -f $withval/include/mysql/mysql.h; then
24236                         MYSQL_INCDIR=$withval/include/mysql
24237                         if test -d $withval/lib64/mysql; then
24238                                 MYSQL_LIBDIR=$withval/lib64/mysql
24239                         else
24240                                 MYSQL_LIBDIR=$withval/lib/mysql
24241                         fi
24242                         MYSQL_BINDIR=$withval/bin
24243                 elif test -f $withval/include/mysql.h; then
24244                         MYSQL_INCDIR=$withval/include
24245                         if test -d $withval/lib64; then
24246                                 MYSQL_LIBDIR=$withval/lib64
24247                         else
24248                                 MYSQL_LIBDIR=$withval/lib
24249                         fi
24250                         MYSQL_BINDIR=$withval/bin
24251                 else
24252                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24253 $as_echo "no" >&6; }
24254                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24255                 fi
24256         fi
24257      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24258      if test x$use_libtool != xno; then
24259         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24260      else
24261         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24262      fi
24263      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24264      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24265
24266
24267 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24268
24269
24270 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24271
24272      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24273 $as_echo "yes" >&6; }
24274
24275      if test -z "${db_backends}"; then
24276          db_backends="MySQL"
24277      else
24278          db_backends="${db_backends} MySQL"
24279      fi
24280      if test -z "${DB_BACKENDS}"; then
24281          DB_BACKENDS="mysql"
24282      else
24283          DB_BACKENDS="${DB_BACKENDS} mysql"
24284      fi
24285
24286                     if test "x$support_batch_insert" = "xyes"; then
24287                   saved_LDFLAGS="${LDFLAGS}"
24288          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24289          saved_LIBS="${LIBS}"
24290          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24291
24292          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24293 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24294 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24295   $as_echo_n "(cached) " >&6
24296 else
24297   ac_check_lib_save_LIBS=$LIBS
24298 LIBS="-lmysqlclient_r  $LIBS"
24299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24300 /* end confdefs.h.  */
24301
24302 /* Override any GCC internal prototype to avoid an error.
24303    Use char because int might match the return type of a GCC
24304    builtin and then its argument prototype would still apply.  */
24305 #ifdef __cplusplus
24306 extern "C"
24307 #endif
24308 char mysql_thread_safe ();
24309 int
24310 main ()
24311 {
24312 return mysql_thread_safe ();
24313   ;
24314   return 0;
24315 }
24316 _ACEOF
24317 if ac_fn_c_try_link "$LINENO"; then :
24318   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24319 else
24320   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24321 fi
24322 rm -f core conftest.err conftest.$ac_objext \
24323     conftest$ac_exeext conftest.$ac_ext
24324 LIBS=$ac_check_lib_save_LIBS
24325 fi
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24327 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24328 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24329
24330 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24331
24332 fi
24333
24334          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24335              if test -z "${batch_insert_db_backends}"; then
24336                  batch_insert_db_backends="MySQL"
24337              else
24338                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24339              fi
24340          fi
24341
24342                   LDFLAGS="${saved_LDFLAGS}"
24343          LIBS="${saved_LIBS}"
24344      fi
24345   else
24346      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24347 $as_echo "no" >&6; }
24348   fi
24349
24350 else
24351
24352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24353 $as_echo "no" >&6; }
24354
24355 fi
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24366 $as_echo_n "checking for SQLite3 support... " >&6; }
24367
24368 # Check whether --with-sqlite3 was given.
24369 if test "${with_sqlite3+set}" = set; then :
24370   withval=$with_sqlite3;
24371   if test "$withval" != "no"; then
24372      if test "$withval" = "yes"; then
24373         if test -f /usr/local/include/sqlite3.h; then
24374            SQLITE_INCDIR=/usr/local/include
24375            if test -d /usr/local/lib64; then
24376               SQLITE_LIBDIR=/usr/local/lib64
24377            else
24378               SQLITE_LIBDIR=/usr/local/lib
24379            fi
24380            SQLITE_BINDIR=/usr/local/bin
24381         elif test -f /usr/include/sqlite3.h; then
24382            SQLITE_INCDIR=/usr/include
24383            if test -d /usr/lib64; then
24384               SQLITE_LIBDIR=/usr/lib64
24385            else
24386               SQLITE_LIBDIR=/usr/lib
24387            fi
24388            SQLITE_BINDIR=/usr/bin
24389         elif test -f $prefix/include/sqlite3.h; then
24390            SQLITE_INCDIR=$prefix/include
24391            if test -d $prefix/lib64; then
24392               SQLITE_LIBDIR=$prefix/lib64
24393            else
24394               SQLITE_LIBDIR=$prefix/lib
24395            fi
24396            SQLITE_BINDIR=$prefix/bin
24397         else
24398            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24399 $as_echo "no" >&6; }
24400            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24401         fi
24402      else
24403         if test -f $withval/sqlite3.h; then
24404            SQLITE_INCDIR=$withval
24405            SQLITE_LIBDIR=$withval
24406            SQLITE_BINDIR=$withval
24407         elif test -f $withval/include/sqlite3.h; then
24408            SQLITE_INCDIR=$withval/include
24409            if test -d $withval/lib64; then
24410               SQLITE_LIBDIR=$withval/lib64
24411            else
24412               SQLITE_LIBDIR=$withval/lib
24413            fi
24414            SQLITE_BINDIR=$withval/bin
24415         else
24416            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24417 $as_echo "no" >&6; }
24418            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24419         fi
24420      fi
24421      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24422      if test x$use_libtool != xno; then
24423         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24424      else
24425         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24426      fi
24427      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24428      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24429
24430
24431 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24432
24433      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24434 $as_echo "yes" >&6; }
24435
24436      if test -z "${db_backends}"; then
24437          db_backends="SQLite3"
24438      else
24439          db_backends="${db_backends} SQLite3"
24440      fi
24441      if test -z "${DB_BACKENDS}"; then
24442          DB_BACKENDS="sqlite3"
24443      else
24444          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24445      fi
24446
24447                     if test "x$support_batch_insert" = "xyes"; then
24448                   saved_LDFLAGS="${LDFLAGS}"
24449          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24450
24451          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24452 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24453 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24454   $as_echo_n "(cached) " >&6
24455 else
24456   ac_check_lib_save_LIBS=$LIBS
24457 LIBS="-lsqlite3  $LIBS"
24458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459 /* end confdefs.h.  */
24460
24461 /* Override any GCC internal prototype to avoid an error.
24462    Use char because int might match the return type of a GCC
24463    builtin and then its argument prototype would still apply.  */
24464 #ifdef __cplusplus
24465 extern "C"
24466 #endif
24467 char sqlite3_threadsafe ();
24468 int
24469 main ()
24470 {
24471 return sqlite3_threadsafe ();
24472   ;
24473   return 0;
24474 }
24475 _ACEOF
24476 if ac_fn_c_try_link "$LINENO"; then :
24477   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24478 else
24479   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24480 fi
24481 rm -f core conftest.err conftest.$ac_objext \
24482     conftest$ac_exeext conftest.$ac_ext
24483 LIBS=$ac_check_lib_save_LIBS
24484 fi
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24486 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24487 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24488
24489 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24490
24491 fi
24492
24493          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24494              if test -z "${batch_insert_db_backends}"; then
24495                  batch_insert_db_backends="SQLite3"
24496              else
24497                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24498              fi
24499          fi
24500
24501                   LDFLAGS="${saved_LDFLAGS}"
24502      fi
24503   else
24504      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24505 $as_echo "no" >&6; }
24506   fi
24507
24508 else
24509
24510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24511 $as_echo "no" >&6; }
24512
24513 fi
24514
24515
24516
24517
24518
24519
24520
24521 if test -z "${batch_insert_db_backends}"; then
24522    batch_insert_db_backends="None"
24523 fi
24524
24525 if test "x${db_backends}" = "x" ; then
24526    echo " "
24527    echo " "
24528    echo "You have not specified either --enable-client-only or one of the"
24529    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24530    echo "This is not permitted. Please reconfigure."
24531    echo " "
24532    echo "Aborting the configuration ..."
24533    echo " "
24534    echo " "
24535    exit 1
24536 fi
24537
24538 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24539    1)
24540       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24541       if test x$use_libtool = xno; then
24542          SHARED_CATALOG_TARGETS=""
24543       else
24544          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24545       fi
24546       ;;
24547    *)
24548                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24549
24550                         if test x$use_libtool = xno; then
24551          echo " "
24552          echo " "
24553          echo "You have specified two or more of the"
24554          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24555          echo "This is not permitted when not using libtool Please reconfigure."
24556          echo " "
24557          echo "Aborting the configuration ..."
24558          echo " "
24559          echo " "
24560          exit 1
24561       fi
24562
24563       SHARED_CATALOG_TARGETS=""
24564       for db_type in ${DB_BACKENDS}
24565       do
24566          if test -z "${SHARED_CATALOG_TARGETS}"; then
24567             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24568          else
24569             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24570          fi
24571       done
24572       ;;
24573 esac
24574
24575 if test x$use_libtool = xyes; then
24576    DB_LIBS=""
24577 fi
24578
24579
24580
24581
24582
24583
24584
24585 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24586
24587
24588 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24589    if test -z "$CCOPTS"; then
24590       CCOPTS='-g -O2 -Wall'
24591    fi
24592    CFLAGS="$CCOPTS"
24593 fi
24594
24595
24596
24597 largefile_support="no"
24598
24599    # Check whether --enable-largefile was given.
24600 if test "${enable_largefile+set}" = set; then :
24601   enableval=$enable_largefile;
24602 fi
24603
24604    if test "$enable_largefile" != no; then
24605      if test -n "$ac_tool_prefix"; then
24606   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24607 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24609 $as_echo_n "checking for $ac_word... " >&6; }
24610 if ${ac_cv_prog_GETCONF+:} false; then :
24611   $as_echo_n "(cached) " >&6
24612 else
24613   if test -n "$GETCONF"; then
24614   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24615 else
24616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24617 for as_dir in $PATH
24618 do
24619   IFS=$as_save_IFS
24620   test -z "$as_dir" && as_dir=.
24621     for ac_exec_ext in '' $ac_executable_extensions; do
24622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24623     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24625     break 2
24626   fi
24627 done
24628   done
24629 IFS=$as_save_IFS
24630
24631 fi
24632 fi
24633 GETCONF=$ac_cv_prog_GETCONF
24634 if test -n "$GETCONF"; then
24635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24636 $as_echo "$GETCONF" >&6; }
24637 else
24638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24639 $as_echo "no" >&6; }
24640 fi
24641
24642
24643 fi
24644 if test -z "$ac_cv_prog_GETCONF"; then
24645   ac_ct_GETCONF=$GETCONF
24646   # Extract the first word of "getconf", so it can be a program name with args.
24647 set dummy getconf; ac_word=$2
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24649 $as_echo_n "checking for $ac_word... " >&6; }
24650 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24651   $as_echo_n "(cached) " >&6
24652 else
24653   if test -n "$ac_ct_GETCONF"; then
24654   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24655 else
24656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24657 for as_dir in $PATH
24658 do
24659   IFS=$as_save_IFS
24660   test -z "$as_dir" && as_dir=.
24661     for ac_exec_ext in '' $ac_executable_extensions; do
24662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24663     ac_cv_prog_ac_ct_GETCONF="getconf"
24664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24665     break 2
24666   fi
24667 done
24668   done
24669 IFS=$as_save_IFS
24670
24671 fi
24672 fi
24673 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24674 if test -n "$ac_ct_GETCONF"; then
24675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24676 $as_echo "$ac_ct_GETCONF" >&6; }
24677 else
24678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24679 $as_echo "no" >&6; }
24680 fi
24681
24682   if test "x$ac_ct_GETCONF" = x; then
24683     GETCONF=""
24684   else
24685     case $cross_compiling:$ac_tool_warned in
24686 yes:)
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24689 ac_tool_warned=yes ;;
24690 esac
24691     GETCONF=$ac_ct_GETCONF
24692   fi
24693 else
24694   GETCONF="$ac_cv_prog_GETCONF"
24695 fi
24696
24697      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24698 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24699 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24700   $as_echo_n "(cached) " >&6
24701 else
24702   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24703         ac_cv_sys_largefile_CFLAGS=no
24704         case "$host_os" in
24705            # IRIX 6.2 and later require cc -n32.
24706            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24707              if test "$GCC" != yes; then
24708                ac_cv_sys_largefile_CFLAGS=-n32
24709              fi
24710              ac_save_CC="$CC"
24711              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24712              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24713 /* end confdefs.h.  */
24714
24715 int
24716 main ()
24717 {
24718
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 if ac_fn_c_try_link "$LINENO"; then :
24724
24725 else
24726   ac_cv_sys_largefile_CFLAGS=no
24727 fi
24728 rm -f core conftest.err conftest.$ac_objext \
24729     conftest$ac_exeext conftest.$ac_ext
24730              CC="$ac_save_CC"
24731            esac
24732       }
24733 fi
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24735 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24736      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24737 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24738 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24739   $as_echo_n "(cached) " >&6
24740 else
24741   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24742         ac_cv_sys_largefile_LDFLAGS=no
24743
24744       }
24745 fi
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24747 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24748      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24749 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24750 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24751   $as_echo_n "(cached) " >&6
24752 else
24753   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24754         ac_cv_sys_largefile_LIBS=no
24755
24756       }
24757 fi
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24759 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24760
24761      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24762        case "$ac_flag" in
24763        no) ;;
24764        -D_FILE_OFFSET_BITS=*) ;;
24765        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24766        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24767        -D?* | -I?*)
24768          case "$ac_flag" in
24769    no) ;;
24770    ?*)
24771      case "$CPPFLAGS" in
24772      '') CPPFLAGS="$ac_flag" ;;
24773      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24774      esac ;;
24775    esac ;;
24776        *)
24777          case "$ac_flag" in
24778    no) ;;
24779    ?*)
24780      case "$CFLAGS" in
24781      '') CFLAGS="$ac_flag" ;;
24782      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24783      esac ;;
24784    esac ;;
24785        esac
24786      done
24787      case "$ac_cv_sys_largefile_LDFLAGS" in
24788    no) ;;
24789    ?*)
24790      case "$LDFLAGS" in
24791      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24792      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24793      esac ;;
24794    esac
24795      case "$ac_cv_sys_largefile_LIBS" in
24796    no) ;;
24797    ?*)
24798      case "$LIBS" in
24799      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24800      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24801      esac ;;
24802    esac
24803      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24804 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24805 if ${ac_cv_sys_file_offset_bits+:} false; then :
24806   $as_echo_n "(cached) " >&6
24807 else
24808   ac_cv_sys_file_offset_bits=no
24809       ac_cv_sys_file_offset_bits=64
24810       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24811         case "$ac_flag" in
24812         -D_FILE_OFFSET_BITS)
24813           ac_cv_sys_file_offset_bits=1 ;;
24814         -D_FILE_OFFSET_BITS=*)
24815           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24816         esac
24817       done
24818
24819 fi
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24821 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24822    if test "$ac_cv_sys_file_offset_bits" != no; then
24823
24824 cat >>confdefs.h <<_ACEOF
24825 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24826 _ACEOF
24827
24828    fi
24829      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24830 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24831 if ${ac_cv_sys_largefile_source+:} false; then :
24832   $as_echo_n "(cached) " >&6
24833 else
24834   ac_cv_sys_largefile_source=no
24835       ac_cv_sys_largefile_source=1
24836       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24837         case "$ac_flag" in
24838         -D_LARGEFILE_SOURCE)
24839           ac_cv_sys_largefile_source=1 ;;
24840         -D_LARGEFILE_SOURCE=*)
24841           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24842         esac
24843       done
24844
24845 fi
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24847 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24848    if test "$ac_cv_sys_largefile_source" != no; then
24849
24850 cat >>confdefs.h <<_ACEOF
24851 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24852 _ACEOF
24853
24854    fi
24855      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24856 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24857 if ${ac_cv_sys_large_files+:} false; then :
24858   $as_echo_n "(cached) " >&6
24859 else
24860   ac_cv_sys_large_files=no
24861       ac_cv_sys_large_files=1
24862       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24863         case "$ac_flag" in
24864         -D_LARGE_FILES)
24865           ac_cv_sys_large_files=1 ;;
24866         -D_LARGE_FILES=*)
24867           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24868         esac
24869       done
24870
24871 fi
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24873 $as_echo "$ac_cv_sys_large_files" >&6; }
24874    if test "$ac_cv_sys_large_files" != no; then
24875
24876 cat >>confdefs.h <<_ACEOF
24877 #define _LARGE_FILES $ac_cv_sys_large_files
24878 _ACEOF
24879
24880    fi
24881    fi
24882
24883
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24885 $as_echo_n "checking for X... " >&6; }
24886
24887
24888 # Check whether --with-x was given.
24889 if test "${with_x+set}" = set; then :
24890   withval=$with_x;
24891 fi
24892
24893 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24894 if test "x$with_x" = xno; then
24895   # The user explicitly disabled X.
24896   have_x=disabled
24897 else
24898   case $x_includes,$x_libraries in #(
24899     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24900     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24901   $as_echo_n "(cached) " >&6
24902 else
24903   # One or both of the vars are not set, and there is no cached value.
24904 ac_x_includes=no ac_x_libraries=no
24905 rm -f -r conftest.dir
24906 if mkdir conftest.dir; then
24907   cd conftest.dir
24908   cat >Imakefile <<'_ACEOF'
24909 incroot:
24910         @echo incroot='${INCROOT}'
24911 usrlibdir:
24912         @echo usrlibdir='${USRLIBDIR}'
24913 libdir:
24914         @echo libdir='${LIBDIR}'
24915 _ACEOF
24916   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24917     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24918     for ac_var in incroot usrlibdir libdir; do
24919       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24920     done
24921     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24922     for ac_extension in a so sl dylib la dll; do
24923       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24924          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24925         ac_im_usrlibdir=$ac_im_libdir; break
24926       fi
24927     done
24928     # Screen out bogus values from the imake configuration.  They are
24929     # bogus both because they are the default anyway, and because
24930     # using them would break gcc on systems where it needs fixed includes.
24931     case $ac_im_incroot in
24932         /usr/include) ac_x_includes= ;;
24933         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24934     esac
24935     case $ac_im_usrlibdir in
24936         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24937         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24938     esac
24939   fi
24940   cd ..
24941   rm -f -r conftest.dir
24942 fi
24943
24944 # Standard set of common directories for X headers.
24945 # Check X11 before X11Rn because it is often a symlink to the current release.
24946 ac_x_header_dirs='
24947 /usr/X11/include
24948 /usr/X11R7/include
24949 /usr/X11R6/include
24950 /usr/X11R5/include
24951 /usr/X11R4/include
24952
24953 /usr/include/X11
24954 /usr/include/X11R7
24955 /usr/include/X11R6
24956 /usr/include/X11R5
24957 /usr/include/X11R4
24958
24959 /usr/local/X11/include
24960 /usr/local/X11R7/include
24961 /usr/local/X11R6/include
24962 /usr/local/X11R5/include
24963 /usr/local/X11R4/include
24964
24965 /usr/local/include/X11
24966 /usr/local/include/X11R7
24967 /usr/local/include/X11R6
24968 /usr/local/include/X11R5
24969 /usr/local/include/X11R4
24970
24971 /usr/X386/include
24972 /usr/x386/include
24973 /usr/XFree86/include/X11
24974
24975 /usr/include
24976 /usr/local/include
24977 /usr/unsupported/include
24978 /usr/athena/include
24979 /usr/local/x11r5/include
24980 /usr/lpp/Xamples/include
24981
24982 /usr/openwin/include
24983 /usr/openwin/share/include'
24984
24985 if test "$ac_x_includes" = no; then
24986   # Guess where to find include files, by looking for Xlib.h.
24987   # First, try using that file with no special directory specified.
24988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24989 /* end confdefs.h.  */
24990 #include <X11/Xlib.h>
24991 _ACEOF
24992 if ac_fn_c_try_cpp "$LINENO"; then :
24993   # We can compile using X headers with no special include directory.
24994 ac_x_includes=
24995 else
24996   for ac_dir in $ac_x_header_dirs; do
24997   if test -r "$ac_dir/X11/Xlib.h"; then
24998     ac_x_includes=$ac_dir
24999     break
25000   fi
25001 done
25002 fi
25003 rm -f conftest.err conftest.i conftest.$ac_ext
25004 fi # $ac_x_includes = no
25005
25006 if test "$ac_x_libraries" = no; then
25007   # Check for the libraries.
25008   # See if we find them without any special options.
25009   # Don't add to $LIBS permanently.
25010   ac_save_LIBS=$LIBS
25011   LIBS="-lX11 $LIBS"
25012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h.  */
25014 #include <X11/Xlib.h>
25015 int
25016 main ()
25017 {
25018 XrmInitialize ()
25019   ;
25020   return 0;
25021 }
25022 _ACEOF
25023 if ac_fn_c_try_link "$LINENO"; then :
25024   LIBS=$ac_save_LIBS
25025 # We can link X programs with no special library path.
25026 ac_x_libraries=
25027 else
25028   LIBS=$ac_save_LIBS
25029 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25030 do
25031   # Don't even attempt the hair of trying to link an X program!
25032   for ac_extension in a so sl dylib la dll; do
25033     if test -r "$ac_dir/libX11.$ac_extension"; then
25034       ac_x_libraries=$ac_dir
25035       break 2
25036     fi
25037   done
25038 done
25039 fi
25040 rm -f core conftest.err conftest.$ac_objext \
25041     conftest$ac_exeext conftest.$ac_ext
25042 fi # $ac_x_libraries = no
25043
25044 case $ac_x_includes,$ac_x_libraries in #(
25045   no,* | *,no | *\'*)
25046     # Didn't find X, or a directory has "'" in its name.
25047     ac_cv_have_x="have_x=no";; #(
25048   *)
25049     # Record where we found X for the cache.
25050     ac_cv_have_x="have_x=yes\
25051         ac_x_includes='$ac_x_includes'\
25052         ac_x_libraries='$ac_x_libraries'"
25053 esac
25054 fi
25055 ;; #(
25056     *) have_x=yes;;
25057   esac
25058   eval "$ac_cv_have_x"
25059 fi # $with_x != no
25060
25061 if test "$have_x" != yes; then
25062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25063 $as_echo "$have_x" >&6; }
25064   no_x=yes
25065 else
25066   # If each of the values was on the command line, it overrides each guess.
25067   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25068   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25069   # Update the cache value to reflect the command line values.
25070   ac_cv_have_x="have_x=yes\
25071         ac_x_includes='$x_includes'\
25072         ac_x_libraries='$x_libraries'"
25073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25074 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25075 fi
25076
25077 if test "$no_x" = yes; then
25078   # Not all programs may use this symbol, but it does not hurt to define it.
25079
25080 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25081
25082   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25083 else
25084   if test -n "$x_includes"; then
25085     X_CFLAGS="$X_CFLAGS -I$x_includes"
25086   fi
25087
25088   # It would also be nice to do this for all -L options, not just this one.
25089   if test -n "$x_libraries"; then
25090     X_LIBS="$X_LIBS -L$x_libraries"
25091     # For Solaris; some versions of Sun CC require a space after -R and
25092     # others require no space.  Words are not sufficient . . . .
25093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25094 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25095     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25096     ac_xsave_c_werror_flag=$ac_c_werror_flag
25097     ac_c_werror_flag=yes
25098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25099 /* end confdefs.h.  */
25100
25101 int
25102 main ()
25103 {
25104
25105   ;
25106   return 0;
25107 }
25108 _ACEOF
25109 if ac_fn_c_try_link "$LINENO"; then :
25110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25111 $as_echo "no" >&6; }
25112        X_LIBS="$X_LIBS -R$x_libraries"
25113 else
25114   LIBS="$ac_xsave_LIBS -R $x_libraries"
25115        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25116 /* end confdefs.h.  */
25117
25118 int
25119 main ()
25120 {
25121
25122   ;
25123   return 0;
25124 }
25125 _ACEOF
25126 if ac_fn_c_try_link "$LINENO"; then :
25127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25128 $as_echo "yes" >&6; }
25129           X_LIBS="$X_LIBS -R $x_libraries"
25130 else
25131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25132 $as_echo "neither works" >&6; }
25133 fi
25134 rm -f core conftest.err conftest.$ac_objext \
25135     conftest$ac_exeext conftest.$ac_ext
25136 fi
25137 rm -f core conftest.err conftest.$ac_objext \
25138     conftest$ac_exeext conftest.$ac_ext
25139     ac_c_werror_flag=$ac_xsave_c_werror_flag
25140     LIBS=$ac_xsave_LIBS
25141   fi
25142
25143   # Check for system-dependent libraries X programs must link with.
25144   # Do this before checking for the system-independent R6 libraries
25145   # (-lICE), since we may need -lsocket or whatever for X linking.
25146
25147   if test "$ISC" = yes; then
25148     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25149   else
25150     # Martyn Johnson says this is needed for Ultrix, if the X
25151     # libraries were built with DECnet support.  And Karl Berry says
25152     # the Alpha needs dnet_stub (dnet does not exist).
25153     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155 /* end confdefs.h.  */
25156
25157 /* Override any GCC internal prototype to avoid an error.
25158    Use char because int might match the return type of a GCC
25159    builtin and then its argument prototype would still apply.  */
25160 #ifdef __cplusplus
25161 extern "C"
25162 #endif
25163 char XOpenDisplay ();
25164 int
25165 main ()
25166 {
25167 return XOpenDisplay ();
25168   ;
25169   return 0;
25170 }
25171 _ACEOF
25172 if ac_fn_c_try_link "$LINENO"; then :
25173
25174 else
25175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25176 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25177 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25178   $as_echo_n "(cached) " >&6
25179 else
25180   ac_check_lib_save_LIBS=$LIBS
25181 LIBS="-ldnet  $LIBS"
25182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25183 /* end confdefs.h.  */
25184
25185 /* Override any GCC internal prototype to avoid an error.
25186    Use char because int might match the return type of a GCC
25187    builtin and then its argument prototype would still apply.  */
25188 #ifdef __cplusplus
25189 extern "C"
25190 #endif
25191 char dnet_ntoa ();
25192 int
25193 main ()
25194 {
25195 return dnet_ntoa ();
25196   ;
25197   return 0;
25198 }
25199 _ACEOF
25200 if ac_fn_c_try_link "$LINENO"; then :
25201   ac_cv_lib_dnet_dnet_ntoa=yes
25202 else
25203   ac_cv_lib_dnet_dnet_ntoa=no
25204 fi
25205 rm -f core conftest.err conftest.$ac_objext \
25206     conftest$ac_exeext conftest.$ac_ext
25207 LIBS=$ac_check_lib_save_LIBS
25208 fi
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25210 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25211 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25212   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25213 fi
25214
25215     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25216       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25217 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25218 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25219   $as_echo_n "(cached) " >&6
25220 else
25221   ac_check_lib_save_LIBS=$LIBS
25222 LIBS="-ldnet_stub  $LIBS"
25223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h.  */
25225
25226 /* Override any GCC internal prototype to avoid an error.
25227    Use char because int might match the return type of a GCC
25228    builtin and then its argument prototype would still apply.  */
25229 #ifdef __cplusplus
25230 extern "C"
25231 #endif
25232 char dnet_ntoa ();
25233 int
25234 main ()
25235 {
25236 return dnet_ntoa ();
25237   ;
25238   return 0;
25239 }
25240 _ACEOF
25241 if ac_fn_c_try_link "$LINENO"; then :
25242   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25243 else
25244   ac_cv_lib_dnet_stub_dnet_ntoa=no
25245 fi
25246 rm -f core conftest.err conftest.$ac_objext \
25247     conftest$ac_exeext conftest.$ac_ext
25248 LIBS=$ac_check_lib_save_LIBS
25249 fi
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25251 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25252 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25253   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25254 fi
25255
25256     fi
25257 fi
25258 rm -f core conftest.err conftest.$ac_objext \
25259     conftest$ac_exeext conftest.$ac_ext
25260     LIBS="$ac_xsave_LIBS"
25261
25262     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25263     # to get the SysV transport functions.
25264     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25265     # needs -lnsl.
25266     # The nsl library prevents programs from opening the X display
25267     # on Irix 5.2, according to T.E. Dickey.
25268     # The functions gethostbyname, getservbyname, and inet_addr are
25269     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25270     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25271 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25272
25273 fi
25274
25275     if test $ac_cv_func_gethostbyname = no; then
25276       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25277 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25278 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25279   $as_echo_n "(cached) " >&6
25280 else
25281   ac_check_lib_save_LIBS=$LIBS
25282 LIBS="-lnsl  $LIBS"
25283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25284 /* end confdefs.h.  */
25285
25286 /* Override any GCC internal prototype to avoid an error.
25287    Use char because int might match the return type of a GCC
25288    builtin and then its argument prototype would still apply.  */
25289 #ifdef __cplusplus
25290 extern "C"
25291 #endif
25292 char gethostbyname ();
25293 int
25294 main ()
25295 {
25296 return gethostbyname ();
25297   ;
25298   return 0;
25299 }
25300 _ACEOF
25301 if ac_fn_c_try_link "$LINENO"; then :
25302   ac_cv_lib_nsl_gethostbyname=yes
25303 else
25304   ac_cv_lib_nsl_gethostbyname=no
25305 fi
25306 rm -f core conftest.err conftest.$ac_objext \
25307     conftest$ac_exeext conftest.$ac_ext
25308 LIBS=$ac_check_lib_save_LIBS
25309 fi
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25311 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25312 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25313   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25314 fi
25315
25316       if test $ac_cv_lib_nsl_gethostbyname = no; then
25317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25318 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25319 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25320   $as_echo_n "(cached) " >&6
25321 else
25322   ac_check_lib_save_LIBS=$LIBS
25323 LIBS="-lbsd  $LIBS"
25324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25325 /* end confdefs.h.  */
25326
25327 /* Override any GCC internal prototype to avoid an error.
25328    Use char because int might match the return type of a GCC
25329    builtin and then its argument prototype would still apply.  */
25330 #ifdef __cplusplus
25331 extern "C"
25332 #endif
25333 char gethostbyname ();
25334 int
25335 main ()
25336 {
25337 return gethostbyname ();
25338   ;
25339   return 0;
25340 }
25341 _ACEOF
25342 if ac_fn_c_try_link "$LINENO"; then :
25343   ac_cv_lib_bsd_gethostbyname=yes
25344 else
25345   ac_cv_lib_bsd_gethostbyname=no
25346 fi
25347 rm -f core conftest.err conftest.$ac_objext \
25348     conftest$ac_exeext conftest.$ac_ext
25349 LIBS=$ac_check_lib_save_LIBS
25350 fi
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25352 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25353 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25354   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25355 fi
25356
25357       fi
25358     fi
25359
25360     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25361     # socket/setsockopt and other routines are undefined under SCO ODT
25362     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25363     # on later versions), says Simon Leinen: it contains gethostby*
25364     # variants that don't use the name server (or something).  -lsocket
25365     # must be given before -lnsl if both are needed.  We assume that
25366     # if connect needs -lnsl, so does gethostbyname.
25367     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25368 if test "x$ac_cv_func_connect" = xyes; then :
25369
25370 fi
25371
25372     if test $ac_cv_func_connect = no; then
25373       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25374 $as_echo_n "checking for connect in -lsocket... " >&6; }
25375 if ${ac_cv_lib_socket_connect+:} false; then :
25376   $as_echo_n "(cached) " >&6
25377 else
25378   ac_check_lib_save_LIBS=$LIBS
25379 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25381 /* end confdefs.h.  */
25382
25383 /* Override any GCC internal prototype to avoid an error.
25384    Use char because int might match the return type of a GCC
25385    builtin and then its argument prototype would still apply.  */
25386 #ifdef __cplusplus
25387 extern "C"
25388 #endif
25389 char connect ();
25390 int
25391 main ()
25392 {
25393 return connect ();
25394   ;
25395   return 0;
25396 }
25397 _ACEOF
25398 if ac_fn_c_try_link "$LINENO"; then :
25399   ac_cv_lib_socket_connect=yes
25400 else
25401   ac_cv_lib_socket_connect=no
25402 fi
25403 rm -f core conftest.err conftest.$ac_objext \
25404     conftest$ac_exeext conftest.$ac_ext
25405 LIBS=$ac_check_lib_save_LIBS
25406 fi
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25408 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25409 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25410   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25411 fi
25412
25413     fi
25414
25415     # Guillermo Gomez says -lposix is necessary on A/UX.
25416     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25417 if test "x$ac_cv_func_remove" = xyes; then :
25418
25419 fi
25420
25421     if test $ac_cv_func_remove = no; then
25422       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25423 $as_echo_n "checking for remove in -lposix... " >&6; }
25424 if ${ac_cv_lib_posix_remove+:} false; then :
25425   $as_echo_n "(cached) " >&6
25426 else
25427   ac_check_lib_save_LIBS=$LIBS
25428 LIBS="-lposix  $LIBS"
25429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25430 /* end confdefs.h.  */
25431
25432 /* Override any GCC internal prototype to avoid an error.
25433    Use char because int might match the return type of a GCC
25434    builtin and then its argument prototype would still apply.  */
25435 #ifdef __cplusplus
25436 extern "C"
25437 #endif
25438 char remove ();
25439 int
25440 main ()
25441 {
25442 return remove ();
25443   ;
25444   return 0;
25445 }
25446 _ACEOF
25447 if ac_fn_c_try_link "$LINENO"; then :
25448   ac_cv_lib_posix_remove=yes
25449 else
25450   ac_cv_lib_posix_remove=no
25451 fi
25452 rm -f core conftest.err conftest.$ac_objext \
25453     conftest$ac_exeext conftest.$ac_ext
25454 LIBS=$ac_check_lib_save_LIBS
25455 fi
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25457 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25458 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25459   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25460 fi
25461
25462     fi
25463
25464     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25465     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25466 if test "x$ac_cv_func_shmat" = xyes; then :
25467
25468 fi
25469
25470     if test $ac_cv_func_shmat = no; then
25471       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25472 $as_echo_n "checking for shmat in -lipc... " >&6; }
25473 if ${ac_cv_lib_ipc_shmat+:} false; then :
25474   $as_echo_n "(cached) " >&6
25475 else
25476   ac_check_lib_save_LIBS=$LIBS
25477 LIBS="-lipc  $LIBS"
25478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25479 /* end confdefs.h.  */
25480
25481 /* Override any GCC internal prototype to avoid an error.
25482    Use char because int might match the return type of a GCC
25483    builtin and then its argument prototype would still apply.  */
25484 #ifdef __cplusplus
25485 extern "C"
25486 #endif
25487 char shmat ();
25488 int
25489 main ()
25490 {
25491 return shmat ();
25492   ;
25493   return 0;
25494 }
25495 _ACEOF
25496 if ac_fn_c_try_link "$LINENO"; then :
25497   ac_cv_lib_ipc_shmat=yes
25498 else
25499   ac_cv_lib_ipc_shmat=no
25500 fi
25501 rm -f core conftest.err conftest.$ac_objext \
25502     conftest$ac_exeext conftest.$ac_ext
25503 LIBS=$ac_check_lib_save_LIBS
25504 fi
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25506 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25507 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25508   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25509 fi
25510
25511     fi
25512   fi
25513
25514   # Check for libraries that X11R6 Xt/Xaw programs need.
25515   ac_save_LDFLAGS=$LDFLAGS
25516   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25517   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25518   # check for ICE first), but we must link in the order -lSM -lICE or
25519   # we get undefined symbols.  So assume we have SM if we have ICE.
25520   # These have to be linked with before -lX11, unlike the other
25521   # libraries we check for below, so use a different variable.
25522   # John Interrante, Karl Berry
25523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25524 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25525 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25526   $as_echo_n "(cached) " >&6
25527 else
25528   ac_check_lib_save_LIBS=$LIBS
25529 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25531 /* end confdefs.h.  */
25532
25533 /* Override any GCC internal prototype to avoid an error.
25534    Use char because int might match the return type of a GCC
25535    builtin and then its argument prototype would still apply.  */
25536 #ifdef __cplusplus
25537 extern "C"
25538 #endif
25539 char IceConnectionNumber ();
25540 int
25541 main ()
25542 {
25543 return IceConnectionNumber ();
25544   ;
25545   return 0;
25546 }
25547 _ACEOF
25548 if ac_fn_c_try_link "$LINENO"; then :
25549   ac_cv_lib_ICE_IceConnectionNumber=yes
25550 else
25551   ac_cv_lib_ICE_IceConnectionNumber=no
25552 fi
25553 rm -f core conftest.err conftest.$ac_objext \
25554     conftest$ac_exeext conftest.$ac_ext
25555 LIBS=$ac_check_lib_save_LIBS
25556 fi
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25558 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25559 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25560   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25561 fi
25562
25563   LDFLAGS=$ac_save_LDFLAGS
25564
25565 fi
25566
25567
25568 for ac_header in \
25569    assert.h \
25570    fcntl.h \
25571    grp.h \
25572    pwd.h \
25573    libc.h \
25574    limits.h \
25575    stdarg.h \
25576    stdlib.h \
25577    stdint.h \
25578    inttypes.h \
25579    string.h \
25580    strings.h \
25581    termios.h \
25582    termcap.h \
25583    term.h \
25584    unistd.h \
25585    sys/bitypes.h \
25586    sys/byteorder.h \
25587    sys/ioctl.h \
25588    sys/select.h \
25589    sys/socket.h \
25590    sys/sockio.h \
25591    sys/stat.h \
25592    sys/time.h \
25593    sys/types.h \
25594    arpa/nameser.h \
25595    mtio.h \
25596    sys/mtio.h \
25597    sys/tape.h \
25598    regex.h \
25599
25600 do :
25601   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25602 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25604   cat >>confdefs.h <<_ACEOF
25605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25606 _ACEOF
25607
25608 fi
25609
25610 done
25611
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25613 $as_echo_n "checking for ANSI C header files... " >&6; }
25614 if ${ac_cv_header_stdc+:} false; then :
25615   $as_echo_n "(cached) " >&6
25616 else
25617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25618 /* end confdefs.h.  */
25619 #include <stdlib.h>
25620 #include <stdarg.h>
25621 #include <string.h>
25622 #include <float.h>
25623
25624 int
25625 main ()
25626 {
25627
25628   ;
25629   return 0;
25630 }
25631 _ACEOF
25632 if ac_fn_c_try_compile "$LINENO"; then :
25633   ac_cv_header_stdc=yes
25634 else
25635   ac_cv_header_stdc=no
25636 fi
25637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25638
25639 if test $ac_cv_header_stdc = yes; then
25640   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642 /* end confdefs.h.  */
25643 #include <string.h>
25644
25645 _ACEOF
25646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25647   $EGREP "memchr" >/dev/null 2>&1; then :
25648
25649 else
25650   ac_cv_header_stdc=no
25651 fi
25652 rm -f conftest*
25653
25654 fi
25655
25656 if test $ac_cv_header_stdc = yes; then
25657   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25659 /* end confdefs.h.  */
25660 #include <stdlib.h>
25661
25662 _ACEOF
25663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25664   $EGREP "free" >/dev/null 2>&1; then :
25665
25666 else
25667   ac_cv_header_stdc=no
25668 fi
25669 rm -f conftest*
25670
25671 fi
25672
25673 if test $ac_cv_header_stdc = yes; then
25674   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25675   if test "$cross_compiling" = yes; then :
25676   :
25677 else
25678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25679 /* end confdefs.h.  */
25680 #include <ctype.h>
25681 #include <stdlib.h>
25682 #if ((' ' & 0x0FF) == 0x020)
25683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25685 #else
25686 # define ISLOWER(c) \
25687                    (('a' <= (c) && (c) <= 'i') \
25688                      || ('j' <= (c) && (c) <= 'r') \
25689                      || ('s' <= (c) && (c) <= 'z'))
25690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25691 #endif
25692
25693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25694 int
25695 main ()
25696 {
25697   int i;
25698   for (i = 0; i < 256; i++)
25699     if (XOR (islower (i), ISLOWER (i))
25700         || toupper (i) != TOUPPER (i))
25701       return 2;
25702   return 0;
25703 }
25704 _ACEOF
25705 if ac_fn_c_try_run "$LINENO"; then :
25706
25707 else
25708   ac_cv_header_stdc=no
25709 fi
25710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25711   conftest.$ac_objext conftest.beam conftest.$ac_ext
25712 fi
25713
25714 fi
25715 fi
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25717 $as_echo "$ac_cv_header_stdc" >&6; }
25718 if test $ac_cv_header_stdc = yes; then
25719
25720 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25721
25722 fi
25723
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25725 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25726 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25727   $as_echo_n "(cached) " >&6
25728 else
25729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25730 /* end confdefs.h.  */
25731 #include <sys/types.h>
25732 int
25733 main ()
25734 {
25735 return makedev(0, 0);
25736   ;
25737   return 0;
25738 }
25739 _ACEOF
25740 if ac_fn_c_try_link "$LINENO"; then :
25741   ac_cv_header_sys_types_h_makedev=yes
25742 else
25743   ac_cv_header_sys_types_h_makedev=no
25744 fi
25745 rm -f core conftest.err conftest.$ac_objext \
25746     conftest$ac_exeext conftest.$ac_ext
25747
25748 fi
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25750 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25751
25752 if test $ac_cv_header_sys_types_h_makedev = no; then
25753 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25754 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25755
25756 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25757
25758 fi
25759
25760
25761
25762   if test $ac_cv_header_sys_mkdev_h = no; then
25763     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25764 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25765
25766 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25767
25768 fi
25769
25770
25771   fi
25772 fi
25773
25774 ac_header_dirent=no
25775 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25776   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25778 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25779 if eval \${$as_ac_Header+:} false; then :
25780   $as_echo_n "(cached) " >&6
25781 else
25782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h.  */
25784 #include <sys/types.h>
25785 #include <$ac_hdr>
25786
25787 int
25788 main ()
25789 {
25790 if ((DIR *) 0)
25791 return 0;
25792   ;
25793   return 0;
25794 }
25795 _ACEOF
25796 if ac_fn_c_try_compile "$LINENO"; then :
25797   eval "$as_ac_Header=yes"
25798 else
25799   eval "$as_ac_Header=no"
25800 fi
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25802 fi
25803 eval ac_res=\$$as_ac_Header
25804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25805 $as_echo "$ac_res" >&6; }
25806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25807   cat >>confdefs.h <<_ACEOF
25808 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25809 _ACEOF
25810
25811 ac_header_dirent=$ac_hdr; break
25812 fi
25813
25814 done
25815 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25816 if test $ac_header_dirent = dirent.h; then
25817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25818 $as_echo_n "checking for library containing opendir... " >&6; }
25819 if ${ac_cv_search_opendir+:} false; then :
25820   $as_echo_n "(cached) " >&6
25821 else
25822   ac_func_search_save_LIBS=$LIBS
25823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824 /* end confdefs.h.  */
25825
25826 /* Override any GCC internal prototype to avoid an error.
25827    Use char because int might match the return type of a GCC
25828    builtin and then its argument prototype would still apply.  */
25829 #ifdef __cplusplus
25830 extern "C"
25831 #endif
25832 char opendir ();
25833 int
25834 main ()
25835 {
25836 return opendir ();
25837   ;
25838   return 0;
25839 }
25840 _ACEOF
25841 for ac_lib in '' dir; do
25842   if test -z "$ac_lib"; then
25843     ac_res="none required"
25844   else
25845     ac_res=-l$ac_lib
25846     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25847   fi
25848   if ac_fn_c_try_link "$LINENO"; then :
25849   ac_cv_search_opendir=$ac_res
25850 fi
25851 rm -f core conftest.err conftest.$ac_objext \
25852     conftest$ac_exeext
25853   if ${ac_cv_search_opendir+:} false; then :
25854   break
25855 fi
25856 done
25857 if ${ac_cv_search_opendir+:} false; then :
25858
25859 else
25860   ac_cv_search_opendir=no
25861 fi
25862 rm conftest.$ac_ext
25863 LIBS=$ac_func_search_save_LIBS
25864 fi
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25866 $as_echo "$ac_cv_search_opendir" >&6; }
25867 ac_res=$ac_cv_search_opendir
25868 if test "$ac_res" != no; then :
25869   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25870
25871 fi
25872
25873 else
25874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25875 $as_echo_n "checking for library containing opendir... " >&6; }
25876 if ${ac_cv_search_opendir+:} false; then :
25877   $as_echo_n "(cached) " >&6
25878 else
25879   ac_func_search_save_LIBS=$LIBS
25880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25881 /* end confdefs.h.  */
25882
25883 /* Override any GCC internal prototype to avoid an error.
25884    Use char because int might match the return type of a GCC
25885    builtin and then its argument prototype would still apply.  */
25886 #ifdef __cplusplus
25887 extern "C"
25888 #endif
25889 char opendir ();
25890 int
25891 main ()
25892 {
25893 return opendir ();
25894   ;
25895   return 0;
25896 }
25897 _ACEOF
25898 for ac_lib in '' x; do
25899   if test -z "$ac_lib"; then
25900     ac_res="none required"
25901   else
25902     ac_res=-l$ac_lib
25903     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25904   fi
25905   if ac_fn_c_try_link "$LINENO"; then :
25906   ac_cv_search_opendir=$ac_res
25907 fi
25908 rm -f core conftest.err conftest.$ac_objext \
25909     conftest$ac_exeext
25910   if ${ac_cv_search_opendir+:} false; then :
25911   break
25912 fi
25913 done
25914 if ${ac_cv_search_opendir+:} false; then :
25915
25916 else
25917   ac_cv_search_opendir=no
25918 fi
25919 rm conftest.$ac_ext
25920 LIBS=$ac_func_search_save_LIBS
25921 fi
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25923 $as_echo "$ac_cv_search_opendir" >&6; }
25924 ac_res=$ac_cv_search_opendir
25925 if test "$ac_res" != no; then :
25926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25927
25928 fi
25929
25930 fi
25931
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25933 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25934 if ${ac_cv_header_stat_broken+:} false; then :
25935   $as_echo_n "(cached) " >&6
25936 else
25937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938 /* end confdefs.h.  */
25939 #include <sys/types.h>
25940 #include <sys/stat.h>
25941
25942 #if defined S_ISBLK && defined S_IFDIR
25943 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25944 #endif
25945
25946 #if defined S_ISBLK && defined S_IFCHR
25947 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25948 #endif
25949
25950 #if defined S_ISLNK && defined S_IFREG
25951 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25952 #endif
25953
25954 #if defined S_ISSOCK && defined S_IFREG
25955 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25956 #endif
25957
25958 _ACEOF
25959 if ac_fn_c_try_compile "$LINENO"; then :
25960   ac_cv_header_stat_broken=no
25961 else
25962   ac_cv_header_stat_broken=yes
25963 fi
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 fi
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25967 $as_echo "$ac_cv_header_stat_broken" >&6; }
25968 if test $ac_cv_header_stat_broken = yes; then
25969
25970 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25971
25972 fi
25973
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25975 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25976 if ${ac_cv_header_sys_wait_h+:} false; then :
25977   $as_echo_n "(cached) " >&6
25978 else
25979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h.  */
25981 #include <sys/types.h>
25982 #include <sys/wait.h>
25983 #ifndef WEXITSTATUS
25984 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25985 #endif
25986 #ifndef WIFEXITED
25987 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25988 #endif
25989
25990 int
25991 main ()
25992 {
25993   int s;
25994   wait (&s);
25995   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25996   ;
25997   return 0;
25998 }
25999 _ACEOF
26000 if ac_fn_c_try_compile "$LINENO"; then :
26001   ac_cv_header_sys_wait_h=yes
26002 else
26003   ac_cv_header_sys_wait_h=no
26004 fi
26005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26006 fi
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26008 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26009 if test $ac_cv_header_sys_wait_h = yes; then
26010
26011 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26012
26013 fi
26014
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26016 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26017 if ${ac_cv_header_time+:} false; then :
26018   $as_echo_n "(cached) " >&6
26019 else
26020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26021 /* end confdefs.h.  */
26022 #include <sys/types.h>
26023 #include <sys/time.h>
26024 #include <time.h>
26025
26026 int
26027 main ()
26028 {
26029 if ((struct tm *) 0)
26030 return 0;
26031   ;
26032   return 0;
26033 }
26034 _ACEOF
26035 if ac_fn_c_try_compile "$LINENO"; then :
26036   ac_cv_header_time=yes
26037 else
26038   ac_cv_header_time=no
26039 fi
26040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26041 fi
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26043 $as_echo "$ac_cv_header_time" >&6; }
26044 if test $ac_cv_header_time = yes; then
26045
26046 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26047
26048 fi
26049
26050 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26051 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26052
26053 cat >>confdefs.h <<_ACEOF
26054 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26055 _ACEOF
26056
26057
26058 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26059
26060 fi
26061
26062
26063 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26064 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26065
26066 cat >>confdefs.h <<_ACEOF
26067 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26068 _ACEOF
26069
26070
26071 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26072
26073 else
26074   case " $LIBOBJS " in
26075   *" fileblocks.$ac_objext "* ) ;;
26076   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26077  ;;
26078 esac
26079
26080 fi
26081
26082
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26084 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26085 if ${ac_cv_struct_tm+:} false; then :
26086   $as_echo_n "(cached) " >&6
26087 else
26088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h.  */
26090 #include <sys/types.h>
26091 #include <time.h>
26092
26093 int
26094 main ()
26095 {
26096 struct tm tm;
26097                                      int *p = &tm.tm_sec;
26098                                      return !p;
26099   ;
26100   return 0;
26101 }
26102 _ACEOF
26103 if ac_fn_c_try_compile "$LINENO"; then :
26104   ac_cv_struct_tm=time.h
26105 else
26106   ac_cv_struct_tm=sys/time.h
26107 fi
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26109 fi
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26111 $as_echo "$ac_cv_struct_tm" >&6; }
26112 if test $ac_cv_struct_tm = sys/time.h; then
26113
26114 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26115
26116 fi
26117
26118 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26119 #include <$ac_cv_struct_tm>
26120
26121 "
26122 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26123
26124 cat >>confdefs.h <<_ACEOF
26125 #define HAVE_STRUCT_TM_TM_ZONE 1
26126 _ACEOF
26127
26128
26129 fi
26130
26131 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26132
26133 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26134
26135 else
26136   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26137 "
26138 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26139   ac_have_decl=1
26140 else
26141   ac_have_decl=0
26142 fi
26143
26144 cat >>confdefs.h <<_ACEOF
26145 #define HAVE_DECL_TZNAME $ac_have_decl
26146 _ACEOF
26147
26148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26149 $as_echo_n "checking for tzname... " >&6; }
26150 if ${ac_cv_var_tzname+:} false; then :
26151   $as_echo_n "(cached) " >&6
26152 else
26153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h.  */
26155 #include <time.h>
26156 #if !HAVE_DECL_TZNAME
26157 extern char *tzname[];
26158 #endif
26159
26160 int
26161 main ()
26162 {
26163 return tzname[0][0];
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 if ac_fn_c_try_link "$LINENO"; then :
26169   ac_cv_var_tzname=yes
26170 else
26171   ac_cv_var_tzname=no
26172 fi
26173 rm -f core conftest.err conftest.$ac_objext \
26174     conftest$ac_exeext conftest.$ac_ext
26175 fi
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26177 $as_echo "$ac_cv_var_tzname" >&6; }
26178   if test $ac_cv_var_tzname = yes; then
26179
26180 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26181
26182   fi
26183 fi
26184
26185
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26187 $as_echo_n "checking for utime.h... " >&6; }
26188 if ${ba_cv_header_utime_h+:} false; then :
26189   $as_echo_n "(cached) " >&6
26190 else
26191
26192        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26193 /* end confdefs.h.  */
26194
26195               #include <sys/types.h>
26196               #include <utime.h>
26197
26198 int
26199 main ()
26200 {
26201
26202               struct utimbuf foo
26203
26204   ;
26205   return 0;
26206 }
26207 _ACEOF
26208 if ac_fn_c_try_compile "$LINENO"; then :
26209
26210               ba_cv_header_utime_h=yes
26211
26212 else
26213
26214               ba_cv_header_utime_h=no
26215
26216
26217 fi
26218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26219
26220
26221 fi
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26223 $as_echo "$ba_cv_header_utime_h" >&6; }
26224 test $ba_cv_header_utime_h = yes &&
26225 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26226
26227
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26229 $as_echo_n "checking for socklen_t... " >&6; }
26230 if ${ba_cv_header_socklen_t+:} false; then :
26231   $as_echo_n "(cached) " >&6
26232 else
26233
26234        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235 /* end confdefs.h.  */
26236
26237               #include <sys/types.h>
26238               #include <sys/socket.h>
26239
26240 int
26241 main ()
26242 {
26243
26244               socklen_t x
26245
26246   ;
26247   return 0;
26248 }
26249 _ACEOF
26250 if ac_fn_c_try_compile "$LINENO"; then :
26251
26252              ba_cv_header_socklen_t=yes
26253
26254 else
26255
26256              ba_cv_header_socklen_t=no
26257
26258
26259 fi
26260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26261
26262
26263 fi
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26265 $as_echo "$ba_cv_header_socklen_t" >&6; }
26266 test $ba_cv_header_socklen_t = yes &&
26267 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26268
26269
26270 ac_ext=cpp
26271 ac_cpp='$CXXCPP $CPPFLAGS'
26272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26275
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26277 $as_echo_n "checking for ioctl_req_t... " >&6; }
26278 if ${ba_cv_header_ioctl_req_t+:} false; then :
26279   $as_echo_n "(cached) " >&6
26280 else
26281
26282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283 /* end confdefs.h.  */
26284
26285               #include <unistd.h>
26286               #include <sys/types.h>
26287               #include <sys/ioctl.h>
26288
26289 int
26290 main ()
26291 {
26292
26293               int (*d_ioctl)(int fd, unsigned long int request, ...);
26294               d_ioctl = ::ioctl;
26295
26296   ;
26297   return 0;
26298 }
26299 _ACEOF
26300 if ac_fn_cxx_try_compile "$LINENO"; then :
26301
26302              ba_cv_header_ioctl_req_t=yes
26303
26304 else
26305
26306              ba_cv_header_ioctl_req_t=no
26307
26308
26309 fi
26310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26311
26312
26313 fi
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26315 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26316 test $ba_cv_header_ioctl_req_t = yes &&
26317 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26318
26319
26320 ac_ext=c
26321 ac_cpp='$CPP $CPPFLAGS'
26322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26325
26326
26327 ac_ext=cpp
26328 ac_cpp='$CXXCPP $CPPFLAGS'
26329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26332
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26334 $as_echo_n "checking for typeof... " >&6; }
26335 if ${ba_cv_have_typeof+:} false; then :
26336   $as_echo_n "(cached) " >&6
26337 else
26338
26339        if test "$cross_compiling" = yes; then :
26340
26341               ba_cv_have_typeof=no
26342
26343
26344 else
26345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26346 /* end confdefs.h.  */
26347
26348               main(){char *a = 0; a = (typeof a)a;}
26349
26350 _ACEOF
26351 if ac_fn_cxx_try_run "$LINENO"; then :
26352
26353               ba_cv_have_typeof=yes
26354
26355 else
26356
26357               ba_cv_have_typeof=no
26358
26359 fi
26360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26361   conftest.$ac_objext conftest.beam conftest.$ac_ext
26362 fi
26363
26364
26365
26366 fi
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26368 $as_echo "$ba_cv_have_typeof" >&6; }
26369 test $ba_cv_have_typeof = yes &&
26370 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26371
26372 ac_ext=c
26373 ac_cpp='$CPP $CPPFLAGS'
26374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26377
26378
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26380 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26381 if ${ac_cv_c_const+:} false; then :
26382   $as_echo_n "(cached) " >&6
26383 else
26384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26385 /* end confdefs.h.  */
26386
26387 int
26388 main ()
26389 {
26390 /* FIXME: Include the comments suggested by Paul. */
26391 #ifndef __cplusplus
26392   /* Ultrix mips cc rejects this.  */
26393   typedef int charset[2];
26394   const charset cs;
26395   /* SunOS 4.1.1 cc rejects this.  */
26396   char const *const *pcpcc;
26397   char **ppc;
26398   /* NEC SVR4.0.2 mips cc rejects this.  */
26399   struct point {int x, y;};
26400   static struct point const zero = {0,0};
26401   /* AIX XL C 1.02.0.0 rejects this.
26402      It does not let you subtract one const X* pointer from another in
26403      an arm of an if-expression whose if-part is not a constant
26404      expression */
26405   const char *g = "string";
26406   pcpcc = &g + (g ? g-g : 0);
26407   /* HPUX 7.0 cc rejects these. */
26408   ++pcpcc;
26409   ppc = (char**) pcpcc;
26410   pcpcc = (char const *const *) ppc;
26411   { /* SCO 3.2v4 cc rejects this.  */
26412     char *t;
26413     char const *s = 0 ? (char *) 0 : (char const *) 0;
26414
26415     *t++ = 0;
26416     if (s) return 0;
26417   }
26418   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26419     int x[] = {25, 17};
26420     const int *foo = &x[0];
26421     ++foo;
26422   }
26423   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26424     typedef const int *iptr;
26425     iptr p = 0;
26426     ++p;
26427   }
26428   { /* AIX XL C 1.02.0.0 rejects this saying
26429        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26430     struct s { int j; const int *ap[3]; };
26431     struct s *b; b->j = 5;
26432   }
26433   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26434     const int foo = 10;
26435     if (!foo) return 0;
26436   }
26437   return !cs[0] && !zero.x;
26438 #endif
26439
26440   ;
26441   return 0;
26442 }
26443 _ACEOF
26444 if ac_fn_c_try_compile "$LINENO"; then :
26445   ac_cv_c_const=yes
26446 else
26447   ac_cv_c_const=no
26448 fi
26449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26450 fi
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26452 $as_echo "$ac_cv_c_const" >&6; }
26453 if test $ac_cv_c_const = no; then
26454
26455 $as_echo "#define const /**/" >>confdefs.h
26456
26457 fi
26458
26459
26460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26462 if ${ac_cv_c_bigendian+:} false; then :
26463   $as_echo_n "(cached) " >&6
26464 else
26465   ac_cv_c_bigendian=unknown
26466     # See if we're dealing with a universal compiler.
26467     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468 /* end confdefs.h.  */
26469 #ifndef __APPLE_CC__
26470                not a universal capable compiler
26471              #endif
26472              typedef int dummy;
26473
26474 _ACEOF
26475 if ac_fn_c_try_compile "$LINENO"; then :
26476
26477         # Check for potential -arch flags.  It is not universal unless
26478         # there are at least two -arch flags with different values.
26479         ac_arch=
26480         ac_prev=
26481         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26482          if test -n "$ac_prev"; then
26483            case $ac_word in
26484              i?86 | x86_64 | ppc | ppc64)
26485                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26486                  ac_arch=$ac_word
26487                else
26488                  ac_cv_c_bigendian=universal
26489                  break
26490                fi
26491                ;;
26492            esac
26493            ac_prev=
26494          elif test "x$ac_word" = "x-arch"; then
26495            ac_prev=arch
26496          fi
26497        done
26498 fi
26499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26500     if test $ac_cv_c_bigendian = unknown; then
26501       # See if sys/param.h defines the BYTE_ORDER macro.
26502       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h.  */
26504 #include <sys/types.h>
26505              #include <sys/param.h>
26506
26507 int
26508 main ()
26509 {
26510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26511                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26512                      && LITTLE_ENDIAN)
26513               bogus endian macros
26514              #endif
26515
26516   ;
26517   return 0;
26518 }
26519 _ACEOF
26520 if ac_fn_c_try_compile "$LINENO"; then :
26521   # It does; now see whether it defined to BIG_ENDIAN or not.
26522          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26523 /* end confdefs.h.  */
26524 #include <sys/types.h>
26525                 #include <sys/param.h>
26526
26527 int
26528 main ()
26529 {
26530 #if BYTE_ORDER != BIG_ENDIAN
26531                  not big endian
26532                 #endif
26533
26534   ;
26535   return 0;
26536 }
26537 _ACEOF
26538 if ac_fn_c_try_compile "$LINENO"; then :
26539   ac_cv_c_bigendian=yes
26540 else
26541   ac_cv_c_bigendian=no
26542 fi
26543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26544 fi
26545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26546     fi
26547     if test $ac_cv_c_bigendian = unknown; then
26548       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26549       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26550 /* end confdefs.h.  */
26551 #include <limits.h>
26552
26553 int
26554 main ()
26555 {
26556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26557               bogus endian macros
26558              #endif
26559
26560   ;
26561   return 0;
26562 }
26563 _ACEOF
26564 if ac_fn_c_try_compile "$LINENO"; then :
26565   # It does; now see whether it defined to _BIG_ENDIAN or not.
26566          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26567 /* end confdefs.h.  */
26568 #include <limits.h>
26569
26570 int
26571 main ()
26572 {
26573 #ifndef _BIG_ENDIAN
26574                  not big endian
26575                 #endif
26576
26577   ;
26578   return 0;
26579 }
26580 _ACEOF
26581 if ac_fn_c_try_compile "$LINENO"; then :
26582   ac_cv_c_bigendian=yes
26583 else
26584   ac_cv_c_bigendian=no
26585 fi
26586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26587 fi
26588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26589     fi
26590     if test $ac_cv_c_bigendian = unknown; then
26591       # Compile a test program.
26592       if test "$cross_compiling" = yes; then :
26593   # Try to guess by grepping values from an object file.
26594          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26595 /* end confdefs.h.  */
26596 short int ascii_mm[] =
26597                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26598                 short int ascii_ii[] =
26599                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26600                 int use_ascii (int i) {
26601                   return ascii_mm[i] + ascii_ii[i];
26602                 }
26603                 short int ebcdic_ii[] =
26604                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26605                 short int ebcdic_mm[] =
26606                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26607                 int use_ebcdic (int i) {
26608                   return ebcdic_mm[i] + ebcdic_ii[i];
26609                 }
26610                 extern int foo;
26611
26612 int
26613 main ()
26614 {
26615 return use_ascii (foo) == use_ebcdic (foo);
26616   ;
26617   return 0;
26618 }
26619 _ACEOF
26620 if ac_fn_c_try_compile "$LINENO"; then :
26621   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26622               ac_cv_c_bigendian=yes
26623             fi
26624             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26625               if test "$ac_cv_c_bigendian" = unknown; then
26626                 ac_cv_c_bigendian=no
26627               else
26628                 # finding both strings is unlikely to happen, but who knows?
26629                 ac_cv_c_bigendian=unknown
26630               fi
26631             fi
26632 fi
26633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26634 else
26635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26636 /* end confdefs.h.  */
26637 $ac_includes_default
26638 int
26639 main ()
26640 {
26641
26642              /* Are we little or big endian?  From Harbison&Steele.  */
26643              union
26644              {
26645                long int l;
26646                char c[sizeof (long int)];
26647              } u;
26648              u.l = 1;
26649              return u.c[sizeof (long int) - 1] == 1;
26650
26651   ;
26652   return 0;
26653 }
26654 _ACEOF
26655 if ac_fn_c_try_run "$LINENO"; then :
26656   ac_cv_c_bigendian=no
26657 else
26658   ac_cv_c_bigendian=yes
26659 fi
26660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26661   conftest.$ac_objext conftest.beam conftest.$ac_ext
26662 fi
26663
26664     fi
26665 fi
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26667 $as_echo "$ac_cv_c_bigendian" >&6; }
26668  case $ac_cv_c_bigendian in #(
26669    yes)
26670
26671 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26672 ;; #(
26673    no)
26674
26675 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26676  ;; #(
26677    universal)
26678
26679 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26680
26681      ;; #(
26682    *)
26683      as_fn_error $? "unknown endianness
26684  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26685  esac
26686
26687
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26689 $as_echo_n "checking how to get filesystem type... " >&6; }
26690 fstype=no
26691 # The order of these tests is important.
26692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h.  */
26694
26695        #include <sys/statvfs.h>
26696        #include <sys/fstyp.h>
26697
26698 _ACEOF
26699 if ac_fn_c_try_cpp "$LINENO"; then :
26700   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26701  fstype=SVR4
26702
26703 fi
26704 rm -f conftest.err conftest.i conftest.$ac_ext
26705 if test $fstype = no; then
26706    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707 /* end confdefs.h.  */
26708
26709           #include <sys/statfs.h>
26710           #include <sys/fstyp.h>
26711
26712 _ACEOF
26713 if ac_fn_c_try_cpp "$LINENO"; then :
26714   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26715  fstype=SVR3
26716
26717 fi
26718 rm -f conftest.err conftest.i conftest.$ac_ext
26719 fi
26720 if test $fstype = no; then
26721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26722 /* end confdefs.h.  */
26723
26724           #include <sys/statfs.h>
26725           #include <sys/vmount.h>
26726
26727 _ACEOF
26728 if ac_fn_c_try_cpp "$LINENO"; then :
26729   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26730  fstype=AIX
26731
26732 fi
26733 rm -f conftest.err conftest.i conftest.$ac_ext
26734 fi
26735 if test $fstype = no; then
26736    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26737 /* end confdefs.h.  */
26738
26739           #include <mntent.h>
26740
26741 _ACEOF
26742 if ac_fn_c_try_cpp "$LINENO"; then :
26743   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26744  fstype=4.3BSD
26745
26746 fi
26747 rm -f conftest.err conftest.i conftest.$ac_ext
26748 fi
26749 if test $fstype = no; then
26750    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26751 /* end confdefs.h.  */
26752 #include <sys/mount.h>
26753
26754 _ACEOF
26755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26756   $EGREP "f_type;" >/dev/null 2>&1; then :
26757   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26758  fstype=4.4BSD/OSF1
26759 fi
26760 rm -f conftest*
26761
26762 fi
26763 if test $fstype = no; then
26764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765 /* end confdefs.h.  */
26766
26767           #include <sys/mount.h>
26768           #include <sys/fs_types.h>
26769
26770 _ACEOF
26771 if ac_fn_c_try_cpp "$LINENO"; then :
26772   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26773  fstype=Ultrix
26774
26775 fi
26776 rm -f conftest.err conftest.i conftest.$ac_ext
26777 fi
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26779 $as_echo "$fstype" >&6; }
26780
26781 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26782 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26783
26784 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26785
26786 fi
26787
26788
26789
26790 ac_ext=cpp
26791 ac_cpp='$CXXCPP $CPPFLAGS'
26792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26795
26796 for ac_func in backtrace
26797 do :
26798   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26799 if test "x$ac_cv_func_backtrace" = xyes; then :
26800   cat >>confdefs.h <<_ACEOF
26801 #define HAVE_BACKTRACE 1
26802 _ACEOF
26803
26804 fi
26805 done
26806
26807 ac_ext=c
26808 ac_cpp='$CPP $CPPFLAGS'
26809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26812
26813
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26815 $as_echo_n "checking return type of signal handlers... " >&6; }
26816 if ${ac_cv_type_signal+:} false; then :
26817   $as_echo_n "(cached) " >&6
26818 else
26819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h.  */
26821 #include <sys/types.h>
26822 #include <signal.h>
26823
26824 int
26825 main ()
26826 {
26827 return *(signal (0, 0)) (0) == 1;
26828   ;
26829   return 0;
26830 }
26831 _ACEOF
26832 if ac_fn_c_try_compile "$LINENO"; then :
26833   ac_cv_type_signal=int
26834 else
26835   ac_cv_type_signal=void
26836 fi
26837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26838 fi
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26840 $as_echo "$ac_cv_type_signal" >&6; }
26841
26842 cat >>confdefs.h <<_ACEOF
26843 #define RETSIGTYPE $ac_cv_type_signal
26844 _ACEOF
26845
26846
26847
26848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26849 $as_echo_n "checking for type of signal functions... " >&6; }
26850   if ${bash_cv_signal_vintage+:} false; then :
26851   $as_echo_n "(cached) " >&6
26852 else
26853
26854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h.  */
26856 #include <signal.h>
26857 int
26858 main ()
26859 {
26860
26861       sigset_t ss;
26862       struct sigaction sa;
26863       sigemptyset(&ss); sigsuspend(&ss);
26864       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26865       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26866
26867   ;
26868   return 0;
26869 }
26870 _ACEOF
26871 if ac_fn_c_try_link "$LINENO"; then :
26872   bash_cv_signal_vintage="posix"
26873 else
26874
26875       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h.  */
26877 #include <signal.h>
26878 int
26879 main ()
26880 {
26881
26882           int mask = sigmask(SIGINT);
26883           sigsetmask(mask); sigblock(mask); sigpause(mask);
26884
26885   ;
26886   return 0;
26887 }
26888 _ACEOF
26889 if ac_fn_c_try_link "$LINENO"; then :
26890   bash_cv_signal_vintage="4.2bsd"
26891 else
26892
26893         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26894 /* end confdefs.h.  */
26895
26896           #include <signal.h>
26897           RETSIGTYPE foo() { }
26898 int
26899 main ()
26900 {
26901
26902                   int mask = sigmask(SIGINT);
26903                   sigset(SIGINT, foo); sigrelse(SIGINT);
26904                   sighold(SIGINT); sigpause(SIGINT);
26905
26906   ;
26907   return 0;
26908 }
26909 _ACEOF
26910 if ac_fn_c_try_link "$LINENO"; then :
26911   bash_cv_signal_vintage="svr3"
26912 else
26913   bash_cv_signal_vintage="v7"
26914
26915 fi
26916 rm -f core conftest.err conftest.$ac_objext \
26917     conftest$ac_exeext conftest.$ac_ext
26918
26919 fi
26920 rm -f core conftest.err conftest.$ac_objext \
26921     conftest$ac_exeext conftest.$ac_ext
26922
26923 fi
26924 rm -f core conftest.err conftest.$ac_objext \
26925     conftest$ac_exeext conftest.$ac_ext
26926
26927 fi
26928
26929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26930 $as_echo "$bash_cv_signal_vintage" >&6; }
26931   if test "$bash_cv_signal_vintage" = "posix"; then
26932     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26933
26934   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26935     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26936
26937   elif test "$bash_cv_signal_vintage" = "svr3"; then
26938     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26939
26940   fi
26941
26942 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26943 if test "x$ac_cv_type_mode_t" = xyes; then :
26944
26945 else
26946
26947 cat >>confdefs.h <<_ACEOF
26948 #define mode_t int
26949 _ACEOF
26950
26951 fi
26952
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26954 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26955 if ${ac_cv_type_uid_t+:} false; then :
26956   $as_echo_n "(cached) " >&6
26957 else
26958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h.  */
26960 #include <sys/types.h>
26961
26962 _ACEOF
26963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26964   $EGREP "uid_t" >/dev/null 2>&1; then :
26965   ac_cv_type_uid_t=yes
26966 else
26967   ac_cv_type_uid_t=no
26968 fi
26969 rm -f conftest*
26970
26971 fi
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26973 $as_echo "$ac_cv_type_uid_t" >&6; }
26974 if test $ac_cv_type_uid_t = no; then
26975
26976 $as_echo "#define uid_t int" >>confdefs.h
26977
26978
26979 $as_echo "#define gid_t int" >>confdefs.h
26980
26981 fi
26982
26983 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26984 if test "x$ac_cv_type_size_t" = xyes; then :
26985
26986 else
26987
26988 cat >>confdefs.h <<_ACEOF
26989 #define size_t unsigned int
26990 _ACEOF
26991
26992 fi
26993
26994 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26995 if test "x$ac_cv_type_pid_t" = xyes; then :
26996
26997 else
26998
26999 cat >>confdefs.h <<_ACEOF
27000 #define pid_t int
27001 _ACEOF
27002
27003 fi
27004
27005 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27006 if test "x$ac_cv_type_off_t" = xyes; then :
27007
27008 else
27009
27010 cat >>confdefs.h <<_ACEOF
27011 #define off_t long int
27012 _ACEOF
27013
27014 fi
27015
27016
27017   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27018 if test "x$ac_cv_type_intptr_t" = xyes; then :
27019
27020 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27021
27022 else
27023   for ac_type in 'int' 'long int' 'long long int'; do
27024        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27025 /* end confdefs.h.  */
27026 $ac_includes_default
27027 int
27028 main ()
27029 {
27030 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27031 test_array [0] = 0
27032
27033   ;
27034   return 0;
27035 }
27036 _ACEOF
27037 if ac_fn_c_try_compile "$LINENO"; then :
27038
27039 cat >>confdefs.h <<_ACEOF
27040 #define intptr_t $ac_type
27041 _ACEOF
27042
27043           ac_type=
27044 fi
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046        test -z "$ac_type" && break
27047      done
27048 fi
27049
27050
27051
27052   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27053 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27054
27055 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27056
27057 else
27058   for ac_type in 'unsigned int' 'unsigned long int' \
27059         'unsigned long long int'; do
27060        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27061 /* end confdefs.h.  */
27062 $ac_includes_default
27063 int
27064 main ()
27065 {
27066 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27067 test_array [0] = 0
27068
27069   ;
27070   return 0;
27071 }
27072 _ACEOF
27073 if ac_fn_c_try_compile "$LINENO"; then :
27074
27075 cat >>confdefs.h <<_ACEOF
27076 #define uintptr_t $ac_type
27077 _ACEOF
27078
27079           ac_type=
27080 fi
27081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27082        test -z "$ac_type" && break
27083      done
27084 fi
27085
27086
27087 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27088 if test "x$ac_cv_type_ino_t" = xyes; then :
27089
27090 else
27091
27092 cat >>confdefs.h <<_ACEOF
27093 #define ino_t unsigned long
27094 _ACEOF
27095
27096 fi
27097
27098 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27099 if test "x$ac_cv_type_dev_t" = xyes; then :
27100
27101 else
27102
27103 cat >>confdefs.h <<_ACEOF
27104 #define dev_t unsigned long
27105 _ACEOF
27106
27107 fi
27108
27109 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27110 if test "x$ac_cv_type_daddr_t" = xyes; then :
27111
27112 else
27113
27114 cat >>confdefs.h <<_ACEOF
27115 #define daddr_t long
27116 _ACEOF
27117
27118 fi
27119
27120 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27121 if test "x$ac_cv_type_major_t" = xyes; then :
27122
27123 else
27124
27125 cat >>confdefs.h <<_ACEOF
27126 #define major_t int
27127 _ACEOF
27128
27129 fi
27130
27131 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27132 if test "x$ac_cv_type_minor_t" = xyes; then :
27133
27134 else
27135
27136 cat >>confdefs.h <<_ACEOF
27137 #define minor_t int
27138 _ACEOF
27139
27140 fi
27141
27142 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27143 if test "x$ac_cv_type_ssize_t" = xyes; then :
27144
27145 else
27146
27147 cat >>confdefs.h <<_ACEOF
27148 #define ssize_t int
27149 _ACEOF
27150
27151 fi
27152
27153 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27154 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27155
27156 cat >>confdefs.h <<_ACEOF
27157 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27158 _ACEOF
27159
27160
27161 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27162
27163 else
27164   case " $LIBOBJS " in
27165   *" fileblocks.$ac_objext "* ) ;;
27166   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27167  ;;
27168 esac
27169
27170 fi
27171
27172
27173 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27174 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27175
27176 cat >>confdefs.h <<_ACEOF
27177 #define HAVE_STRUCT_STAT_ST_RDEV 1
27178 _ACEOF
27179
27180
27181 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27182
27183 fi
27184
27185
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27187 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27188 if ${ac_cv_struct_tm+:} false; then :
27189   $as_echo_n "(cached) " >&6
27190 else
27191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27192 /* end confdefs.h.  */
27193 #include <sys/types.h>
27194 #include <time.h>
27195
27196 int
27197 main ()
27198 {
27199 struct tm tm;
27200                                      int *p = &tm.tm_sec;
27201                                      return !p;
27202   ;
27203   return 0;
27204 }
27205 _ACEOF
27206 if ac_fn_c_try_compile "$LINENO"; then :
27207   ac_cv_struct_tm=time.h
27208 else
27209   ac_cv_struct_tm=sys/time.h
27210 fi
27211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27212 fi
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27214 $as_echo "$ac_cv_struct_tm" >&6; }
27215 if test $ac_cv_struct_tm = sys/time.h; then
27216
27217 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27218
27219 fi
27220
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27222 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27223 if ${ac_cv_c_const+:} false; then :
27224   $as_echo_n "(cached) " >&6
27225 else
27226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27227 /* end confdefs.h.  */
27228
27229 int
27230 main ()
27231 {
27232 /* FIXME: Include the comments suggested by Paul. */
27233 #ifndef __cplusplus
27234   /* Ultrix mips cc rejects this.  */
27235   typedef int charset[2];
27236   const charset cs;
27237   /* SunOS 4.1.1 cc rejects this.  */
27238   char const *const *pcpcc;
27239   char **ppc;
27240   /* NEC SVR4.0.2 mips cc rejects this.  */
27241   struct point {int x, y;};
27242   static struct point const zero = {0,0};
27243   /* AIX XL C 1.02.0.0 rejects this.
27244      It does not let you subtract one const X* pointer from another in
27245      an arm of an if-expression whose if-part is not a constant
27246      expression */
27247   const char *g = "string";
27248   pcpcc = &g + (g ? g-g : 0);
27249   /* HPUX 7.0 cc rejects these. */
27250   ++pcpcc;
27251   ppc = (char**) pcpcc;
27252   pcpcc = (char const *const *) ppc;
27253   { /* SCO 3.2v4 cc rejects this.  */
27254     char *t;
27255     char const *s = 0 ? (char *) 0 : (char const *) 0;
27256
27257     *t++ = 0;
27258     if (s) return 0;
27259   }
27260   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27261     int x[] = {25, 17};
27262     const int *foo = &x[0];
27263     ++foo;
27264   }
27265   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27266     typedef const int *iptr;
27267     iptr p = 0;
27268     ++p;
27269   }
27270   { /* AIX XL C 1.02.0.0 rejects this saying
27271        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27272     struct s { int j; const int *ap[3]; };
27273     struct s *b; b->j = 5;
27274   }
27275   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27276     const int foo = 10;
27277     if (!foo) return 0;
27278   }
27279   return !cs[0] && !zero.x;
27280 #endif
27281
27282   ;
27283   return 0;
27284 }
27285 _ACEOF
27286 if ac_fn_c_try_compile "$LINENO"; then :
27287   ac_cv_c_const=yes
27288 else
27289   ac_cv_c_const=no
27290 fi
27291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27292 fi
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27294 $as_echo "$ac_cv_c_const" >&6; }
27295 if test $ac_cv_c_const = no; then
27296
27297 $as_echo "#define const /**/" >>confdefs.h
27298
27299 fi
27300
27301
27302 # The cast to long int works around a bug in the HP C Compiler
27303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27305 # This bug is HP SR number 8606223364.
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27307 $as_echo_n "checking size of char... " >&6; }
27308 if ${ac_cv_sizeof_char+:} false; then :
27309   $as_echo_n "(cached) " >&6
27310 else
27311   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27312
27313 else
27314   if test "$ac_cv_type_char" = yes; then
27315      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27317 as_fn_error 77 "cannot compute sizeof (char)
27318 See \`config.log' for more details" "$LINENO" 5; }
27319    else
27320      ac_cv_sizeof_char=0
27321    fi
27322 fi
27323
27324 fi
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27326 $as_echo "$ac_cv_sizeof_char" >&6; }
27327
27328
27329
27330 cat >>confdefs.h <<_ACEOF
27331 #define SIZEOF_CHAR $ac_cv_sizeof_char
27332 _ACEOF
27333
27334
27335 # The cast to long int works around a bug in the HP C Compiler
27336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27338 # This bug is HP SR number 8606223364.
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27340 $as_echo_n "checking size of short int... " >&6; }
27341 if ${ac_cv_sizeof_short_int+:} false; then :
27342   $as_echo_n "(cached) " >&6
27343 else
27344   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27345
27346 else
27347   if test "$ac_cv_type_short_int" = yes; then
27348      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27350 as_fn_error 77 "cannot compute sizeof (short int)
27351 See \`config.log' for more details" "$LINENO" 5; }
27352    else
27353      ac_cv_sizeof_short_int=0
27354    fi
27355 fi
27356
27357 fi
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27359 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27360
27361
27362
27363 cat >>confdefs.h <<_ACEOF
27364 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27365 _ACEOF
27366
27367
27368 # The cast to long int works around a bug in the HP C Compiler
27369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27371 # This bug is HP SR number 8606223364.
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27373 $as_echo_n "checking size of int... " >&6; }
27374 if ${ac_cv_sizeof_int+:} false; then :
27375   $as_echo_n "(cached) " >&6
27376 else
27377   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27378
27379 else
27380   if test "$ac_cv_type_int" = yes; then
27381      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27383 as_fn_error 77 "cannot compute sizeof (int)
27384 See \`config.log' for more details" "$LINENO" 5; }
27385    else
27386      ac_cv_sizeof_int=0
27387    fi
27388 fi
27389
27390 fi
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27392 $as_echo "$ac_cv_sizeof_int" >&6; }
27393
27394
27395
27396 cat >>confdefs.h <<_ACEOF
27397 #define SIZEOF_INT $ac_cv_sizeof_int
27398 _ACEOF
27399
27400
27401 # The cast to long int works around a bug in the HP C Compiler
27402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27404 # This bug is HP SR number 8606223364.
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27406 $as_echo_n "checking size of long int... " >&6; }
27407 if ${ac_cv_sizeof_long_int+:} false; then :
27408   $as_echo_n "(cached) " >&6
27409 else
27410   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27411
27412 else
27413   if test "$ac_cv_type_long_int" = yes; then
27414      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27416 as_fn_error 77 "cannot compute sizeof (long int)
27417 See \`config.log' for more details" "$LINENO" 5; }
27418    else
27419      ac_cv_sizeof_long_int=0
27420    fi
27421 fi
27422
27423 fi
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27425 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27426
27427
27428
27429 cat >>confdefs.h <<_ACEOF
27430 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27431 _ACEOF
27432
27433
27434 # The cast to long int works around a bug in the HP C Compiler
27435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27437 # This bug is HP SR number 8606223364.
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27439 $as_echo_n "checking size of long long int... " >&6; }
27440 if ${ac_cv_sizeof_long_long_int+:} false; then :
27441   $as_echo_n "(cached) " >&6
27442 else
27443   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27444
27445 else
27446   if test "$ac_cv_type_long_long_int" = yes; then
27447      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27449 as_fn_error 77 "cannot compute sizeof (long long int)
27450 See \`config.log' for more details" "$LINENO" 5; }
27451    else
27452      ac_cv_sizeof_long_long_int=0
27453    fi
27454 fi
27455
27456 fi
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27458 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27459
27460
27461
27462 cat >>confdefs.h <<_ACEOF
27463 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27464 _ACEOF
27465
27466
27467 # The cast to long int works around a bug in the HP C Compiler
27468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27470 # This bug is HP SR number 8606223364.
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27472 $as_echo_n "checking size of int *... " >&6; }
27473 if ${ac_cv_sizeof_int_p+:} false; then :
27474   $as_echo_n "(cached) " >&6
27475 else
27476   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27477
27478 else
27479   if test "$ac_cv_type_int_p" = yes; then
27480      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27482 as_fn_error 77 "cannot compute sizeof (int *)
27483 See \`config.log' for more details" "$LINENO" 5; }
27484    else
27485      ac_cv_sizeof_int_p=0
27486    fi
27487 fi
27488
27489 fi
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27491 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27492
27493
27494
27495 cat >>confdefs.h <<_ACEOF
27496 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27497 _ACEOF
27498
27499
27500
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27502 $as_echo_n "checking for u_int type... " >&6; }
27503 if ${ac_cv_have_u_int+:} false; then :
27504   $as_echo_n "(cached) " >&6
27505 else
27506
27507        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27508 /* end confdefs.h.  */
27509
27510               #include <sys/types.h>
27511
27512 int
27513 main ()
27514 {
27515
27516               u_int a; a = 1;
27517
27518   ;
27519   return 0;
27520 }
27521 _ACEOF
27522 if ac_fn_c_try_compile "$LINENO"; then :
27523
27524               ac_cv_have_u_int="yes"
27525
27526 else
27527
27528               ac_cv_have_u_int="no"
27529
27530
27531 fi
27532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27533
27534
27535 fi
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27537 $as_echo "$ac_cv_have_u_int" >&6; }
27538 if test "x$ac_cv_have_u_int" = "xyes" ; then
27539    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27540
27541    have_u_int=1
27542 fi
27543
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27545 $as_echo_n "checking for intmax_t type... " >&6; }
27546 if ${ac_cv_have_intmax_t+:} false; then :
27547   $as_echo_n "(cached) " >&6
27548 else
27549
27550        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h.  */
27552
27553               #include <sys/types.h>
27554
27555 int
27556 main ()
27557 {
27558
27559               intmax_t a; a = 1;
27560
27561   ;
27562   return 0;
27563 }
27564 _ACEOF
27565 if ac_fn_c_try_compile "$LINENO"; then :
27566
27567               ac_cv_have_intmax_t="yes"
27568
27569 else
27570
27571               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27572 /* end confdefs.h.  */
27573
27574                      #include <stdint.h>
27575
27576 int
27577 main ()
27578 {
27579
27580                      intmax_t a; a = 1;
27581
27582   ;
27583   return 0;
27584 }
27585 _ACEOF
27586 if ac_fn_c_try_compile "$LINENO"; then :
27587
27588                      ac_cv_have_intmax_t="yes"
27589
27590 else
27591
27592                      ac_cv_have_intmax_t="no"
27593
27594
27595 fi
27596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27597
27598
27599 fi
27600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27601
27602
27603 fi
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27605 $as_echo "$ac_cv_have_intmax_t" >&6; }
27606 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27607    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27608
27609    have_intmax_t=1
27610 fi
27611
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27613 $as_echo_n "checking for u_intmax_t type... " >&6; }
27614 if ${ac_cv_have_u_intmax_t+:} false; then :
27615   $as_echo_n "(cached) " >&6
27616 else
27617
27618        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h.  */
27620
27621               #include <sys/types.h>
27622
27623 int
27624 main ()
27625 {
27626
27627               u_intmax_t a; a = 1;
27628
27629   ;
27630   return 0;
27631 }
27632 _ACEOF
27633 if ac_fn_c_try_compile "$LINENO"; then :
27634
27635               ac_cv_have_u_intmax_t="yes"
27636
27637 else
27638
27639               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27640 /* end confdefs.h.  */
27641
27642                      #include <stdint.h>
27643
27644 int
27645 main ()
27646 {
27647
27648                     u_intmax_t a; a = 1;
27649
27650   ;
27651   return 0;
27652 }
27653 _ACEOF
27654 if ac_fn_c_try_compile "$LINENO"; then :
27655
27656                     ac_cv_have_u_intmax_t="yes"
27657
27658 else
27659
27660                     ac_cv_have_u_intmax_t="no"
27661
27662
27663 fi
27664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27665
27666
27667 fi
27668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27669
27670
27671 fi
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27673 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27674 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27675    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27676
27677    have_u_intmax_t=1
27678 fi
27679
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27681 $as_echo_n "checking for intXX_t types... " >&6; }
27682 if ${ac_cv_have_intxx_t+:} false; then :
27683   $as_echo_n "(cached) " >&6
27684 else
27685
27686        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27687 /* end confdefs.h.  */
27688
27689               #include <sys/types.h>
27690
27691 int
27692 main ()
27693 {
27694
27695               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27696
27697   ;
27698   return 0;
27699 }
27700 _ACEOF
27701 if ac_fn_c_try_compile "$LINENO"; then :
27702
27703               ac_cv_have_intxx_t="yes"
27704
27705 else
27706
27707               ac_cv_have_intxx_t="no"
27708
27709
27710 fi
27711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27712
27713
27714 fi
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27716 $as_echo "$ac_cv_have_intxx_t" >&6; }
27717 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27718    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27719
27720    have_intxx_t=1
27721 fi
27722
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27724 $as_echo_n "checking for int64_t type... " >&6; }
27725 if ${ac_cv_have_int64_t+:} false; then :
27726   $as_echo_n "(cached) " >&6
27727 else
27728
27729        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27730 /* end confdefs.h.  */
27731
27732               #include <sys/types.h>
27733
27734 int
27735 main ()
27736 {
27737
27738               int64_t a; a = 1;
27739
27740   ;
27741   return 0;
27742 }
27743 _ACEOF
27744 if ac_fn_c_try_compile "$LINENO"; then :
27745
27746               ac_cv_have_int64_t="yes"
27747
27748 else
27749
27750               ac_cv_have_int64_t="no"
27751
27752
27753 fi
27754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27755
27756
27757 fi
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27759 $as_echo "$ac_cv_have_int64_t" >&6; }
27760 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27761    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27762
27763    have_int64_t=1
27764 fi
27765
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27767 $as_echo_n "checking for u_intXX_t types... " >&6; }
27768 if ${ac_cv_have_u_intxx_t+:} false; then :
27769   $as_echo_n "(cached) " >&6
27770 else
27771
27772        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27773 /* end confdefs.h.  */
27774
27775               #include <sys/types.h>
27776
27777 int
27778 main ()
27779 {
27780
27781               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27782
27783   ;
27784   return 0;
27785 }
27786 _ACEOF
27787 if ac_fn_c_try_compile "$LINENO"; then :
27788
27789              ac_cv_have_u_intxx_t="yes"
27790
27791 else
27792
27793              ac_cv_have_u_intxx_t="no"
27794
27795
27796 fi
27797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27798
27799
27800 fi
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27802 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27803 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27804    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27805
27806    have_u_intxx_t=1
27807 fi
27808
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27810 $as_echo_n "checking for u_int64_t types... " >&6; }
27811 if ${ac_cv_have_u_int64_t+:} false; then :
27812   $as_echo_n "(cached) " >&6
27813 else
27814
27815        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816 /* end confdefs.h.  */
27817
27818               #include <sys/types.h>
27819
27820 int
27821 main ()
27822 {
27823
27824               u_int64_t a; a = 1;
27825
27826   ;
27827   return 0;
27828 }
27829 _ACEOF
27830 if ac_fn_c_try_compile "$LINENO"; then :
27831
27832              ac_cv_have_u_int64_t="yes"
27833
27834 else
27835
27836              ac_cv_have_u_int64_t="no"
27837
27838
27839 fi
27840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27841
27842
27843 fi
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27845 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27846 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27847    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27848
27849    have_u_int64_t=1
27850 fi
27851
27852 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27853     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27854 then
27855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27856 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27857    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27858 /* end confdefs.h.  */
27859
27860           #include <sys/bitypes.h>
27861
27862 int
27863 main ()
27864 {
27865
27866           int8_t a; int16_t b; int32_t c;
27867           u_int8_t e; u_int16_t f; u_int32_t g;
27868           a = b = c = e = f = g = 1;
27869
27870   ;
27871   return 0;
27872 }
27873 _ACEOF
27874 if ac_fn_c_try_compile "$LINENO"; then :
27875
27876           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27877
27878           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27879
27880           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27881
27882           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27883 $as_echo "yes" >&6; }
27884
27885 else
27886
27887           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27888 $as_echo "no" >&6; }
27889
27890
27891 fi
27892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27893 fi
27894
27895 if test -z "$have_u_intxx_t" ; then
27896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27897 $as_echo_n "checking for uintXX_t types... " >&6; }
27898 if ${ac_cv_have_uintxx_t+:} false; then :
27899   $as_echo_n "(cached) " >&6
27900 else
27901
27902           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27903 /* end confdefs.h.  */
27904
27905                  #include <sys/types.h>
27906
27907 int
27908 main ()
27909 {
27910
27911                  uint8_t a; uint16_t b;
27912                  uint32_t c; a = b = c = 1;
27913
27914   ;
27915   return 0;
27916 }
27917 _ACEOF
27918 if ac_fn_c_try_compile "$LINENO"; then :
27919
27920                 ac_cv_have_uintxx_t="yes"
27921
27922 else
27923
27924                 ac_cv_have_uintxx_t="no"
27925
27926
27927 fi
27928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27929
27930
27931 fi
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27933 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27934    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27935       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27936
27937    fi
27938 fi
27939
27940 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27941     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27942 then
27943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27944 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27945    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27946 /* end confdefs.h.  */
27947
27948           #include <sys/bitypes.h>
27949
27950 int
27951 main ()
27952 {
27953
27954           int64_t a; u_int64_t b;
27955           a = b = 1;
27956
27957   ;
27958   return 0;
27959 }
27960 _ACEOF
27961 if ac_fn_c_try_compile "$LINENO"; then :
27962
27963           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27964
27965           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27966
27967           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27968 $as_echo "yes" >&6; }
27969
27970 else
27971
27972           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27973 $as_echo "no" >&6; }
27974
27975
27976 fi
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27978 fi
27979
27980 if (test -z "$have_uintxx_t" && \
27981     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27982 then
27983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27984 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27986 /* end confdefs.h.  */
27987
27988           #include <sys/bitypes.h>
27989
27990 int
27991 main ()
27992 {
27993
27994           uint8_t a; uint16_t b;
27995           uint32_t c; a = b = c = 1;
27996
27997   ;
27998   return 0;
27999 }
28000 _ACEOF
28001 if ac_fn_c_try_compile "$LINENO"; then :
28002
28003           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28004
28005           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28006 $as_echo "yes" >&6; }
28007
28008 else
28009
28010           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28011 $as_echo "no" >&6; }
28012
28013
28014 fi
28015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28016 fi
28017
28018 for ac_func in \
28019    fork \
28020    getcwd \
28021    gethostname \
28022    getpid \
28023    gettimeofday \
28024    setpgid \
28025    setpgrp \
28026    setsid \
28027    signal \
28028    strerror \
28029    strncmp \
28030    strncpy \
28031    vfprintf \
28032
28033 do :
28034   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28035 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28036 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28037   cat >>confdefs.h <<_ACEOF
28038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28039 _ACEOF
28040
28041 else
28042   echo 'configure: cannot find needed function.'; exit 1
28043
28044 fi
28045 done
28046
28047
28048 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28049
28050 "
28051 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28052
28053 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28054
28055 fi
28056
28057
28058 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28059 if test "x$ac_cv_func_closefrom" = xyes; then :
28060
28061 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28062
28063 fi
28064
28065 for ac_func in getpagesize
28066 do :
28067   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28068 if test "x$ac_cv_func_getpagesize" = xyes; then :
28069   cat >>confdefs.h <<_ACEOF
28070 #define HAVE_GETPAGESIZE 1
28071 _ACEOF
28072
28073 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28074
28075 fi
28076 done
28077
28078 for ac_func in malloc_trim
28079 do :
28080   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28081 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28082   cat >>confdefs.h <<_ACEOF
28083 #define HAVE_MALLOC_TRIM 1
28084 _ACEOF
28085
28086 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28087
28088 fi
28089 done
28090
28091
28092 for ac_func in fchdir
28093 do :
28094   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28095 if test "x$ac_cv_func_fchdir" = xyes; then :
28096   cat >>confdefs.h <<_ACEOF
28097 #define HAVE_FCHDIR 1
28098 _ACEOF
28099  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28100
28101 fi
28102 done
28103
28104 for ac_func in strtoll
28105 do :
28106   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28107 if test "x$ac_cv_func_strtoll" = xyes; then :
28108   cat >>confdefs.h <<_ACEOF
28109 #define HAVE_STRTOLL 1
28110 _ACEOF
28111  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28112
28113 fi
28114 done
28115
28116 for ac_func in posix_fadvise
28117 do :
28118   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28119 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28120   cat >>confdefs.h <<_ACEOF
28121 #define HAVE_POSIX_FADVISE 1
28122 _ACEOF
28123
28124 fi
28125 done
28126
28127 for ac_func in fdatasync
28128 do :
28129   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28130 if test "x$ac_cv_func_fdatasync" = xyes; then :
28131   cat >>confdefs.h <<_ACEOF
28132 #define HAVE_FDATASYNC 1
28133 _ACEOF
28134
28135 fi
28136 done
28137
28138
28139 for ac_func in chflags
28140 do :
28141   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28142 if test "x$ac_cv_func_chflags" = xyes; then :
28143   cat >>confdefs.h <<_ACEOF
28144 #define HAVE_CHFLAGS 1
28145 _ACEOF
28146
28147 fi
28148 done
28149
28150
28151 for ac_func in snprintf vsnprintf gethostid fseeko
28152 do :
28153   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28154 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28155 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28156   cat >>confdefs.h <<_ACEOF
28157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28158 _ACEOF
28159
28160 fi
28161 done
28162
28163
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28165 $as_echo_n "checking for va_copy... " >&6; }
28166 if ${ba_cv_va_copy+:} false; then :
28167   $as_echo_n "(cached) " >&6
28168 else
28169
28170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28171 /* end confdefs.h.  */
28172
28173               #include <stdarg.h>
28174               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28175               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28176
28177 int
28178 main ()
28179 {
28180
28181               call_use_va_copy(1,2,3)
28182
28183   ;
28184   return 0;
28185 }
28186 _ACEOF
28187 if ac_fn_c_try_link "$LINENO"; then :
28188
28189               ba_cv_va_copy=yes
28190
28191 else
28192
28193               ba_cv_va_copy=no
28194
28195
28196 fi
28197 rm -f core conftest.err conftest.$ac_objext \
28198     conftest$ac_exeext conftest.$ac_ext
28199
28200
28201 fi
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28203 $as_echo "$ba_cv_va_copy" >&6; }
28204 test $ba_cv_va_copy = yes &&
28205 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28206
28207
28208 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28209 do :
28210   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28213   cat >>confdefs.h <<_ACEOF
28214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28215 _ACEOF
28216
28217 fi
28218 done
28219
28220
28221 # If resolver functions are not in libc check for -lnsl or -lresolv.
28222 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28223 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28225 $as_echo "using libc's resolver" >&6; }
28226 else
28227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28228 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28229 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28230   $as_echo_n "(cached) " >&6
28231 else
28232   ac_check_lib_save_LIBS=$LIBS
28233 LIBS="-lnsl  $LIBS"
28234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h.  */
28236
28237 /* Override any GCC internal prototype to avoid an error.
28238    Use char because int might match the return type of a GCC
28239    builtin and then its argument prototype would still apply.  */
28240 #ifdef __cplusplus
28241 extern "C"
28242 #endif
28243 char gethostbyname_r ();
28244 int
28245 main ()
28246 {
28247 return gethostbyname_r ();
28248   ;
28249   return 0;
28250 }
28251 _ACEOF
28252 if ac_fn_c_try_link "$LINENO"; then :
28253   ac_cv_lib_nsl_gethostbyname_r=yes
28254 else
28255   ac_cv_lib_nsl_gethostbyname_r=no
28256 fi
28257 rm -f core conftest.err conftest.$ac_objext \
28258     conftest$ac_exeext conftest.$ac_ext
28259 LIBS=$ac_check_lib_save_LIBS
28260 fi
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28262 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28263 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28264   cat >>confdefs.h <<_ACEOF
28265 #define HAVE_LIBNSL 1
28266 _ACEOF
28267
28268   LIBS="-lnsl $LIBS"
28269
28270 fi
28271
28272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28273 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28274 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28275   $as_echo_n "(cached) " >&6
28276 else
28277   ac_check_lib_save_LIBS=$LIBS
28278 LIBS="-lresolv  $LIBS"
28279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28280 /* end confdefs.h.  */
28281
28282 /* Override any GCC internal prototype to avoid an error.
28283    Use char because int might match the return type of a GCC
28284    builtin and then its argument prototype would still apply.  */
28285 #ifdef __cplusplus
28286 extern "C"
28287 #endif
28288 char gethostbyname_r ();
28289 int
28290 main ()
28291 {
28292 return gethostbyname_r ();
28293   ;
28294   return 0;
28295 }
28296 _ACEOF
28297 if ac_fn_c_try_link "$LINENO"; then :
28298   ac_cv_lib_resolv_gethostbyname_r=yes
28299 else
28300   ac_cv_lib_resolv_gethostbyname_r=no
28301 fi
28302 rm -f core conftest.err conftest.$ac_objext \
28303     conftest$ac_exeext conftest.$ac_ext
28304 LIBS=$ac_check_lib_save_LIBS
28305 fi
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28307 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28308 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28309   cat >>confdefs.h <<_ACEOF
28310 #define HAVE_LIBRESOLV 1
28311 _ACEOF
28312
28313   LIBS="-lresolv $LIBS"
28314
28315 fi
28316
28317 fi
28318
28319
28320 for ac_func in inet_pton
28321 do :
28322   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28323 if test "x$ac_cv_func_inet_pton" = xyes; then :
28324   cat >>confdefs.h <<_ACEOF
28325 #define HAVE_INET_PTON 1
28326 _ACEOF
28327  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28328
28329 fi
28330 done
28331
28332 for ac_func in inet_ntop
28333 do :
28334   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28335 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28336   cat >>confdefs.h <<_ACEOF
28337 #define HAVE_INET_NTOP 1
28338 _ACEOF
28339  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28340
28341 fi
28342 done
28343
28344 for ac_func in gethostbyname2
28345 do :
28346   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28347 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28348   cat >>confdefs.h <<_ACEOF
28349 #define HAVE_GETHOSTBYNAME2 1
28350 _ACEOF
28351  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28352
28353 fi
28354 done
28355
28356 for ac_func in getnameinfo
28357 do :
28358   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28359 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28360   cat >>confdefs.h <<_ACEOF
28361 #define HAVE_GETNAMEINFO 1
28362 _ACEOF
28363  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28364
28365 fi
28366 done
28367
28368
28369
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28371 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28372 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28373   $as_echo_n "(cached) " >&6
28374 else
28375
28376        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28377 /* end confdefs.h.  */
28378
28379               #include <sys/socket.h>
28380
28381 int
28382 main ()
28383 {
28384
28385               struct sockaddr s; s.sa_len;
28386
28387   ;
28388   return 0;
28389 }
28390 _ACEOF
28391 if ac_fn_c_try_compile "$LINENO"; then :
28392
28393              ac_cv_struct_sockaddr_sa_len=yes
28394
28395 else
28396   ac_cv_struct_sockaddr_sa_len=no
28397
28398
28399 fi
28400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28401
28402
28403 fi
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28405 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28406
28407 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28408
28409 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28410
28411 fi
28412
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28414 $as_echo_n "checking for working getaddrinfo... " >&6; }
28415 if ${ac_cv_working_getaddrinfo+:} false; then :
28416   $as_echo_n "(cached) " >&6
28417 else
28418
28419        if test "$cross_compiling" = yes; then :
28420
28421               ac_cv_working_getaddrinfo="yes"
28422
28423
28424 else
28425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28426 /* end confdefs.h.  */
28427
28428               #include <netdb.h>
28429               #include <string.h>
28430               #include <sys/types.h>
28431               #include <sys/socket.h>
28432
28433               void main(void) {
28434                   struct addrinfo hints, *ai;
28435                   int error;
28436
28437                   memset(&hints, 0, sizeof(hints));
28438                   hints.ai_family = AF_UNSPEC;
28439                   hints.ai_socktype = SOCK_STREAM;
28440                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28441                   if (error) {
28442                       exit(1);
28443                   }
28444                   if (ai->ai_addr->sa_family != AF_INET) {
28445                       exit(1);
28446                   }
28447                   exit(0);
28448               }
28449
28450 _ACEOF
28451 if ac_fn_c_try_run "$LINENO"; then :
28452
28453               ac_cv_working_getaddrinfo="yes"
28454
28455 else
28456
28457               ac_cv_working_getaddrinfo="no"
28458
28459 fi
28460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28461   conftest.$ac_objext conftest.beam conftest.$ac_ext
28462 fi
28463
28464
28465
28466 fi
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28468 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28469 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28470 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28471
28472 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28473
28474 fi
28475
28476
28477 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28478   if test "$ac_cv_func_gai_strerror" != "yes"; then
28479     ac_cv_working_getaddrinfo="no"
28480   else
28481
28482 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28483
28484   fi
28485 fi
28486
28487 for ac_func in strftime
28488 do :
28489   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28490 if test "x$ac_cv_func_strftime" = xyes; then :
28491   cat >>confdefs.h <<_ACEOF
28492 #define HAVE_STRFTIME 1
28493 _ACEOF
28494
28495 else
28496   # strftime is in -lintl on SCO UNIX.
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28498 $as_echo_n "checking for strftime in -lintl... " >&6; }
28499 if ${ac_cv_lib_intl_strftime+:} false; then :
28500   $as_echo_n "(cached) " >&6
28501 else
28502   ac_check_lib_save_LIBS=$LIBS
28503 LIBS="-lintl  $LIBS"
28504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28505 /* end confdefs.h.  */
28506
28507 /* Override any GCC internal prototype to avoid an error.
28508    Use char because int might match the return type of a GCC
28509    builtin and then its argument prototype would still apply.  */
28510 #ifdef __cplusplus
28511 extern "C"
28512 #endif
28513 char strftime ();
28514 int
28515 main ()
28516 {
28517 return strftime ();
28518   ;
28519   return 0;
28520 }
28521 _ACEOF
28522 if ac_fn_c_try_link "$LINENO"; then :
28523   ac_cv_lib_intl_strftime=yes
28524 else
28525   ac_cv_lib_intl_strftime=no
28526 fi
28527 rm -f core conftest.err conftest.$ac_objext \
28528     conftest$ac_exeext conftest.$ac_ext
28529 LIBS=$ac_check_lib_save_LIBS
28530 fi
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28532 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28533 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28534   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28535
28536 LIBS="-lintl $LIBS"
28537 fi
28538
28539 fi
28540 done
28541
28542 for ac_func in vprintf
28543 do :
28544   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28545 if test "x$ac_cv_func_vprintf" = xyes; then :
28546   cat >>confdefs.h <<_ACEOF
28547 #define HAVE_VPRINTF 1
28548 _ACEOF
28549
28550 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28551 if test "x$ac_cv_func__doprnt" = xyes; then :
28552
28553 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28554
28555 fi
28556
28557 fi
28558 done
28559
28560
28561 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28562 # for constant arguments.  Useless!
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28564 $as_echo_n "checking for working alloca.h... " >&6; }
28565 if ${ac_cv_working_alloca_h+:} false; then :
28566   $as_echo_n "(cached) " >&6
28567 else
28568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28569 /* end confdefs.h.  */
28570 #include <alloca.h>
28571 int
28572 main ()
28573 {
28574 char *p = (char *) alloca (2 * sizeof (int));
28575                           if (p) return 0;
28576   ;
28577   return 0;
28578 }
28579 _ACEOF
28580 if ac_fn_c_try_link "$LINENO"; then :
28581   ac_cv_working_alloca_h=yes
28582 else
28583   ac_cv_working_alloca_h=no
28584 fi
28585 rm -f core conftest.err conftest.$ac_objext \
28586     conftest$ac_exeext conftest.$ac_ext
28587 fi
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28589 $as_echo "$ac_cv_working_alloca_h" >&6; }
28590 if test $ac_cv_working_alloca_h = yes; then
28591
28592 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28593
28594 fi
28595
28596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28597 $as_echo_n "checking for alloca... " >&6; }
28598 if ${ac_cv_func_alloca_works+:} false; then :
28599   $as_echo_n "(cached) " >&6
28600 else
28601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28602 /* end confdefs.h.  */
28603 #ifdef __GNUC__
28604 # define alloca __builtin_alloca
28605 #else
28606 # ifdef _MSC_VER
28607 #  include <malloc.h>
28608 #  define alloca _alloca
28609 # else
28610 #  ifdef HAVE_ALLOCA_H
28611 #   include <alloca.h>
28612 #  else
28613 #   ifdef _AIX
28614  #pragma alloca
28615 #   else
28616 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28617 void *alloca (size_t);
28618 #    endif
28619 #   endif
28620 #  endif
28621 # endif
28622 #endif
28623
28624 int
28625 main ()
28626 {
28627 char *p = (char *) alloca (1);
28628                                     if (p) return 0;
28629   ;
28630   return 0;
28631 }
28632 _ACEOF
28633 if ac_fn_c_try_link "$LINENO"; then :
28634   ac_cv_func_alloca_works=yes
28635 else
28636   ac_cv_func_alloca_works=no
28637 fi
28638 rm -f core conftest.err conftest.$ac_objext \
28639     conftest$ac_exeext conftest.$ac_ext
28640 fi
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28642 $as_echo "$ac_cv_func_alloca_works" >&6; }
28643
28644 if test $ac_cv_func_alloca_works = yes; then
28645
28646 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28647
28648 else
28649   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28650 # that cause trouble.  Some versions do not even contain alloca or
28651 # contain a buggy version.  If you still want to use their alloca,
28652 # use ar to extract alloca.o from them instead of compiling alloca.c.
28653
28654 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28655
28656 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28657
28658
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28660 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28661 if ${ac_cv_os_cray+:} false; then :
28662   $as_echo_n "(cached) " >&6
28663 else
28664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28665 /* end confdefs.h.  */
28666 #if defined CRAY && ! defined CRAY2
28667 webecray
28668 #else
28669 wenotbecray
28670 #endif
28671
28672 _ACEOF
28673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28674   $EGREP "webecray" >/dev/null 2>&1; then :
28675   ac_cv_os_cray=yes
28676 else
28677   ac_cv_os_cray=no
28678 fi
28679 rm -f conftest*
28680
28681 fi
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28683 $as_echo "$ac_cv_os_cray" >&6; }
28684 if test $ac_cv_os_cray = yes; then
28685   for ac_func in _getb67 GETB67 getb67; do
28686     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28687 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28688 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28689
28690 cat >>confdefs.h <<_ACEOF
28691 #define CRAY_STACKSEG_END $ac_func
28692 _ACEOF
28693
28694     break
28695 fi
28696
28697   done
28698 fi
28699
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28701 $as_echo_n "checking stack direction for C alloca... " >&6; }
28702 if ${ac_cv_c_stack_direction+:} false; then :
28703   $as_echo_n "(cached) " >&6
28704 else
28705   if test "$cross_compiling" = yes; then :
28706   ac_cv_c_stack_direction=0
28707 else
28708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28709 /* end confdefs.h.  */
28710 $ac_includes_default
28711 int
28712 find_stack_direction ()
28713 {
28714   static char *addr = 0;
28715   auto char dummy;
28716   if (addr == 0)
28717     {
28718       addr = &dummy;
28719       return find_stack_direction ();
28720     }
28721   else
28722     return (&dummy > addr) ? 1 : -1;
28723 }
28724
28725 int
28726 main ()
28727 {
28728   return find_stack_direction () < 0;
28729 }
28730 _ACEOF
28731 if ac_fn_c_try_run "$LINENO"; then :
28732   ac_cv_c_stack_direction=1
28733 else
28734   ac_cv_c_stack_direction=-1
28735 fi
28736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28737   conftest.$ac_objext conftest.beam conftest.$ac_ext
28738 fi
28739
28740 fi
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28742 $as_echo "$ac_cv_c_stack_direction" >&6; }
28743 cat >>confdefs.h <<_ACEOF
28744 #define STACK_DIRECTION $ac_cv_c_stack_direction
28745 _ACEOF
28746
28747
28748 fi
28749
28750 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28751 # -lseq on Dynix/PTX, -lgen on Unixware.
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28753 $as_echo_n "checking for library containing getmntent... " >&6; }
28754 if ${ac_cv_search_getmntent+:} false; then :
28755   $as_echo_n "(cached) " >&6
28756 else
28757   ac_func_search_save_LIBS=$LIBS
28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h.  */
28760
28761 /* Override any GCC internal prototype to avoid an error.
28762    Use char because int might match the return type of a GCC
28763    builtin and then its argument prototype would still apply.  */
28764 #ifdef __cplusplus
28765 extern "C"
28766 #endif
28767 char getmntent ();
28768 int
28769 main ()
28770 {
28771 return getmntent ();
28772   ;
28773   return 0;
28774 }
28775 _ACEOF
28776 for ac_lib in '' sun seq gen; do
28777   if test -z "$ac_lib"; then
28778     ac_res="none required"
28779   else
28780     ac_res=-l$ac_lib
28781     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28782   fi
28783   if ac_fn_c_try_link "$LINENO"; then :
28784   ac_cv_search_getmntent=$ac_res
28785 fi
28786 rm -f core conftest.err conftest.$ac_objext \
28787     conftest$ac_exeext
28788   if ${ac_cv_search_getmntent+:} false; then :
28789   break
28790 fi
28791 done
28792 if ${ac_cv_search_getmntent+:} false; then :
28793
28794 else
28795   ac_cv_search_getmntent=no
28796 fi
28797 rm conftest.$ac_ext
28798 LIBS=$ac_func_search_save_LIBS
28799 fi
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28801 $as_echo "$ac_cv_search_getmntent" >&6; }
28802 ac_res=$ac_cv_search_getmntent
28803 if test "$ac_res" != no; then :
28804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28805   ac_cv_func_getmntent=yes
28806
28807 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28808
28809 else
28810   ac_cv_func_getmntent=no
28811 fi
28812
28813
28814 for ac_func in getmntinfo
28815 do :
28816   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28817 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28818   cat >>confdefs.h <<_ACEOF
28819 #define HAVE_GETMNTINFO 1
28820 _ACEOF
28821  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28822
28823 fi
28824 done
28825
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28827 $as_echo_n "checking whether closedir returns void... " >&6; }
28828 if ${ac_cv_func_closedir_void+:} false; then :
28829   $as_echo_n "(cached) " >&6
28830 else
28831   if test "$cross_compiling" = yes; then :
28832   ac_cv_func_closedir_void=yes
28833 else
28834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28835 /* end confdefs.h.  */
28836 $ac_includes_default
28837 #include <$ac_header_dirent>
28838 #ifndef __cplusplus
28839 int closedir ();
28840 #endif
28841
28842 int
28843 main ()
28844 {
28845 return closedir (opendir (".")) != 0;
28846   ;
28847   return 0;
28848 }
28849 _ACEOF
28850 if ac_fn_c_try_run "$LINENO"; then :
28851   ac_cv_func_closedir_void=no
28852 else
28853   ac_cv_func_closedir_void=yes
28854 fi
28855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28856   conftest.$ac_objext conftest.beam conftest.$ac_ext
28857 fi
28858
28859 fi
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28861 $as_echo "$ac_cv_func_closedir_void" >&6; }
28862 if test $ac_cv_func_closedir_void = yes; then
28863
28864 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28865
28866 fi
28867
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28869 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28870 if ${ac_cv_func_setpgrp_void+:} false; then :
28871   $as_echo_n "(cached) " >&6
28872 else
28873   if test "$cross_compiling" = yes; then :
28874   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28875 else
28876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28877 /* end confdefs.h.  */
28878 $ac_includes_default
28879 int
28880 main ()
28881 {
28882 /* If this system has a BSD-style setpgrp which takes arguments,
28883   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28884   exit successfully. */
28885   return setpgrp (1,1) != -1;
28886   ;
28887   return 0;
28888 }
28889 _ACEOF
28890 if ac_fn_c_try_run "$LINENO"; then :
28891   ac_cv_func_setpgrp_void=no
28892 else
28893   ac_cv_func_setpgrp_void=yes
28894 fi
28895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28896   conftest.$ac_objext conftest.beam conftest.$ac_ext
28897 fi
28898
28899 fi
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28901 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28902 if test $ac_cv_func_setpgrp_void = yes; then
28903
28904 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28905
28906 fi
28907             # AC_FUNC_FNMATCH    dnl use local version
28908
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28910 $as_echo_n "checking for gettext in -lintl... " >&6; }
28911 if ${ac_cv_lib_intl_gettext+:} false; then :
28912   $as_echo_n "(cached) " >&6
28913 else
28914   ac_check_lib_save_LIBS=$LIBS
28915 LIBS="-lintl  $LIBS"
28916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28917 /* end confdefs.h.  */
28918
28919 /* Override any GCC internal prototype to avoid an error.
28920    Use char because int might match the return type of a GCC
28921    builtin and then its argument prototype would still apply.  */
28922 #ifdef __cplusplus
28923 extern "C"
28924 #endif
28925 char gettext ();
28926 int
28927 main ()
28928 {
28929 return gettext ();
28930   ;
28931   return 0;
28932 }
28933 _ACEOF
28934 if ac_fn_c_try_link "$LINENO"; then :
28935   ac_cv_lib_intl_gettext=yes
28936 else
28937   ac_cv_lib_intl_gettext=no
28938 fi
28939 rm -f core conftest.err conftest.$ac_objext \
28940     conftest$ac_exeext conftest.$ac_ext
28941 LIBS=$ac_check_lib_save_LIBS
28942 fi
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28944 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28945 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28946   LIBS="$LIBS -lintl"
28947 fi
28948
28949
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28951 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28952 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28953   $as_echo_n "(cached) " >&6
28954 else
28955   ac_check_lib_save_LIBS=$LIBS
28956 LIBS="-lsun  $LIBS"
28957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958 /* end confdefs.h.  */
28959
28960 /* Override any GCC internal prototype to avoid an error.
28961    Use char because int might match the return type of a GCC
28962    builtin and then its argument prototype would still apply.  */
28963 #ifdef __cplusplus
28964 extern "C"
28965 #endif
28966 char getpwnam ();
28967 int
28968 main ()
28969 {
28970 return getpwnam ();
28971   ;
28972   return 0;
28973 }
28974 _ACEOF
28975 if ac_fn_c_try_link "$LINENO"; then :
28976   ac_cv_lib_sun_getpwnam=yes
28977 else
28978   ac_cv_lib_sun_getpwnam=no
28979 fi
28980 rm -f core conftest.err conftest.$ac_objext \
28981     conftest$ac_exeext conftest.$ac_ext
28982 LIBS=$ac_check_lib_save_LIBS
28983 fi
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28985 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28986 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28987   cat >>confdefs.h <<_ACEOF
28988 #define HAVE_LIBSUN 1
28989 _ACEOF
28990
28991   LIBS="-lsun $LIBS"
28992
28993 fi
28994
28995
28996 for ac_header in zlib.h
28997 do :
28998   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28999 if test "x$ac_cv_header_zlib_h" = xyes; then :
29000   cat >>confdefs.h <<_ACEOF
29001 #define HAVE_ZLIB_H 1
29002 _ACEOF
29003
29004 fi
29005
29006 done
29007
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29009 $as_echo_n "checking for deflate in -lz... " >&6; }
29010 if ${ac_cv_lib_z_deflate+:} false; then :
29011   $as_echo_n "(cached) " >&6
29012 else
29013   ac_check_lib_save_LIBS=$LIBS
29014 LIBS="-lz  $LIBS"
29015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29016 /* end confdefs.h.  */
29017
29018 /* Override any GCC internal prototype to avoid an error.
29019    Use char because int might match the return type of a GCC
29020    builtin and then its argument prototype would still apply.  */
29021 #ifdef __cplusplus
29022 extern "C"
29023 #endif
29024 char deflate ();
29025 int
29026 main ()
29027 {
29028 return deflate ();
29029   ;
29030   return 0;
29031 }
29032 _ACEOF
29033 if ac_fn_c_try_link "$LINENO"; then :
29034   ac_cv_lib_z_deflate=yes
29035 else
29036   ac_cv_lib_z_deflate=no
29037 fi
29038 rm -f core conftest.err conftest.$ac_objext \
29039     conftest$ac_exeext conftest.$ac_ext
29040 LIBS=$ac_check_lib_save_LIBS
29041 fi
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29043 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29044 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29045   ZLIBS="-lz"
29046 fi
29047
29048 have_zlib=no
29049 if test x$ZLIBS = x-lz; then
29050    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29051
29052    have_zlib=yes
29053 fi
29054
29055
29056 AFS_CFLAGS=""
29057 AFS_LIBS=""
29058 support_afs=auto
29059 # Check whether --enable-afs was given.
29060 if test "${enable_afs+set}" = set; then :
29061   enableval=$enable_afs;
29062        if test x$enableval = xyes; then
29063           support_afs=yes
29064        elif test x$enableval = xno; then
29065           support_afs=no
29066        fi
29067
29068
29069 fi
29070
29071
29072 have_afs=no
29073 if test x$support_afs = xyes -o x$support_afs = xauto; then
29074
29075 # Check whether --with-afsdir was given.
29076 if test "${with_afsdir+set}" = set; then :
29077   withval=$with_afsdir; with_afsdir=$withval
29078
29079 fi
29080
29081
29082             if test x$with_afsdir = x; then
29083       for root in /usr /usr/local; do
29084          if test -d ${root}/include/afs/ ; then
29085             with_afsdir=${root}
29086             break
29087          fi
29088          if test -d ${root}/include/openafs/afs/ ; then
29089             with_afsdir=${root}
29090             break
29091          fi
29092       done
29093    fi
29094
29095    if test -d ${with_afsdir}/include/afs/ ; then
29096       AFS_CFLAGS="-I${with_afsdir}/include"
29097    else
29098       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29099          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29100       fi
29101    fi
29102
29103    saved_CFLAGS="${CFLAGS}"
29104    saved_CPPFLAGS="${CPPFLAGS}"
29105    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29106    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29107
29108    for ac_header in afs/afsint.h
29109 do :
29110   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29111 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29112   cat >>confdefs.h <<_ACEOF
29113 #define HAVE_AFS_AFSINT_H 1
29114 _ACEOF
29115
29116 fi
29117
29118 done
29119
29120    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29121 /* end confdefs.h.  */
29122
29123           #include <afs/afsint.h>
29124           #include <afs/venus.h>
29125
29126 _ACEOF
29127 if ac_fn_c_try_cpp "$LINENO"; then :
29128
29129 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29130
29131
29132 fi
29133 rm -f conftest.err conftest.i conftest.$ac_ext
29134
29135    CFLAGS="${saved_CFLAGS}"
29136    CPPFLAGS="${saved_CPPFLAGS}"
29137
29138             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29139 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29140    for dir in ${with_afsdir}/lib \
29141               ${with_afsdir}/lib/afs \
29142               ${with_afsdir}/lib/openafs \
29143               ${with_afsdir}/lib64 \
29144               ${with_afsdir}/lib64/afs \
29145               ${with_afsdir}/lib64/openafs
29146    do
29147       for arch_type in .a .so
29148       do
29149          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29150          pkg=$?
29151          if test $pkg = 0; then
29152             have_afs=yes
29153             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29154             break
29155          fi
29156       done
29157    done
29158
29159    if test $have_afs = yes; then
29160       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29161 $as_echo "yes" >&6; }
29162    else
29163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29164 $as_echo "no" >&6; }
29165    fi
29166
29167    if test x$support_afs = xyes -a $have_afs != yes; then
29168       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29169   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29170    else
29171       if test $have_afs = yes; then
29172
29173 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29174
29175
29176 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29177
29178       fi
29179    fi
29180 fi
29181
29182
29183
29184
29185 # Check whether --enable-lzo was given.
29186 if test "${enable_lzo+set}" = set; then :
29187   enableval=$enable_lzo;
29188        if test x$enableval = xno; then
29189           support_lzo=no
29190        fi
29191
29192
29193 fi
29194
29195
29196 LZO_INC=
29197 LZO_LIBS=
29198 LZO_LDFLAGS=
29199
29200 have_lzo="no"
29201 if test x$support_lzo = xyes; then
29202
29203 # Check whether --with-lzo was given.
29204 if test "${with_lzo+set}" = set; then :
29205   withval=$with_lzo;
29206           case "$with_lzo" in
29207           no)
29208              :
29209              ;;
29210           yes|*)
29211              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29212                 LZO_INC="-I${with_lzo}/include"
29213                 LZO_LDFLAGS="-L${with_lzo}/lib"
29214                 with_lzo="${with_lzo}/include"
29215              else
29216                 with_lzo="/usr/include"
29217              fi
29218
29219              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29220 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29221 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29222
29223
29224 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29225
29226                     LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29227                     have_lzo="yes"
29228
29229 else
29230
29231                     echo " "
29232                     echo "lzoconf.h not found. lzo turned off ..."
29233                     echo " "
29234
29235
29236 fi
29237
29238
29239              ;;
29240           esac
29241
29242 else
29243
29244          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29245 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29246
29247             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29248 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29249
29250                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29251 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29252 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29253   $as_echo_n "(cached) " >&6
29254 else
29255   ac_check_lib_save_LIBS=$LIBS
29256 LIBS="-llzo2  $LIBS"
29257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29258 /* end confdefs.h.  */
29259
29260 /* Override any GCC internal prototype to avoid an error.
29261    Use char because int might match the return type of a GCC
29262    builtin and then its argument prototype would still apply.  */
29263 #ifdef __cplusplus
29264 extern "C"
29265 #endif
29266 char lzo1x_1_compress ();
29267 int
29268 main ()
29269 {
29270 return lzo1x_1_compress ();
29271   ;
29272   return 0;
29273 }
29274 _ACEOF
29275 if ac_fn_c_try_link "$LINENO"; then :
29276   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29277 else
29278   ac_cv_lib_lzo2_lzo1x_1_compress=no
29279 fi
29280 rm -f core conftest.err conftest.$ac_objext \
29281     conftest$ac_exeext conftest.$ac_ext
29282 LIBS=$ac_check_lib_save_LIBS
29283 fi
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29285 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29286 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29287
29288                  LZO_LIBS="-llzo2"
29289
29290 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29291
29292                  have_lzo=yes
29293
29294 fi
29295
29296
29297 fi
29298
29299
29300
29301 fi
29302
29303
29304
29305 fi
29306
29307 fi
29308
29309
29310
29311
29312
29313 support_acl=auto
29314 # Check whether --enable-acl was given.
29315 if test "${enable_acl+set}" = set; then :
29316   enableval=$enable_acl;
29317        if test x$enableval = xyes; then
29318           support_acl=yes
29319        elif test x$enableval = xno; then
29320           support_acl=no
29321        fi
29322
29323
29324 fi
29325
29326
29327 have_acl=no
29328 have_extended_acl=no
29329 if test x$support_acl = xyes -o x$support_acl = xauto; then
29330    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29331 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29332
29333 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29334
29335 fi
29336
29337
29338
29339             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29340 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29341
29342           have_acl=yes
29343
29344
29345 fi
29346
29347
29348             if test $have_acl = no; then
29349       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29350 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29351 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29352   $as_echo_n "(cached) " >&6
29353 else
29354   ac_check_lib_save_LIBS=$LIBS
29355 LIBS="-lacl  $LIBS"
29356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29357 /* end confdefs.h.  */
29358
29359 /* Override any GCC internal prototype to avoid an error.
29360    Use char because int might match the return type of a GCC
29361    builtin and then its argument prototype would still apply.  */
29362 #ifdef __cplusplus
29363 extern "C"
29364 #endif
29365 char acl_get_file ();
29366 int
29367 main ()
29368 {
29369 return acl_get_file ();
29370   ;
29371   return 0;
29372 }
29373 _ACEOF
29374 if ac_fn_c_try_link "$LINENO"; then :
29375   ac_cv_lib_acl_acl_get_file=yes
29376 else
29377   ac_cv_lib_acl_acl_get_file=no
29378 fi
29379 rm -f core conftest.err conftest.$ac_objext \
29380     conftest$ac_exeext conftest.$ac_ext
29381 LIBS=$ac_check_lib_save_LIBS
29382 fi
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29384 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29385 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29386
29387              have_acl=yes
29388              if test $have_afs = yes; then
29389                                                                 if test -d /usr/lib64/; then
29390                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29391                 else
29392                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29393                 fi
29394              else
29395                 FDLIBS="-lacl $FDLIBS"
29396              fi
29397
29398
29399 fi
29400
29401    fi
29402
29403                if test $have_acl = no -a \
29404            x${HAVE_OSF1_OS_TRUE} = x; then
29405       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29406 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29407 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29408   $as_echo_n "(cached) " >&6
29409 else
29410   ac_check_lib_save_LIBS=$LIBS
29411 LIBS="-lpacl  $LIBS"
29412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29413 /* end confdefs.h.  */
29414
29415 /* Override any GCC internal prototype to avoid an error.
29416    Use char because int might match the return type of a GCC
29417    builtin and then its argument prototype would still apply.  */
29418 #ifdef __cplusplus
29419 extern "C"
29420 #endif
29421 char acl_get_file ();
29422 int
29423 main ()
29424 {
29425 return acl_get_file ();
29426   ;
29427   return 0;
29428 }
29429 _ACEOF
29430 if ac_fn_c_try_link "$LINENO"; then :
29431   ac_cv_lib_pacl_acl_get_file=yes
29432 else
29433   ac_cv_lib_pacl_acl_get_file=no
29434 fi
29435 rm -f core conftest.err conftest.$ac_objext \
29436     conftest$ac_exeext conftest.$ac_ext
29437 LIBS=$ac_check_lib_save_LIBS
29438 fi
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29440 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29441 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29442
29443              have_acl=yes
29444              FDLIBS="-lpacl $FDLIBS"
29445
29446
29447 fi
29448
29449
29450       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29451 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29452       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29453       if test $? = 0; then
29454
29455 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29456
29457          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29458 $as_echo "yes" >&6; }
29459       else
29460          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29461 $as_echo "no" >&6; }
29462       fi
29463    fi
29464
29465             if test $have_acl = yes -a \
29466            x${HAVE_DARWIN_OS_TRUE} = x; then
29467       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29468 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29469       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29470       if test $? = 0; then
29471
29472 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29473
29474          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29475 $as_echo "yes" >&6; }
29476       else
29477          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29478 $as_echo "no" >&6; }
29479       fi
29480    fi
29481
29482             if test $have_acl = yes -a \
29483            x${HAVE_FREEBSD_OS_TRUE} = x; then
29484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29485 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29486       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29487       if test $? = 0; then
29488
29489 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29490
29491          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29492 $as_echo "yes" >&6; }
29493       else
29494          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29495 $as_echo "no" >&6; }
29496       fi
29497    fi
29498
29499             if test $have_acl = no -a \
29500            x${HAVE_SUN_OS_TRUE} = x; then
29501       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29502 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29503 if ${ac_cv_lib_sec_acltotext+:} false; then :
29504   $as_echo_n "(cached) " >&6
29505 else
29506   ac_check_lib_save_LIBS=$LIBS
29507 LIBS="-lsec  $LIBS"
29508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29509 /* end confdefs.h.  */
29510
29511 /* Override any GCC internal prototype to avoid an error.
29512    Use char because int might match the return type of a GCC
29513    builtin and then its argument prototype would still apply.  */
29514 #ifdef __cplusplus
29515 extern "C"
29516 #endif
29517 char acltotext ();
29518 int
29519 main ()
29520 {
29521 return acltotext ();
29522   ;
29523   return 0;
29524 }
29525 _ACEOF
29526 if ac_fn_c_try_link "$LINENO"; then :
29527   ac_cv_lib_sec_acltotext=yes
29528 else
29529   ac_cv_lib_sec_acltotext=no
29530 fi
29531 rm -f core conftest.err conftest.$ac_objext \
29532     conftest$ac_exeext conftest.$ac_ext
29533 LIBS=$ac_check_lib_save_LIBS
29534 fi
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29536 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29537 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29538
29539              have_acl=yes
29540              FDLIBS="-lsec $FDLIBS"
29541
29542              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29543 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29544 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29545   $as_echo_n "(cached) " >&6
29546 else
29547   ac_check_lib_save_LIBS=$LIBS
29548 LIBS="-lsec  $LIBS"
29549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29550 /* end confdefs.h.  */
29551
29552 /* Override any GCC internal prototype to avoid an error.
29553    Use char because int might match the return type of a GCC
29554    builtin and then its argument prototype would still apply.  */
29555 #ifdef __cplusplus
29556 extern "C"
29557 #endif
29558 char acl_totext ();
29559 int
29560 main ()
29561 {
29562 return acl_totext ();
29563   ;
29564   return 0;
29565 }
29566 _ACEOF
29567 if ac_fn_c_try_link "$LINENO"; then :
29568   ac_cv_lib_sec_acl_totext=yes
29569 else
29570   ac_cv_lib_sec_acl_totext=no
29571 fi
29572 rm -f core conftest.err conftest.$ac_objext \
29573     conftest$ac_exeext conftest.$ac_ext
29574 LIBS=$ac_check_lib_save_LIBS
29575 fi
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29577 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29578 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29579
29580                     have_extended_acl=yes
29581
29582
29583 fi
29584
29585
29586
29587 fi
29588
29589    fi
29590
29591             if test $have_acl = no -a \
29592            x${HAVE_AIX_OS_TRUE} = x; then
29593       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29594 if test "x$ac_cv_func_acl_get" = xyes; then :
29595
29596              have_acl=yes
29597
29598              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29599 if test "x$ac_cv_func_aclx_get" = xyes; then :
29600
29601                     have_extended_acl=yes
29602
29603
29604 fi
29605
29606
29607
29608 fi
29609
29610    fi
29611
29612    if test x$support_acl = xyes -a $have_acl != yes; then
29613       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29614   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29615    else
29616       if test $have_acl = yes; then
29617
29618 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29619
29620       fi
29621
29622       if test $have_extended_acl = yes; then
29623
29624 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29625
29626       fi
29627    fi
29628 fi
29629
29630 support_xattr=auto
29631 # Check whether --enable-xattr was given.
29632 if test "${enable_xattr+set}" = set; then :
29633   enableval=$enable_xattr;
29634        if test x$enableval = xyes; then
29635           support_xattr=yes
29636        elif test x$enableval = xno; then
29637           support_xattr=no
29638        fi
29639
29640
29641 fi
29642
29643
29644 have_xattr=no
29645 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29646                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29647            x${HAVE_NETBSD_OS_TRUE} = x -o \
29648            x${HAVE_OPENBSD_OS_TRUE} = x; then
29649       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29650 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29651
29652 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29653
29654 fi
29655
29656
29657       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29658 if test "x$ac_cv_header_libutil_h" = xyes; then :
29659
29660 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29661
29662 fi
29663
29664
29665       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29666 do :
29667   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29670   cat >>confdefs.h <<_ACEOF
29671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29672 _ACEOF
29673
29674              have_xattr=yes
29675
29676 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29677
29678
29679 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29680
29681
29682 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29683
29684
29685
29686 fi
29687 done
29688
29689
29690       if test $have_xattr = no; then
29691          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29692 do :
29693   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29696   cat >>confdefs.h <<_ACEOF
29697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29698 _ACEOF
29699
29700                 have_xattr=yes
29701
29702 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29703
29704
29705 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29706
29707
29708 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29709
29710
29711
29712 fi
29713 done
29714
29715       fi
29716
29717       if test $have_xattr = yes; then
29718          have_extattr_string_in_libc=no
29719          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29720 do :
29721   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29723 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29724   cat >>confdefs.h <<_ACEOF
29725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29726 _ACEOF
29727
29728                 have_extattr_string_in_libc=yes
29729
29730 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29731
29732
29733 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29734
29735
29736
29737 fi
29738 done
29739
29740
29741                                  if test $have_extattr_string_in_libc = no; then
29742             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29743 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29744 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29745   $as_echo_n "(cached) " >&6
29746 else
29747   ac_check_lib_save_LIBS=$LIBS
29748 LIBS="-lutil  $LIBS"
29749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29750 /* end confdefs.h.  */
29751
29752 /* Override any GCC internal prototype to avoid an error.
29753    Use char because int might match the return type of a GCC
29754    builtin and then its argument prototype would still apply.  */
29755 #ifdef __cplusplus
29756 extern "C"
29757 #endif
29758 char extattr_namespace_to_string extattr_string_to_namespace ();
29759 int
29760 main ()
29761 {
29762 return extattr_namespace_to_string extattr_string_to_namespace ();
29763   ;
29764   return 0;
29765 }
29766 _ACEOF
29767 if ac_fn_c_try_link "$LINENO"; then :
29768   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29769 else
29770   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29771 fi
29772 rm -f core conftest.err conftest.$ac_objext \
29773     conftest$ac_exeext conftest.$ac_ext
29774 LIBS=$ac_check_lib_save_LIBS
29775 fi
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29777 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29778 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29779
29780
29781 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29782
29783
29784 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29785
29786                    FDLIBS="-lutil $FDLIBS"
29787
29788
29789 fi
29790
29791          fi
29792       fi
29793    fi
29794
29795                if test $have_xattr = no -a \
29796            x${HAVE_AIX_OS_TRUE} = x; then
29797       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29798 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29799
29800 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29801
29802 fi
29803
29804
29805       for ac_func in llistea lgetea lsetea
29806 do :
29807   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29809 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29810   cat >>confdefs.h <<_ACEOF
29811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29812 _ACEOF
29813
29814              have_xattr=yes
29815
29816 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29817
29818
29819 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29820
29821
29822 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29823
29824
29825
29826 fi
29827 done
29828
29829
29830       if test $have_xattr = no; then
29831          for ac_func in listea getea setea
29832 do :
29833   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29835 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29836   cat >>confdefs.h <<_ACEOF
29837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29838 _ACEOF
29839
29840                 have_xattr=yes
29841
29842 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29843
29844
29845 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29846
29847
29848 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29849
29850
29851
29852 fi
29853 done
29854
29855       fi
29856    fi
29857
29858                if test $have_xattr = no -a \
29859            x${HAVE_OSF1_OS_TRUE} = x; then
29860       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29861 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29862
29863 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29864
29865 fi
29866
29867
29868       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29869 do :
29870   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29873   cat >>confdefs.h <<_ACEOF
29874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29875 _ACEOF
29876
29877              have_xattr=yes
29878
29879 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29880
29881
29882 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29883
29884
29885 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29886
29887
29888 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29889
29890
29891 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29892
29893
29894
29895 fi
29896 done
29897
29898    fi
29899
29900                if test $have_xattr = no -a \
29901            x${HAVE_SUN_OS_TRUE} = x; then
29902       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29903 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29904
29905 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29906
29907 fi
29908
29909
29910       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29911 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29912
29913 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29914
29915 fi
29916
29917
29918       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29919 if test "x$ac_cv_header_attr_h" = xyes; then :
29920
29921 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29922
29923 fi
29924
29925
29926
29927       for ac_func in openat fstatat unlinkat fchownat futimesat
29928 do :
29929   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29932   cat >>confdefs.h <<_ACEOF
29933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29934 _ACEOF
29935
29936              have_xattr=yes
29937
29938 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29939
29940
29941 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29942
29943
29944 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29945
29946
29947 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29948
29949
29950 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29951
29952
29953
29954 fi
29955 done
29956
29957
29958       if test $have_xattr = yes; then
29959          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29960 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29961 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29962   $as_echo_n "(cached) " >&6
29963 else
29964   ac_check_lib_save_LIBS=$LIBS
29965 LIBS="-lnvpair  $LIBS"
29966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29967 /* end confdefs.h.  */
29968
29969 /* Override any GCC internal prototype to avoid an error.
29970    Use char because int might match the return type of a GCC
29971    builtin and then its argument prototype would still apply.  */
29972 #ifdef __cplusplus
29973 extern "C"
29974 #endif
29975 char nvlist_next_nvpair ();
29976 int
29977 main ()
29978 {
29979 return nvlist_next_nvpair ();
29980   ;
29981   return 0;
29982 }
29983 _ACEOF
29984 if ac_fn_c_try_link "$LINENO"; then :
29985   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29986 else
29987   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29988 fi
29989 rm -f core conftest.err conftest.$ac_objext \
29990     conftest$ac_exeext conftest.$ac_ext
29991 LIBS=$ac_check_lib_save_LIBS
29992 fi
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29994 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29995 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29996
29997
29998 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29999
30000                 FDLIBS="-lnvpair $FDLIBS"
30001
30002
30003 fi
30004
30005       fi
30006    fi
30007
30008             if test $have_xattr = no; then
30009       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30010 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30011
30012 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30013
30014 fi
30015
30016
30017       for ac_func in llistxattr lgetxattr lsetxattr
30018 do :
30019   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30022   cat >>confdefs.h <<_ACEOF
30023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30024 _ACEOF
30025
30026              have_xattr=yes
30027
30028 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30029
30030
30031 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30032
30033
30034 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30035
30036
30037
30038 fi
30039 done
30040
30041
30042       if test $have_xattr = no; then
30043          for ac_func in listxattr getxattr setxattr
30044 do :
30045   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30046 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30047 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30048   cat >>confdefs.h <<_ACEOF
30049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30050 _ACEOF
30051
30052                 have_xattr=yes
30053
30054 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30055
30056
30057 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30058
30059
30060 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30061
30062
30063
30064 fi
30065 done
30066
30067       fi
30068    fi
30069
30070    if test x$support_xattr = xyes -a $have_xattr != yes; then
30071       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30072   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30073    else
30074       if test $have_xattr = yes; then
30075
30076 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30077
30078       fi
30079    fi
30080 fi
30081
30082 PTHREAD_LIB=""
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30084 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30085 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30086   $as_echo_n "(cached) " >&6
30087 else
30088   ac_check_lib_save_LIBS=$LIBS
30089 LIBS="-lpthread  $LIBS"
30090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30091 /* end confdefs.h.  */
30092
30093 /* Override any GCC internal prototype to avoid an error.
30094    Use char because int might match the return type of a GCC
30095    builtin and then its argument prototype would still apply.  */
30096 #ifdef __cplusplus
30097 extern "C"
30098 #endif
30099 char pthread_create ();
30100 int
30101 main ()
30102 {
30103 return pthread_create ();
30104   ;
30105   return 0;
30106 }
30107 _ACEOF
30108 if ac_fn_c_try_link "$LINENO"; then :
30109   ac_cv_lib_pthread_pthread_create=yes
30110 else
30111   ac_cv_lib_pthread_pthread_create=no
30112 fi
30113 rm -f core conftest.err conftest.$ac_objext \
30114     conftest$ac_exeext conftest.$ac_ext
30115 LIBS=$ac_check_lib_save_LIBS
30116 fi
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30118 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30119 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30120   PTHREAD_LIB="-lpthread"
30121 else
30122
30123        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30124 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30125 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30126   $as_echo_n "(cached) " >&6
30127 else
30128   ac_check_lib_save_LIBS=$LIBS
30129 LIBS="-lpthreads  $LIBS"
30130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30131 /* end confdefs.h.  */
30132
30133 /* Override any GCC internal prototype to avoid an error.
30134    Use char because int might match the return type of a GCC
30135    builtin and then its argument prototype would still apply.  */
30136 #ifdef __cplusplus
30137 extern "C"
30138 #endif
30139 char pthread_create ();
30140 int
30141 main ()
30142 {
30143 return pthread_create ();
30144   ;
30145   return 0;
30146 }
30147 _ACEOF
30148 if ac_fn_c_try_link "$LINENO"; then :
30149   ac_cv_lib_pthreads_pthread_create=yes
30150 else
30151   ac_cv_lib_pthreads_pthread_create=no
30152 fi
30153 rm -f core conftest.err conftest.$ac_objext \
30154     conftest$ac_exeext conftest.$ac_ext
30155 LIBS=$ac_check_lib_save_LIBS
30156 fi
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30158 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30159 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30160   PTHREAD_LIB="-lpthreads"
30161 else
30162
30163               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30164 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30165 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30166   $as_echo_n "(cached) " >&6
30167 else
30168   ac_check_lib_save_LIBS=$LIBS
30169 LIBS="-lc_r  $LIBS"
30170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30171 /* end confdefs.h.  */
30172
30173 /* Override any GCC internal prototype to avoid an error.
30174    Use char because int might match the return type of a GCC
30175    builtin and then its argument prototype would still apply.  */
30176 #ifdef __cplusplus
30177 extern "C"
30178 #endif
30179 char pthread_create ();
30180 int
30181 main ()
30182 {
30183 return pthread_create ();
30184   ;
30185   return 0;
30186 }
30187 _ACEOF
30188 if ac_fn_c_try_link "$LINENO"; then :
30189   ac_cv_lib_c_r_pthread_create=yes
30190 else
30191   ac_cv_lib_c_r_pthread_create=no
30192 fi
30193 rm -f core conftest.err conftest.$ac_objext \
30194     conftest$ac_exeext conftest.$ac_ext
30195 LIBS=$ac_check_lib_save_LIBS
30196 fi
30197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30198 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30199 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30200   PTHREAD_LIB="-lc_r"
30201 else
30202
30203                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30204 if test "x$ac_cv_func_pthread_create" = xyes; then :
30205
30206 fi
30207
30208
30209
30210 fi
30211
30212
30213
30214 fi
30215
30216
30217
30218 fi
30219
30220
30221 for ac_header in sys/prctl.h sys/capability.h
30222 do :
30223   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30224 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30225 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30226   cat >>confdefs.h <<_ACEOF
30227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30228 _ACEOF
30229
30230 fi
30231
30232 done
30233
30234 for ac_func in prctl setreuid
30235 do :
30236   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30238 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30239   cat >>confdefs.h <<_ACEOF
30240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30241 _ACEOF
30242
30243 fi
30244 done
30245
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30247 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30248 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30249   $as_echo_n "(cached) " >&6
30250 else
30251   ac_check_lib_save_LIBS=$LIBS
30252 LIBS="-lcap  $LIBS"
30253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30254 /* end confdefs.h.  */
30255
30256 /* Override any GCC internal prototype to avoid an error.
30257    Use char because int might match the return type of a GCC
30258    builtin and then its argument prototype would still apply.  */
30259 #ifdef __cplusplus
30260 extern "C"
30261 #endif
30262 char cap_set_proc ();
30263 int
30264 main ()
30265 {
30266 return cap_set_proc ();
30267   ;
30268   return 0;
30269 }
30270 _ACEOF
30271 if ac_fn_c_try_link "$LINENO"; then :
30272   ac_cv_lib_cap_cap_set_proc=yes
30273 else
30274   ac_cv_lib_cap_cap_set_proc=no
30275 fi
30276 rm -f core conftest.err conftest.$ac_objext \
30277     conftest$ac_exeext conftest.$ac_ext
30278 LIBS=$ac_check_lib_save_LIBS
30279 fi
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30281 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30282 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30283   CAP_LIBS="-lcap"
30284 else
30285   CAP_LIBS=
30286 fi
30287
30288 if test x$CAP_LIBS = x-lcap; then
30289
30290 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30291
30292 fi
30293
30294
30295
30296 $as_echo "#define FDLIBS 1" >>confdefs.h
30297
30298
30299 CFLAGS=${CFLAGS--O}
30300
30301 if test x$have_gcc = xyes ; then
30302    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30303    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30304 fi
30305 LDFLAGS=${LDFLAGS--O}
30306 CPPFLAGS="$CPPFLAGS"
30307 CFLAGS="$CFLAGS"
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323 OBJLIST=
30324
30325
30326 lld="lld"
30327 llu="llu"
30328
30329 WCFLAGS=
30330 WLDFLAGS=
30331
30332 PFILES="platforms/Makefile"
30333 PSCMD="ps -e"
30334 MACOSX=
30335 COMPRESS_MANPAGES=yes
30336
30337 case "$DISTNAME" in
30338 aix)
30339    DISTVER=`uname -r`
30340    PSCMD="ps -e -o pid,comm"
30341    PFILES="${PFILES} \
30342       platforms/aix/Makefile"
30343    TAPEDRIVE="/dev/rmt0.1"
30344   ;;
30345 alpha)
30346    DISTVER=`uname -r`
30347    PTHREAD_LIB="-lpthread -lexc"
30348    if test "${CC}" = "gcc" ; then
30349       lld="lld"
30350       llu="llu"
30351    else
30352       lld="ld"
30353       llu="lu"
30354    fi
30355    TAPEDRIVE="/dev/nrmt0"
30356   ;;
30357 bsdi)
30358    DISTVER=`uname -a |awk '{print $3}'`
30359    TAPEDRIVE="/dev/nrmt0"
30360    PTHREAD_LIB="-pthread"
30361    CFLAGS="${CFLAGS} -pthread"
30362    PSCMD="ps -ax -o pid,command"
30363    lld="qd"
30364    llu="qu"
30365    PFILES="${PFILES} \
30366        platforms/bsdi/Makefile \
30367        platforms/bsdi/bacula-fd \
30368        platforms/bsdi/bacula-sd \
30369        platforms/bsdi/bacula-dir"
30370    largefile_support="yes"
30371   ;;
30372 darwin)
30373    DISTVER=`uname -r`
30374    TAPEDRIVE="/dev/nst0"
30375    PSCMD="ps -e -o pid,command"
30376    MACOSX=macosx
30377    PFILES="${PFILES} \
30378       platforms/darwin/Makefile"
30379   ;;
30380 osx)
30381    DISTVER=`uname -r`
30382    TAPEDRIVE="/dev/nst0"
30383    PSCMD="ps -e -o pid,command"
30384    MACOSX=macosx
30385    PFILES="${PFILES} \
30386       platforms/osx/Makefile"
30387   ;;
30388 debian)
30389    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30390       DISTNAME="ubuntu"
30391    fi
30392    DISTVER=`cat /etc/debian_version`
30393    if test -f /etc/lsb-release ; then
30394       . /etc/lsb-release
30395       if test "x$DISTRIB_ID" != "x" ; then
30396          DISTNAME=$DISTRIB_ID
30397       fi
30398       if test "x$DISTRIB_RELEASE" != "x" ; then
30399          DISTVER=$DISTRIB_RELEASE
30400       fi
30401    fi
30402    if test "$DISTNAME" = "Ubuntu" ; then
30403       DISTNAME="ubuntu"
30404    fi
30405    TAPEDRIVE="/dev/nst0"
30406    PSCMD="ps -e -o pid,command"
30407    if test "$DISTNAME" = "ubuntu" ; then
30408       PFILES="${PFILES} \
30409          platforms/ubuntu/Makefile \
30410          platforms/ubuntu/bacula-fd \
30411          platforms/ubuntu/bacula-sd \
30412          platforms/ubuntu/bacula-dir"
30413    else
30414       PFILES="${PFILES} \
30415          platforms/debian/Makefile \
30416          platforms/debian/bacula-fd \
30417          platforms/debian/bacula-sd \
30418          platforms/debian/bacula-dir"
30419    fi
30420   ;;
30421 freebsd)
30422    DISTVER=`uname -a |awk '{print $3}'`
30423    VER=`echo $DISTVER | cut -c 1`
30424    if test x$VER = x4 ; then
30425       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30426       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30427    fi
30428    lld="qd"
30429    llu="qu"
30430    TAPEDRIVE="/dev/nrsa0"
30431    PSCMD="ps -ax -o pid,command"
30432    PFILES="${PFILES} \
30433        platforms/freebsd/Makefile \
30434        platforms/freebsd/bacula-fd \
30435        platforms/freebsd/bacula-sd \
30436        platforms/freebsd/bacula-dir"
30437    largefile_support="yes"
30438   ;;
30439 hurd)
30440    DISTVER=`uname -r`
30441    TAPEDRIVE="/dev/nst0"
30442    PSCMD="ps -e -o pid,command"
30443    PFILES="${PFILES} \
30444        platforms/hurd/Makefile \
30445        platforms/hurd/bacula-fd \
30446        platforms/hurd/bacula-sd \
30447        platforms/hurd/bacula-dir"
30448   ;;
30449 hpux)
30450    PSCMD="UNIX95=1; ps -e -o pid,comm"
30451    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30452    DISTVER=`uname -r`
30453    TAPEDRIVE="/dev/rmt/0hnb"
30454    PTHREAD_LIB="-lpthread"
30455    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30456
30457   ;;
30458 irix)
30459    DISTVER=`uname -r`
30460    TAPEDRIVE="/dev/rmt/0cbn"
30461    PSCMD="ps -e -o pid,comm"
30462    PFILES="${PFILES} \
30463        platforms/irix/Makefile \
30464        platforms/irix/bacula-fd \
30465        platforms/irix/bacula-sd \
30466        platforms/irix/bacula-dir"
30467   ;;
30468 netbsd)
30469    DISTVER=`uname -a |awk '{print $3}'`
30470    lld="qd"
30471    llu="qu"
30472    TAPEDRIVE="/dev/nrst0"
30473    PSCMD="ps -ax -o pid,command"
30474    PTHREAD_LIB="-pthread"
30475    CFLAGS="${CFLAGS} -pthread"
30476   ;;
30477 openbsd)
30478    DISTVER=`uname -a |awk '{print $3}'`
30479    lld="qd"
30480    llu="qu"
30481    TAPEDRIVE="/dev/nrst0"
30482    PSCMD="ps -ax -o pid,command"
30483    PTHREAD_LIB="-pthread"
30484    CFLAGS="${CFLAGS} -pthread"
30485    PFILES="${PFILES} \
30486        platforms/openbsd/Makefile \
30487        platforms/openbsd/bacula-fd \
30488        platforms/openbsd/bacula-sd \
30489        platforms/openbsd/bacula-dir"
30490   ;;
30491 redhat)
30492    if test -f /etc/whitebox-release ; then
30493       f=/etc/whitebox-release
30494    else
30495       f=/etc/redhat-release
30496    fi
30497    if test `cat $f | grep release |\
30498          cut -f 3 -d ' '`x = "Enterprise"x ; then
30499       DISTVER="Enterprise "`cat $f | grep release |\
30500           cut -f 6 -d ' '`
30501    else
30502        DISTVER=`cat /etc/redhat-release | grep release |\
30503            cut -f 5 -d ' '`
30504    fi
30505    TAPEDRIVE="/dev/nst0"
30506    PSCMD="ps -e -o pid,command"
30507    PFILES="${PFILES} \
30508        platforms/redhat/Makefile \
30509        platforms/redhat/bacula-fd \
30510        platforms/redhat/bacula-sd \
30511        platforms/redhat/bacula-dir
30512        "
30513   ;;
30514 mandrake)
30515    DISTVER=`cat /etc/mandrake-release | grep release |\
30516       cut -f 5 -d ' '`
30517    TAPEDRIVE="/dev/nst0"
30518    PSCMD="ps -e -o pid,command"
30519    PFILES="${PFILES} \
30520        platforms/mandrake/Makefile \
30521        platforms/mandrake/bacula-fd \
30522        platforms/mandrake/bacula-sd \
30523        platforms/mandrake/bacula-dir \
30524        "
30525   ;;
30526 gentoo)
30527    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30528    TAPEDRIVE="/dev/nst0"
30529    PSCMD="ps -e -o pid,command"
30530    PFILES="${PFILES} \
30531        platforms/gentoo/Makefile \
30532     platforms/gentoo/bacula-init \
30533        platforms/gentoo/bacula-fd \
30534        platforms/gentoo/bacula-sd \
30535        platforms/gentoo/bacula-dir"
30536   ;;
30537 slackware)
30538    DISTVER=`cat /etc/slackware-version`
30539    TAPEDRIVE="/dev/nst0"
30540    PSCMD="ps -e -o pid,command"
30541    PFILES="${PFILES} \
30542        platforms/slackware/Makefile \
30543        platforms/slackware/rc.bacula-fd \
30544        platforms/slackware/rc.bacula-sd \
30545        platforms/slackware/rc.bacula-dir\
30546        platforms/slackware/functions.bacula"
30547   ;;
30548 solaris)
30549    DISTVER=`uname -r`
30550    TAPEDRIVE="/dev/rmt/0cbn"
30551    PSCMD="ps -e -o pid,comm"
30552    PFILES="${PFILES} \
30553        platforms/solaris/Makefile \
30554        platforms/solaris/bacula-fd \
30555        platforms/solaris/bacula-sd \
30556        platforms/solaris/bacula-dir"
30557    COMPRESS_MANPAGES=
30558    case ${DISTVER} in
30559    5.5|5.6)
30560       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30561
30562       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30563
30564       ;;
30565    5.7|5.8)
30566       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30567
30568       ;;
30569    *)
30570       ;;
30571    esac
30572    LIBS="$LIBS -lresolv -lrt"
30573   ;;
30574 suse)
30575    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30576        cut -f 3 -d ' '`
30577    TAPEDRIVE="/dev/nst0"
30578    PSCMD="ps -e -o pid,command"
30579    PFILES="${PFILES} \
30580        platforms/suse/Makefile \
30581        platforms/suse/bacula-fd \
30582        platforms/suse/bacula-sd \
30583        platforms/suse/bacula-dir \
30584        platforms/suse/bacula"
30585   ;;
30586 suse5)
30587    DISTNAME=suse
30588    DISTVER=5.x
30589    TAPEDRIVE="/dev/nst0"
30590    PSCMD="ps -e -o pid,command"
30591    PFILES="${PFILES} \
30592        platforms/suse/Makefile \
30593        platforms/suse/bacula-fd \
30594        platforms/suse/bacula-sd \
30595        platforms/suse/bacula-dir"
30596   ;;
30597 unknown)
30598    DISTVER=unknown
30599    TAPEDRIVE="/dev/nst0"
30600   ;;
30601 *)
30602   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30603   ;;
30604 esac
30605
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30607 $as_echo_n "checking for systemd support... " >&6; }
30608
30609 # Check whether --with-systemd was given.
30610 if test "${with_systemd+set}" = set; then :
30611   withval=$with_systemd;
30612        if test "$withval" != "no"; then
30613            if test "$withval" = "yes"; then
30614                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30615            else
30616                SYSTEMD_UNITDIR="${withval}"
30617            fi
30618
30619            PFILES="${PFILES} \
30620                    platforms/systemd/Makefile \
30621                    platforms/systemd/bacula.conf \
30622                    platforms/systemd/bacula-dir.service \
30623                    platforms/systemd/bacula-fd.service \
30624                    platforms/systemd/bacula-sd.service"
30625
30626 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30627
30628            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30629 $as_echo "yes" >&6; }
30630            support_systemd="yes"
30631        else
30632            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30633 $as_echo "no" >&6; }
30634            support_systemd="no"
30635        fi
30636
30637 else
30638
30639        support_systemd="no"
30640        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30641 $as_echo "no" >&6; }
30642
30643
30644 fi
30645
30646
30647
30648
30649
30650 LIBS="$PTHREAD_LIB $LIBS"
30651
30652 cat >>confdefs.h <<_ACEOF
30653 #define lld "$lld"
30654 _ACEOF
30655
30656 cat >>confdefs.h <<_ACEOF
30657 #define llu "$llu"
30658 _ACEOF
30659
30660
30661
30662
30663
30664
30665
30666
30667 MCOMMON=./autoconf/Make.common
30668
30669
30670 if test "x${subsysdir}" = "x${sbindir}" ; then
30671    echo " "
30672    echo " "
30673    echo "You have set both --sbindir and --with-subsys-dir"
30674    echo "  equal to: ${subsysdir} "
30675    echo "This is not permitted. Please reconfigure."
30676    echo " "
30677    echo "Aborting configuration ..."
30678    echo " "
30679    echo " "
30680    exit 1
30681 fi
30682
30683 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/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file 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 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 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30684
30685 ac_config_commands="$ac_config_commands default"
30686
30687 cat >confcache <<\_ACEOF
30688 # This file is a shell script that caches the results of configure
30689 # tests run on this system so they can be shared between configure
30690 # scripts and configure runs, see configure's option --config-cache.
30691 # It is not useful on other systems.  If it contains results you don't
30692 # want to keep, you may remove or edit it.
30693 #
30694 # config.status only pays attention to the cache file if you give it
30695 # the --recheck option to rerun configure.
30696 #
30697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30699 # following values.
30700
30701 _ACEOF
30702
30703 # The following way of writing the cache mishandles newlines in values,
30704 # but we know of no workaround that is simple, portable, and efficient.
30705 # So, we kill variables containing newlines.
30706 # Ultrix sh set writes to stderr and can't be redirected directly,
30707 # and sets the high bit in the cache file unless we assign to the vars.
30708 (
30709   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30710     eval ac_val=\$$ac_var
30711     case $ac_val in #(
30712     *${as_nl}*)
30713       case $ac_var in #(
30714       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30716       esac
30717       case $ac_var in #(
30718       _ | IFS | as_nl) ;; #(
30719       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30720       *) { eval $ac_var=; unset $ac_var;} ;;
30721       esac ;;
30722     esac
30723   done
30724
30725   (set) 2>&1 |
30726     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30727     *${as_nl}ac_space=\ *)
30728       # `set' does not quote correctly, so add quotes: double-quote
30729       # substitution turns \\\\ into \\, and sed turns \\ into \.
30730       sed -n \
30731         "s/'/'\\\\''/g;
30732           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30733       ;; #(
30734     *)
30735       # `set' quotes correctly as required by POSIX, so do not add quotes.
30736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30737       ;;
30738     esac |
30739     sort
30740 ) |
30741   sed '
30742      /^ac_cv_env_/b end
30743      t clear
30744      :clear
30745      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30746      t end
30747      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30748      :end' >>confcache
30749 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30750   if test -w "$cache_file"; then
30751     if test "x$cache_file" != "x/dev/null"; then
30752       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30753 $as_echo "$as_me: updating cache $cache_file" >&6;}
30754       if test ! -f "$cache_file" || test -h "$cache_file"; then
30755         cat confcache >"$cache_file"
30756       else
30757         case $cache_file in #(
30758         */* | ?:*)
30759           mv -f confcache "$cache_file"$$ &&
30760           mv -f "$cache_file"$$ "$cache_file" ;; #(
30761         *)
30762           mv -f confcache "$cache_file" ;;
30763         esac
30764       fi
30765     fi
30766   else
30767     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30768 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30769   fi
30770 fi
30771 rm -f confcache
30772
30773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30774 # Let make expand exec_prefix.
30775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30776
30777 DEFS=-DHAVE_CONFIG_H
30778
30779 ac_libobjs=
30780 ac_ltlibobjs=
30781 U=
30782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30783   # 1. Remove the extension, and $U if already installed.
30784   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30785   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30786   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30787   #    will be set to the directory where LIBOBJS objects are built.
30788   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30789   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30790 done
30791 LIBOBJS=$ac_libobjs
30792
30793 LTLIBOBJS=$ac_ltlibobjs
30794
30795
30796
30797
30798 : "${CONFIG_STATUS=./config.status}"
30799 ac_write_fail=0
30800 ac_clean_files_save=$ac_clean_files
30801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30803 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30804 as_write_fail=0
30805 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30806 #! $SHELL
30807 # Generated by $as_me.
30808 # Run this file to recreate the current configuration.
30809 # Compiler output produced by configure, useful for debugging
30810 # configure, is in config.log if it exists.
30811
30812 debug=false
30813 ac_cs_recheck=false
30814 ac_cs_silent=false
30815
30816 SHELL=\${CONFIG_SHELL-$SHELL}
30817 export SHELL
30818 _ASEOF
30819 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30820 ## -------------------- ##
30821 ## M4sh Initialization. ##
30822 ## -------------------- ##
30823
30824 # Be more Bourne compatible
30825 DUALCASE=1; export DUALCASE # for MKS sh
30826 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30827   emulate sh
30828   NULLCMD=:
30829   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30830   # is contrary to our usage.  Disable this feature.
30831   alias -g '${1+"$@"}'='"$@"'
30832   setopt NO_GLOB_SUBST
30833 else
30834   case `(set -o) 2>/dev/null` in #(
30835   *posix*) :
30836     set -o posix ;; #(
30837   *) :
30838      ;;
30839 esac
30840 fi
30841
30842
30843 as_nl='
30844 '
30845 export as_nl
30846 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30847 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30850 # Prefer a ksh shell builtin over an external printf program on Solaris,
30851 # but without wasting forks for bash or zsh.
30852 if test -z "$BASH_VERSION$ZSH_VERSION" \
30853     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30854   as_echo='print -r --'
30855   as_echo_n='print -rn --'
30856 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30857   as_echo='printf %s\n'
30858   as_echo_n='printf %s'
30859 else
30860   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30861     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30862     as_echo_n='/usr/ucb/echo -n'
30863   else
30864     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30865     as_echo_n_body='eval
30866       arg=$1;
30867       case $arg in #(
30868       *"$as_nl"*)
30869         expr "X$arg" : "X\\(.*\\)$as_nl";
30870         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30871       esac;
30872       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30873     '
30874     export as_echo_n_body
30875     as_echo_n='sh -c $as_echo_n_body as_echo'
30876   fi
30877   export as_echo_body
30878   as_echo='sh -c $as_echo_body as_echo'
30879 fi
30880
30881 # The user is always right.
30882 if test "${PATH_SEPARATOR+set}" != set; then
30883   PATH_SEPARATOR=:
30884   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30885     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30886       PATH_SEPARATOR=';'
30887   }
30888 fi
30889
30890
30891 # IFS
30892 # We need space, tab and new line, in precisely that order.  Quoting is
30893 # there to prevent editors from complaining about space-tab.
30894 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30895 # splitting by setting IFS to empty value.)
30896 IFS=" ""        $as_nl"
30897
30898 # Find who we are.  Look in the path if we contain no directory separator.
30899 as_myself=
30900 case $0 in #((
30901   *[\\/]* ) as_myself=$0 ;;
30902   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30903 for as_dir in $PATH
30904 do
30905   IFS=$as_save_IFS
30906   test -z "$as_dir" && as_dir=.
30907     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30908   done
30909 IFS=$as_save_IFS
30910
30911      ;;
30912 esac
30913 # We did not find ourselves, most probably we were run as `sh COMMAND'
30914 # in which case we are not to be found in the path.
30915 if test "x$as_myself" = x; then
30916   as_myself=$0
30917 fi
30918 if test ! -f "$as_myself"; then
30919   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30920   exit 1
30921 fi
30922
30923 # Unset variables that we do not need and which cause bugs (e.g. in
30924 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30925 # suppresses any "Segmentation fault" message there.  '((' could
30926 # trigger a bug in pdksh 5.2.14.
30927 for as_var in BASH_ENV ENV MAIL MAILPATH
30928 do eval test x\${$as_var+set} = xset \
30929   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30930 done
30931 PS1='$ '
30932 PS2='> '
30933 PS4='+ '
30934
30935 # NLS nuisances.
30936 LC_ALL=C
30937 export LC_ALL
30938 LANGUAGE=C
30939 export LANGUAGE
30940
30941 # CDPATH.
30942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30943
30944
30945 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30946 # ----------------------------------------
30947 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30948 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30949 # script with STATUS, using 1 if that was 0.
30950 as_fn_error ()
30951 {
30952   as_status=$1; test $as_status -eq 0 && as_status=1
30953   if test "$4"; then
30954     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30955     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30956   fi
30957   $as_echo "$as_me: error: $2" >&2
30958   as_fn_exit $as_status
30959 } # as_fn_error
30960
30961
30962 # as_fn_set_status STATUS
30963 # -----------------------
30964 # Set $? to STATUS, without forking.
30965 as_fn_set_status ()
30966 {
30967   return $1
30968 } # as_fn_set_status
30969
30970 # as_fn_exit STATUS
30971 # -----------------
30972 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30973 as_fn_exit ()
30974 {
30975   set +e
30976   as_fn_set_status $1
30977   exit $1
30978 } # as_fn_exit
30979
30980 # as_fn_unset VAR
30981 # ---------------
30982 # Portably unset VAR.
30983 as_fn_unset ()
30984 {
30985   { eval $1=; unset $1;}
30986 }
30987 as_unset=as_fn_unset
30988 # as_fn_append VAR VALUE
30989 # ----------------------
30990 # Append the text in VALUE to the end of the definition contained in VAR. Take
30991 # advantage of any shell optimizations that allow amortized linear growth over
30992 # repeated appends, instead of the typical quadratic growth present in naive
30993 # implementations.
30994 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30995   eval 'as_fn_append ()
30996   {
30997     eval $1+=\$2
30998   }'
30999 else
31000   as_fn_append ()
31001   {
31002     eval $1=\$$1\$2
31003   }
31004 fi # as_fn_append
31005
31006 # as_fn_arith ARG...
31007 # ------------------
31008 # Perform arithmetic evaluation on the ARGs, and store the result in the
31009 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31010 # must be portable across $(()) and expr.
31011 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31012   eval 'as_fn_arith ()
31013   {
31014     as_val=$(( $* ))
31015   }'
31016 else
31017   as_fn_arith ()
31018   {
31019     as_val=`expr "$@" || test $? -eq 1`
31020   }
31021 fi # as_fn_arith
31022
31023
31024 if expr a : '\(a\)' >/dev/null 2>&1 &&
31025    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31026   as_expr=expr
31027 else
31028   as_expr=false
31029 fi
31030
31031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31032   as_basename=basename
31033 else
31034   as_basename=false
31035 fi
31036
31037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31038   as_dirname=dirname
31039 else
31040   as_dirname=false
31041 fi
31042
31043 as_me=`$as_basename -- "$0" ||
31044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31045          X"$0" : 'X\(//\)$' \| \
31046          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31047 $as_echo X/"$0" |
31048     sed '/^.*\/\([^/][^/]*\)\/*$/{
31049             s//\1/
31050             q
31051           }
31052           /^X\/\(\/\/\)$/{
31053             s//\1/
31054             q
31055           }
31056           /^X\/\(\/\).*/{
31057             s//\1/
31058             q
31059           }
31060           s/.*/./; q'`
31061
31062 # Avoid depending upon Character Ranges.
31063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31066 as_cr_digits='0123456789'
31067 as_cr_alnum=$as_cr_Letters$as_cr_digits
31068
31069 ECHO_C= ECHO_N= ECHO_T=
31070 case `echo -n x` in #(((((
31071 -n*)
31072   case `echo 'xy\c'` in
31073   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31074   xy)  ECHO_C='\c';;
31075   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31076        ECHO_T=' ';;
31077   esac;;
31078 *)
31079   ECHO_N='-n';;
31080 esac
31081
31082 rm -f conf$$ conf$$.exe conf$$.file
31083 if test -d conf$$.dir; then
31084   rm -f conf$$.dir/conf$$.file
31085 else
31086   rm -f conf$$.dir
31087   mkdir conf$$.dir 2>/dev/null
31088 fi
31089 if (echo >conf$$.file) 2>/dev/null; then
31090   if ln -s conf$$.file conf$$ 2>/dev/null; then
31091     as_ln_s='ln -s'
31092     # ... but there are two gotchas:
31093     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31094     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31095     # In both cases, we have to default to `cp -p'.
31096     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31097       as_ln_s='cp -p'
31098   elif ln conf$$.file conf$$ 2>/dev/null; then
31099     as_ln_s=ln
31100   else
31101     as_ln_s='cp -p'
31102   fi
31103 else
31104   as_ln_s='cp -p'
31105 fi
31106 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31107 rmdir conf$$.dir 2>/dev/null
31108
31109
31110 # as_fn_mkdir_p
31111 # -------------
31112 # Create "$as_dir" as a directory, including parents if necessary.
31113 as_fn_mkdir_p ()
31114 {
31115
31116   case $as_dir in #(
31117   -*) as_dir=./$as_dir;;
31118   esac
31119   test -d "$as_dir" || eval $as_mkdir_p || {
31120     as_dirs=
31121     while :; do
31122       case $as_dir in #(
31123       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31124       *) as_qdir=$as_dir;;
31125       esac
31126       as_dirs="'$as_qdir' $as_dirs"
31127       as_dir=`$as_dirname -- "$as_dir" ||
31128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31129          X"$as_dir" : 'X\(//\)[^/]' \| \
31130          X"$as_dir" : 'X\(//\)$' \| \
31131          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31132 $as_echo X"$as_dir" |
31133     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31134             s//\1/
31135             q
31136           }
31137           /^X\(\/\/\)[^/].*/{
31138             s//\1/
31139             q
31140           }
31141           /^X\(\/\/\)$/{
31142             s//\1/
31143             q
31144           }
31145           /^X\(\/\).*/{
31146             s//\1/
31147             q
31148           }
31149           s/.*/./; q'`
31150       test -d "$as_dir" && break
31151     done
31152     test -z "$as_dirs" || eval "mkdir $as_dirs"
31153   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31154
31155
31156 } # as_fn_mkdir_p
31157 if mkdir -p . 2>/dev/null; then
31158   as_mkdir_p='mkdir -p "$as_dir"'
31159 else
31160   test -d ./-p && rmdir ./-p
31161   as_mkdir_p=false
31162 fi
31163
31164 if test -x / >/dev/null 2>&1; then
31165   as_test_x='test -x'
31166 else
31167   if ls -dL / >/dev/null 2>&1; then
31168     as_ls_L_option=L
31169   else
31170     as_ls_L_option=
31171   fi
31172   as_test_x='
31173     eval sh -c '\''
31174       if test -d "$1"; then
31175         test -d "$1/.";
31176       else
31177         case $1 in #(
31178         -*)set "./$1";;
31179         esac;
31180         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31181         ???[sx]*):;;*)false;;esac;fi
31182     '\'' sh
31183   '
31184 fi
31185 as_executable_p=$as_test_x
31186
31187 # Sed expression to map a string onto a valid CPP name.
31188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31189
31190 # Sed expression to map a string onto a valid variable name.
31191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31192
31193
31194 exec 6>&1
31195 ## ----------------------------------- ##
31196 ## Main body of $CONFIG_STATUS script. ##
31197 ## ----------------------------------- ##
31198 _ASEOF
31199 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31200
31201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31202 # Save the log message, to keep $0 and so on meaningful, and to
31203 # report actual input values of CONFIG_FILES etc. instead of their
31204 # values after options handling.
31205 ac_log="
31206 This file was extended by bacula $as_me 7.0.2, which was
31207 generated by GNU Autoconf 2.68.  Invocation command line was
31208
31209   CONFIG_FILES    = $CONFIG_FILES
31210   CONFIG_HEADERS  = $CONFIG_HEADERS
31211   CONFIG_LINKS    = $CONFIG_LINKS
31212   CONFIG_COMMANDS = $CONFIG_COMMANDS
31213   $ $0 $@
31214
31215 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31216 "
31217
31218 _ACEOF
31219
31220 case $ac_config_files in *"
31221 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31222 esac
31223
31224 case $ac_config_headers in *"
31225 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31226 esac
31227
31228
31229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31230 # Files that config.status was made for.
31231 config_files="$ac_config_files"
31232 config_headers="$ac_config_headers"
31233 config_commands="$ac_config_commands"
31234
31235 _ACEOF
31236
31237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31238 ac_cs_usage="\
31239 \`$as_me' instantiates files and other configuration actions
31240 from templates according to the current configuration.  Unless the files
31241 and actions are specified as TAGs, all are instantiated by default.
31242
31243 Usage: $0 [OPTION]... [TAG]...
31244
31245   -h, --help       print this help, then exit
31246   -V, --version    print version number and configuration settings, then exit
31247       --config     print configuration, then exit
31248   -q, --quiet, --silent
31249                    do not print progress messages
31250   -d, --debug      don't remove temporary files
31251       --recheck    update $as_me by reconfiguring in the same conditions
31252       --file=FILE[:TEMPLATE]
31253                    instantiate the configuration file FILE
31254       --header=FILE[:TEMPLATE]
31255                    instantiate the configuration header FILE
31256
31257 Configuration files:
31258 $config_files
31259
31260 Configuration headers:
31261 $config_headers
31262
31263 Configuration commands:
31264 $config_commands
31265
31266 Report bugs to the package provider."
31267
31268 _ACEOF
31269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31270 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31271 ac_cs_version="\\
31272 bacula config.status 7.0.2
31273 configured by $0, generated by GNU Autoconf 2.68,
31274   with options \\"\$ac_cs_config\\"
31275
31276 Copyright (C) 2010 Free Software Foundation, Inc.
31277 This config.status script is free software; the Free Software Foundation
31278 gives unlimited permission to copy, distribute and modify it."
31279
31280 ac_pwd='$ac_pwd'
31281 srcdir='$srcdir'
31282 INSTALL='$INSTALL'
31283 AWK='$AWK'
31284 test -n "\$AWK" || AWK=awk
31285 _ACEOF
31286
31287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31288 # The default lists apply if the user does not specify any file.
31289 ac_need_defaults=:
31290 while test $# != 0
31291 do
31292   case $1 in
31293   --*=?*)
31294     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31295     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31296     ac_shift=:
31297     ;;
31298   --*=)
31299     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31300     ac_optarg=
31301     ac_shift=:
31302     ;;
31303   *)
31304     ac_option=$1
31305     ac_optarg=$2
31306     ac_shift=shift
31307     ;;
31308   esac
31309
31310   case $ac_option in
31311   # Handling of the options.
31312   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31313     ac_cs_recheck=: ;;
31314   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31315     $as_echo "$ac_cs_version"; exit ;;
31316   --config | --confi | --conf | --con | --co | --c )
31317     $as_echo "$ac_cs_config"; exit ;;
31318   --debug | --debu | --deb | --de | --d | -d )
31319     debug=: ;;
31320   --file | --fil | --fi | --f )
31321     $ac_shift
31322     case $ac_optarg in
31323     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31324     '') as_fn_error $? "missing file argument" ;;
31325     esac
31326     as_fn_append CONFIG_FILES " '$ac_optarg'"
31327     ac_need_defaults=false;;
31328   --header | --heade | --head | --hea )
31329     $ac_shift
31330     case $ac_optarg in
31331     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31332     esac
31333     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31334     ac_need_defaults=false;;
31335   --he | --h)
31336     # Conflict between --help and --header
31337     as_fn_error $? "ambiguous option: \`$1'
31338 Try \`$0 --help' for more information.";;
31339   --help | --hel | -h )
31340     $as_echo "$ac_cs_usage"; exit ;;
31341   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31342   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31343     ac_cs_silent=: ;;
31344
31345   # This is an error.
31346   -*) as_fn_error $? "unrecognized option: \`$1'
31347 Try \`$0 --help' for more information." ;;
31348
31349   *) as_fn_append ac_config_targets " $1"
31350      ac_need_defaults=false ;;
31351
31352   esac
31353   shift
31354 done
31355
31356 ac_configure_extra_args=
31357
31358 if $ac_cs_silent; then
31359   exec 6>/dev/null
31360   ac_configure_extra_args="$ac_configure_extra_args --silent"
31361 fi
31362
31363 _ACEOF
31364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31365 if \$ac_cs_recheck; then
31366   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31367   shift
31368   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31369   CONFIG_SHELL='$SHELL'
31370   export CONFIG_SHELL
31371   exec "\$@"
31372 fi
31373
31374 _ACEOF
31375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31376 exec 5>>config.log
31377 {
31378   echo
31379   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31380 ## Running $as_me. ##
31381 _ASBOX
31382   $as_echo "$ac_log"
31383 } >&5
31384
31385 _ACEOF
31386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31387 #
31388 # INIT-COMMANDS
31389 #
31390
31391
31392 # The HP-UX ksh and POSIX shell print the target directory to stdout
31393 # if CDPATH is set.
31394 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31395
31396 sed_quote_subst='$sed_quote_subst'
31397 double_quote_subst='$double_quote_subst'
31398 delay_variable_subst='$delay_variable_subst'
31399 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31400 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31401 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31402 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31403 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31404 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31405 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31406 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31407 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31408 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31409 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31410 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31411 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31412 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31413 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31414 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31415 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31416 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31417 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31418 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31419 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31420 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31421 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31422 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31423 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31424 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31425 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31426 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31427 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31428 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31429 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31430 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31431 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31432 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31433 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31434 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31435 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31436 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31437 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31438 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31439 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31440 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31441 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31442 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31443 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31444 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31445 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31446 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31447 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31448 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31449 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31450 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31451 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31452 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31453 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31454 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"`'
31455 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31456 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31457 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31458 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31459 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31460 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31461 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31462 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31463 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31464 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31465 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31466 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31467 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31468 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31469 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31470 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31471 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31472 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31473 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31474 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31475 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31476 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31477 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31478 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31479 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31480 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31481 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31482 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31483 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31484 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31485 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31486 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31487 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31488 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31489 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31490 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31491 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31492 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31493 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31494 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31495 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31496 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31497 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31498 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31499 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31500 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31501 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31502 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31503 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31504 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31505 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31506 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31507 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31508 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31509 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31510 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31511 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31512 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31513 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31514 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31515 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31516 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31517 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31518 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31519 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31520 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31521 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31522 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31523 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31524 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31525 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31526 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31527 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31528 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31529 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31530 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31531 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31532 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31533 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31534 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31535 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31536 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31537 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31538 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31539 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31540 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31541 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31542 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31543 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31544 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31545 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31546 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31547 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31548 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31549 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31550 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31551 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31552 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31553 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31554 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31555 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31556 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31557 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31558 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31559 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31560 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31561 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31562 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31563 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31564 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31565 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31566 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31567 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31568 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31569 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31570 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31571 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31572 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31573 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31574 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31575 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31576 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31577 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31578 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31579 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31580 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31581 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31582 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31583 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31584
31585 LTCC='$LTCC'
31586 LTCFLAGS='$LTCFLAGS'
31587 compiler='$compiler_DEFAULT'
31588
31589 # A function that is used when there is no print builtin or printf.
31590 func_fallback_echo ()
31591 {
31592   eval 'cat <<_LTECHO_EOF
31593 \$1
31594 _LTECHO_EOF'
31595 }
31596
31597 # Quote evaled strings.
31598 for var in SHELL \
31599 ECHO \
31600 SED \
31601 GREP \
31602 EGREP \
31603 FGREP \
31604 LD \
31605 NM \
31606 LN_S \
31607 lt_SP2NL \
31608 lt_NL2SP \
31609 reload_flag \
31610 OBJDUMP \
31611 deplibs_check_method \
31612 file_magic_cmd \
31613 file_magic_glob \
31614 want_nocaseglob \
31615 DLLTOOL \
31616 sharedlib_from_linklib_cmd \
31617 AR \
31618 AR_FLAGS \
31619 archiver_list_spec \
31620 STRIP \
31621 RANLIB \
31622 CC \
31623 CFLAGS \
31624 compiler \
31625 lt_cv_sys_global_symbol_pipe \
31626 lt_cv_sys_global_symbol_to_cdecl \
31627 lt_cv_sys_global_symbol_to_c_name_address \
31628 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31629 nm_file_list_spec \
31630 lt_prog_compiler_no_builtin_flag \
31631 lt_prog_compiler_pic \
31632 lt_prog_compiler_wl \
31633 lt_prog_compiler_static \
31634 lt_cv_prog_compiler_c_o \
31635 need_locks \
31636 MANIFEST_TOOL \
31637 DSYMUTIL \
31638 NMEDIT \
31639 LIPO \
31640 OTOOL \
31641 OTOOL64 \
31642 shrext_cmds \
31643 export_dynamic_flag_spec \
31644 whole_archive_flag_spec \
31645 compiler_needs_object \
31646 with_gnu_ld \
31647 allow_undefined_flag \
31648 no_undefined_flag \
31649 hardcode_libdir_flag_spec \
31650 hardcode_libdir_flag_spec_ld \
31651 hardcode_libdir_separator \
31652 exclude_expsyms \
31653 include_expsyms \
31654 file_list_spec \
31655 variables_saved_for_relink \
31656 libname_spec \
31657 library_names_spec \
31658 soname_spec \
31659 install_override_mode \
31660 finish_eval \
31661 old_striplib \
31662 striplib \
31663 compiler_lib_search_dirs \
31664 predep_objects \
31665 postdep_objects \
31666 predeps \
31667 postdeps \
31668 compiler_lib_search_path \
31669 LD_CXX \
31670 reload_flag_CXX \
31671 compiler_CXX \
31672 lt_prog_compiler_no_builtin_flag_CXX \
31673 lt_prog_compiler_pic_CXX \
31674 lt_prog_compiler_wl_CXX \
31675 lt_prog_compiler_static_CXX \
31676 lt_cv_prog_compiler_c_o_CXX \
31677 export_dynamic_flag_spec_CXX \
31678 whole_archive_flag_spec_CXX \
31679 compiler_needs_object_CXX \
31680 with_gnu_ld_CXX \
31681 allow_undefined_flag_CXX \
31682 no_undefined_flag_CXX \
31683 hardcode_libdir_flag_spec_CXX \
31684 hardcode_libdir_flag_spec_ld_CXX \
31685 hardcode_libdir_separator_CXX \
31686 exclude_expsyms_CXX \
31687 include_expsyms_CXX \
31688 file_list_spec_CXX \
31689 compiler_lib_search_dirs_CXX \
31690 predep_objects_CXX \
31691 postdep_objects_CXX \
31692 predeps_CXX \
31693 postdeps_CXX \
31694 compiler_lib_search_path_CXX; do
31695     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31696     *[\\\\\\\`\\"\\\$]*)
31697       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31698       ;;
31699     *)
31700       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31701       ;;
31702     esac
31703 done
31704
31705 # Double-quote double-evaled strings.
31706 for var in reload_cmds \
31707 old_postinstall_cmds \
31708 old_postuninstall_cmds \
31709 old_archive_cmds \
31710 extract_expsyms_cmds \
31711 old_archive_from_new_cmds \
31712 old_archive_from_expsyms_cmds \
31713 archive_cmds \
31714 archive_expsym_cmds \
31715 module_cmds \
31716 module_expsym_cmds \
31717 export_symbols_cmds \
31718 prelink_cmds \
31719 postlink_cmds \
31720 postinstall_cmds \
31721 postuninstall_cmds \
31722 finish_cmds \
31723 sys_lib_search_path_spec \
31724 sys_lib_dlsearch_path_spec \
31725 reload_cmds_CXX \
31726 old_archive_cmds_CXX \
31727 old_archive_from_new_cmds_CXX \
31728 old_archive_from_expsyms_cmds_CXX \
31729 archive_cmds_CXX \
31730 archive_expsym_cmds_CXX \
31731 module_cmds_CXX \
31732 module_expsym_cmds_CXX \
31733 export_symbols_cmds_CXX \
31734 prelink_cmds_CXX \
31735 postlink_cmds_CXX; do
31736     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31737     *[\\\\\\\`\\"\\\$]*)
31738       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31739       ;;
31740     *)
31741       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31742       ;;
31743     esac
31744 done
31745
31746 ac_aux_dir='$ac_aux_dir'
31747 xsi_shell='$xsi_shell'
31748 lt_shell_append='$lt_shell_append'
31749
31750 # See if we are running on zsh, and set the options which allow our
31751 # commands through without removal of \ escapes INIT.
31752 if test -n "\${ZSH_VERSION+set}" ; then
31753    setopt NO_GLOB_SUBST
31754 fi
31755
31756
31757     PACKAGE='$PACKAGE'
31758     VERSION='$VERSION'
31759     TIMESTAMP='$TIMESTAMP'
31760     RM='$RM'
31761     ofile='$ofile'
31762
31763
31764
31765
31766
31767 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31768     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31769     # from automake.
31770     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31771     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31772     LINGUAS="${LINGUAS-%UNSET%}"
31773
31774
31775 _ACEOF
31776
31777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31778
31779 # Handling of arguments.
31780 for ac_config_target in $ac_config_targets
31781 do
31782   case $ac_config_target in
31783     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31784     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31785     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31786     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31787     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31788     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31789     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31790     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31791     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31792     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31793     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31794     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31795     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31796     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31797     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31798     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31799     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31800     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31801     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31802     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31803     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31804     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31805     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31806     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31807     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31808     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31809     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31810     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31811     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31812     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31813     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31814     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31815     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31816     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31817     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31818     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31819     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31820     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31821     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31822     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31823     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31824     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31825     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31826     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31827     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31828     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31829     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31830     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31831     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31832     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31833     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31834     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31835     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31836     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31837     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31838     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31839     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31840     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31841     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31842     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31843     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31844     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31845     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31846     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31847     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31848     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31849     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31850     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31851     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31852     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31853     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31854     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31855     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31856     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31857     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31858     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31859     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31860     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31861     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31862     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31863     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31864     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31865     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31866     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31867     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31868     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31869     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31870     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
31871     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
31872     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
31873     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
31874     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
31875     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
31876     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
31877     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
31878     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31879     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31880
31881   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31882   esac
31883 done
31884
31885
31886 # If the user did not use the arguments to specify the items to instantiate,
31887 # then the envvar interface is used.  Set only those that are not.
31888 # We use the long form for the default assignment because of an extremely
31889 # bizarre bug on SunOS 4.1.3.
31890 if $ac_need_defaults; then
31891   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31892   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31893   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31894 fi
31895
31896 # Have a temporary directory for convenience.  Make it in the build tree
31897 # simply because there is no reason against having it here, and in addition,
31898 # creating and moving files from /tmp can sometimes cause problems.
31899 # Hook for its removal unless debugging.
31900 # Note that there is a small window in which the directory will not be cleaned:
31901 # after its creation but before its name has been assigned to `$tmp'.
31902 $debug ||
31903 {
31904   tmp= ac_tmp=
31905   trap 'exit_status=$?
31906   : "${ac_tmp:=$tmp}"
31907   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31908 ' 0
31909   trap 'as_fn_exit 1' 1 2 13 15
31910 }
31911 # Create a (secure) tmp directory for tmp files.
31912
31913 {
31914   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31915   test -d "$tmp"
31916 }  ||
31917 {
31918   tmp=./conf$$-$RANDOM
31919   (umask 077 && mkdir "$tmp")
31920 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31921 ac_tmp=$tmp
31922
31923 # Set up the scripts for CONFIG_FILES section.
31924 # No need to generate them if there are no CONFIG_FILES.
31925 # This happens for instance with `./config.status config.h'.
31926 if test -n "$CONFIG_FILES"; then
31927
31928 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31929   ac_cs_awk_getline=:
31930   ac_cs_awk_pipe_init=
31931   ac_cs_awk_read_file='
31932       while ((getline aline < (F[key])) > 0)
31933         print(aline)
31934       close(F[key])'
31935   ac_cs_awk_pipe_fini=
31936 else
31937   ac_cs_awk_getline=false
31938   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31939   ac_cs_awk_read_file='
31940       print "|#_!!_#|"
31941       print "cat " F[key] " &&"
31942       '$ac_cs_awk_pipe_init
31943   # The final `:' finishes the AND list.
31944   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31945 fi
31946 ac_cr=`echo X | tr X '\015'`
31947 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31948 # But we know of no other shell where ac_cr would be empty at this
31949 # point, so we can use a bashism as a fallback.
31950 if test "x$ac_cr" = x; then
31951   eval ac_cr=\$\'\\r\'
31952 fi
31953 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31955   ac_cs_awk_cr='\\r'
31956 else
31957   ac_cs_awk_cr=$ac_cr
31958 fi
31959
31960 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31961 _ACEOF
31962
31963 # Create commands to substitute file output variables.
31964 {
31965   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31966   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31967   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31968   echo "_ACAWK" &&
31969   echo "_ACEOF"
31970 } >conf$$files.sh &&
31971 . ./conf$$files.sh ||
31972   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31973 rm -f conf$$files.sh
31974
31975 {
31976   echo "cat >conf$$subs.awk <<_ACEOF" &&
31977   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31978   echo "_ACEOF"
31979 } >conf$$subs.sh ||
31980   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31981 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31982 ac_delim='%!_!# '
31983 for ac_last_try in false false false false false :; do
31984   . ./conf$$subs.sh ||
31985     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31986
31987   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31988   if test $ac_delim_n = $ac_delim_num; then
31989     break
31990   elif $ac_last_try; then
31991     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31992   else
31993     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31994   fi
31995 done
31996 rm -f conf$$subs.sh
31997
31998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31999 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32000 _ACEOF
32001 sed -n '
32002 h
32003 s/^/S["/; s/!.*/"]=/
32004 p
32005 g
32006 s/^[^!]*!//
32007 :repl
32008 t repl
32009 s/'"$ac_delim"'$//
32010 t delim
32011 :nl
32012 h
32013 s/\(.\{148\}\)..*/\1/
32014 t more1
32015 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32016 p
32017 n
32018 b repl
32019 :more1
32020 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32021 p
32022 g
32023 s/.\{148\}//
32024 t nl
32025 :delim
32026 h
32027 s/\(.\{148\}\)..*/\1/
32028 t more2
32029 s/["\\]/\\&/g; s/^/"/; s/$/"/
32030 p
32031 b
32032 :more2
32033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32034 p
32035 g
32036 s/.\{148\}//
32037 t delim
32038 ' <conf$$subs.awk | sed '
32039 /^[^""]/{
32040   N
32041   s/\n//
32042 }
32043 ' >>$CONFIG_STATUS || ac_write_fail=1
32044 rm -f conf$$subs.awk
32045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32046 _ACAWK
32047 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32048   for (key in S) S_is_set[key] = 1
32049   FS = "\a"
32050   \$ac_cs_awk_pipe_init
32051 }
32052 {
32053   line = $ 0
32054   nfields = split(line, field, "@")
32055   substed = 0
32056   len = length(field[1])
32057   for (i = 2; i < nfields; i++) {
32058     key = field[i]
32059     keylen = length(key)
32060     if (S_is_set[key]) {
32061       value = S[key]
32062       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32063       len += length(value) + length(field[++i])
32064       substed = 1
32065     } else
32066       len += 1 + keylen
32067   }
32068   if (nfields == 3 && !substed) {
32069     key = field[2]
32070     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32071       \$ac_cs_awk_read_file
32072       next
32073     }
32074   }
32075   print line
32076 }
32077 \$ac_cs_awk_pipe_fini
32078 _ACAWK
32079 _ACEOF
32080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32082   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32083 else
32084   cat
32085 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32086   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32087 _ACEOF
32088
32089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32091 # trailing colons and then remove the whole line if VPATH becomes empty
32092 # (actually we leave an empty line to preserve line numbers).
32093 if test "x$srcdir" = x.; then
32094   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32095 h
32096 s///
32097 s/^/:/
32098 s/[      ]*$/:/
32099 s/:\$(srcdir):/:/g
32100 s/:\${srcdir}:/:/g
32101 s/:@srcdir@:/:/g
32102 s/^:*//
32103 s/:*$//
32104 x
32105 s/\(=[   ]*\).*/\1/
32106 G
32107 s/\n//
32108 s/^[^=]*=[       ]*$//
32109 }'
32110 fi
32111
32112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32113 fi # test -n "$CONFIG_FILES"
32114
32115 # Set up the scripts for CONFIG_HEADERS section.
32116 # No need to generate them if there are no CONFIG_HEADERS.
32117 # This happens for instance with `./config.status Makefile'.
32118 if test -n "$CONFIG_HEADERS"; then
32119 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32120 BEGIN {
32121 _ACEOF
32122
32123 # Transform confdefs.h into an awk script `defines.awk', embedded as
32124 # here-document in config.status, that substitutes the proper values into
32125 # config.h.in to produce config.h.
32126
32127 # Create a delimiter string that does not exist in confdefs.h, to ease
32128 # handling of long lines.
32129 ac_delim='%!_!# '
32130 for ac_last_try in false false :; do
32131   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32132   if test -z "$ac_tt"; then
32133     break
32134   elif $ac_last_try; then
32135     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32136   else
32137     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32138   fi
32139 done
32140
32141 # For the awk script, D is an array of macro values keyed by name,
32142 # likewise P contains macro parameters if any.  Preserve backslash
32143 # newline sequences.
32144
32145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32146 sed -n '
32147 s/.\{148\}/&'"$ac_delim"'/g
32148 t rset
32149 :rset
32150 s/^[     ]*#[    ]*define[       ][      ]*/ /
32151 t def
32152 d
32153 :def
32154 s/\\$//
32155 t bsnl
32156 s/["\\]/\\&/g
32157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32158 D["\1"]=" \3"/p
32159 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32160 d
32161 :bsnl
32162 s/["\\]/\\&/g
32163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32164 D["\1"]=" \3\\\\\\n"\\/p
32165 t cont
32166 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32167 t cont
32168 d
32169 :cont
32170 n
32171 s/.\{148\}/&'"$ac_delim"'/g
32172 t clear
32173 :clear
32174 s/\\$//
32175 t bsnlc
32176 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32177 d
32178 :bsnlc
32179 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32180 b cont
32181 ' <confdefs.h | sed '
32182 s/'"$ac_delim"'/"\\\
32183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32184
32185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32186   for (key in D) D_is_set[key] = 1
32187   FS = "\a"
32188 }
32189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32190   line = \$ 0
32191   split(line, arg, " ")
32192   if (arg[1] == "#") {
32193     defundef = arg[2]
32194     mac1 = arg[3]
32195   } else {
32196     defundef = substr(arg[1], 2)
32197     mac1 = arg[2]
32198   }
32199   split(mac1, mac2, "(") #)
32200   macro = mac2[1]
32201   prefix = substr(line, 1, index(line, defundef) - 1)
32202   if (D_is_set[macro]) {
32203     # Preserve the white space surrounding the "#".
32204     print prefix "define", macro P[macro] D[macro]
32205     next
32206   } else {
32207     # Replace #undef with comments.  This is necessary, for example,
32208     # in the case of _POSIX_SOURCE, which is predefined and required
32209     # on some systems where configure will not decide to define it.
32210     if (defundef == "undef") {
32211       print "/*", prefix defundef, macro, "*/"
32212       next
32213     }
32214   }
32215 }
32216 { print }
32217 _ACAWK
32218 _ACEOF
32219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32220   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32221 fi # test -n "$CONFIG_HEADERS"
32222
32223
32224 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32225 shift
32226 for ac_tag
32227 do
32228   case $ac_tag in
32229   :[FHLC]) ac_mode=$ac_tag; continue;;
32230   esac
32231   case $ac_mode$ac_tag in
32232   :[FHL]*:*);;
32233   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32234   :[FH]-) ac_tag=-:-;;
32235   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32236   esac
32237   ac_save_IFS=$IFS
32238   IFS=:
32239   set x $ac_tag
32240   IFS=$ac_save_IFS
32241   shift
32242   ac_file=$1
32243   shift
32244
32245   case $ac_mode in
32246   :L) ac_source=$1;;
32247   :[FH])
32248     ac_file_inputs=
32249     for ac_f
32250     do
32251       case $ac_f in
32252       -) ac_f="$ac_tmp/stdin";;
32253       *) # Look for the file first in the build tree, then in the source tree
32254          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32255          # because $ac_f cannot contain `:'.
32256          test -f "$ac_f" ||
32257            case $ac_f in
32258            [\\/$]*) false;;
32259            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32260            esac ||
32261            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32262       esac
32263       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32264       as_fn_append ac_file_inputs " '$ac_f'"
32265     done
32266
32267     # Let's still pretend it is `configure' which instantiates (i.e., don't
32268     # use $as_me), people would be surprised to read:
32269     #    /* config.h.  Generated by config.status.  */
32270     configure_input='Generated from '`
32271           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32272         `' by configure.'
32273     if test x"$ac_file" != x-; then
32274       configure_input="$ac_file.  $configure_input"
32275       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32276 $as_echo "$as_me: creating $ac_file" >&6;}
32277     fi
32278     # Neutralize special characters interpreted by sed in replacement strings.
32279     case $configure_input in #(
32280     *\&* | *\|* | *\\* )
32281        ac_sed_conf_input=`$as_echo "$configure_input" |
32282        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32283     *) ac_sed_conf_input=$configure_input;;
32284     esac
32285
32286     case $ac_tag in
32287     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32288       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32289     esac
32290     ;;
32291   esac
32292
32293   ac_dir=`$as_dirname -- "$ac_file" ||
32294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32295          X"$ac_file" : 'X\(//\)[^/]' \| \
32296          X"$ac_file" : 'X\(//\)$' \| \
32297          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32298 $as_echo X"$ac_file" |
32299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32300             s//\1/
32301             q
32302           }
32303           /^X\(\/\/\)[^/].*/{
32304             s//\1/
32305             q
32306           }
32307           /^X\(\/\/\)$/{
32308             s//\1/
32309             q
32310           }
32311           /^X\(\/\).*/{
32312             s//\1/
32313             q
32314           }
32315           s/.*/./; q'`
32316   as_dir="$ac_dir"; as_fn_mkdir_p
32317   ac_builddir=.
32318
32319 case "$ac_dir" in
32320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32321 *)
32322   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32323   # A ".." for each directory in $ac_dir_suffix.
32324   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32325   case $ac_top_builddir_sub in
32326   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32327   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32328   esac ;;
32329 esac
32330 ac_abs_top_builddir=$ac_pwd
32331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32332 # for backward compatibility:
32333 ac_top_builddir=$ac_top_build_prefix
32334
32335 case $srcdir in
32336   .)  # We are building in place.
32337     ac_srcdir=.
32338     ac_top_srcdir=$ac_top_builddir_sub
32339     ac_abs_top_srcdir=$ac_pwd ;;
32340   [\\/]* | ?:[\\/]* )  # Absolute name.
32341     ac_srcdir=$srcdir$ac_dir_suffix;
32342     ac_top_srcdir=$srcdir
32343     ac_abs_top_srcdir=$srcdir ;;
32344   *) # Relative name.
32345     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32346     ac_top_srcdir=$ac_top_build_prefix$srcdir
32347     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32348 esac
32349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32350
32351
32352   case $ac_mode in
32353   :F)
32354   #
32355   # CONFIG_FILE
32356   #
32357
32358   case $INSTALL in
32359   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32360   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32361   esac
32362 _ACEOF
32363
32364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32365 # If the template does not know about datarootdir, expand it.
32366 # FIXME: This hack should be removed a few years after 2.60.
32367 ac_datarootdir_hack=; ac_datarootdir_seen=
32368 ac_sed_dataroot='
32369 /datarootdir/ {
32370   p
32371   q
32372 }
32373 /@datadir@/p
32374 /@docdir@/p
32375 /@infodir@/p
32376 /@localedir@/p
32377 /@mandir@/p'
32378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32379 *datarootdir*) ac_datarootdir_seen=yes;;
32380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32381   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32383 _ACEOF
32384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32385   ac_datarootdir_hack='
32386   s&@datadir@&$datadir&g
32387   s&@docdir@&$docdir&g
32388   s&@infodir@&$infodir&g
32389   s&@localedir@&$localedir&g
32390   s&@mandir@&$mandir&g
32391   s&\\\${datarootdir}&$datarootdir&g' ;;
32392 esac
32393 _ACEOF
32394
32395 # Neutralize VPATH when `$srcdir' = `.'.
32396 # Shell code in configure.ac might set extrasub.
32397 # FIXME: do we really want to maintain this feature?
32398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32399 ac_sed_extra="$ac_vpsub
32400 $extrasub
32401 _ACEOF
32402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32403 :t
32404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32405 s|@configure_input@|$ac_sed_conf_input|;t t
32406 s&@top_builddir@&$ac_top_builddir_sub&;t t
32407 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32408 s&@srcdir@&$ac_srcdir&;t t
32409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32410 s&@top_srcdir@&$ac_top_srcdir&;t t
32411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32412 s&@builddir@&$ac_builddir&;t t
32413 s&@abs_builddir@&$ac_abs_builddir&;t t
32414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32415 s&@INSTALL@&$ac_INSTALL&;t t
32416 $ac_datarootdir_hack
32417 "
32418 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32419 if $ac_cs_awk_getline; then
32420   $AWK -f "$ac_tmp/subs.awk"
32421 else
32422   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32423 fi \
32424   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32425
32426 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32427   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32428   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32429       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32430   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32431 which seems to be undefined.  Please make sure it is defined" >&5
32432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32433 which seems to be undefined.  Please make sure it is defined" >&2;}
32434
32435   rm -f "$ac_tmp/stdin"
32436   case $ac_file in
32437   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32438   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32439   esac \
32440   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32441  ;;
32442   :H)
32443   #
32444   # CONFIG_HEADER
32445   #
32446   if test x"$ac_file" != x-; then
32447     {
32448       $as_echo "/* $configure_input  */" \
32449       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32450     } >"$ac_tmp/config.h" \
32451       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32452     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32453       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32455     else
32456       rm -f "$ac_file"
32457       mv "$ac_tmp/config.h" "$ac_file" \
32458         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32459     fi
32460   else
32461     $as_echo "/* $configure_input  */" \
32462       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32463       || as_fn_error $? "could not create -" "$LINENO" 5
32464   fi
32465  ;;
32466
32467   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32468 $as_echo "$as_me: executing $ac_file commands" >&6;}
32469  ;;
32470   esac
32471
32472
32473   case $ac_file$ac_mode in
32474     "libtool":C)
32475
32476     # See if we are running on zsh, and set the options which allow our
32477     # commands through without removal of \ escapes.
32478     if test -n "${ZSH_VERSION+set}" ; then
32479       setopt NO_GLOB_SUBST
32480     fi
32481
32482     cfgfile="${ofile}T"
32483     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32484     $RM "$cfgfile"
32485
32486     cat <<_LT_EOF >> "$cfgfile"
32487 #! $SHELL
32488
32489 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32490 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32492 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32493 #
32494 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32495 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32496 #                 Inc.
32497 #   Written by Gordon Matzigkeit, 1996
32498 #
32499 #   This file is part of GNU Libtool.
32500 #
32501 # GNU Libtool is free software; you can redistribute it and/or
32502 # modify it under the terms of the GNU General Public License as
32503 # published by the Free Software Foundation; either version 2 of
32504 # the License, or (at your option) any later version.
32505 #
32506 # As a special exception to the GNU General Public License,
32507 # if you distribute this file as part of a program or library that
32508 # is built using GNU Libtool, you may include this file under the
32509 # same distribution terms that you use for the rest of that program.
32510 #
32511 # GNU Libtool is distributed in the hope that it will be useful,
32512 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32514 # GNU General Public License for more details.
32515 #
32516 # You should have received a copy of the GNU General Public License
32517 # along with GNU Libtool; see the file COPYING.  If not, a copy
32518 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32519 # obtained by writing to the Free Software Foundation, Inc.,
32520 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32521
32522
32523 # The names of the tagged configurations supported by this script.
32524 available_tags="CXX "
32525
32526 # ### BEGIN LIBTOOL CONFIG
32527
32528 # Which release of libtool.m4 was used?
32529 macro_version=$macro_version
32530 macro_revision=$macro_revision
32531
32532 # Whether or not to build shared libraries.
32533 build_libtool_libs=$enable_shared
32534
32535 # Whether or not to build static libraries.
32536 build_old_libs=$enable_static
32537
32538 # What type of objects to build.
32539 pic_mode=$pic_mode
32540
32541 # Whether or not to optimize for fast installation.
32542 fast_install=$enable_fast_install
32543
32544 # Shell to use when invoking shell scripts.
32545 SHELL=$lt_SHELL
32546
32547 # An echo program that protects backslashes.
32548 ECHO=$lt_ECHO
32549
32550 # The host system.
32551 host_alias=$host_alias
32552 host=$host
32553 host_os=$host_os
32554
32555 # The build system.
32556 build_alias=$build_alias
32557 build=$build
32558 build_os=$build_os
32559
32560 # A sed program that does not truncate output.
32561 SED=$lt_SED
32562
32563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32564 Xsed="\$SED -e 1s/^X//"
32565
32566 # A grep program that handles long lines.
32567 GREP=$lt_GREP
32568
32569 # An ERE matcher.
32570 EGREP=$lt_EGREP
32571
32572 # A literal string matcher.
32573 FGREP=$lt_FGREP
32574
32575 # A BSD- or MS-compatible name lister.
32576 NM=$lt_NM
32577
32578 # Whether we need soft or hard links.
32579 LN_S=$lt_LN_S
32580
32581 # What is the maximum length of a command?
32582 max_cmd_len=$max_cmd_len
32583
32584 # Object file suffix (normally "o").
32585 objext=$ac_objext
32586
32587 # Executable file suffix (normally "").
32588 exeext=$exeext
32589
32590 # whether the shell understands "unset".
32591 lt_unset=$lt_unset
32592
32593 # turn spaces into newlines.
32594 SP2NL=$lt_lt_SP2NL
32595
32596 # turn newlines into spaces.
32597 NL2SP=$lt_lt_NL2SP
32598
32599 # convert \$build file names to \$host format.
32600 to_host_file_cmd=$lt_cv_to_host_file_cmd
32601
32602 # convert \$build files to toolchain format.
32603 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32604
32605 # An object symbol dumper.
32606 OBJDUMP=$lt_OBJDUMP
32607
32608 # Method to check whether dependent libraries are shared objects.
32609 deplibs_check_method=$lt_deplibs_check_method
32610
32611 # Command to use when deplibs_check_method = "file_magic".
32612 file_magic_cmd=$lt_file_magic_cmd
32613
32614 # How to find potential files when deplibs_check_method = "file_magic".
32615 file_magic_glob=$lt_file_magic_glob
32616
32617 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32618 want_nocaseglob=$lt_want_nocaseglob
32619
32620 # DLL creation program.
32621 DLLTOOL=$lt_DLLTOOL
32622
32623 # Command to associate shared and link libraries.
32624 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32625
32626 # The archiver.
32627 AR=$lt_AR
32628
32629 # Flags to create an archive.
32630 AR_FLAGS=$lt_AR_FLAGS
32631
32632 # How to feed a file listing to the archiver.
32633 archiver_list_spec=$lt_archiver_list_spec
32634
32635 # A symbol stripping program.
32636 STRIP=$lt_STRIP
32637
32638 # Commands used to install an old-style archive.
32639 RANLIB=$lt_RANLIB
32640 old_postinstall_cmds=$lt_old_postinstall_cmds
32641 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32642
32643 # Whether to use a lock for old archive extraction.
32644 lock_old_archive_extraction=$lock_old_archive_extraction
32645
32646 # A C compiler.
32647 LTCC=$lt_CC
32648
32649 # LTCC compiler flags.
32650 LTCFLAGS=$lt_CFLAGS
32651
32652 # Take the output of nm and produce a listing of raw symbols and C names.
32653 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32654
32655 # Transform the output of nm in a proper C declaration.
32656 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32657
32658 # Transform the output of nm in a C name address pair.
32659 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32660
32661 # Transform the output of nm in a C name address pair when lib prefix is needed.
32662 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32663
32664 # Specify filename containing input files for \$NM.
32665 nm_file_list_spec=$lt_nm_file_list_spec
32666
32667 # The root where to search for dependent libraries,and in which our libraries should be installed.
32668 lt_sysroot=$lt_sysroot
32669
32670 # The name of the directory that contains temporary libtool files.
32671 objdir=$objdir
32672
32673 # Used to examine libraries when file_magic_cmd begins with "file".
32674 MAGIC_CMD=$MAGIC_CMD
32675
32676 # Must we lock files when doing compilation?
32677 need_locks=$lt_need_locks
32678
32679 # Manifest tool.
32680 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32681
32682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32683 DSYMUTIL=$lt_DSYMUTIL
32684
32685 # Tool to change global to local symbols on Mac OS X.
32686 NMEDIT=$lt_NMEDIT
32687
32688 # Tool to manipulate fat objects and archives on Mac OS X.
32689 LIPO=$lt_LIPO
32690
32691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32692 OTOOL=$lt_OTOOL
32693
32694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32695 OTOOL64=$lt_OTOOL64
32696
32697 # Old archive suffix (normally "a").
32698 libext=$libext
32699
32700 # Shared library suffix (normally ".so").
32701 shrext_cmds=$lt_shrext_cmds
32702
32703 # The commands to extract the exported symbol list from a shared archive.
32704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32705
32706 # Variables whose values should be saved in libtool wrapper scripts and
32707 # restored at link time.
32708 variables_saved_for_relink=$lt_variables_saved_for_relink
32709
32710 # Do we need the "lib" prefix for modules?
32711 need_lib_prefix=$need_lib_prefix
32712
32713 # Do we need a version for libraries?
32714 need_version=$need_version
32715
32716 # Library versioning type.
32717 version_type=$version_type
32718
32719 # Shared library runtime path variable.
32720 runpath_var=$runpath_var
32721
32722 # Shared library path variable.
32723 shlibpath_var=$shlibpath_var
32724
32725 # Is shlibpath searched before the hard-coded library search path?
32726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32727
32728 # Format of library name prefix.
32729 libname_spec=$lt_libname_spec
32730
32731 # List of archive names.  First name is the real one, the rest are links.
32732 # The last name is the one that the linker finds with -lNAME
32733 library_names_spec=$lt_library_names_spec
32734
32735 # The coded name of the library, if different from the real name.
32736 soname_spec=$lt_soname_spec
32737
32738 # Permission mode override for installation of shared libraries.
32739 install_override_mode=$lt_install_override_mode
32740
32741 # Command to use after installation of a shared archive.
32742 postinstall_cmds=$lt_postinstall_cmds
32743
32744 # Command to use after uninstallation of a shared archive.
32745 postuninstall_cmds=$lt_postuninstall_cmds
32746
32747 # Commands used to finish a libtool library installation in a directory.
32748 finish_cmds=$lt_finish_cmds
32749
32750 # As "finish_cmds", except a single script fragment to be evaled but
32751 # not shown.
32752 finish_eval=$lt_finish_eval
32753
32754 # Whether we should hardcode library paths into libraries.
32755 hardcode_into_libs=$hardcode_into_libs
32756
32757 # Compile-time system search path for libraries.
32758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32759
32760 # Run-time system search path for libraries.
32761 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32762
32763 # Whether dlopen is supported.
32764 dlopen_support=$enable_dlopen
32765
32766 # Whether dlopen of programs is supported.
32767 dlopen_self=$enable_dlopen_self
32768
32769 # Whether dlopen of statically linked programs is supported.
32770 dlopen_self_static=$enable_dlopen_self_static
32771
32772 # Commands to strip libraries.
32773 old_striplib=$lt_old_striplib
32774 striplib=$lt_striplib
32775
32776
32777 # The linker used to build libraries.
32778 LD=$lt_LD
32779
32780 # How to create reloadable object files.
32781 reload_flag=$lt_reload_flag
32782 reload_cmds=$lt_reload_cmds
32783
32784 # Commands used to build an old-style archive.
32785 old_archive_cmds=$lt_old_archive_cmds
32786
32787 # A language specific compiler.
32788 CC=$lt_compiler
32789
32790 # Is the compiler the GNU compiler?
32791 with_gcc=$GCC
32792
32793 # Compiler flag to turn off builtin functions.
32794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32795
32796 # Additional compiler flags for building library objects.
32797 pic_flag=$lt_lt_prog_compiler_pic
32798
32799 # How to pass a linker flag through the compiler.
32800 wl=$lt_lt_prog_compiler_wl
32801
32802 # Compiler flag to prevent dynamic linking.
32803 link_static_flag=$lt_lt_prog_compiler_static
32804
32805 # Does compiler simultaneously support -c and -o options?
32806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32807
32808 # Whether or not to add -lc for building shared libraries.
32809 build_libtool_need_lc=$archive_cmds_need_lc
32810
32811 # Whether or not to disallow shared libs when runtime libs are static.
32812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32813
32814 # Compiler flag to allow reflexive dlopens.
32815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32816
32817 # Compiler flag to generate shared objects directly from archives.
32818 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32819
32820 # Whether the compiler copes with passing no objects directly.
32821 compiler_needs_object=$lt_compiler_needs_object
32822
32823 # Create an old-style archive from a shared archive.
32824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32825
32826 # Create a temporary old-style archive to link instead of a shared archive.
32827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32828
32829 # Commands used to build a shared archive.
32830 archive_cmds=$lt_archive_cmds
32831 archive_expsym_cmds=$lt_archive_expsym_cmds
32832
32833 # Commands used to build a loadable module if different from building
32834 # a shared archive.
32835 module_cmds=$lt_module_cmds
32836 module_expsym_cmds=$lt_module_expsym_cmds
32837
32838 # Whether we are building with GNU ld or not.
32839 with_gnu_ld=$lt_with_gnu_ld
32840
32841 # Flag that allows shared libraries with undefined symbols to be built.
32842 allow_undefined_flag=$lt_allow_undefined_flag
32843
32844 # Flag that enforces no undefined symbols.
32845 no_undefined_flag=$lt_no_undefined_flag
32846
32847 # Flag to hardcode \$libdir into a binary during linking.
32848 # This must work even if \$libdir does not exist
32849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32850
32851 # If ld is used when linking, flag to hardcode \$libdir into a binary
32852 # during linking.  This must work even if \$libdir does not exist.
32853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32854
32855 # Whether we need a single "-rpath" flag with a separated argument.
32856 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32857
32858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32859 # DIR into the resulting binary.
32860 hardcode_direct=$hardcode_direct
32861
32862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32863 # DIR into the resulting binary and the resulting library dependency is
32864 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32865 # library is relocated.
32866 hardcode_direct_absolute=$hardcode_direct_absolute
32867
32868 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32869 # into the resulting binary.
32870 hardcode_minus_L=$hardcode_minus_L
32871
32872 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32873 # into the resulting binary.
32874 hardcode_shlibpath_var=$hardcode_shlibpath_var
32875
32876 # Set to "yes" if building a shared library automatically hardcodes DIR
32877 # into the library and all subsequent libraries and executables linked
32878 # against it.
32879 hardcode_automatic=$hardcode_automatic
32880
32881 # Set to yes if linker adds runtime paths of dependent libraries
32882 # to runtime path list.
32883 inherit_rpath=$inherit_rpath
32884
32885 # Whether libtool must link a program against all its dependency libraries.
32886 link_all_deplibs=$link_all_deplibs
32887
32888 # Set to "yes" if exported symbols are required.
32889 always_export_symbols=$always_export_symbols
32890
32891 # The commands to list exported symbols.
32892 export_symbols_cmds=$lt_export_symbols_cmds
32893
32894 # Symbols that should not be listed in the preloaded symbols.
32895 exclude_expsyms=$lt_exclude_expsyms
32896
32897 # Symbols that must always be exported.
32898 include_expsyms=$lt_include_expsyms
32899
32900 # Commands necessary for linking programs (against libraries) with templates.
32901 prelink_cmds=$lt_prelink_cmds
32902
32903 # Commands necessary for finishing linking programs.
32904 postlink_cmds=$lt_postlink_cmds
32905
32906 # Specify filename containing input files.
32907 file_list_spec=$lt_file_list_spec
32908
32909 # How to hardcode a shared library path into an executable.
32910 hardcode_action=$hardcode_action
32911
32912 # The directories searched by this compiler when creating a shared library.
32913 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32914
32915 # Dependencies to place before and after the objects being linked to
32916 # create a shared library.
32917 predep_objects=$lt_predep_objects
32918 postdep_objects=$lt_postdep_objects
32919 predeps=$lt_predeps
32920 postdeps=$lt_postdeps
32921
32922 # The library search path used internally by the compiler when linking
32923 # a shared library.
32924 compiler_lib_search_path=$lt_compiler_lib_search_path
32925
32926 # ### END LIBTOOL CONFIG
32927
32928 _LT_EOF
32929
32930   case $host_os in
32931   aix3*)
32932     cat <<\_LT_EOF >> "$cfgfile"
32933 # AIX sometimes has problems with the GCC collect2 program.  For some
32934 # reason, if we set the COLLECT_NAMES environment variable, the problems
32935 # vanish in a puff of smoke.
32936 if test "X${COLLECT_NAMES+set}" != Xset; then
32937   COLLECT_NAMES=
32938   export COLLECT_NAMES
32939 fi
32940 _LT_EOF
32941     ;;
32942   esac
32943
32944
32945 ltmain="$ac_aux_dir/ltmain.sh"
32946
32947
32948   # We use sed instead of cat because bash on DJGPP gets confused if
32949   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32950   # text mode, it properly converts lines to CR/LF.  This bash problem
32951   # is reportedly fixed, but why not run on old versions too?
32952   sed '$q' "$ltmain" >> "$cfgfile" \
32953      || (rm -f "$cfgfile"; exit 1)
32954
32955   if test x"$xsi_shell" = xyes; then
32956   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32957 func_dirname ()\
32958 {\
32959 \    case ${1} in\
32960 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32961 \      *  ) func_dirname_result="${3}" ;;\
32962 \    esac\
32963 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32964   && mv -f "$cfgfile.tmp" "$cfgfile" \
32965     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32966 test 0 -eq $? || _lt_function_replace_fail=:
32967
32968
32969   sed -e '/^func_basename ()$/,/^} # func_basename /c\
32970 func_basename ()\
32971 {\
32972 \    func_basename_result="${1##*/}"\
32973 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32974   && mv -f "$cfgfile.tmp" "$cfgfile" \
32975     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32976 test 0 -eq $? || _lt_function_replace_fail=:
32977
32978
32979   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32980 func_dirname_and_basename ()\
32981 {\
32982 \    case ${1} in\
32983 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32984 \      *  ) func_dirname_result="${3}" ;;\
32985 \    esac\
32986 \    func_basename_result="${1##*/}"\
32987 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32988   && mv -f "$cfgfile.tmp" "$cfgfile" \
32989     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32990 test 0 -eq $? || _lt_function_replace_fail=:
32991
32992
32993   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32994 func_stripname ()\
32995 {\
32996 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32997 \    # positional parameters, so assign one to ordinary parameter first.\
32998 \    func_stripname_result=${3}\
32999 \    func_stripname_result=${func_stripname_result#"${1}"}\
33000 \    func_stripname_result=${func_stripname_result%"${2}"}\
33001 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33002   && mv -f "$cfgfile.tmp" "$cfgfile" \
33003     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33004 test 0 -eq $? || _lt_function_replace_fail=:
33005
33006
33007   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33008 func_split_long_opt ()\
33009 {\
33010 \    func_split_long_opt_name=${1%%=*}\
33011 \    func_split_long_opt_arg=${1#*=}\
33012 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33013   && mv -f "$cfgfile.tmp" "$cfgfile" \
33014     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33015 test 0 -eq $? || _lt_function_replace_fail=:
33016
33017
33018   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33019 func_split_short_opt ()\
33020 {\
33021 \    func_split_short_opt_arg=${1#??}\
33022 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33023 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33024   && mv -f "$cfgfile.tmp" "$cfgfile" \
33025     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33026 test 0 -eq $? || _lt_function_replace_fail=:
33027
33028
33029   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33030 func_lo2o ()\
33031 {\
33032 \    case ${1} in\
33033 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33034 \      *)    func_lo2o_result=${1} ;;\
33035 \    esac\
33036 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33037   && mv -f "$cfgfile.tmp" "$cfgfile" \
33038     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33039 test 0 -eq $? || _lt_function_replace_fail=:
33040
33041
33042   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33043 func_xform ()\
33044 {\
33045     func_xform_result=${1%.*}.lo\
33046 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33047   && mv -f "$cfgfile.tmp" "$cfgfile" \
33048     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33049 test 0 -eq $? || _lt_function_replace_fail=:
33050
33051
33052   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33053 func_arith ()\
33054 {\
33055     func_arith_result=$(( $* ))\
33056 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33057   && mv -f "$cfgfile.tmp" "$cfgfile" \
33058     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33059 test 0 -eq $? || _lt_function_replace_fail=:
33060
33061
33062   sed -e '/^func_len ()$/,/^} # func_len /c\
33063 func_len ()\
33064 {\
33065     func_len_result=${#1}\
33066 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33067   && mv -f "$cfgfile.tmp" "$cfgfile" \
33068     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33069 test 0 -eq $? || _lt_function_replace_fail=:
33070
33071 fi
33072
33073 if test x"$lt_shell_append" = xyes; then
33074   sed -e '/^func_append ()$/,/^} # func_append /c\
33075 func_append ()\
33076 {\
33077     eval "${1}+=\\${2}"\
33078 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33079   && mv -f "$cfgfile.tmp" "$cfgfile" \
33080     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33081 test 0 -eq $? || _lt_function_replace_fail=:
33082
33083
33084   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33085 func_append_quoted ()\
33086 {\
33087 \    func_quote_for_eval "${2}"\
33088 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33089 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33090   && mv -f "$cfgfile.tmp" "$cfgfile" \
33091     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33092 test 0 -eq $? || _lt_function_replace_fail=:
33093
33094
33095   # Save a `func_append' function call where possible by direct use of '+='
33096   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33097     && mv -f "$cfgfile.tmp" "$cfgfile" \
33098       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33099   test 0 -eq $? || _lt_function_replace_fail=:
33100 else
33101   # Save a `func_append' function call even when '+=' is not available
33102   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33103     && mv -f "$cfgfile.tmp" "$cfgfile" \
33104       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33105   test 0 -eq $? || _lt_function_replace_fail=:
33106 fi
33107
33108 if test x"$_lt_function_replace_fail" = x":"; then
33109   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33110 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33111 fi
33112
33113
33114    mv -f "$cfgfile" "$ofile" ||
33115     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33116   chmod +x "$ofile"
33117
33118
33119     cat <<_LT_EOF >> "$ofile"
33120
33121 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33122
33123 # The linker used to build libraries.
33124 LD=$lt_LD_CXX
33125
33126 # How to create reloadable object files.
33127 reload_flag=$lt_reload_flag_CXX
33128 reload_cmds=$lt_reload_cmds_CXX
33129
33130 # Commands used to build an old-style archive.
33131 old_archive_cmds=$lt_old_archive_cmds_CXX
33132
33133 # A language specific compiler.
33134 CC=$lt_compiler_CXX
33135
33136 # Is the compiler the GNU compiler?
33137 with_gcc=$GCC_CXX
33138
33139 # Compiler flag to turn off builtin functions.
33140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33141
33142 # Additional compiler flags for building library objects.
33143 pic_flag=$lt_lt_prog_compiler_pic_CXX
33144
33145 # How to pass a linker flag through the compiler.
33146 wl=$lt_lt_prog_compiler_wl_CXX
33147
33148 # Compiler flag to prevent dynamic linking.
33149 link_static_flag=$lt_lt_prog_compiler_static_CXX
33150
33151 # Does compiler simultaneously support -c and -o options?
33152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33153
33154 # Whether or not to add -lc for building shared libraries.
33155 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33156
33157 # Whether or not to disallow shared libs when runtime libs are static.
33158 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33159
33160 # Compiler flag to allow reflexive dlopens.
33161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33162
33163 # Compiler flag to generate shared objects directly from archives.
33164 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33165
33166 # Whether the compiler copes with passing no objects directly.
33167 compiler_needs_object=$lt_compiler_needs_object_CXX
33168
33169 # Create an old-style archive from a shared archive.
33170 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33171
33172 # Create a temporary old-style archive to link instead of a shared archive.
33173 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33174
33175 # Commands used to build a shared archive.
33176 archive_cmds=$lt_archive_cmds_CXX
33177 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33178
33179 # Commands used to build a loadable module if different from building
33180 # a shared archive.
33181 module_cmds=$lt_module_cmds_CXX
33182 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33183
33184 # Whether we are building with GNU ld or not.
33185 with_gnu_ld=$lt_with_gnu_ld_CXX
33186
33187 # Flag that allows shared libraries with undefined symbols to be built.
33188 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33189
33190 # Flag that enforces no undefined symbols.
33191 no_undefined_flag=$lt_no_undefined_flag_CXX
33192
33193 # Flag to hardcode \$libdir into a binary during linking.
33194 # This must work even if \$libdir does not exist
33195 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33196
33197 # If ld is used when linking, flag to hardcode \$libdir into a binary
33198 # during linking.  This must work even if \$libdir does not exist.
33199 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33200
33201 # Whether we need a single "-rpath" flag with a separated argument.
33202 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33203
33204 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33205 # DIR into the resulting binary.
33206 hardcode_direct=$hardcode_direct_CXX
33207
33208 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33209 # DIR into the resulting binary and the resulting library dependency is
33210 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33211 # library is relocated.
33212 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33213
33214 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33215 # into the resulting binary.
33216 hardcode_minus_L=$hardcode_minus_L_CXX
33217
33218 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33219 # into the resulting binary.
33220 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33221
33222 # Set to "yes" if building a shared library automatically hardcodes DIR
33223 # into the library and all subsequent libraries and executables linked
33224 # against it.
33225 hardcode_automatic=$hardcode_automatic_CXX
33226
33227 # Set to yes if linker adds runtime paths of dependent libraries
33228 # to runtime path list.
33229 inherit_rpath=$inherit_rpath_CXX
33230
33231 # Whether libtool must link a program against all its dependency libraries.
33232 link_all_deplibs=$link_all_deplibs_CXX
33233
33234 # Set to "yes" if exported symbols are required.
33235 always_export_symbols=$always_export_symbols_CXX
33236
33237 # The commands to list exported symbols.
33238 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33239
33240 # Symbols that should not be listed in the preloaded symbols.
33241 exclude_expsyms=$lt_exclude_expsyms_CXX
33242
33243 # Symbols that must always be exported.
33244 include_expsyms=$lt_include_expsyms_CXX
33245
33246 # Commands necessary for linking programs (against libraries) with templates.
33247 prelink_cmds=$lt_prelink_cmds_CXX
33248
33249 # Commands necessary for finishing linking programs.
33250 postlink_cmds=$lt_postlink_cmds_CXX
33251
33252 # Specify filename containing input files.
33253 file_list_spec=$lt_file_list_spec_CXX
33254
33255 # How to hardcode a shared library path into an executable.
33256 hardcode_action=$hardcode_action_CXX
33257
33258 # The directories searched by this compiler when creating a shared library.
33259 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33260
33261 # Dependencies to place before and after the objects being linked to
33262 # create a shared library.
33263 predep_objects=$lt_predep_objects_CXX
33264 postdep_objects=$lt_postdep_objects_CXX
33265 predeps=$lt_predeps_CXX
33266 postdeps=$lt_postdeps_CXX
33267
33268 # The library search path used internally by the compiler when linking
33269 # a shared library.
33270 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33271
33272 # ### END LIBTOOL TAG CONFIG: CXX
33273 _LT_EOF
33274
33275  ;;
33276     "default-1":C)
33277     for ac_file in $CONFIG_FILES; do
33278       # Support "outfile[:infile[:infile...]]"
33279       case "$ac_file" in
33280         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33281       esac
33282       # PO directories have a Makefile.in generated from Makefile.in.in.
33283       case "$ac_file" in */Makefile.in)
33284         # Adjust a relative srcdir.
33285         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33286         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33287         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33288         # In autoconf-2.13 it is called $ac_given_srcdir.
33289         # In autoconf-2.50 it is called $srcdir.
33290         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33291         case "$ac_given_srcdir" in
33292           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33293           /*) top_srcdir="$ac_given_srcdir" ;;
33294           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33295         esac
33296         # Treat a directory as a PO directory if and only if it has a
33297         # POTFILES.in file. This allows packages to have multiple PO
33298         # directories under different names or in different locations.
33299         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33300           rm -f "$ac_dir/POTFILES"
33301           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33302           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33303           POMAKEFILEDEPS="POTFILES.in"
33304           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33305           # on $ac_dir but don't depend on user-specified configuration
33306           # parameters.
33307           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33308             # The LINGUAS file contains the set of available languages.
33309             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33310               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33311             fi
33312             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33313             # Hide the ALL_LINGUAS assigment from automake.
33314             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33315             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33316           else
33317             # The set of available languages was given in configure.in.
33318             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33319           fi
33320           # Compute POFILES
33321           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33322           # Compute UPDATEPOFILES
33323           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33324           # Compute DUMMYPOFILES
33325           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33326           # Compute GMOFILES
33327           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33328           case "$ac_given_srcdir" in
33329             .) srcdirpre= ;;
33330             *) srcdirpre='$(srcdir)/' ;;
33331           esac
33332           POFILES=
33333           UPDATEPOFILES=
33334           DUMMYPOFILES=
33335           GMOFILES=
33336           for lang in $ALL_LINGUAS; do
33337             POFILES="$POFILES $srcdirpre$lang.po"
33338             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33339             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33340             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33341           done
33342           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33343           # environment variable.
33344           INST_LINGUAS=
33345           if test -n "$ALL_LINGUAS"; then
33346             for presentlang in $ALL_LINGUAS; do
33347               useit=no
33348               if test "%UNSET%" != "$LINGUAS"; then
33349                 desiredlanguages="$LINGUAS"
33350               else
33351                 desiredlanguages="$ALL_LINGUAS"
33352               fi
33353               for desiredlang in $desiredlanguages; do
33354                 # Use the presentlang catalog if desiredlang is
33355                 #   a. equal to presentlang, or
33356                 #   b. a variant of presentlang (because in this case,
33357                 #      presentlang can be used as a fallback for messages
33358                 #      which are not translated in the desiredlang catalog).
33359                 case "$desiredlang" in
33360                   "$presentlang"*) useit=yes;;
33361                 esac
33362               done
33363               if test $useit = yes; then
33364                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33365               fi
33366             done
33367           fi
33368           CATALOGS=
33369           if test -n "$INST_LINGUAS"; then
33370             for lang in $INST_LINGUAS; do
33371               CATALOGS="$CATALOGS $lang.gmo"
33372             done
33373           fi
33374           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33375           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"
33376           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33377             if test -f "$f"; then
33378               case "$f" in
33379                 *.orig | *.bak | *~) ;;
33380                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33381               esac
33382             fi
33383           done
33384         fi
33385         ;;
33386       esac
33387     done ;;
33388     "default":C)
33389  ;;
33390
33391   esac
33392 done # for ac_tag
33393
33394
33395 as_fn_exit 0
33396 _ACEOF
33397 ac_clean_files=$ac_clean_files_save
33398
33399 test $ac_write_fail = 0 ||
33400   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33401
33402
33403 # configure is writing to config.log, and then calls config.status.
33404 # config.status does its own redirection, appending to config.log.
33405 # Unfortunately, on DOS this fails, as config.log is still kept open
33406 # by configure, so config.status won't be able to write to it; its
33407 # output is simply discarded.  So we exec the FD to /dev/null,
33408 # effectively closing config.log, so it can be properly (re)opened and
33409 # appended to by config.status.  When coming back to configure, we
33410 # need to make the FD available again.
33411 if test "$no_create" != yes; then
33412   ac_cs_success=:
33413   ac_config_status_args=
33414   test "$silent" = yes &&
33415     ac_config_status_args="$ac_config_status_args --quiet"
33416   exec 5>/dev/null
33417   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33418   exec 5>>config.log
33419   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33420   # would make configure fail if this is the last instruction.
33421   $ac_cs_success || as_fn_exit 1
33422 fi
33423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33424   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33426 fi
33427
33428
33429 if test "${support_bat}" = "yes" ; then
33430    if test "x$QMAKE" = "xnone"; then
33431       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33432    fi
33433
33434    cd src/qt-console
33435    echo "Creating bat Makefile"
33436    touch bat
33437    chmod 755 bat
33438    rm -f Makefile
33439    rm -rf moc32 obj32
33440    $QMAKE
33441    ${MAKE:-make} clean
33442    cd ${BUILD_DIR}
33443 fi
33444
33445 if test X"$GCC" = "Xyes" ; then
33446   echo "Doing make of dependencies"
33447   ${MAKE:-make} depend
33448 fi
33449
33450 cd src/qt-console
33451 chmod 755 install_conf_file build-depkgs-qt-console
33452 cd ${BUILD_DIR}
33453
33454 cd scripts
33455 chmod 755 bacula btraceback mtx-changer storage-ctl bsg_persist
33456 chmod 755 dvd-handler dvd-simulator
33457 chmod 755 bconsole disk-changer devel_bacula logrotate
33458 cd ..
33459
33460 c=updatedb
33461 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33462 chmod 755 $c/update_postgresql_tables_10_to_11
33463 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33464 chmod 755 $c/update_postgresql_tables_11_to_12
33465
33466
33467 c=src/cats
33468
33469 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33470 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33471
33472 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33473 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33474
33475 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33476 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33477
33478 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33479 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33480
33481 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33482 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33483
33484
33485 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33486 chmod 755 $c/sqlite
33487 chmod 755 $c/mysql
33488
33489 chmod 755 $c/install-default-backend
33490
33491 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33492    largefile_support="yes"
33493 fi
33494
33495 if test X"$GCC" = "Xyes" ; then
33496                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33497    if test "x${CCVERSION}" = "x" ; then
33498       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33499    fi
33500    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33501    if test x"${CXXVERSION}" = x ; then
33502       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33503    fi
33504 fi
33505
33506 # clean up any old junk
33507 echo " "
33508 echo "Cleaning up"
33509 echo " "
33510 ${MAKE:-make} clean
33511
33512 echo "
33513 Configuration on `date`:
33514
33515    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33516    Bacula version:          ${BACULA} ${VERSION} (${DATE})
33517    Source code location:    ${srcdir}
33518    Install binaries:        ${sbindir}
33519    Install libraries:       ${libdir}
33520    Install config files:    ${sysconfdir}
33521    Scripts directory:       ${scriptdir}
33522    Archive directory:       ${archivedir}
33523    Working directory:       ${working_dir}
33524    PID directory:           ${piddir}
33525    Subsys directory:        ${subsysdir}
33526    Man directory:           ${mandir}
33527    Data directory:          ${datarootdir}
33528    Plugin directory:        ${plugindir}
33529    C Compiler:              ${CC} ${CCVERSION}
33530    C++ Compiler:            ${CXX} ${CXXVERSION}
33531    Compiler flags:          ${WCFLAGS} ${CFLAGS}
33532    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
33533    Libraries:               ${LIBS}
33534    Statically Linked Tools: ${support_static_tools}
33535    Statically Linked FD:    ${support_static_fd}
33536    Statically Linked SD:    ${support_static_sd}
33537    Statically Linked DIR:   ${support_static_dir}
33538    Statically Linked CONS:  ${support_static_cons}
33539    Database backends:       ${db_backends}
33540    Database port:           ${db_port}
33541    Database name:           ${db_name}
33542    Database user:           ${db_user}
33543
33544    Job Output Email:        ${job_email}
33545    Traceback Email:         ${dump_email}
33546    SMTP Host Address:       ${smtp_host}
33547
33548    Director Port:           ${dir_port}
33549    File daemon Port:        ${fd_port}
33550    Storage daemon Port:     ${sd_port}
33551
33552    Director User:           ${dir_user}
33553    Director Group:          ${dir_group}
33554    Storage Daemon User:     ${sd_user}
33555    Storage DaemonGroup:     ${sd_group}
33556    File Daemon User:        ${fd_user}
33557    File Daemon Group:       ${fd_group}
33558
33559    Large file support:      $largefile_support
33560    Bacula conio support:    ${got_conio} ${CONS_LIBS}
33561    readline support:        ${got_readline} ${PRTREADLINE_SRC}
33562    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
33563    TLS support:             ${support_tls}
33564    Encryption support:      ${support_crypto}
33565    ZLIB support:            ${have_zlib}
33566    LZO support:             ${have_lzo}
33567    enable-smartalloc:       ${support_smartalloc}
33568    enable-lockmgr:          ${support_lockmgr}
33569    bat support:             ${support_bat}
33570    client-only:             ${build_client_only}
33571    build-dird:              ${build_dird}
33572    build-stored:            ${build_stored}
33573    Plugin support:          ${have_plugins}
33574    AFS support:             ${have_afs}
33575    ACL support:             ${have_acl}
33576    XATTR support:           ${have_xattr}
33577    systemd support:         ${support_systemd} ${SYSTEMD_UNITDIR}
33578    Batch insert enabled:    ${batch_insert_db_backends}
33579
33580   " > config.out
33581
33582 # create a small shell script useful for support with
33583 # configure options and config.out info
33584 cat > scripts/bacula_config << EOF
33585 #!/bin/sh
33586 cat << __EOC__
33587 $ $0 $ac_configure_args
33588 EOF
33589 cat config.out >> scripts/bacula_config
33590 echo __EOC__ >> scripts/bacula_config
33591 chmod 755 scripts/bacula_config
33592
33593 cat config.out