]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
8c65d4f5426612a41f86d9068b612d8b36b6439e
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='9.0.3'
591 PACKAGE_STRING='bacula 9.0.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='LTLIBOBJS
634 COMPRESS_MANPAGES
635 DISTVER
636 DISTNAME
637 MACOSX
638 WIN32
639 PSCMD
640 TAPEDRIVE
641 SYSTEMD_UNITDIR
642 OBJLIST
643 WRAPLIBS
644 WLDFLAGS
645 WCFLAGS
646 DLIB
647 DINCLUDE
648 DEBUG
649 FDLIBS
650 CAP_LIBS
651 LZO_LIBS
652 LZO_INC
653 AFS_LIBS
654 AFS_CFLAGS
655 ZLIBS
656 S3_LIBS
657 S3_INC
658 LIBOBJS
659 X_EXTRA_LIBS
660 X_LIBS
661 X_PRE_LIBS
662 X_CFLAGS
663 XMKMF
664 GETCONF
665 SHARED_CATALOG_TARGETS
666 DEFAULT_DB_TYPE
667 DB_LIBS
668 DB_BACKENDS
669 uncomment_dbi
670 SQLITE_BINDIR
671 SQLITE_INCLUDE
672 SQLITE_LIBS
673 MYSQL_BINDIR
674 MYSQL_INCLUDE
675 MYSQL_LIBS
676 POSTGRESQL_BINDIR
677 POSTGRESQL_INCLUDE
678 POSTGRESQL_LIBS
679 SBINPERM
680 fd_group
681 fd_user
682 sd_group
683 sd_user
684 dir_group
685 dir_user
686 db_ssl_options
687 db_port
688 db_password
689 db_user
690 db_name
691 mon_sd_password
692 mon_fd_password
693 mon_dir_password
694 sd_password
695 fd_password
696 dir_password
697 sd_port
698 fd_port
699 dir_port
700 baseport
701 subsysdir
702 piddir
703 smtp_host
704 job_email
705 dump_email
706 plugindir
707 logdir
708 bsrdir
709 scriptdir
710 hostname
711 basename
712 archivedir
713 working_dir
714 OPENSSL_INC
715 OPENSSL_LIBS
716 READLINE_SRC
717 CONS_LDFLAGS
718 CONS_LIBS
719 CONS_SRC
720 CONS_OBJ
721 CONS_INC
722 STORED_DIR
723 DIR_TOOLS
724 DIRD_DIR
725 ALL_DIRS
726 STATIC_CONS
727 STATIC_DIR
728 STATIC_SD
729 STATIC_FD
730 TTOOL_LDFLAGS
731 QWT
732 QWT_LIB
733 QWT_LDFLAGS
734 QWT_INC
735 BAT_DIR
736 INTL_LIBTOOL_SUFFIX_PREFIX
737 INTLOBJS
738 GENCAT
739 INSTOBJEXT
740 DATADIRNAME
741 CATOBJEXT
742 USE_INCLUDED_LIBINTL
743 BUILD_INCLUDED_LIBINTL
744 INTLBISON
745 HAVE_WPRINTF
746 HAVE_SNPRINTF
747 HAVE_ASPRINTF
748 HAVE_POSIX_PRINTF
749 GLIBC21
750 ALLOCA
751 GLIBC2
752 POSUB
753 LTLIBINTL
754 LIBINTL
755 INTLLIBS
756 LTLIBICONV
757 LIBICONV
758 INTL_MACOSX_LIBS
759 MSGMERGE
760 XGETTEXT
761 GMSGFMT
762 MSGFMT
763 USE_NLS
764 MKINSTALLDIRS
765 SET_MAKE
766 HAVE_KFREEBSD_OS_FALSE
767 HAVE_KFREEBSD_OS_TRUE
768 HAVE_DARWIN_OS_FALSE
769 HAVE_DARWIN_OS_TRUE
770 HAVE_IRIX_OS_FALSE
771 HAVE_IRIX_OS_TRUE
772 HAVE_SGI_OS_FALSE
773 HAVE_SGI_OS_TRUE
774 HAVE_BSDI_OS_FALSE
775 HAVE_BSDI_OS_TRUE
776 HAVE_OPENBSD_OS_FALSE
777 HAVE_OPENBSD_OS_TRUE
778 HAVE_NETBSD_OS_FALSE
779 HAVE_NETBSD_OS_TRUE
780 HAVE_FREEBSD_OS_FALSE
781 HAVE_FREEBSD_OS_TRUE
782 HAVE_LINUX_OS_FALSE
783 HAVE_LINUX_OS_TRUE
784 HAVE_HPUX_OS_FALSE
785 HAVE_HPUX_OS_TRUE
786 HAVE_AIX_OS_FALSE
787 HAVE_AIX_OS_TRUE
788 HAVE_OSF1_OS_FALSE
789 HAVE_OSF1_OS_TRUE
790 HAVE_HURD_OS_FALSE
791 HAVE_HURD_OS_TRUE
792 HAVE_SUN_OS_FALSE
793 HAVE_SUN_OS_TRUE
794 INCLUDE_UNINSTALL_TARGET
795 INCLUDE_INSTALL_TARGET
796 FD_PLUGIN_DIR
797 QMAKE_LIBTOOL
798 LIBTOOL_CLEAN_TARGET
799 LIBTOOL_UNINSTALL_TARGET
800 LIBTOOL_INSTALL_TARGET
801 DEFAULT_SHARED_OBJECT_TYPE
802 DEFAULT_ARCHIVE_TYPE
803 DEFAULT_OBJECT_TYPE
804 LIBADD_DL
805 LT_DLPREOPEN
806 LIBADD_DLD_LINK
807 LIBADD_SHL_LOAD
808 LIBADD_DLOPEN
809 LT_DLLOADERS
810 CXXCPP
811 OTOOL64
812 OTOOL
813 LIPO
814 NMEDIT
815 DSYMUTIL
816 MANIFEST_TOOL
817 RANLIB
818 STRIP
819 ac_ct_AR
820 DLLTOOL
821 OBJDUMP
822 LN_S
823 NM
824 ac_ct_DUMPBIN
825 DUMPBIN
826 LD
827 FGREP
828 host_os
829 host_vendor
830 host_cpu
831 host
832 build_os
833 build_vendor
834 build_cpu
835 build
836 LIBTOOL
837 LOCAL_DEFS
838 LOCAL_LDFLAGS
839 LOCAL_CFLAGS
840 LOCAL_LIBS
841 MAKE_SHELL
842 ARFLAGS
843 AWK
844 PIDOF
845 GMAKE
846 QMAKE
847 PKGCONFIG
848 DVDRWFORMAT
849 DVDRWMEDIAINFO
850 GROWISOFS
851 PYTHON
852 MKISOFS
853 DD
854 MTX
855 OPENSSL
856 AR
857 TBL
858 CMP
859 ECHO
860 SED
861 CP
862 REMOVE
863 MV
864 INSTALL_DATA
865 INSTALL_SCRIPT
866 INSTALL_PROGRAM
867 EGREP
868 GREP
869 CPP
870 ac_ct_CXX
871 CXXFLAGS
872 CXX
873 OBJEXT
874 EXEEXT
875 ac_ct_CC
876 CPPFLAGS
877 LDFLAGS
878 CFLAGS
879 CC
880 LIBBACFIND_LT_RELEASE
881 LIBBACCATS_LT_RELEASE
882 LIBBACSQL_LT_RELEASE
883 LIBBACCFG_LT_RELEASE
884 LIBBAC_LT_RELEASE
885 LIBRSYNC_VERSION
886 NDMP_VERSION
887 JAVA_VERSION
888 VIX_VERSION
889 BQT4_VERSION
890 DEPKGS_VERSION
891 DEPKGS_QT_VERSION
892 BDB_VERSION
893 post_host
894 BACULA
895 LSMDATE
896 DATE
897 VERSION
898 FALSEPRG
899 TRUEPRG
900 TOP_DIR
901 BUILD_DIR
902 target_alias
903 host_alias
904 build_alias
905 LIBS
906 ECHO_T
907 ECHO_N
908 ECHO_C
909 DEFS
910 mandir
911 localedir
912 libdir
913 psdir
914 pdfdir
915 dvidir
916 htmldir
917 infodir
918 docdir
919 oldincludedir
920 includedir
921 runstatedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files='MCOMMON'
942 ac_user_opts='
943 enable_option_checking
944 enable_libtool
945 enable_shared
946 enable_static
947 with_pic
948 enable_fast_install
949 with_gnu_ld
950 with_sysroot
951 enable_libtool_lock
952 enable_includes
953 enable_nls
954 enable_rpath
955 with_libiconv_prefix
956 with_libintl_prefix
957 with_included_gettext
958 enable_bat
959 enable_smartalloc
960 enable_lockmgr
961 enable_static_tools
962 enable_static_fd
963 enable_static_sd
964 enable_static_dir
965 enable_static_cons
966 enable_client_only
967 enable_build_dird
968 enable_build_stored
969 enable_conio
970 enable_ipv6
971 enable_readline
972 with_readline
973 with_tcp_wrappers
974 with_openssl
975 with_working_dir
976 with_archivedir
977 with_basename
978 with_hostname
979 with_scriptdir
980 with_bsrdir
981 with_logdir
982 with_plugindir
983 with_dump_email
984 with_job_email
985 with_smtp_host
986 with_pid_dir
987 with_subsys_dir
988 with_baseport
989 with_dir_password
990 with_fd_password
991 with_sd_password
992 with_mon_dir_password
993 with_mon_fd_password
994 with_mon_sd_password
995 with_db_name
996 with_db_user
997 with_db_password
998 with_db_port
999 with_db_ssl_options
1000 with_dir_user
1001 with_dir_group
1002 with_sd_user
1003 with_sd_group
1004 with_fd_user
1005 with_fd_group
1006 with_sbin_perm
1007 enable_batch_insert
1008 with_postgresql
1009 with_mysql
1010 with_embedded_mysql
1011 with_sqlite3
1012 enable_largefile
1013 with_x
1014 with_s3
1015 enable_afs
1016 with_afsdir
1017 enable_lzo
1018 with_lzo
1019 enable_acl
1020 enable_xattr
1021 with_systemd
1022 '
1023       ac_precious_vars='build_alias
1024 host_alias
1025 target_alias
1026 CC
1027 CFLAGS
1028 LDFLAGS
1029 LIBS
1030 CPPFLAGS
1031 CXX
1032 CXXFLAGS
1033 CCC
1034 CPP
1035 CXXCPP
1036 XMKMF'
1037
1038
1039 # Initialize some variables set by options.
1040 ac_init_help=
1041 ac_init_version=false
1042 ac_unrecognized_opts=
1043 ac_unrecognized_sep=
1044 # The variables have the same names as the options, with
1045 # dashes changed to underlines.
1046 cache_file=/dev/null
1047 exec_prefix=NONE
1048 no_create=
1049 no_recursion=
1050 prefix=NONE
1051 program_prefix=NONE
1052 program_suffix=NONE
1053 program_transform_name=s,x,x,
1054 silent=
1055 site=
1056 srcdir=
1057 verbose=
1058 x_includes=NONE
1059 x_libraries=NONE
1060
1061 # Installation directory options.
1062 # These are left unexpanded so users can "make install exec_prefix=/foo"
1063 # and all the variables that are supposed to be based on exec_prefix
1064 # by default will actually change.
1065 # Use braces instead of parens because sh, perl, etc. also accept them.
1066 # (The list follows the same order as the GNU Coding Standards.)
1067 bindir='${exec_prefix}/bin'
1068 sbindir='${exec_prefix}/sbin'
1069 libexecdir='${exec_prefix}/libexec'
1070 datarootdir='${prefix}/share'
1071 datadir='${datarootdir}'
1072 sysconfdir='${prefix}/etc'
1073 sharedstatedir='${prefix}/com'
1074 localstatedir='${prefix}/var'
1075 runstatedir='${localstatedir}/run'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1079 infodir='${datarootdir}/info'
1080 htmldir='${docdir}'
1081 dvidir='${docdir}'
1082 pdfdir='${docdir}'
1083 psdir='${docdir}'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1087
1088 ac_prev=
1089 ac_dashdash=
1090 for ac_option
1091 do
1092   # If the previous option needs an argument, assign it.
1093   if test -n "$ac_prev"; then
1094     eval $ac_prev=\$ac_option
1095     ac_prev=
1096     continue
1097   fi
1098
1099   case $ac_option in
1100   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101   *=)   ac_optarg= ;;
1102   *)    ac_optarg=yes ;;
1103   esac
1104
1105   # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107   case $ac_dashdash$ac_option in
1108   --)
1109     ac_dashdash=yes ;;
1110
1111   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112     ac_prev=bindir ;;
1113   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114     bindir=$ac_optarg ;;
1115
1116   -build | --build | --buil | --bui | --bu)
1117     ac_prev=build_alias ;;
1118   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119     build_alias=$ac_optarg ;;
1120
1121   -cache-file | --cache-file | --cache-fil | --cache-fi \
1122   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123     ac_prev=cache_file ;;
1124   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126     cache_file=$ac_optarg ;;
1127
1128   --config-cache | -C)
1129     cache_file=config.cache ;;
1130
1131   -datadir | --datadir | --datadi | --datad)
1132     ac_prev=datadir ;;
1133   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134     datadir=$ac_optarg ;;
1135
1136   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137   | --dataroo | --dataro | --datar)
1138     ac_prev=datarootdir ;;
1139   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141     datarootdir=$ac_optarg ;;
1142
1143   -disable-* | --disable-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid feature name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval enable_$ac_useropt=no ;;
1158
1159   -docdir | --docdir | --docdi | --doc | --do)
1160     ac_prev=docdir ;;
1161   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162     docdir=$ac_optarg ;;
1163
1164   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165     ac_prev=dvidir ;;
1166   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167     dvidir=$ac_optarg ;;
1168
1169   -enable-* | --enable-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid feature name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "enable_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187   | --exec | --exe | --ex)
1188     ac_prev=exec_prefix ;;
1189   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191   | --exec=* | --exe=* | --ex=*)
1192     exec_prefix=$ac_optarg ;;
1193
1194   -gas | --gas | --ga | --g)
1195     # Obsolete; use --with-gas.
1196     with_gas=yes ;;
1197
1198   -help | --help | --hel | --he | -h)
1199     ac_init_help=long ;;
1200   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201     ac_init_help=recursive ;;
1202   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203     ac_init_help=short ;;
1204
1205   -host | --host | --hos | --ho)
1206     ac_prev=host_alias ;;
1207   -host=* | --host=* | --hos=* | --ho=*)
1208     host_alias=$ac_optarg ;;
1209
1210   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211     ac_prev=htmldir ;;
1212   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213   | --ht=*)
1214     htmldir=$ac_optarg ;;
1215
1216   -includedir | --includedir | --includedi | --included | --include \
1217   | --includ | --inclu | --incl | --inc)
1218     ac_prev=includedir ;;
1219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220   | --includ=* | --inclu=* | --incl=* | --inc=*)
1221     includedir=$ac_optarg ;;
1222
1223   -infodir | --infodir | --infodi | --infod | --info | --inf)
1224     ac_prev=infodir ;;
1225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226     infodir=$ac_optarg ;;
1227
1228   -libdir | --libdir | --libdi | --libd)
1229     ac_prev=libdir ;;
1230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231     libdir=$ac_optarg ;;
1232
1233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234   | --libexe | --libex | --libe)
1235     ac_prev=libexecdir ;;
1236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237   | --libexe=* | --libex=* | --libe=*)
1238     libexecdir=$ac_optarg ;;
1239
1240   -localedir | --localedir | --localedi | --localed | --locale)
1241     ac_prev=localedir ;;
1242   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243     localedir=$ac_optarg ;;
1244
1245   -localstatedir | --localstatedir | --localstatedi | --localstated \
1246   | --localstate | --localstat | --localsta | --localst | --locals)
1247     ac_prev=localstatedir ;;
1248   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250     localstatedir=$ac_optarg ;;
1251
1252   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253     ac_prev=mandir ;;
1254   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255     mandir=$ac_optarg ;;
1256
1257   -nfp | --nfp | --nf)
1258     # Obsolete; use --without-fp.
1259     with_fp=no ;;
1260
1261   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262   | --no-cr | --no-c | -n)
1263     no_create=yes ;;
1264
1265   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267     no_recursion=yes ;;
1268
1269   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271   | --oldin | --oldi | --old | --ol | --o)
1272     ac_prev=oldincludedir ;;
1273   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276     oldincludedir=$ac_optarg ;;
1277
1278   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279     ac_prev=prefix ;;
1280   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281     prefix=$ac_optarg ;;
1282
1283   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284   | --program-pre | --program-pr | --program-p)
1285     ac_prev=program_prefix ;;
1286   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288     program_prefix=$ac_optarg ;;
1289
1290   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291   | --program-suf | --program-su | --program-s)
1292     ac_prev=program_suffix ;;
1293   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295     program_suffix=$ac_optarg ;;
1296
1297   -program-transform-name | --program-transform-name \
1298   | --program-transform-nam | --program-transform-na \
1299   | --program-transform-n | --program-transform- \
1300   | --program-transform | --program-transfor \
1301   | --program-transfo | --program-transf \
1302   | --program-trans | --program-tran \
1303   | --progr-tra | --program-tr | --program-t)
1304     ac_prev=program_transform_name ;;
1305   -program-transform-name=* | --program-transform-name=* \
1306   | --program-transform-nam=* | --program-transform-na=* \
1307   | --program-transform-n=* | --program-transform-=* \
1308   | --program-transform=* | --program-transfor=* \
1309   | --program-transfo=* | --program-transf=* \
1310   | --program-trans=* | --program-tran=* \
1311   | --progr-tra=* | --program-tr=* | --program-t=*)
1312     program_transform_name=$ac_optarg ;;
1313
1314   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315     ac_prev=pdfdir ;;
1316   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317     pdfdir=$ac_optarg ;;
1318
1319   -psdir | --psdir | --psdi | --psd | --ps)
1320     ac_prev=psdir ;;
1321   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322     psdir=$ac_optarg ;;
1323
1324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325   | -silent | --silent | --silen | --sile | --sil)
1326     silent=yes ;;
1327
1328   -runstatedir | --runstatedir | --runstatedi | --runstated \
1329   | --runstate | --runstat | --runsta | --runst | --runs \
1330   | --run | --ru | --r)
1331     ac_prev=runstatedir ;;
1332   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1333   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1334   | --run=* | --ru=* | --r=*)
1335     runstatedir=$ac_optarg ;;
1336
1337   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1338     ac_prev=sbindir ;;
1339   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1340   | --sbi=* | --sb=*)
1341     sbindir=$ac_optarg ;;
1342
1343   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1344   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1345   | --sharedst | --shareds | --shared | --share | --shar \
1346   | --sha | --sh)
1347     ac_prev=sharedstatedir ;;
1348   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1349   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1350   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1351   | --sha=* | --sh=*)
1352     sharedstatedir=$ac_optarg ;;
1353
1354   -site | --site | --sit)
1355     ac_prev=site ;;
1356   -site=* | --site=* | --sit=*)
1357     site=$ac_optarg ;;
1358
1359   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1360     ac_prev=srcdir ;;
1361   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1362     srcdir=$ac_optarg ;;
1363
1364   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1365   | --syscon | --sysco | --sysc | --sys | --sy)
1366     ac_prev=sysconfdir ;;
1367   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1368   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1369     sysconfdir=$ac_optarg ;;
1370
1371   -target | --target | --targe | --targ | --tar | --ta | --t)
1372     ac_prev=target_alias ;;
1373   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1374     target_alias=$ac_optarg ;;
1375
1376   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377     verbose=yes ;;
1378
1379   -version | --version | --versio | --versi | --vers | -V)
1380     ac_init_version=: ;;
1381
1382   -with-* | --with-*)
1383     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1384     # Reject names that are not valid shell variable names.
1385     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1386       as_fn_error $? "invalid package name: $ac_useropt"
1387     ac_useropt_orig=$ac_useropt
1388     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1389     case $ac_user_opts in
1390       *"
1391 "with_$ac_useropt"
1392 "*) ;;
1393       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1394          ac_unrecognized_sep=', ';;
1395     esac
1396     eval with_$ac_useropt=\$ac_optarg ;;
1397
1398   -without-* | --without-*)
1399     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1400     # Reject names that are not valid shell variable names.
1401     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1402       as_fn_error $? "invalid package name: $ac_useropt"
1403     ac_useropt_orig=$ac_useropt
1404     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1405     case $ac_user_opts in
1406       *"
1407 "with_$ac_useropt"
1408 "*) ;;
1409       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1410          ac_unrecognized_sep=', ';;
1411     esac
1412     eval with_$ac_useropt=no ;;
1413
1414   --x)
1415     # Obsolete; use --with-x.
1416     with_x=yes ;;
1417
1418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419   | --x-incl | --x-inc | --x-in | --x-i)
1420     ac_prev=x_includes ;;
1421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423     x_includes=$ac_optarg ;;
1424
1425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427     ac_prev=x_libraries ;;
1428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430     x_libraries=$ac_optarg ;;
1431
1432   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1433 Try \`$0 --help' for more information"
1434     ;;
1435
1436   *=*)
1437     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438     # Reject names that are not valid shell variable names.
1439     case $ac_envvar in #(
1440       '' | [0-9]* | *[!_$as_cr_alnum]* )
1441       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1442     esac
1443     eval $ac_envvar=\$ac_optarg
1444     export $ac_envvar ;;
1445
1446   *)
1447     # FIXME: should be removed in autoconf 3.0.
1448     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1452     ;;
1453
1454   esac
1455 done
1456
1457 if test -n "$ac_prev"; then
1458   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1459   as_fn_error $? "missing argument to $ac_option"
1460 fi
1461
1462 if test -n "$ac_unrecognized_opts"; then
1463   case $enable_option_checking in
1464     no) ;;
1465     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1466     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1467   esac
1468 fi
1469
1470 # Check all directory arguments for consistency.
1471 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1472                 datadir sysconfdir sharedstatedir localstatedir includedir \
1473                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1474                 libdir localedir mandir runstatedir
1475 do
1476   eval ac_val=\$$ac_var
1477   # Remove trailing slashes.
1478   case $ac_val in
1479     */ )
1480       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1481       eval $ac_var=\$ac_val;;
1482   esac
1483   # Be sure to have absolute directory names.
1484   case $ac_val in
1485     [\\/$]* | ?:[\\/]* )  continue;;
1486     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1487   esac
1488   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1489 done
1490
1491 # There might be people who depend on the old broken behavior: `$host'
1492 # used to hold the argument of --host etc.
1493 # FIXME: To remove some day.
1494 build=$build_alias
1495 host=$host_alias
1496 target=$target_alias
1497
1498 # FIXME: To remove some day.
1499 if test "x$host_alias" != x; then
1500   if test "x$build_alias" = x; then
1501     cross_compiling=maybe
1502   elif test "x$build_alias" != "x$host_alias"; then
1503     cross_compiling=yes
1504   fi
1505 fi
1506
1507 ac_tool_prefix=
1508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1509
1510 test "$silent" = yes && exec 6>/dev/null
1511
1512
1513 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1514 ac_ls_di=`ls -di .` &&
1515 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1516   as_fn_error $? "working directory cannot be determined"
1517 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1518   as_fn_error $? "pwd does not report name of working directory"
1519
1520
1521 # Find the source files, if location was not specified.
1522 if test -z "$srcdir"; then
1523   ac_srcdir_defaulted=yes
1524   # Try the directory containing this script, then the parent directory.
1525   ac_confdir=`$as_dirname -- "$as_myself" ||
1526 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1527          X"$as_myself" : 'X\(//\)[^/]' \| \
1528          X"$as_myself" : 'X\(//\)$' \| \
1529          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1530 $as_echo X"$as_myself" |
1531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1532             s//\1/
1533             q
1534           }
1535           /^X\(\/\/\)[^/].*/{
1536             s//\1/
1537             q
1538           }
1539           /^X\(\/\/\)$/{
1540             s//\1/
1541             q
1542           }
1543           /^X\(\/\).*/{
1544             s//\1/
1545             q
1546           }
1547           s/.*/./; q'`
1548   srcdir=$ac_confdir
1549   if test ! -r "$srcdir/$ac_unique_file"; then
1550     srcdir=..
1551   fi
1552 else
1553   ac_srcdir_defaulted=no
1554 fi
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1557   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1558 fi
1559 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1560 ac_abs_confdir=`(
1561         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1562         pwd)`
1563 # When building in place, set srcdir=.
1564 if test "$ac_abs_confdir" = "$ac_pwd"; then
1565   srcdir=.
1566 fi
1567 # Remove unnecessary trailing slashes from srcdir.
1568 # Double slashes in file names in object file debugging info
1569 # mess up M-x gdb in Emacs.
1570 case $srcdir in
1571 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1572 esac
1573 for ac_var in $ac_precious_vars; do
1574   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1575   eval ac_env_${ac_var}_value=\$${ac_var}
1576   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1577   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1578 done
1579
1580 #
1581 # Report the --help message.
1582 #
1583 if test "$ac_init_help" = "long"; then
1584   # Omit some internal or obsolete options to make the list less imposing.
1585   # This message is too long to be a string in the A/UX 3.1 sh.
1586   cat <<_ACEOF
1587 \`configure' configures bacula 9.0.3 to adapt to many kinds of systems.
1588
1589 Usage: $0 [OPTION]... [VAR=VALUE]...
1590
1591 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1592 VAR=VALUE.  See below for descriptions of some of the useful variables.
1593
1594 Defaults for the options are specified in brackets.
1595
1596 Configuration:
1597   -h, --help              display this help and exit
1598       --help=short        display options specific to this package
1599       --help=recursive    display the short help of all the included packages
1600   -V, --version           display version information and exit
1601   -q, --quiet, --silent   do not print \`checking ...' messages
1602       --cache-file=FILE   cache test results in FILE [disabled]
1603   -C, --config-cache      alias for \`--cache-file=config.cache'
1604   -n, --no-create         do not create output files
1605       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1606
1607 Installation directories:
1608   --prefix=PREFIX         install architecture-independent files in PREFIX
1609                           [$ac_default_prefix]
1610   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1611                           [PREFIX]
1612
1613 By default, \`make install' will install all the files in
1614 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1615 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1616 for instance \`--prefix=\$HOME'.
1617
1618 For better control, use the options below.
1619
1620 Fine tuning of the installation directories:
1621   --bindir=DIR            user executables [EPREFIX/bin]
1622   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1623   --libexecdir=DIR        program executables [EPREFIX/libexec]
1624   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1625   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1626   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1627   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1628   --libdir=DIR            object code libraries [EPREFIX/lib]
1629   --includedir=DIR        C header files [PREFIX/include]
1630   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1631   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1632   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1633   --infodir=DIR           info documentation [DATAROOTDIR/info]
1634   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1635   --mandir=DIR            man documentation [DATAROOTDIR/man]
1636   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1637   --htmldir=DIR           html documentation [DOCDIR]
1638   --dvidir=DIR            dvi documentation [DOCDIR]
1639   --pdfdir=DIR            pdf documentation [DOCDIR]
1640   --psdir=DIR             ps documentation [DOCDIR]
1641 _ACEOF
1642
1643   cat <<\_ACEOF
1644
1645 X features:
1646   --x-includes=DIR    X include files are in DIR
1647   --x-libraries=DIR   X library files are in DIR
1648
1649 System types:
1650   --build=BUILD     configure for building on BUILD [guessed]
1651   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1652 _ACEOF
1653 fi
1654
1655 if test -n "$ac_init_help"; then
1656   case $ac_init_help in
1657      short | recursive ) echo "Configuration of bacula 9.0.3:";;
1658    esac
1659   cat <<\_ACEOF
1660
1661 Optional Features:
1662   --disable-option-checking  ignore unrecognized --enable/--with options
1663   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1664   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1665   --enable-libtool        enable building using GNU libtool [default=yes]
1666   --enable-shared[=PKGS]  build shared libraries [default=yes]
1667   --enable-static[=PKGS]  build static libraries [default=no]
1668   --enable-fast-install[=PKGS]
1669                           optimize for fast installation [default=yes]
1670   --disable-libtool-lock  avoid locking (might break parallel builds)
1671   --enable-includes       enable installing of include files [default=no]
1672   --disable-nls           do not use Native Language Support
1673   --disable-rpath         do not hardcode runtime library paths
1674   --enable-bat            enable build of bat Qt4 GUI [default=no]
1675   --enable-smartalloc     enable smartalloc debugging support [default=no]
1676   --enable-lockmgr        enable lock manager support [default=no]
1677   --enable-static-tools   enable static tape tools [default=no]
1678   --enable-static-fd      enable static File daemon [default=no]
1679   --enable-static-sd      enable static Storage daemon [default=no]
1680   --enable-static-dir     enable static Director [default=no]
1681   --enable-static-cons    enable static Console [default=no]
1682   --enable-client-only    build client (File daemon) only [default=no]
1683   --enable-build-dird     enable building of dird (Director) [default=yes]
1684   --enable-build-stored   enable building of stored (Storage daemon)
1685                           [default=yes]
1686   --disable-conio         disable conio support [default=no]
1687   --enable-ipv6           enable ipv6 support [default=yes]
1688   --disable-readline      disable readline support [default=yes]
1689   --enable-batch-insert   enable the DB batch insert code [default=yes]
1690   --disable-largefile     omit support for large files
1691   --disable-afs           disable afs support [default=auto]
1692   --disable-lzo           disable lzo support [default=yes]
1693   --disable-acl           disable acl support [default=auto]
1694   --disable-xattr         disable xattr support [default=auto]
1695
1696 Optional Packages:
1697   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1698   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1699   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1700                           both]
1701   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1702   --with-sysroot=DIR Search for dependent libraries within DIR
1703                         (or the compiler's sysroot if not specified).
1704   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1705   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1706   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1707   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1708   --without-libintl-prefix     don't search for libintl in includedir and libdir
1709   --with-included-gettext use the GNU gettext library included here
1710   --with-readline[=DIR]   specify readline library directory
1711   --with-tcp-wrappers[=DIR]
1712                           enable tcpwrappers support
1713   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1714   --with-working-dir=PATH specify path of Bacula working directory
1715   --with-archivedir=PATH  specify path of SD archive directory
1716   --with-basename=RESNAME specify base resource name for daemons
1717   --with-hostname=RESNAME specify host name for daemons
1718   --with-scriptdir=PATH   specify path of Bacula scripts directory
1719   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1720   --with-logdir=PATH      specify path of Bacula logs directory
1721   --with-plugindir=PATH   specify path of Bacula plugins directory
1722   --with-dump-email=EMAIL dump email address
1723   --with-job-email=EMAIL  job output email address
1724   --with-smtp-host=HOST   SMTP mail host address
1725   --with-pid-dir=PATH     specify location of Bacula pid files
1726   --with-subsys-dir=PATH  specify location of Bacula subsys file
1727   --with-baseport=PORT    specify base port address for daemons
1728   --with-dir-password=PASSWORD
1729                           specify Director's password
1730   --with-fd-password=PASSWORD
1731                           specify Client's password
1732   --with-sd-password=PASSWORD
1733                           specify Storage daemon's password
1734   --with-mon-dir-password=PASSWORD
1735                           specify Director's password used by the monitor
1736   --with-mon-fd-password=PASSWORD
1737                           specify Client's password used by the monitor
1738   --with-mon-sd-password=PASSWORD
1739                           specify Storage daemon's password used by the
1740                           monitor
1741   --with-db-name=DBNAME   specify database name [default=bacula]
1742   --with-db-user=UNAME    specify database user [default=bacula]
1743   --with-db-password=PWD  specify database password [default=*none*]
1744   --with-db-port=DBPORT   specify a database port [default=null]
1745   --with-db-ssl-options=DBSSLOPTIONS
1746                           specify SSL options for database user connection
1747                           [default=null]
1748   --with-dir-user=USER    specify user for Director daemon
1749   --with-dir-group=GROUP  specify group for Director daemon
1750   --with-sd-user=USER     specify user for Storage daemon
1751   --with-sd-group=GROUP   specify group for Storage daemon
1752   --with-fd-user=USER     specify user for File daemon
1753   --with-fd-group=GROUP   specify group for File daemon
1754   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1755   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1756                           base install directory, [default=/usr/local/pgsql]
1757   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1758                           directory, default is to search through a number of
1759                           common places for the MySQL files.
1760   --with-embedded-mysql[=DIR]
1761                           Include MySQL support. DIR is the MySQL base install
1762                           directory, default is to search through a number of
1763                           common places for the MySQL files.
1764   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1765                           install directory, default is to search through a
1766                           number of common places for the SQLite3 files.
1767   --with-x                use the X Window System
1768   --with-s3[=DIR]         specify s3 library directory
1769   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1770   --with-lzo[=DIR]        specify lzo library directory
1771   --with-systemd[=UNITDIR]
1772                           Include systemd support. UNITDIR is where systemd
1773                           system .service files are located, default is to ask
1774                           systemctl.
1775
1776 Some influential environment variables:
1777   CC          C compiler command
1778   CFLAGS      C compiler flags
1779   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1780               nonstandard directory <lib dir>
1781   LIBS        libraries to pass to the linker, e.g. -l<library>
1782   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1783               you have headers in a nonstandard directory <include dir>
1784   CXX         C++ compiler command
1785   CXXFLAGS    C++ compiler flags
1786   CPP         C preprocessor
1787   CXXCPP      C++ preprocessor
1788   XMKMF       Path to xmkmf, Makefile generator for X Window System
1789
1790 Use these variables to override the choices made by `configure' or to help
1791 it to find libraries and programs with nonstandard names/locations.
1792
1793 Report bugs to the package provider.
1794 _ACEOF
1795 ac_status=$?
1796 fi
1797
1798 if test "$ac_init_help" = "recursive"; then
1799   # If there are subdirs, report their specific --help.
1800   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1801     test -d "$ac_dir" ||
1802       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1803       continue
1804     ac_builddir=.
1805
1806 case "$ac_dir" in
1807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 *)
1809   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1810   # A ".." for each directory in $ac_dir_suffix.
1811   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1812   case $ac_top_builddir_sub in
1813   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1815   esac ;;
1816 esac
1817 ac_abs_top_builddir=$ac_pwd
1818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1819 # for backward compatibility:
1820 ac_top_builddir=$ac_top_build_prefix
1821
1822 case $srcdir in
1823   .)  # We are building in place.
1824     ac_srcdir=.
1825     ac_top_srcdir=$ac_top_builddir_sub
1826     ac_abs_top_srcdir=$ac_pwd ;;
1827   [\\/]* | ?:[\\/]* )  # Absolute name.
1828     ac_srcdir=$srcdir$ac_dir_suffix;
1829     ac_top_srcdir=$srcdir
1830     ac_abs_top_srcdir=$srcdir ;;
1831   *) # Relative name.
1832     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1833     ac_top_srcdir=$ac_top_build_prefix$srcdir
1834     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1835 esac
1836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1837
1838     cd "$ac_dir" || { ac_status=$?; continue; }
1839     # Check for guested configure.
1840     if test -f "$ac_srcdir/configure.gnu"; then
1841       echo &&
1842       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1843     elif test -f "$ac_srcdir/configure"; then
1844       echo &&
1845       $SHELL "$ac_srcdir/configure" --help=recursive
1846     else
1847       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1848     fi || ac_status=$?
1849     cd "$ac_pwd" || { ac_status=$?; break; }
1850   done
1851 fi
1852
1853 test -n "$ac_init_help" && exit $ac_status
1854 if $ac_init_version; then
1855   cat <<\_ACEOF
1856 bacula configure 9.0.3
1857 generated by GNU Autoconf 2.69
1858
1859 Copyright (C) 2012 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1862 _ACEOF
1863   exit
1864 fi
1865
1866 ## ------------------------ ##
1867 ## Autoconf initialization. ##
1868 ## ------------------------ ##
1869
1870 # ac_fn_c_try_compile LINENO
1871 # --------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_compile ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   rm -f conftest.$ac_objext
1877   if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_compile") 2>conftest.err
1885   ac_status=$?
1886   if test -s conftest.err; then
1887     grep -v '^ *+' conftest.err >conftest.er1
1888     cat conftest.er1 >&5
1889     mv -f conftest.er1 conftest.err
1890   fi
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && {
1893          test -z "$ac_c_werror_flag" ||
1894          test ! -s conftest.err
1895        } && test -s conftest.$ac_objext; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901         ac_retval=1
1902 fi
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904   as_fn_set_status $ac_retval
1905
1906 } # ac_fn_c_try_compile
1907
1908 # ac_fn_cxx_try_compile LINENO
1909 # ----------------------------
1910 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_compile ()
1912 {
1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914   rm -f conftest.$ac_objext
1915   if { { ac_try="$ac_compile"
1916 case "(($ac_try" in
1917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918   *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922   (eval "$ac_compile") 2>conftest.err
1923   ac_status=$?
1924   if test -s conftest.err; then
1925     grep -v '^ *+' conftest.err >conftest.er1
1926     cat conftest.er1 >&5
1927     mv -f conftest.er1 conftest.err
1928   fi
1929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930   test $ac_status = 0; } && {
1931          test -z "$ac_cxx_werror_flag" ||
1932          test ! -s conftest.err
1933        } && test -s conftest.$ac_objext; then :
1934   ac_retval=0
1935 else
1936   $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1938
1939         ac_retval=1
1940 fi
1941   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942   as_fn_set_status $ac_retval
1943
1944 } # ac_fn_cxx_try_compile
1945
1946 # ac_fn_c_try_cpp LINENO
1947 # ----------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_cpp ()
1950 {
1951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952   if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 case "(($ac_try" in
1954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955   *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960   ac_status=$?
1961   if test -s conftest.err; then
1962     grep -v '^ *+' conftest.err >conftest.er1
1963     cat conftest.er1 >&5
1964     mv -f conftest.er1 conftest.err
1965   fi
1966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967   test $ac_status = 0; } > conftest.i && {
1968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969          test ! -s conftest.err
1970        }; then :
1971   ac_retval=0
1972 else
1973   $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976     ac_retval=1
1977 fi
1978   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979   as_fn_set_status $ac_retval
1980
1981 } # ac_fn_c_try_cpp
1982
1983 # ac_fn_c_try_link LINENO
1984 # -----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded.
1986 ac_fn_c_try_link ()
1987 {
1988   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989   rm -f conftest.$ac_objext conftest$ac_exeext
1990   if { { ac_try="$ac_link"
1991 case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_link") 2>conftest.err
1998   ac_status=$?
1999   if test -s conftest.err; then
2000     grep -v '^ *+' conftest.err >conftest.er1
2001     cat conftest.er1 >&5
2002     mv -f conftest.er1 conftest.err
2003   fi
2004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005   test $ac_status = 0; } && {
2006          test -z "$ac_c_werror_flag" ||
2007          test ! -s conftest.err
2008        } && test -s conftest$ac_exeext && {
2009          test "$cross_compiling" = yes ||
2010          test -x conftest$ac_exeext
2011        }; then :
2012   ac_retval=0
2013 else
2014   $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017         ac_retval=1
2018 fi
2019   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2020   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2021   # interfere with the next link command; also delete a directory that is
2022   # left behind by Apple's compiler.  We do this before executing the actions.
2023   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025   as_fn_set_status $ac_retval
2026
2027 } # ac_fn_c_try_link
2028
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile ()
2034 {
2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039   $as_echo_n "(cached) " >&6
2040 else
2041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047   eval "$3=yes"
2048 else
2049   eval "$3=no"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058 } # ac_fn_c_check_header_compile
2059
2060 # ac_fn_c_try_run LINENO
2061 # ----------------------
2062 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2063 # that executables *can* be run.
2064 ac_fn_c_try_run ()
2065 {
2066   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067   if { { ac_try="$ac_link"
2068 case "(($ac_try" in
2069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070   *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074   (eval "$ac_link") 2>&5
2075   ac_status=$?
2076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2078   { { case "(($ac_try" in
2079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080   *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084   (eval "$ac_try") 2>&5
2085   ac_status=$?
2086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087   test $ac_status = 0; }; }; then :
2088   ac_retval=0
2089 else
2090   $as_echo "$as_me: program exited with status $ac_status" >&5
2091        $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2093
2094        ac_retval=$ac_status
2095 fi
2096   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2097   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098   as_fn_set_status $ac_retval
2099
2100 } # ac_fn_c_try_run
2101
2102 # ac_fn_c_check_func LINENO FUNC VAR
2103 # ----------------------------------
2104 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2105 ac_fn_c_check_func ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111   $as_echo_n "(cached) " >&6
2112 else
2113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2117 #define $2 innocuous_$2
2118
2119 /* System header to define __stub macros and hopefully few prototypes,
2120     which can conflict with char $2 (); below.
2121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2122     <limits.h> exists even on freestanding compilers.  */
2123
2124 #ifdef __STDC__
2125 # include <limits.h>
2126 #else
2127 # include <assert.h>
2128 #endif
2129
2130 #undef $2
2131
2132 /* Override any GCC internal prototype to avoid an error.
2133    Use char because int might match the return type of a GCC
2134    builtin and then its argument prototype would still apply.  */
2135 #ifdef __cplusplus
2136 extern "C"
2137 #endif
2138 char $2 ();
2139 /* The GNU C library defines this for functions which it implements
2140     to always fail with ENOSYS.  Some functions are actually named
2141     something starting with __ and the normal name is an alias.  */
2142 #if defined __stub_$2 || defined __stub___$2
2143 choke me
2144 #endif
2145
2146 int
2147 main ()
2148 {
2149 return $2 ();
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_link "$LINENO"; then :
2155   eval "$3=yes"
2156 else
2157   eval "$3=no"
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext \
2160     conftest$ac_exeext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167 } # ac_fn_c_check_func
2168
2169 # ac_fn_cxx_try_cpp LINENO
2170 # ------------------------
2171 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_cpp ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   if { { ac_try="$ac_cpp conftest.$ac_ext"
2176 case "(($ac_try" in
2177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178   *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2183   ac_status=$?
2184   if test -s conftest.err; then
2185     grep -v '^ *+' conftest.err >conftest.er1
2186     cat conftest.er1 >&5
2187     mv -f conftest.er1 conftest.err
2188   fi
2189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190   test $ac_status = 0; } > conftest.i && {
2191          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2192          test ! -s conftest.err
2193        }; then :
2194   ac_retval=0
2195 else
2196   $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199     ac_retval=1
2200 fi
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202   as_fn_set_status $ac_retval
2203
2204 } # ac_fn_cxx_try_cpp
2205
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link ()
2210 {
2211   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212   rm -f conftest.$ac_objext conftest$ac_exeext
2213   if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216   *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220   (eval "$ac_link") 2>conftest.err
2221   ac_status=$?
2222   if test -s conftest.err; then
2223     grep -v '^ *+' conftest.err >conftest.er1
2224     cat conftest.er1 >&5
2225     mv -f conftest.er1 conftest.err
2226   fi
2227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228   test $ac_status = 0; } && {
2229          test -z "$ac_cxx_werror_flag" ||
2230          test ! -s conftest.err
2231        } && test -s conftest$ac_exeext && {
2232          test "$cross_compiling" = yes ||
2233          test -x conftest$ac_exeext
2234        }; then :
2235   ac_retval=0
2236 else
2237   $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240         ac_retval=1
2241 fi
2242   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244   # interfere with the next link command; also delete a directory that is
2245   # left behind by Apple's compiler.  We do this before executing the actions.
2246   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248   as_fn_set_status $ac_retval
2249
2250 } # ac_fn_cxx_try_link
2251
2252 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2253 # ---------------------------------------------
2254 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2255 # accordingly.
2256 ac_fn_c_check_decl ()
2257 {
2258   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259   as_decl_name=`echo $2|sed 's/ *(.*//'`
2260   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2262 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2263 if eval \${$3+:} false; then :
2264   $as_echo_n "(cached) " >&6
2265 else
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 #ifndef $as_decl_name
2273 #ifdef __cplusplus
2274   (void) $as_decl_use;
2275 #else
2276   (void) $as_decl_name;
2277 #endif
2278 #endif
2279
2280   ;
2281   return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285   eval "$3=yes"
2286 else
2287   eval "$3=no"
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 eval ac_res=\$$3
2292                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296 } # ac_fn_c_check_decl
2297
2298 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2299 # -------------------------------------------
2300 # Tests whether TYPE exists after having included INCLUDES, setting cache
2301 # variable VAR accordingly.
2302 ac_fn_c_check_type ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if eval \${$3+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   eval "$3=no"
2311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h.  */
2313 $4
2314 int
2315 main ()
2316 {
2317 if (sizeof ($2))
2318          return 0;
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h.  */
2326 $4
2327 int
2328 main ()
2329 {
2330 if (sizeof (($2)))
2331             return 0;
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337
2338 else
2339   eval "$3=yes"
2340 fi
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 fi
2345 eval ac_res=\$$3
2346                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349
2350 } # ac_fn_c_check_type
2351
2352 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2353 # -------------------------------------------------------
2354 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2355 # the include files in INCLUDES and setting the cache variable VAR
2356 # accordingly.
2357 ac_fn_c_check_header_mongrel ()
2358 {
2359   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360   if eval \${$3+:} false; then :
2361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if eval \${$3+:} false; then :
2364   $as_echo_n "(cached) " >&6
2365 fi
2366 eval ac_res=\$$3
2367                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 else
2370   # Is the header compilable?
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2372 $as_echo_n "checking $2 usability... " >&6; }
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 #include <$2>
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379   ac_header_compiler=yes
2380 else
2381   ac_header_compiler=no
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2385 $as_echo "$ac_header_compiler" >&6; }
2386
2387 # Is the header present?
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2389 $as_echo_n "checking $2 presence... " >&6; }
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 #include <$2>
2393 _ACEOF
2394 if ac_fn_c_try_cpp "$LINENO"; then :
2395   ac_header_preproc=yes
2396 else
2397   ac_header_preproc=no
2398 fi
2399 rm -f conftest.err conftest.i conftest.$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2401 $as_echo "$ac_header_preproc" >&6; }
2402
2403 # So?  What about this header?
2404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2405   yes:no: )
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2407 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2409 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2410     ;;
2411   no:yes:* )
2412     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2413 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2415 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2416     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2417 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2419 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2420     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2421 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2422     ;;
2423 esac
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if eval \${$3+:} false; then :
2427   $as_echo_n "(cached) " >&6
2428 else
2429   eval "$3=\$ac_header_compiler"
2430 fi
2431 eval ac_res=\$$3
2432                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 fi
2435   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436
2437 } # ac_fn_c_check_header_mongrel
2438
2439 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2440 # --------------------------------------------
2441 # Tries to find the compile-time value of EXPR in a program that includes
2442 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2443 # computed
2444 ac_fn_c_compute_int ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   if test "$cross_compiling" = yes; then
2448     # Depending upon the size, compute the lo and hi bounds.
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h.  */
2451 $4
2452 int
2453 main ()
2454 {
2455 static int test_array [1 - 2 * !(($2) >= 0)];
2456 test_array [0] = 0;
2457 return test_array [0];
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 if ac_fn_c_try_compile "$LINENO"; then :
2464   ac_lo=0 ac_mid=0
2465   while :; do
2466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h.  */
2468 $4
2469 int
2470 main ()
2471 {
2472 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2473 test_array [0] = 0;
2474 return test_array [0];
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481   ac_hi=$ac_mid; break
2482 else
2483   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2484                         if test $ac_lo -le $ac_mid; then
2485                           ac_lo= ac_hi=
2486                           break
2487                         fi
2488                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491   done
2492 else
2493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h.  */
2495 $4
2496 int
2497 main ()
2498 {
2499 static int test_array [1 - 2 * !(($2) < 0)];
2500 test_array [0] = 0;
2501 return test_array [0];
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_c_try_compile "$LINENO"; then :
2508   ac_hi=-1 ac_mid=-1
2509   while :; do
2510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h.  */
2512 $4
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2517 test_array [0] = 0;
2518 return test_array [0];
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525   ac_lo=$ac_mid; break
2526 else
2527   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2528                         if test $ac_mid -le $ac_hi; then
2529                           ac_lo= ac_hi=
2530                           break
2531                         fi
2532                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535   done
2536 else
2537   ac_lo= ac_hi=
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 fi
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 # Binary search between lo and hi bounds.
2543 while test "x$ac_lo" != "x$ac_hi"; do
2544   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h.  */
2547 $4
2548 int
2549 main ()
2550 {
2551 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2552 test_array [0] = 0;
2553 return test_array [0];
2554
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 if ac_fn_c_try_compile "$LINENO"; then :
2560   ac_hi=$ac_mid
2561 else
2562   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 done
2566 case $ac_lo in #((
2567 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2568 '') ac_retval=1 ;;
2569 esac
2570   else
2571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h.  */
2573 $4
2574 static long int longval () { return $2; }
2575 static unsigned long int ulongval () { return $2; }
2576 #include <stdio.h>
2577 #include <stdlib.h>
2578 int
2579 main ()
2580 {
2581
2582   FILE *f = fopen ("conftest.val", "w");
2583   if (! f)
2584     return 1;
2585   if (($2) < 0)
2586     {
2587       long int i = longval ();
2588       if (i != ($2))
2589         return 1;
2590       fprintf (f, "%ld", i);
2591     }
2592   else
2593     {
2594       unsigned long int i = ulongval ();
2595       if (i != ($2))
2596         return 1;
2597       fprintf (f, "%lu", i);
2598     }
2599   /* Do not output a trailing newline, as this causes \r\n confusion
2600      on some platforms.  */
2601   return ferror (f) || fclose (f) != 0;
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_c_try_run "$LINENO"; then :
2608   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2609 else
2610   ac_retval=1
2611 fi
2612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2613   conftest.$ac_objext conftest.beam conftest.$ac_ext
2614 rm -f conftest.val
2615
2616   fi
2617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618   as_fn_set_status $ac_retval
2619
2620 } # ac_fn_c_compute_int
2621
2622 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2623 # ----------------------------------------------------
2624 # Tries to find if the field MEMBER exists in type AGGR, after including
2625 # INCLUDES, setting cache variable VAR accordingly.
2626 ac_fn_c_check_member ()
2627 {
2628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2630 $as_echo_n "checking for $2.$3... " >&6; }
2631 if eval \${$4+:} false; then :
2632   $as_echo_n "(cached) " >&6
2633 else
2634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h.  */
2636 $5
2637 int
2638 main ()
2639 {
2640 static $2 ac_aggr;
2641 if (ac_aggr.$3)
2642 return 0;
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 if ac_fn_c_try_compile "$LINENO"; then :
2648   eval "$4=yes"
2649 else
2650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h.  */
2652 $5
2653 int
2654 main ()
2655 {
2656 static $2 ac_aggr;
2657 if (sizeof ac_aggr.$3)
2658 return 0;
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664   eval "$4=yes"
2665 else
2666   eval "$4=no"
2667 fi
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 fi
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 fi
2672 eval ac_res=\$$4
2673                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676
2677 } # ac_fn_c_check_member
2678
2679 # ac_fn_cxx_try_run LINENO
2680 # ------------------------
2681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2682 # that executables *can* be run.
2683 ac_fn_cxx_try_run ()
2684 {
2685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686   if { { ac_try="$ac_link"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693   (eval "$ac_link") 2>&5
2694   ac_status=$?
2695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2697   { { case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703   (eval "$ac_try") 2>&5
2704   ac_status=$?
2705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706   test $ac_status = 0; }; }; then :
2707   ac_retval=0
2708 else
2709   $as_echo "$as_me: program exited with status $ac_status" >&5
2710        $as_echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713        ac_retval=$ac_status
2714 fi
2715   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2716   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2717   as_fn_set_status $ac_retval
2718
2719 } # ac_fn_cxx_try_run
2720
2721 # ac_fn_cxx_check_func LINENO FUNC VAR
2722 # ------------------------------------
2723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2724 ac_fn_cxx_check_func ()
2725 {
2726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \${$3+:} false; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h.  */
2734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2736 #define $2 innocuous_$2
2737
2738 /* System header to define __stub macros and hopefully few prototypes,
2739     which can conflict with char $2 (); below.
2740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2741     <limits.h> exists even on freestanding compilers.  */
2742
2743 #ifdef __STDC__
2744 # include <limits.h>
2745 #else
2746 # include <assert.h>
2747 #endif
2748
2749 #undef $2
2750
2751 /* Override any GCC internal prototype to avoid an error.
2752    Use char because int might match the return type of a GCC
2753    builtin and then its argument prototype would still apply.  */
2754 #ifdef __cplusplus
2755 extern "C"
2756 #endif
2757 char $2 ();
2758 /* The GNU C library defines this for functions which it implements
2759     to always fail with ENOSYS.  Some functions are actually named
2760     something starting with __ and the normal name is an alias.  */
2761 #if defined __stub_$2 || defined __stub___$2
2762 choke me
2763 #endif
2764
2765 int
2766 main ()
2767 {
2768 return $2 ();
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 if ac_fn_cxx_try_link "$LINENO"; then :
2774   eval "$3=yes"
2775 else
2776   eval "$3=no"
2777 fi
2778 rm -f core conftest.err conftest.$ac_objext \
2779     conftest$ac_exeext conftest.$ac_ext
2780 fi
2781 eval ac_res=\$$3
2782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783 $as_echo "$ac_res" >&6; }
2784   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785
2786 } # ac_fn_cxx_check_func
2787 cat >config.log <<_ACEOF
2788 This file contains any messages produced by compilers while
2789 running configure, to aid debugging if configure makes a mistake.
2790
2791 It was created by bacula $as_me 9.0.3, which was
2792 generated by GNU Autoconf 2.69.  Invocation command line was
2793
2794   $ $0 $@
2795
2796 _ACEOF
2797 exec 5>>config.log
2798 {
2799 cat <<_ASUNAME
2800 ## --------- ##
2801 ## Platform. ##
2802 ## --------- ##
2803
2804 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2805 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2806 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2807 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2808 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2809
2810 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2811 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2812
2813 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2814 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2815 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2816 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2817 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2818 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2819 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2820
2821 _ASUNAME
2822
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828     $as_echo "PATH: $as_dir"
2829   done
2830 IFS=$as_save_IFS
2831
2832 } >&5
2833
2834 cat >&5 <<_ACEOF
2835
2836
2837 ## ----------- ##
2838 ## Core tests. ##
2839 ## ----------- ##
2840
2841 _ACEOF
2842
2843
2844 # Keep a trace of the command line.
2845 # Strip out --no-create and --no-recursion so they do not pile up.
2846 # Strip out --silent because we don't want to record it for future runs.
2847 # Also quote any args containing shell meta-characters.
2848 # Make two passes to allow for proper duplicate-argument suppression.
2849 ac_configure_args=
2850 ac_configure_args0=
2851 ac_configure_args1=
2852 ac_must_keep_next=false
2853 for ac_pass in 1 2
2854 do
2855   for ac_arg
2856   do
2857     case $ac_arg in
2858     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2859     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2860     | -silent | --silent | --silen | --sile | --sil)
2861       continue ;;
2862     *\'*)
2863       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2864     esac
2865     case $ac_pass in
2866     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2867     2)
2868       as_fn_append ac_configure_args1 " '$ac_arg'"
2869       if test $ac_must_keep_next = true; then
2870         ac_must_keep_next=false # Got value, back to normal.
2871       else
2872         case $ac_arg in
2873           *=* | --config-cache | -C | -disable-* | --disable-* \
2874           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2875           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2876           | -with-* | --with-* | -without-* | --without-* | --x)
2877             case "$ac_configure_args0 " in
2878               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2879             esac
2880             ;;
2881           -* ) ac_must_keep_next=true ;;
2882         esac
2883       fi
2884       as_fn_append ac_configure_args " '$ac_arg'"
2885       ;;
2886     esac
2887   done
2888 done
2889 { ac_configure_args0=; unset ac_configure_args0;}
2890 { ac_configure_args1=; unset ac_configure_args1;}
2891
2892 # When interrupted or exit'd, cleanup temporary files, and complete
2893 # config.log.  We remove comments because anyway the quotes in there
2894 # would cause problems or look ugly.
2895 # WARNING: Use '\'' to represent an apostrophe within the trap.
2896 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2897 trap 'exit_status=$?
2898   # Save into config.log some information that might help in debugging.
2899   {
2900     echo
2901
2902     $as_echo "## ---------------- ##
2903 ## Cache variables. ##
2904 ## ---------------- ##"
2905     echo
2906     # The following way of writing the cache mishandles newlines in values,
2907 (
2908   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2909     eval ac_val=\$$ac_var
2910     case $ac_val in #(
2911     *${as_nl}*)
2912       case $ac_var in #(
2913       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2914 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2915       esac
2916       case $ac_var in #(
2917       _ | IFS | as_nl) ;; #(
2918       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2919       *) { eval $ac_var=; unset $ac_var;} ;;
2920       esac ;;
2921     esac
2922   done
2923   (set) 2>&1 |
2924     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2925     *${as_nl}ac_space=\ *)
2926       sed -n \
2927         "s/'\''/'\''\\\\'\'''\''/g;
2928           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2929       ;; #(
2930     *)
2931       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2932       ;;
2933     esac |
2934     sort
2935 )
2936     echo
2937
2938     $as_echo "## ----------------- ##
2939 ## Output variables. ##
2940 ## ----------------- ##"
2941     echo
2942     for ac_var in $ac_subst_vars
2943     do
2944       eval ac_val=\$$ac_var
2945       case $ac_val in
2946       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2947       esac
2948       $as_echo "$ac_var='\''$ac_val'\''"
2949     done | sort
2950     echo
2951
2952     if test -n "$ac_subst_files"; then
2953       $as_echo "## ------------------- ##
2954 ## File substitutions. ##
2955 ## ------------------- ##"
2956       echo
2957       for ac_var in $ac_subst_files
2958       do
2959         eval ac_val=\$$ac_var
2960         case $ac_val in
2961         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2962         esac
2963         $as_echo "$ac_var='\''$ac_val'\''"
2964       done | sort
2965       echo
2966     fi
2967
2968     if test -s confdefs.h; then
2969       $as_echo "## ----------- ##
2970 ## confdefs.h. ##
2971 ## ----------- ##"
2972       echo
2973       cat confdefs.h
2974       echo
2975     fi
2976     test "$ac_signal" != 0 &&
2977       $as_echo "$as_me: caught signal $ac_signal"
2978     $as_echo "$as_me: exit $exit_status"
2979   } >&5
2980   rm -f core *.core core.conftest.* &&
2981     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2982     exit $exit_status
2983 ' 0
2984 for ac_signal in 1 2 13 15; do
2985   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2986 done
2987 ac_signal=0
2988
2989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2990 rm -f -r conftest* confdefs.h
2991
2992 $as_echo "/* confdefs.h */" > confdefs.h
2993
2994 # Predefined preprocessor variables.
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_NAME "$PACKAGE_NAME"
2998 _ACEOF
2999
3000 cat >>confdefs.h <<_ACEOF
3001 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3002 _ACEOF
3003
3004 cat >>confdefs.h <<_ACEOF
3005 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3006 _ACEOF
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_STRING "$PACKAGE_STRING"
3010 _ACEOF
3011
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3014 _ACEOF
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_URL "$PACKAGE_URL"
3018 _ACEOF
3019
3020
3021 # Let the site file select an alternate cache file if it wants to.
3022 # Prefer an explicitly selected file to automatically selected ones.
3023 ac_site_file1=NONE
3024 ac_site_file2=NONE
3025 if test -n "$CONFIG_SITE"; then
3026   # We do not want a PATH search for config.site.
3027   case $CONFIG_SITE in #((
3028     -*)  ac_site_file1=./$CONFIG_SITE;;
3029     */*) ac_site_file1=$CONFIG_SITE;;
3030     *)   ac_site_file1=./$CONFIG_SITE;;
3031   esac
3032 elif test "x$prefix" != xNONE; then
3033   ac_site_file1=$prefix/share/config.site
3034   ac_site_file2=$prefix/etc/config.site
3035 else
3036   ac_site_file1=$ac_default_prefix/share/config.site
3037   ac_site_file2=$ac_default_prefix/etc/config.site
3038 fi
3039 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3040 do
3041   test "x$ac_site_file" = xNONE && continue
3042   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3043     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3044 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3045     sed 's/^/| /' "$ac_site_file" >&5
3046     . "$ac_site_file" \
3047       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error $? "failed to load site script $ac_site_file
3050 See \`config.log' for more details" "$LINENO" 5; }
3051   fi
3052 done
3053
3054 if test -r "$cache_file"; then
3055   # Some versions of bash will fail to source /dev/null (special files
3056   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3057   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3058     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3059 $as_echo "$as_me: loading cache $cache_file" >&6;}
3060     case $cache_file in
3061       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3062       *)                      . "./$cache_file";;
3063     esac
3064   fi
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3067 $as_echo "$as_me: creating cache $cache_file" >&6;}
3068   >$cache_file
3069 fi
3070
3071 as_fn_append ac_header_list " stdlib.h"
3072 as_fn_append ac_header_list " unistd.h"
3073 as_fn_append ac_header_list " sys/param.h"
3074 # Check that the precious variables saved in the cache have kept the same
3075 # value.
3076 ac_cache_corrupted=false
3077 for ac_var in $ac_precious_vars; do
3078   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3079   eval ac_new_set=\$ac_env_${ac_var}_set
3080   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3081   eval ac_new_val=\$ac_env_${ac_var}_value
3082   case $ac_old_set,$ac_new_set in
3083     set,)
3084       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3085 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3086       ac_cache_corrupted=: ;;
3087     ,set)
3088       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3089 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3090       ac_cache_corrupted=: ;;
3091     ,);;
3092     *)
3093       if test "x$ac_old_val" != "x$ac_new_val"; then
3094         # differences in whitespace do not lead to failure.
3095         ac_old_val_w=`echo x $ac_old_val`
3096         ac_new_val_w=`echo x $ac_new_val`
3097         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3098           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3099 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3100           ac_cache_corrupted=:
3101         else
3102           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3103 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3104           eval $ac_var=\$ac_old_val
3105         fi
3106         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3107 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3108         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3109 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3110       fi;;
3111   esac
3112   # Pass precious variables to config.status.
3113   if test "$ac_new_set" = set; then
3114     case $ac_new_val in
3115     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3116     *) ac_arg=$ac_var=$ac_new_val ;;
3117     esac
3118     case " $ac_configure_args " in
3119       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3120       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3121     esac
3122   fi
3123 done
3124 if $ac_cache_corrupted; then
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3128 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3129   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3130 fi
3131 ## -------------------- ##
3132 ## Main body of script. ##
3133 ## -------------------- ##
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142
3143
3144 BUILD_DIR=`pwd`
3145 cd ..
3146 TOP_DIR=`pwd`
3147 cd ${BUILD_DIR}
3148
3149
3150 ac_aux_dir=
3151 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3152   if test -f "$ac_dir/install-sh"; then
3153     ac_aux_dir=$ac_dir
3154     ac_install_sh="$ac_aux_dir/install-sh -c"
3155     break
3156   elif test -f "$ac_dir/install.sh"; then
3157     ac_aux_dir=$ac_dir
3158     ac_install_sh="$ac_aux_dir/install.sh -c"
3159     break
3160   elif test -f "$ac_dir/shtool"; then
3161     ac_aux_dir=$ac_dir
3162     ac_install_sh="$ac_aux_dir/shtool install -c"
3163     break
3164   fi
3165 done
3166 if test -z "$ac_aux_dir"; then
3167   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3168 fi
3169
3170 # These three variables are undocumented and unsupported,
3171 # and are intended to be withdrawn in a future Autoconf release.
3172 # They can cause serious problems if a builder's source tree is in a directory
3173 # whose full name contains unusual characters.
3174 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3175 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3176 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3177
3178
3179 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3180
3181
3182 for ac_prog in true
3183 do
3184   # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_path_TRUEPRG+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   case $TRUEPRG in
3192   [\\/]* | ?:[\\/]*)
3193   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3194   ;;
3195   *)
3196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201     for ac_exec_ext in '' $ac_executable_extensions; do
3202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208   done
3209 IFS=$as_save_IFS
3210
3211   ;;
3212 esac
3213 fi
3214 TRUEPRG=$ac_cv_path_TRUEPRG
3215 if test -n "$TRUEPRG"; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3217 $as_echo "$TRUEPRG" >&6; }
3218 else
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224   test -n "$TRUEPRG" && break
3225 done
3226 test -n "$TRUEPRG" || TRUEPRG=":"
3227
3228 for ac_prog in false
3229 do
3230   # Extract the first word of "$ac_prog", so it can be a program name with args.
3231 set dummy $ac_prog; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_path_FALSEPRG+:} false; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237   case $FALSEPRG in
3238   [\\/]* | ?:[\\/]*)
3239   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3240   ;;
3241   *)
3242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247     for ac_exec_ext in '' $ac_executable_extensions; do
3248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251     break 2
3252   fi
3253 done
3254   done
3255 IFS=$as_save_IFS
3256
3257   ;;
3258 esac
3259 fi
3260 FALSEPRG=$ac_cv_path_FALSEPRG
3261 if test -n "$FALSEPRG"; then
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3263 $as_echo "$FALSEPRG" >&6; }
3264 else
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270   test -n "$FALSEPRG" && break
3271 done
3272 test -n "$FALSEPRG" || FALSEPRG=":"
3273
3274
3275
3276 post_host=
3277 if test "x$BACULA" != x; then
3278    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3279 fi
3280 BACULA=${BACULA:-Bacula}
3281 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3282 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3283 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3286 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3287 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3290 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3293
3294
3295 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298
3299 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3300 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3301
3302
3303 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3304 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3305
3306 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3307 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3308
3309
3310 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311
3312 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3313
3314
3315 PFILES="platforms/Makefile"
3316
3317 echo "configuring for ${BACULA} $VERSION ($DATE)"
3318
3319
3320
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   if test -n "$CC"; then
3335   ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342     for ac_exec_ext in '' $ac_executable_extensions; do
3343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346     break 2
3347   fi
3348 done
3349   done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 fi
3365 if test -z "$ac_cv_prog_CC"; then
3366   ac_ct_CC=$CC
3367   # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test -n "$ac_ct_CC"; then
3375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382     for ac_exec_ext in '' $ac_executable_extensions; do
3383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384     ac_cv_prog_ac_ct_CC="gcc"
3385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389   done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403   if test "x$ac_ct_CC" = x; then
3404     CC=""
3405   else
3406     case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412     CC=$ac_ct_CC
3413   fi
3414 else
3415   CC="$ac_cv_prog_CC"
3416 fi
3417
3418 if test -z "$CC"; then
3419           if test -n "$ac_tool_prefix"; then
3420     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_CC+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   if test -n "$CC"; then
3428   ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435     for ac_exec_ext in '' $ac_executable_extensions; do
3436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_prog_CC="${ac_tool_prefix}cc"
3438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442   done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457   fi
3458 fi
3459 if test -z "$CC"; then
3460   # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_CC+:} false; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   if test -n "$CC"; then
3468   ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470   ac_prog_rejected=no
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479        ac_prog_rejected=yes
3480        continue
3481      fi
3482     ac_cv_prog_CC="cc"
3483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487   done
3488 IFS=$as_save_IFS
3489
3490 if test $ac_prog_rejected = yes; then
3491   # We found a bogon in the path, so make sure we never use it.
3492   set dummy $ac_cv_prog_CC
3493   shift
3494   if test $# != 0; then
3495     # We chose a different compiler from the bogus one.
3496     # However, it has the same basename, so the bogon will be chosen
3497     # first if we set CC to just the basename; use the full file name.
3498     shift
3499     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3500   fi
3501 fi
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 if test -z "$CC"; then
3516   if test -n "$ac_tool_prefix"; then
3517   for ac_prog in cl.exe
3518   do
3519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   if test -n "$CC"; then
3527   ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534     for ac_exec_ext in '' $ac_executable_extensions; do
3535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538     break 2
3539   fi
3540 done
3541   done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555
3556     test -n "$CC" && break
3557   done
3558 fi
3559 if test -z "$CC"; then
3560   ac_ct_CC=$CC
3561   for ac_prog in cl.exe
3562 do
3563   # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   if test -n "$ac_ct_CC"; then
3571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578     for ac_exec_ext in '' $ac_executable_extensions; do
3579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580     ac_cv_prog_ac_ct_CC="$ac_prog"
3581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585   done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3594 else
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600   test -n "$ac_ct_CC" && break
3601 done
3602
3603   if test "x$ac_ct_CC" = x; then
3604     CC=""
3605   else
3606     case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612     CC=$ac_ct_CC
3613   fi
3614 fi
3615
3616 fi
3617
3618
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details" "$LINENO" 5; }
3623
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 set X $ac_compile
3627 ac_compiler=$2
3628 for ac_option in --version -v -V -qversion; do
3629   { { ac_try="$ac_compiler $ac_option >&5"
3630 case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637   ac_status=$?
3638   if test -s conftest.err; then
3639     sed '10a\
3640 ... rest of stderr output deleted ...
3641          10q' conftest.err >conftest.er1
3642     cat conftest.er1 >&5
3643   fi
3644   rm -f conftest.er1 conftest.err
3645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646   test $ac_status = 0; }
3647 done
3648
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3664 # of exeext.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3666 $as_echo_n "checking whether the C compiler works... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3668
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3671
3672 ac_rmfiles=
3673 for ac_file in $ac_files
3674 do
3675   case $ac_file in
3676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3678   esac
3679 done
3680 rm -f $ac_rmfiles
3681
3682 if { { ac_try="$ac_link_default"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_link_default") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3697 # Autoconf.
3698 for ac_file in $ac_files ''
3699 do
3700   test -f "$ac_file" || continue
3701   case $ac_file in
3702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3703         ;;
3704     [ab].out )
3705         # We found the default executable, but exeext='' is most
3706         # certainly right.
3707         break;;
3708     *.* )
3709         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710         then :; else
3711            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712         fi
3713         # We set ac_cv_exeext here because the later test for it is not
3714         # safe: cross compilers may not add the suffix if given an `-o'
3715         # argument, so we may need to know it at that point already.
3716         # Even if this section looks crufty: it has the advantage of
3717         # actually working.
3718         break;;
3719     * )
3720         break;;
3721   esac
3722 done
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3724
3725 else
3726   ac_file=''
3727 fi
3728 if test -z "$ac_file"; then :
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error 77 "C compiler cannot create executables
3737 See \`config.log' for more details" "$LINENO" 5; }
3738 else
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 $as_echo "yes" >&6; }
3741 fi
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3743 $as_echo_n "checking for C compiler default output file name... " >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3745 $as_echo "$ac_file" >&6; }
3746 ac_exeext=$ac_cv_exeext
3747
3748 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3749 ac_clean_files=$ac_clean_files_save
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3751 $as_echo_n "checking for suffix of executables... " >&6; }
3752 if { { ac_try="$ac_link"
3753 case "(($ac_try" in
3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755   *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759   (eval "$ac_link") 2>&5
3760   ac_status=$?
3761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762   test $ac_status = 0; }; then :
3763   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3764 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3765 # work properly (i.e., refer to `conftest.exe'), while it won't with
3766 # `rm'.
3767 for ac_file in conftest.exe conftest conftest.*; do
3768   test -f "$ac_file" || continue
3769   case $ac_file in
3770     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772           break;;
3773     * ) break;;
3774   esac
3775 done
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 compute suffix of executables: cannot compile and link
3780 See \`config.log' for more details" "$LINENO" 5; }
3781 fi
3782 rm -f conftest conftest$ac_cv_exeext
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3784 $as_echo "$ac_cv_exeext" >&6; }
3785
3786 rm -f conftest.$ac_ext
3787 EXEEXT=$ac_cv_exeext
3788 ac_exeext=$EXEEXT
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h.  */
3791 #include <stdio.h>
3792 int
3793 main ()
3794 {
3795 FILE *f = fopen ("conftest.out", "w");
3796  return ferror (f) || fclose (f) != 0;
3797
3798   ;
3799   return 0;
3800 }
3801 _ACEOF
3802 ac_clean_files="$ac_clean_files conftest.out"
3803 # Check that the compiler produces executables we can run.  If not, either
3804 # the compiler is broken, or we cross compile.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3806 $as_echo_n "checking whether we are cross compiling... " >&6; }
3807 if test "$cross_compiling" != yes; then
3808   { { ac_try="$ac_link"
3809 case "(($ac_try" in
3810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811   *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815   (eval "$ac_link") 2>&5
3816   ac_status=$?
3817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818   test $ac_status = 0; }
3819   if { ac_try='./conftest$ac_cv_exeext'
3820   { { case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826   (eval "$ac_try") 2>&5
3827   ac_status=$?
3828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829   test $ac_status = 0; }; }; then
3830     cross_compiling=no
3831   else
3832     if test "$cross_compiling" = maybe; then
3833         cross_compiling=yes
3834     else
3835         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error $? "cannot run C compiled programs.
3838 If you meant to cross compile, use \`--host'.
3839 See \`config.log' for more details" "$LINENO" 5; }
3840     fi
3841   fi
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3844 $as_echo "$cross_compiling" >&6; }
3845
3846 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3847 ac_clean_files=$ac_clean_files_save
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3849 $as_echo_n "checking for suffix of object files... " >&6; }
3850 if ${ac_cv_objext+:} false; then :
3851   $as_echo_n "(cached) " >&6
3852 else
3853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h.  */
3855
3856 int
3857 main ()
3858 {
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.o conftest.obj
3865 if { { ac_try="$ac_compile"
3866 case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872   (eval "$ac_compile") 2>&5
3873   ac_status=$?
3874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875   test $ac_status = 0; }; then :
3876   for ac_file in conftest.o conftest.obj conftest.*; do
3877   test -f "$ac_file" || continue;
3878   case $ac_file in
3879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3880     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3881        break;;
3882   esac
3883 done
3884 else
3885   $as_echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error $? "cannot compute suffix of object files: cannot compile
3891 See \`config.log' for more details" "$LINENO" 5; }
3892 fi
3893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3896 $as_echo "$ac_cv_objext" >&6; }
3897 OBJEXT=$ac_cv_objext
3898 ac_objext=$OBJEXT
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3900 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3901 if ${ac_cv_c_compiler_gnu+:} false; then :
3902   $as_echo_n "(cached) " >&6
3903 else
3904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910 #ifndef __GNUC__
3911        choke me
3912 #endif
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919   ac_compiler_gnu=yes
3920 else
3921   ac_compiler_gnu=no
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3925
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3928 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3929 if test $ac_compiler_gnu = yes; then
3930   GCC=yes
3931 else
3932   GCC=
3933 fi
3934 ac_test_CFLAGS=${CFLAGS+set}
3935 ac_save_CFLAGS=$CFLAGS
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3937 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3938 if ${ac_cv_prog_cc_g+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   ac_save_c_werror_flag=$ac_c_werror_flag
3942    ac_c_werror_flag=yes
3943    ac_cv_prog_cc_g=no
3944    CFLAGS="-g"
3945    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 int
3949 main ()
3950 {
3951
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957   ac_cv_prog_cc_g=yes
3958 else
3959   CFLAGS=""
3960       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h.  */
3962
3963 int
3964 main ()
3965 {
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972
3973 else
3974   ac_c_werror_flag=$ac_save_c_werror_flag
3975          CFLAGS="-g"
3976          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h.  */
3978
3979 int
3980 main ()
3981 {
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988   ac_cv_prog_cc_g=yes
3989 fi
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995    ac_c_werror_flag=$ac_save_c_werror_flag
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3998 $as_echo "$ac_cv_prog_cc_g" >&6; }
3999 if test "$ac_test_CFLAGS" = set; then
4000   CFLAGS=$ac_save_CFLAGS
4001 elif test $ac_cv_prog_cc_g = yes; then
4002   if test "$GCC" = yes; then
4003     CFLAGS="-g -O2"
4004   else
4005     CFLAGS="-g"
4006   fi
4007 else
4008   if test "$GCC" = yes; then
4009     CFLAGS="-O2"
4010   else
4011     CFLAGS=
4012   fi
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4015 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4016 if ${ac_cv_prog_cc_c89+:} false; then :
4017   $as_echo_n "(cached) " >&6
4018 else
4019   ac_cv_prog_cc_c89=no
4020 ac_save_CC=$CC
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023 #include <stdarg.h>
4024 #include <stdio.h>
4025 struct stat;
4026 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4027 struct buf { int x; };
4028 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4029 static char *e (p, i)
4030      char **p;
4031      int i;
4032 {
4033   return p[i];
4034 }
4035 static char *f (char * (*g) (char **, int), char **p, ...)
4036 {
4037   char *s;
4038   va_list v;
4039   va_start (v,p);
4040   s = g (p, va_arg (v,int));
4041   va_end (v);
4042   return s;
4043 }
4044
4045 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4046    function prototypes and stuff, but not '\xHH' hex character constants.
4047    These don't provoke an error unfortunately, instead are silently treated
4048    as 'x'.  The following induces an error, until -std is added to get
4049    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4050    array size at least.  It's necessary to write '\x00'==0 to get something
4051    that's true only with -std.  */
4052 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4053
4054 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4055    inside strings and character constants.  */
4056 #define FOO(x) 'x'
4057 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4058
4059 int test (int i, double x);
4060 struct s1 {int (*f) (int a);};
4061 struct s2 {int (*f) (double a);};
4062 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4063 int argc;
4064 char **argv;
4065 int
4066 main ()
4067 {
4068 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4074         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4075 do
4076   CC="$ac_save_CC $ac_arg"
4077   if ac_fn_c_try_compile "$LINENO"; then :
4078   ac_cv_prog_cc_c89=$ac_arg
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext
4081   test "x$ac_cv_prog_cc_c89" != "xno" && break
4082 done
4083 rm -f conftest.$ac_ext
4084 CC=$ac_save_CC
4085
4086 fi
4087 # AC_CACHE_VAL
4088 case "x$ac_cv_prog_cc_c89" in
4089   x)
4090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4091 $as_echo "none needed" >&6; } ;;
4092   xno)
4093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4094 $as_echo "unsupported" >&6; } ;;
4095   *)
4096     CC="$CC $ac_cv_prog_cc_c89"
4097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4098 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4099 esac
4100 if test "x$ac_cv_prog_cc_c89" != xno; then :
4101
4102 fi
4103
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109                 ac_ext=cpp
4110 ac_cpp='$CXXCPP $CPPFLAGS'
4111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4114 if test -z "$CXX"; then
4115   if test -n "$CCC"; then
4116     CXX=$CCC
4117   else
4118     if test -n "$ac_tool_prefix"; then
4119   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4120   do
4121     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_CXX+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   if test -n "$CXX"; then
4129   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 CXX=$ac_cv_prog_CXX
4149 if test -n "$CXX"; then
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4151 $as_echo "$CXX" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157
4158     test -n "$CXX" && break
4159   done
4160 fi
4161 if test -z "$CXX"; then
4162   ac_ct_CXX=$CXX
4163   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4164 do
4165   # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy $ac_prog; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   if test -n "$ac_ct_CXX"; then
4173   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180     for ac_exec_ext in '' $ac_executable_extensions; do
4181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_ac_ct_CXX="$ac_prog"
4183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187   done
4188 IFS=$as_save_IFS
4189
4190 fi
4191 fi
4192 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4193 if test -n "$ac_ct_CXX"; then
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4195 $as_echo "$ac_ct_CXX" >&6; }
4196 else
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202   test -n "$ac_ct_CXX" && break
4203 done
4204
4205   if test "x$ac_ct_CXX" = x; then
4206     CXX="g++"
4207   else
4208     case $cross_compiling:$ac_tool_warned in
4209 yes:)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4212 ac_tool_warned=yes ;;
4213 esac
4214     CXX=$ac_ct_CXX
4215   fi
4216 fi
4217
4218   fi
4219 fi
4220 # Provide some information about the compiler.
4221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4222 set X $ac_compile
4223 ac_compiler=$2
4224 for ac_option in --version -v -V -qversion; do
4225   { { ac_try="$ac_compiler $ac_option >&5"
4226 case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4233   ac_status=$?
4234   if test -s conftest.err; then
4235     sed '10a\
4236 ... rest of stderr output deleted ...
4237          10q' conftest.err >conftest.er1
4238     cat conftest.er1 >&5
4239   fi
4240   rm -f conftest.er1 conftest.err
4241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242   test $ac_status = 0; }
4243 done
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4246 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4247 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4248   $as_echo_n "(cached) " >&6
4249 else
4250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h.  */
4252
4253 int
4254 main ()
4255 {
4256 #ifndef __GNUC__
4257        choke me
4258 #endif
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_cxx_try_compile "$LINENO"; then :
4265   ac_compiler_gnu=yes
4266 else
4267   ac_compiler_gnu=no
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4271
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4274 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4275 if test $ac_compiler_gnu = yes; then
4276   GXX=yes
4277 else
4278   GXX=
4279 fi
4280 ac_test_CXXFLAGS=${CXXFLAGS+set}
4281 ac_save_CXXFLAGS=$CXXFLAGS
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4283 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4284 if ${ac_cv_prog_cxx_g+:} false; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4288    ac_cxx_werror_flag=yes
4289    ac_cv_prog_cxx_g=no
4290    CXXFLAGS="-g"
4291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h.  */
4293
4294 int
4295 main ()
4296 {
4297
4298   ;
4299   return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_cxx_try_compile "$LINENO"; then :
4303   ac_cv_prog_cxx_g=yes
4304 else
4305   CXXFLAGS=""
4306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h.  */
4308
4309 int
4310 main ()
4311 {
4312
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_cxx_try_compile "$LINENO"; then :
4318
4319 else
4320   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4321          CXXFLAGS="-g"
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 if ac_fn_cxx_try_compile "$LINENO"; then :
4334   ac_cv_prog_cxx_g=yes
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4344 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4345 if test "$ac_test_CXXFLAGS" = set; then
4346   CXXFLAGS=$ac_save_CXXFLAGS
4347 elif test $ac_cv_prog_cxx_g = yes; then
4348   if test "$GXX" = yes; then
4349     CXXFLAGS="-g -O2"
4350   else
4351     CXXFLAGS="-g"
4352   fi
4353 else
4354   if test "$GXX" = yes; then
4355     CXXFLAGS="-O2"
4356   else
4357     CXXFLAGS=
4358   fi
4359 fi
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366 if test "x$CC" != xcc; then
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4368 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4369 else
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4371 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4372 fi
4373 set dummy $CC; ac_cc=`$as_echo "$2" |
4374                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4375 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4376   $as_echo_n "(cached) " >&6
4377 else
4378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380
4381 int
4382 main ()
4383 {
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 # Make sure it works both with $CC and with simple cc.
4390 # We do the test twice because some compilers refuse to overwrite an
4391 # existing .o file with -o, though they will create one.
4392 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4393 rm -f conftest2.*
4394 if { { case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400   (eval "$ac_try") 2>&5
4401   ac_status=$?
4402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403   test $ac_status = 0; } &&
4404    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406   *) ac_try_echo=$ac_try;;
4407 esac
4408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413   test $ac_status = 0; };
4414 then
4415   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4416   if test "x$CC" != xcc; then
4417     # Test first that cc exists at all.
4418     if { ac_try='cc -c conftest.$ac_ext >&5'
4419   { { case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425   (eval "$ac_try") 2>&5
4426   ac_status=$?
4427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428   test $ac_status = 0; }; }; then
4429       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4430       rm -f conftest2.*
4431       if { { case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437   (eval "$ac_try") 2>&5
4438   ac_status=$?
4439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440   test $ac_status = 0; } &&
4441          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443   *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447   (eval "$ac_try") 2>&5
4448   ac_status=$?
4449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450   test $ac_status = 0; };
4451       then
4452         # cc works too.
4453         :
4454       else
4455         # cc exists but doesn't like -o.
4456         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4457       fi
4458     fi
4459   fi
4460 else
4461   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4462 fi
4463 rm -f core conftest*
4464
4465 fi
4466 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468 $as_echo "yes" >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472
4473 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4474
4475 fi
4476
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4483 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4484 # On Suns, sometimes $CPP names a directory.
4485 if test -n "$CPP" && test -d "$CPP"; then
4486   CPP=
4487 fi
4488 if test -z "$CPP"; then
4489   if ${ac_cv_prog_CPP+:} false; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492       # Double quotes because CPP needs to be expanded
4493     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4494     do
4495       ac_preproc_ok=false
4496 for ac_c_preproc_warn_flag in '' yes
4497 do
4498   # Use a header file that comes with gcc, so configuring glibc
4499   # with a fresh cross-compiler works.
4500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4501   # <limits.h> exists even on freestanding compilers.
4502   # On the NeXT, cc -E runs the code through the compiler's parser,
4503   # not just through cpp. "Syntax error" is here to catch this case.
4504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h.  */
4506 #ifdef __STDC__
4507 # include <limits.h>
4508 #else
4509 # include <assert.h>
4510 #endif
4511                      Syntax error
4512 _ACEOF
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4514
4515 else
4516   # Broken: fails on valid input.
4517 continue
4518 fi
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521   # OK, works on sane cases.  Now check whether nonexistent headers
4522   # can be detected and how.
4523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h.  */
4525 #include <ac_nonexistent.h>
4526 _ACEOF
4527 if ac_fn_c_try_cpp "$LINENO"; then :
4528   # Broken: success on invalid input.
4529 continue
4530 else
4531   # Passes both tests.
4532 ac_preproc_ok=:
4533 break
4534 fi
4535 rm -f conftest.err conftest.i conftest.$ac_ext
4536
4537 done
4538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539 rm -f conftest.i conftest.err conftest.$ac_ext
4540 if $ac_preproc_ok; then :
4541   break
4542 fi
4543
4544     done
4545     ac_cv_prog_CPP=$CPP
4546
4547 fi
4548   CPP=$ac_cv_prog_CPP
4549 else
4550   ac_cv_prog_CPP=$CPP
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4553 $as_echo "$CPP" >&6; }
4554 ac_preproc_ok=false
4555 for ac_c_preproc_warn_flag in '' yes
4556 do
4557   # Use a header file that comes with gcc, so configuring glibc
4558   # with a fresh cross-compiler works.
4559   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560   # <limits.h> exists even on freestanding compilers.
4561   # On the NeXT, cc -E runs the code through the compiler's parser,
4562   # not just through cpp. "Syntax error" is here to catch this case.
4563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h.  */
4565 #ifdef __STDC__
4566 # include <limits.h>
4567 #else
4568 # include <assert.h>
4569 #endif
4570                      Syntax error
4571 _ACEOF
4572 if ac_fn_c_try_cpp "$LINENO"; then :
4573
4574 else
4575   # Broken: fails on valid input.
4576 continue
4577 fi
4578 rm -f conftest.err conftest.i conftest.$ac_ext
4579
4580   # OK, works on sane cases.  Now check whether nonexistent headers
4581   # can be detected and how.
4582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h.  */
4584 #include <ac_nonexistent.h>
4585 _ACEOF
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4587   # Broken: success on invalid input.
4588 continue
4589 else
4590   # Passes both tests.
4591 ac_preproc_ok=:
4592 break
4593 fi
4594 rm -f conftest.err conftest.i conftest.$ac_ext
4595
4596 done
4597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4598 rm -f conftest.i conftest.err conftest.$ac_ext
4599 if $ac_preproc_ok; then :
4600
4601 else
4602   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4605 See \`config.log' for more details" "$LINENO" 5; }
4606 fi
4607
4608 ac_ext=c
4609 ac_cpp='$CPP $CPPFLAGS'
4610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4616 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4617 if ${ac_cv_path_GREP+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -z "$GREP"; then
4621   ac_path_GREP_found=false
4622   # Loop through the user's path and test for each of PROGNAME-LIST
4623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628     for ac_prog in grep ggrep; do
4629     for ac_exec_ext in '' $ac_executable_extensions; do
4630       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4631       as_fn_executable_p "$ac_path_GREP" || continue
4632 # Check for GNU ac_path_GREP and select it if it is found.
4633   # Check for GNU $ac_path_GREP
4634 case `"$ac_path_GREP" --version 2>&1` in
4635 *GNU*)
4636   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4637 *)
4638   ac_count=0
4639   $as_echo_n 0123456789 >"conftest.in"
4640   while :
4641   do
4642     cat "conftest.in" "conftest.in" >"conftest.tmp"
4643     mv "conftest.tmp" "conftest.in"
4644     cp "conftest.in" "conftest.nl"
4645     $as_echo 'GREP' >> "conftest.nl"
4646     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4647     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4648     as_fn_arith $ac_count + 1 && ac_count=$as_val
4649     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4650       # Best one so far, save it but keep looking for a better one
4651       ac_cv_path_GREP="$ac_path_GREP"
4652       ac_path_GREP_max=$ac_count
4653     fi
4654     # 10*(2^10) chars as input seems more than enough
4655     test $ac_count -gt 10 && break
4656   done
4657   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658 esac
4659
4660       $ac_path_GREP_found && break 3
4661     done
4662   done
4663   done
4664 IFS=$as_save_IFS
4665   if test -z "$ac_cv_path_GREP"; then
4666     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4667   fi
4668 else
4669   ac_cv_path_GREP=$GREP
4670 fi
4671
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4674 $as_echo "$ac_cv_path_GREP" >&6; }
4675  GREP="$ac_cv_path_GREP"
4676
4677
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4679 $as_echo_n "checking for egrep... " >&6; }
4680 if ${ac_cv_path_EGREP+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4684    then ac_cv_path_EGREP="$GREP -E"
4685    else
4686      if test -z "$EGREP"; then
4687   ac_path_EGREP_found=false
4688   # Loop through the user's path and test for each of PROGNAME-LIST
4689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_prog in egrep; do
4695     for ac_exec_ext in '' $ac_executable_extensions; do
4696       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4697       as_fn_executable_p "$ac_path_EGREP" || continue
4698 # Check for GNU ac_path_EGREP and select it if it is found.
4699   # Check for GNU $ac_path_EGREP
4700 case `"$ac_path_EGREP" --version 2>&1` in
4701 *GNU*)
4702   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4703 *)
4704   ac_count=0
4705   $as_echo_n 0123456789 >"conftest.in"
4706   while :
4707   do
4708     cat "conftest.in" "conftest.in" >"conftest.tmp"
4709     mv "conftest.tmp" "conftest.in"
4710     cp "conftest.in" "conftest.nl"
4711     $as_echo 'EGREP' >> "conftest.nl"
4712     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4714     as_fn_arith $ac_count + 1 && ac_count=$as_val
4715     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4716       # Best one so far, save it but keep looking for a better one
4717       ac_cv_path_EGREP="$ac_path_EGREP"
4718       ac_path_EGREP_max=$ac_count
4719     fi
4720     # 10*(2^10) chars as input seems more than enough
4721     test $ac_count -gt 10 && break
4722   done
4723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724 esac
4725
4726       $ac_path_EGREP_found && break 3
4727     done
4728   done
4729   done
4730 IFS=$as_save_IFS
4731   if test -z "$ac_cv_path_EGREP"; then
4732     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4733   fi
4734 else
4735   ac_cv_path_EGREP=$EGREP
4736 fi
4737
4738    fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4741 $as_echo "$ac_cv_path_EGREP" >&6; }
4742  EGREP="$ac_cv_path_EGREP"
4743
4744
4745 if test $ac_cv_c_compiler_gnu = yes; then
4746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4747 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4748 if ${ac_cv_prog_gcc_traditional+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751     ac_pattern="Autoconf.*'x'"
4752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754 #include <sgtty.h>
4755 Autoconf TIOCGETP
4756 _ACEOF
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4759   ac_cv_prog_gcc_traditional=yes
4760 else
4761   ac_cv_prog_gcc_traditional=no
4762 fi
4763 rm -f conftest*
4764
4765
4766   if test $ac_cv_prog_gcc_traditional = no; then
4767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h.  */
4769 #include <termio.h>
4770 Autoconf TCGETA
4771 _ACEOF
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4774   ac_cv_prog_gcc_traditional=yes
4775 fi
4776 rm -f conftest*
4777
4778   fi
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4781 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4782   if test $ac_cv_prog_gcc_traditional = yes; then
4783     CC="$CC -traditional"
4784   fi
4785 fi
4786
4787 BASECC=`basename $CC`
4788 have_gcc=no
4789 if test x"$GCC" = "xyes"; then
4790    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4791
4792    have_gcc=yes
4793 fi
4794 # Extract the first word of "$CXX", so it can be a program name with args.
4795 set dummy $CXX; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_path_CXX+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   case $CXX in
4802   [\\/]* | ?:[\\/]*)
4803   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4804   ;;
4805   *)
4806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811     for ac_exec_ext in '' $ac_executable_extensions; do
4812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818   done
4819 IFS=$as_save_IFS
4820
4821   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4822   ;;
4823 esac
4824 fi
4825 CXX=$ac_cv_path_CXX
4826 if test -n "$CXX"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4828 $as_echo "$CXX" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834
4835 if test ! -e $CXX; then
4836    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4837 fi
4838
4839 # Find a good install program.  We prefer a C program (faster),
4840 # so one script is as good as another.  But avoid the broken or
4841 # incompatible versions:
4842 # SysV /etc/install, /usr/sbin/install
4843 # SunOS /usr/etc/install
4844 # IRIX /sbin/install
4845 # AIX /bin/install
4846 # AmigaOS /C/install, which installs bootblocks on floppy discs
4847 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4850 # OS/2's system install, which has a completely different semantic
4851 # ./install, which can be erroneously created by make from ./install.sh.
4852 # Reject install programs that cannot install multiple files.
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4854 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4855 if test -z "$INSTALL"; then
4856 if ${ac_cv_path_install+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864     # Account for people who put trailing slashes in PATH elements.
4865 case $as_dir/ in #((
4866   ./ | .// | /[cC]/* | \
4867   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4868   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4869   /usr/ucb/* ) ;;
4870   *)
4871     # OSF1 and SCO ODT 3.0 have their own names for install.
4872     # Don't use installbsd from OSF since it installs stuff as root
4873     # by default.
4874     for ac_prog in ginstall scoinst install; do
4875       for ac_exec_ext in '' $ac_executable_extensions; do
4876         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4877           if test $ac_prog = install &&
4878             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4879             # AIX install.  It has an incompatible calling convention.
4880             :
4881           elif test $ac_prog = install &&
4882             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4883             # program-specific install script used by HP pwplus--don't use.
4884             :
4885           else
4886             rm -rf conftest.one conftest.two conftest.dir
4887             echo one > conftest.one
4888             echo two > conftest.two
4889             mkdir conftest.dir
4890             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4891               test -s conftest.one && test -s conftest.two &&
4892               test -s conftest.dir/conftest.one &&
4893               test -s conftest.dir/conftest.two
4894             then
4895               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4896               break 3
4897             fi
4898           fi
4899         fi
4900       done
4901     done
4902     ;;
4903 esac
4904
4905   done
4906 IFS=$as_save_IFS
4907
4908 rm -rf conftest.one conftest.two conftest.dir
4909
4910 fi
4911   if test "${ac_cv_path_install+set}" = set; then
4912     INSTALL=$ac_cv_path_install
4913   else
4914     # As a last resort, use the slow shell script.  Don't cache a
4915     # value for INSTALL within a source directory, because that will
4916     # break other packages using the cache if that directory is
4917     # removed, or if the value is a relative name.
4918     INSTALL=$ac_install_sh
4919   fi
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4922 $as_echo "$INSTALL" >&6; }
4923
4924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4925 # It thinks the first close brace ends the variable substitution.
4926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4927
4928 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4929
4930 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4931
4932 # Extract the first word of "mv", so it can be a program name with args.
4933 set dummy mv; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_path_MV+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   case $MV in
4940   [\\/]* | ?:[\\/]*)
4941   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4942   ;;
4943   *)
4944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949     for ac_exec_ext in '' $ac_executable_extensions; do
4950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956   done
4957 IFS=$as_save_IFS
4958
4959   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4960   ;;
4961 esac
4962 fi
4963 MV=$ac_cv_path_MV
4964 if test -n "$MV"; then
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4966 $as_echo "$MV" >&6; }
4967 else
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972
4973 # Extract the first word of "rm", so it can be a program name with args.
4974 set dummy rm; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_path_REMOVE+:} false; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980   case $REMOVE in
4981   [\\/]* | ?:[\\/]*)
4982   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4983   ;;
4984   *)
4985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997   done
4998 IFS=$as_save_IFS
4999
5000   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5001   ;;
5002 esac
5003 fi
5004 REMOVE=$ac_cv_path_REMOVE
5005 if test -n "$REMOVE"; then
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5007 $as_echo "$REMOVE" >&6; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013
5014 # Extract the first word of "cp", so it can be a program name with args.
5015 set dummy cp; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_path_CP+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   case $CP in
5022   [\\/]* | ?:[\\/]*)
5023   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5024   ;;
5025   *)
5026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031     for ac_exec_ext in '' $ac_executable_extensions; do
5032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038   done
5039 IFS=$as_save_IFS
5040
5041   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5042   ;;
5043 esac
5044 fi
5045 CP=$ac_cv_path_CP
5046 if test -n "$CP"; then
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5048 $as_echo "$CP" >&6; }
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055 # Extract the first word of "sed", so it can be a program name with args.
5056 set dummy sed; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_path_SED+:} false; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062   case $SED in
5063   [\\/]* | ?:[\\/]*)
5064   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5065   ;;
5066   *)
5067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072     for ac_exec_ext in '' $ac_executable_extensions; do
5073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076     break 2
5077   fi
5078 done
5079   done
5080 IFS=$as_save_IFS
5081
5082   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5083   ;;
5084 esac
5085 fi
5086 SED=$ac_cv_path_SED
5087 if test -n "$SED"; then
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5089 $as_echo "$SED" >&6; }
5090 else
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095
5096 # Extract the first word of "echo", so it can be a program name with args.
5097 set dummy echo; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_path_ECHO+:} false; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103   case $ECHO in
5104   [\\/]* | ?:[\\/]*)
5105   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5106   ;;
5107   *)
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120   done
5121 IFS=$as_save_IFS
5122
5123   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5124   ;;
5125 esac
5126 fi
5127 ECHO=$ac_cv_path_ECHO
5128 if test -n "$ECHO"; then
5129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5130 $as_echo "$ECHO" >&6; }
5131 else
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5135
5136
5137 # Extract the first word of "cmp", so it can be a program name with args.
5138 set dummy cmp; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_path_CMP+:} false; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   case $CMP in
5145   [\\/]* | ?:[\\/]*)
5146   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5147   ;;
5148   *)
5149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154     for ac_exec_ext in '' $ac_executable_extensions; do
5155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158     break 2
5159   fi
5160 done
5161   done
5162 IFS=$as_save_IFS
5163
5164   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5165   ;;
5166 esac
5167 fi
5168 CMP=$ac_cv_path_CMP
5169 if test -n "$CMP"; then
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5171 $as_echo "$CMP" >&6; }
5172 else
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 # Extract the first word of "tbl", so it can be a program name with args.
5179 set dummy tbl; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_path_TBL+:} false; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   case $TBL in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195     for ac_exec_ext in '' $ac_executable_extensions; do
5196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202   done
5203 IFS=$as_save_IFS
5204
5205   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5206   ;;
5207 esac
5208 fi
5209 TBL=$ac_cv_path_TBL
5210 if test -n "$TBL"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5212 $as_echo "$TBL" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219 # Extract the first word of "ar", so it can be a program name with args.
5220 set dummy ar; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_path_AR+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   case $AR in
5227   [\\/]* | ?:[\\/]*)
5228   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5229   ;;
5230   *)
5231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243   done
5244 IFS=$as_save_IFS
5245
5246   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5247   ;;
5248 esac
5249 fi
5250 AR=$ac_cv_path_AR
5251 if test -n "$AR"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5253 $as_echo "$AR" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260 # Extract the first word of "openssl", so it can be a program name with args.
5261 set dummy openssl; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_path_OPENSSL+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   case $OPENSSL in
5268   [\\/]* | ?:[\\/]*)
5269   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5270   ;;
5271   *)
5272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277     for ac_exec_ext in '' $ac_executable_extensions; do
5278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284   done
5285 IFS=$as_save_IFS
5286
5287   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5288   ;;
5289 esac
5290 fi
5291 OPENSSL=$ac_cv_path_OPENSSL
5292 if test -n "$OPENSSL"; then
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5294 $as_echo "$OPENSSL" >&6; }
5295 else
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 # Extract the first word of "mtx", so it can be a program name with args.
5302 set dummy mtx; ac_word=$2
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 $as_echo_n "checking for $ac_word... " >&6; }
5305 if ${ac_cv_path_MTX+:} false; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   case $MTX in
5309   [\\/]* | ?:[\\/]*)
5310   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5311   ;;
5312   *)
5313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318     for ac_exec_ext in '' $ac_executable_extensions; do
5319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325   done
5326 IFS=$as_save_IFS
5327
5328   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5329   ;;
5330 esac
5331 fi
5332 MTX=$ac_cv_path_MTX
5333 if test -n "$MTX"; then
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5335 $as_echo "$MTX" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341
5342 # Extract the first word of "dd", so it can be a program name with args.
5343 set dummy dd; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_path_DD+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   case $DD in
5350   [\\/]* | ?:[\\/]*)
5351   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5352   ;;
5353   *)
5354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359     for ac_exec_ext in '' $ac_executable_extensions; do
5360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366   done
5367 IFS=$as_save_IFS
5368
5369   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5370   ;;
5371 esac
5372 fi
5373 DD=$ac_cv_path_DD
5374 if test -n "$DD"; then
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5376 $as_echo "$DD" >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381
5382
5383 # Extract the first word of "mkisofs", so it can be a program name with args.
5384 set dummy mkisofs; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_path_MKISOFS+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   case $MKISOFS in
5391   [\\/]* | ?:[\\/]*)
5392   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5393   ;;
5394   *)
5395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400     for ac_exec_ext in '' $ac_executable_extensions; do
5401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407   done
5408 IFS=$as_save_IFS
5409
5410   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5411   ;;
5412 esac
5413 fi
5414 MKISOFS=$ac_cv_path_MKISOFS
5415 if test -n "$MKISOFS"; then
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5417 $as_echo "$MKISOFS" >&6; }
5418 else
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5422
5423
5424 # Extract the first word of "python", so it can be a program name with args.
5425 set dummy python; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_path_PYTHON+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   case $PYTHON in
5432   [\\/]* | ?:[\\/]*)
5433   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5434   ;;
5435   *)
5436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441     for ac_exec_ext in '' $ac_executable_extensions; do
5442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448   done
5449 IFS=$as_save_IFS
5450
5451   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5452   ;;
5453 esac
5454 fi
5455 PYTHON=$ac_cv_path_PYTHON
5456 if test -n "$PYTHON"; then
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5458 $as_echo "$PYTHON" >&6; }
5459 else
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464
5465 # Extract the first word of "growisofs", so it can be a program name with args.
5466 set dummy growisofs; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_path_GROWISOFS+:} false; then :
5470   $as_echo_n "(cached) " >&6
5471 else
5472   case $GROWISOFS in
5473   [\\/]* | ?:[\\/]*)
5474   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5475   ;;
5476   *)
5477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482     for ac_exec_ext in '' $ac_executable_extensions; do
5483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486     break 2
5487   fi
5488 done
5489   done
5490 IFS=$as_save_IFS
5491
5492   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5493   ;;
5494 esac
5495 fi
5496 GROWISOFS=$ac_cv_path_GROWISOFS
5497 if test -n "$GROWISOFS"; then
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5499 $as_echo "$GROWISOFS" >&6; }
5500 else
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5507 set dummy dvd+rw-mediainfo; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   case $DVDRWMEDIAINFO in
5514   [\\/]* | ?:[\\/]*)
5515   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5516   ;;
5517   *)
5518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521   IFS=$as_save_IFS
5522   test -z "$as_dir" && as_dir=.
5523     for ac_exec_ext in '' $ac_executable_extensions; do
5524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527     break 2
5528   fi
5529 done
5530   done
5531 IFS=$as_save_IFS
5532
5533   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5534   ;;
5535 esac
5536 fi
5537 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5538 if test -n "$DVDRWMEDIAINFO"; then
5539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5540 $as_echo "$DVDRWMEDIAINFO" >&6; }
5541 else
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545
5546
5547 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5548 set dummy dvd+rw-format; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   case $DVDRWFORMAT in
5555   [\\/]* | ?:[\\/]*)
5556   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5557   ;;
5558   *)
5559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564     for ac_exec_ext in '' $ac_executable_extensions; do
5565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571   done
5572 IFS=$as_save_IFS
5573
5574   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5575   ;;
5576 esac
5577 fi
5578 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5579 if test -n "$DVDRWFORMAT"; then
5580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5581 $as_echo "$DVDRWFORMAT" >&6; }
5582 else
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587
5588 # Extract the first word of "pkg-config", so it can be a program name with args.
5589 set dummy pkg-config; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_path_PKGCONFIG+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   case $PKGCONFIG in
5596   [\\/]* | ?:[\\/]*)
5597   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5598   ;;
5599   *)
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605     for ac_exec_ext in '' $ac_executable_extensions; do
5606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612   done
5613 IFS=$as_save_IFS
5614
5615   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5616   ;;
5617 esac
5618 fi
5619 PKGCONFIG=$ac_cv_path_PKGCONFIG
5620 if test -n "$PKGCONFIG"; then
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5622 $as_echo "$PKGCONFIG" >&6; }
5623 else
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628
5629 # Extract the first word of "qmake", so it can be a program name with args.
5630 set dummy qmake; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_path_QMAKE+:} false; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   case $QMAKE in
5637   [\\/]* | ?:[\\/]*)
5638   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5639   ;;
5640   *)
5641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646     for ac_exec_ext in '' $ac_executable_extensions; do
5647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650     break 2
5651   fi
5652 done
5653   done
5654 IFS=$as_save_IFS
5655
5656   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5657   ;;
5658 esac
5659 fi
5660 QMAKE=$ac_cv_path_QMAKE
5661 if test -n "$QMAKE"; then
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5663 $as_echo "$QMAKE" >&6; }
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 # Extract the first word of "gmake", so it can be a program name with args.
5671 set dummy gmake; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_path_GMAKE+:} false; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   case $GMAKE in
5678   [\\/]* | ?:[\\/]*)
5679   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5680   ;;
5681   *)
5682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685   IFS=$as_save_IFS
5686   test -z "$as_dir" && as_dir=.
5687     for ac_exec_ext in '' $ac_executable_extensions; do
5688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691     break 2
5692   fi
5693 done
5694   done
5695 IFS=$as_save_IFS
5696
5697   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5698   ;;
5699 esac
5700 fi
5701 GMAKE=$ac_cv_path_GMAKE
5702 if test -n "$GMAKE"; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5704 $as_echo "$GMAKE" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 # Extract the first word of "pidof", so it can be a program name with args.
5712 set dummy pidof; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_path_PIDOF+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   case $PIDOF in
5719   [\\/]* | ?:[\\/]*)
5720   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5721   ;;
5722   *)
5723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728     for ac_exec_ext in '' $ac_executable_extensions; do
5729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735   done
5736 IFS=$as_save_IFS
5737
5738   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5739   ;;
5740 esac
5741 fi
5742 PIDOF=$ac_cv_path_PIDOF
5743 if test -n "$PIDOF"; then
5744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5745 $as_echo "$PIDOF" >&6; }
5746 else
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752 for ac_prog in gawk mawk nawk awk
5753 do
5754   # Extract the first word of "$ac_prog", so it can be a program name with args.
5755 set dummy $ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_AWK+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$AWK"; then
5762   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_AWK="$ac_prog"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 AWK=$ac_cv_prog_AWK
5782 if test -n "$AWK"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5784 $as_echo "$AWK" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791   test -n "$AWK" && break
5792 done
5793
5794 # Some AWK programs fail, so test it and warn the user
5795 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5796       { if ((prog == $2) || (("(" prog ")") == $2) ||
5797       (("" prog "") == $2) ||
5798       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5799 else
5800   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5801    The regex engine of $AWK is too broken to be used you
5802    might want to install GNU AWK.
5803    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5804 fi
5805 THE_AWK=$AWK
5806 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5807 set dummy $THE_AWK; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_path_AWK+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   case $AWK in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5834   ;;
5835 esac
5836 fi
5837 AWK=$ac_cv_path_AWK
5838 if test -n "$AWK"; then
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5840 $as_echo "$AWK" >&6; }
5841 else
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846
5847
5848
5849 test -n "$ARFLAG" || ARFLAGS="cr"
5850
5851
5852 MAKE_SHELL=/bin/sh
5853
5854
5855
5856
5857
5858
5859
5860 use_libtool=yes
5861 # Check whether --enable-libtool was given.
5862 if test "${enable_libtool+set}" = set; then :
5863   enableval=$enable_libtool;
5864        if test x$enableval = xno; then
5865           use_libtool=no
5866        fi
5867
5868
5869 fi
5870
5871 case `pwd` in
5872   *\ * | *\     *)
5873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5875 esac
5876
5877
5878
5879 macro_version='2.4.2'
5880 macro_revision='1.3337'
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894 ltmain="$ac_aux_dir/ltmain.sh"
5895
5896 # Make sure we can run config.sub.
5897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5898   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5901 $as_echo_n "checking build system type... " >&6; }
5902 if ${ac_cv_build+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   ac_build_alias=$build_alias
5906 test "x$ac_build_alias" = x &&
5907   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5908 test "x$ac_build_alias" = x &&
5909   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5911   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5912
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5915 $as_echo "$ac_cv_build" >&6; }
5916 case $ac_cv_build in
5917 *-*-*) ;;
5918 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5919 esac
5920 build=$ac_cv_build
5921 ac_save_IFS=$IFS; IFS='-'
5922 set x $ac_cv_build
5923 shift
5924 build_cpu=$1
5925 build_vendor=$2
5926 shift; shift
5927 # Remember, the first character of IFS is used to create $*,
5928 # except with old shells:
5929 build_os=$*
5930 IFS=$ac_save_IFS
5931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5935 $as_echo_n "checking host system type... " >&6; }
5936 if ${ac_cv_host+:} false; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test "x$host_alias" = x; then
5940   ac_cv_host=$ac_cv_build
5941 else
5942   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5943     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5944 fi
5945
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5948 $as_echo "$ac_cv_host" >&6; }
5949 case $ac_cv_host in
5950 *-*-*) ;;
5951 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5952 esac
5953 host=$ac_cv_host
5954 ac_save_IFS=$IFS; IFS='-'
5955 set x $ac_cv_host
5956 shift
5957 host_cpu=$1
5958 host_vendor=$2
5959 shift; shift
5960 # Remember, the first character of IFS is used to create $*,
5961 # except with old shells:
5962 host_os=$*
5963 IFS=$ac_save_IFS
5964 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5965
5966
5967 # Backslashify metacharacters that are still active within
5968 # double-quoted strings.
5969 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5970
5971 # Same as above, but do not quote variable references.
5972 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5973
5974 # Sed substitution to delay expansion of an escaped shell variable in a
5975 # double_quote_subst'ed string.
5976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5977
5978 # Sed substitution to delay expansion of an escaped single quote.
5979 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5980
5981 # Sed substitution to avoid accidental globbing in evaled expressions
5982 no_glob_subst='s/\*/\\\*/g'
5983
5984 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5987
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5989 $as_echo_n "checking how to print strings... " >&6; }
5990 # Test print first, because it will be a builtin if present.
5991 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5992    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5993   ECHO='print -r --'
5994 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5995   ECHO='printf %s\n'
5996 else
5997   # Use this function as a fallback that always works.
5998   func_fallback_echo ()
5999   {
6000     eval 'cat <<_LTECHO_EOF
6001 $1
6002 _LTECHO_EOF'
6003   }
6004   ECHO='func_fallback_echo'
6005 fi
6006
6007 # func_echo_all arg...
6008 # Invoke $ECHO with all args, space-separated.
6009 func_echo_all ()
6010 {
6011     $ECHO ""
6012 }
6013
6014 case "$ECHO" in
6015   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6016 $as_echo "printf" >&6; } ;;
6017   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6018 $as_echo "print -r" >&6; } ;;
6019   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6020 $as_echo "cat" >&6; } ;;
6021 esac
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6038 if ${ac_cv_path_SED+:} false; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6042      for ac_i in 1 2 3 4 5 6 7; do
6043        ac_script="$ac_script$as_nl$ac_script"
6044      done
6045      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6046      { ac_script=; unset ac_script;}
6047      if test -z "$SED"; then
6048   ac_path_SED_found=false
6049   # Loop through the user's path and test for each of PROGNAME-LIST
6050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055     for ac_prog in sed gsed; do
6056     for ac_exec_ext in '' $ac_executable_extensions; do
6057       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6058       as_fn_executable_p "$ac_path_SED" || continue
6059 # Check for GNU ac_path_SED and select it if it is found.
6060   # Check for GNU $ac_path_SED
6061 case `"$ac_path_SED" --version 2>&1` in
6062 *GNU*)
6063   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6064 *)
6065   ac_count=0
6066   $as_echo_n 0123456789 >"conftest.in"
6067   while :
6068   do
6069     cat "conftest.in" "conftest.in" >"conftest.tmp"
6070     mv "conftest.tmp" "conftest.in"
6071     cp "conftest.in" "conftest.nl"
6072     $as_echo '' >> "conftest.nl"
6073     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6074     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6075     as_fn_arith $ac_count + 1 && ac_count=$as_val
6076     if test $ac_count -gt ${ac_path_SED_max-0}; then
6077       # Best one so far, save it but keep looking for a better one
6078       ac_cv_path_SED="$ac_path_SED"
6079       ac_path_SED_max=$ac_count
6080     fi
6081     # 10*(2^10) chars as input seems more than enough
6082     test $ac_count -gt 10 && break
6083   done
6084   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6085 esac
6086
6087       $ac_path_SED_found && break 3
6088     done
6089   done
6090   done
6091 IFS=$as_save_IFS
6092   if test -z "$ac_cv_path_SED"; then
6093     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6094   fi
6095 else
6096   ac_cv_path_SED=$SED
6097 fi
6098
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6101 $as_echo "$ac_cv_path_SED" >&6; }
6102  SED="$ac_cv_path_SED"
6103   rm -f conftest.sed
6104
6105 test -z "$SED" && SED=sed
6106 Xsed="$SED -e 1s/^X//"
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6119 $as_echo_n "checking for fgrep... " >&6; }
6120 if ${ac_cv_path_FGREP+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6124    then ac_cv_path_FGREP="$GREP -F"
6125    else
6126      if test -z "$FGREP"; then
6127   ac_path_FGREP_found=false
6128   # Loop through the user's path and test for each of PROGNAME-LIST
6129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134     for ac_prog in fgrep; do
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6137       as_fn_executable_p "$ac_path_FGREP" || continue
6138 # Check for GNU ac_path_FGREP and select it if it is found.
6139   # Check for GNU $ac_path_FGREP
6140 case `"$ac_path_FGREP" --version 2>&1` in
6141 *GNU*)
6142   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6143 *)
6144   ac_count=0
6145   $as_echo_n 0123456789 >"conftest.in"
6146   while :
6147   do
6148     cat "conftest.in" "conftest.in" >"conftest.tmp"
6149     mv "conftest.tmp" "conftest.in"
6150     cp "conftest.in" "conftest.nl"
6151     $as_echo 'FGREP' >> "conftest.nl"
6152     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154     as_fn_arith $ac_count + 1 && ac_count=$as_val
6155     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6156       # Best one so far, save it but keep looking for a better one
6157       ac_cv_path_FGREP="$ac_path_FGREP"
6158       ac_path_FGREP_max=$ac_count
6159     fi
6160     # 10*(2^10) chars as input seems more than enough
6161     test $ac_count -gt 10 && break
6162   done
6163   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 esac
6165
6166       $ac_path_FGREP_found && break 3
6167     done
6168   done
6169   done
6170 IFS=$as_save_IFS
6171   if test -z "$ac_cv_path_FGREP"; then
6172     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6173   fi
6174 else
6175   ac_cv_path_FGREP=$FGREP
6176 fi
6177
6178    fi
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6181 $as_echo "$ac_cv_path_FGREP" >&6; }
6182  FGREP="$ac_cv_path_FGREP"
6183
6184
6185 test -z "$GREP" && GREP=grep
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205 # Check whether --with-gnu-ld was given.
6206 if test "${with_gnu_ld+set}" = set; then :
6207   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6208 else
6209   with_gnu_ld=no
6210 fi
6211
6212 ac_prog=ld
6213 if test "$GCC" = yes; then
6214   # Check if gcc -print-prog-name=ld gives a path.
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6216 $as_echo_n "checking for ld used by $CC... " >&6; }
6217   case $host in
6218   *-*-mingw*)
6219     # gcc leaves a trailing carriage return which upsets mingw
6220     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6221   *)
6222     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6223   esac
6224   case $ac_prog in
6225     # Accept absolute paths.
6226     [\\/]* | ?:[\\/]*)
6227       re_direlt='/[^/][^/]*/\.\./'
6228       # Canonicalize the pathname of ld
6229       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6230       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6231         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6232       done
6233       test -z "$LD" && LD="$ac_prog"
6234       ;;
6235   "")
6236     # If it fails, then pretend we aren't using GCC.
6237     ac_prog=ld
6238     ;;
6239   *)
6240     # If it is relative, then search for the first ld in PATH.
6241     with_gnu_ld=unknown
6242     ;;
6243   esac
6244 elif test "$with_gnu_ld" = yes; then
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6246 $as_echo_n "checking for GNU ld... " >&6; }
6247 else
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6249 $as_echo_n "checking for non-GNU ld... " >&6; }
6250 fi
6251 if ${lt_cv_path_LD+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   if test -z "$LD"; then
6255   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256   for ac_dir in $PATH; do
6257     IFS="$lt_save_ifs"
6258     test -z "$ac_dir" && ac_dir=.
6259     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6260       lt_cv_path_LD="$ac_dir/$ac_prog"
6261       # Check to see if the program is GNU ld.  I'd rather use --version,
6262       # but apparently some variants of GNU ld only accept -v.
6263       # Break only if it was the GNU/non-GNU ld that we prefer.
6264       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6265       *GNU* | *'with BFD'*)
6266         test "$with_gnu_ld" != no && break
6267         ;;
6268       *)
6269         test "$with_gnu_ld" != yes && break
6270         ;;
6271       esac
6272     fi
6273   done
6274   IFS="$lt_save_ifs"
6275 else
6276   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6277 fi
6278 fi
6279
6280 LD="$lt_cv_path_LD"
6281 if test -n "$LD"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6283 $as_echo "$LD" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6291 if ${lt_cv_prog_gnu_ld+:} false; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6295 case `$LD -v 2>&1 </dev/null` in
6296 *GNU* | *'with BFD'*)
6297   lt_cv_prog_gnu_ld=yes
6298   ;;
6299 *)
6300   lt_cv_prog_gnu_ld=no
6301   ;;
6302 esac
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6306 with_gnu_ld=$lt_cv_prog_gnu_ld
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6317 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6318 if ${lt_cv_path_NM+:} false; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   if test -n "$NM"; then
6322   # Let the user override the test.
6323   lt_cv_path_NM="$NM"
6324 else
6325   lt_nm_to_check="${ac_tool_prefix}nm"
6326   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6327     lt_nm_to_check="$lt_nm_to_check nm"
6328   fi
6329   for lt_tmp_nm in $lt_nm_to_check; do
6330     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6331     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6332       IFS="$lt_save_ifs"
6333       test -z "$ac_dir" && ac_dir=.
6334       tmp_nm="$ac_dir/$lt_tmp_nm"
6335       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6336         # Check to see if the nm accepts a BSD-compat flag.
6337         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6338         #   nm: unknown option "B" ignored
6339         # Tru64's nm complains that /dev/null is an invalid object file
6340         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6341         */dev/null* | *'Invalid file or object type'*)
6342           lt_cv_path_NM="$tmp_nm -B"
6343           break
6344           ;;
6345         *)
6346           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6347           */dev/null*)
6348             lt_cv_path_NM="$tmp_nm -p"
6349             break
6350             ;;
6351           *)
6352             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6353             continue # so that we can try to find one that supports BSD flags
6354             ;;
6355           esac
6356           ;;
6357         esac
6358       fi
6359     done
6360     IFS="$lt_save_ifs"
6361   done
6362   : ${lt_cv_path_NM=no}
6363 fi
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6366 $as_echo "$lt_cv_path_NM" >&6; }
6367 if test "$lt_cv_path_NM" != "no"; then
6368   NM="$lt_cv_path_NM"
6369 else
6370   # Didn't find any BSD compatible name lister, look for dumpbin.
6371   if test -n "$DUMPBIN"; then :
6372     # Let the user override the test.
6373   else
6374     if test -n "$ac_tool_prefix"; then
6375   for ac_prog in dumpbin "link -dump"
6376   do
6377     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_DUMPBIN+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   if test -n "$DUMPBIN"; then
6385   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392     for ac_exec_ext in '' $ac_executable_extensions; do
6393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399   done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 DUMPBIN=$ac_cv_prog_DUMPBIN
6405 if test -n "$DUMPBIN"; then
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6407 $as_echo "$DUMPBIN" >&6; }
6408 else
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414     test -n "$DUMPBIN" && break
6415   done
6416 fi
6417 if test -z "$DUMPBIN"; then
6418   ac_ct_DUMPBIN=$DUMPBIN
6419   for ac_prog in dumpbin "link -dump"
6420 do
6421   # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy $ac_prog; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   if test -n "$ac_ct_DUMPBIN"; then
6429   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436     for ac_exec_ext in '' $ac_executable_extensions; do
6437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443   done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6449 if test -n "$ac_ct_DUMPBIN"; then
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6451 $as_echo "$ac_ct_DUMPBIN" >&6; }
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457
6458   test -n "$ac_ct_DUMPBIN" && break
6459 done
6460
6461   if test "x$ac_ct_DUMPBIN" = x; then
6462     DUMPBIN=":"
6463   else
6464     case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     DUMPBIN=$ac_ct_DUMPBIN
6471   fi
6472 fi
6473
6474     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6475     *COFF*)
6476       DUMPBIN="$DUMPBIN -symbols"
6477       ;;
6478     *)
6479       DUMPBIN=:
6480       ;;
6481     esac
6482   fi
6483
6484   if test "$DUMPBIN" != ":"; then
6485     NM="$DUMPBIN"
6486   fi
6487 fi
6488 test -z "$NM" && NM=nm
6489
6490
6491
6492
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6496 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6497 if ${lt_cv_nm_interface+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   lt_cv_nm_interface="BSD nm"
6501   echo "int some_variable = 0;" > conftest.$ac_ext
6502   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6503   (eval "$ac_compile" 2>conftest.err)
6504   cat conftest.err >&5
6505   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6506   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6507   cat conftest.err >&5
6508   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6509   cat conftest.out >&5
6510   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6511     lt_cv_nm_interface="MS dumpbin"
6512   fi
6513   rm -f conftest*
6514 fi
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6516 $as_echo "$lt_cv_nm_interface" >&6; }
6517
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6519 $as_echo_n "checking whether ln -s works... " >&6; }
6520 LN_S=$as_ln_s
6521 if test "$LN_S" = "ln -s"; then
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6523 $as_echo "yes" >&6; }
6524 else
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6526 $as_echo "no, using $LN_S" >&6; }
6527 fi
6528
6529 # find the maximum length of command line arguments
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6531 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6532 if ${lt_cv_sys_max_cmd_len+:} false; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535     i=0
6536   teststring="ABCD"
6537
6538   case $build_os in
6539   msdosdjgpp*)
6540     # On DJGPP, this test can blow up pretty badly due to problems in libc
6541     # (any single argument exceeding 2000 bytes causes a buffer overrun
6542     # during glob expansion).  Even if it were fixed, the result of this
6543     # check would be larger than it should be.
6544     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6545     ;;
6546
6547   gnu*)
6548     # Under GNU Hurd, this test is not required because there is
6549     # no limit to the length of command line arguments.
6550     # Libtool will interpret -1 as no limit whatsoever
6551     lt_cv_sys_max_cmd_len=-1;
6552     ;;
6553
6554   cygwin* | mingw* | cegcc*)
6555     # On Win9x/ME, this test blows up -- it succeeds, but takes
6556     # about 5 minutes as the teststring grows exponentially.
6557     # Worse, since 9x/ME are not pre-emptively multitasking,
6558     # you end up with a "frozen" computer, even though with patience
6559     # the test eventually succeeds (with a max line length of 256k).
6560     # Instead, let's just punt: use the minimum linelength reported by
6561     # all of the supported platforms: 8192 (on NT/2K/XP).
6562     lt_cv_sys_max_cmd_len=8192;
6563     ;;
6564
6565   mint*)
6566     # On MiNT this can take a long time and run out of memory.
6567     lt_cv_sys_max_cmd_len=8192;
6568     ;;
6569
6570   amigaos*)
6571     # On AmigaOS with pdksh, this test takes hours, literally.
6572     # So we just punt and use a minimum line length of 8192.
6573     lt_cv_sys_max_cmd_len=8192;
6574     ;;
6575
6576   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6577     # This has been around since 386BSD, at least.  Likely further.
6578     if test -x /sbin/sysctl; then
6579       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6580     elif test -x /usr/sbin/sysctl; then
6581       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6582     else
6583       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6584     fi
6585     # And add a safety zone
6586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6588     ;;
6589
6590   interix*)
6591     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6592     lt_cv_sys_max_cmd_len=196608
6593     ;;
6594
6595   os2*)
6596     # The test takes a long time on OS/2.
6597     lt_cv_sys_max_cmd_len=8192
6598     ;;
6599
6600   osf*)
6601     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6602     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6603     # nice to cause kernel panics so lets avoid the loop below.
6604     # First set a reasonable default.
6605     lt_cv_sys_max_cmd_len=16384
6606     #
6607     if test -x /sbin/sysconfig; then
6608       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6609         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6610       esac
6611     fi
6612     ;;
6613   sco3.2v5*)
6614     lt_cv_sys_max_cmd_len=102400
6615     ;;
6616   sysv5* | sco5v6* | sysv4.2uw2*)
6617     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6618     if test -n "$kargmax"; then
6619       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6620     else
6621       lt_cv_sys_max_cmd_len=32768
6622     fi
6623     ;;
6624   *)
6625     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6626     if test -n "$lt_cv_sys_max_cmd_len" && \
6627         test undefined != "$lt_cv_sys_max_cmd_len"; then
6628       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6629       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6630     else
6631       # Make teststring a little bigger before we do anything with it.
6632       # a 1K string should be a reasonable start.
6633       for i in 1 2 3 4 5 6 7 8 ; do
6634         teststring=$teststring$teststring
6635       done
6636       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6637       # If test is not a shell built-in, we'll probably end up computing a
6638       # maximum length that is only half of the actual maximum length, but
6639       # we can't tell.
6640       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6641                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6642               test $i != 17 # 1/2 MB should be enough
6643       do
6644         i=`expr $i + 1`
6645         teststring=$teststring$teststring
6646       done
6647       # Only check the string length outside the loop.
6648       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6649       teststring=
6650       # Add a significant safety factor because C++ compilers can tack on
6651       # massive amounts of additional arguments before passing them to the
6652       # linker.  It appears as though 1/2 is a usable value.
6653       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6654     fi
6655     ;;
6656   esac
6657
6658 fi
6659
6660 if test -n $lt_cv_sys_max_cmd_len ; then
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6662 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6665 $as_echo "none" >&6; }
6666 fi
6667 max_cmd_len=$lt_cv_sys_max_cmd_len
6668
6669
6670
6671
6672
6673
6674 : ${CP="cp -f"}
6675 : ${MV="mv -f"}
6676 : ${RM="rm -f"}
6677
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6679 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6680 # Try some XSI features
6681 xsi_shell=no
6682 ( _lt_dummy="a/b/c"
6683   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6684       = c,a/b,b/c, \
6685     && eval 'test $(( 1 + 1 )) -eq 2 \
6686     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6687   && xsi_shell=yes
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6689 $as_echo "$xsi_shell" >&6; }
6690
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6693 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6694 lt_shell_append=no
6695 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6696     >/dev/null 2>&1 \
6697   && lt_shell_append=yes
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6699 $as_echo "$lt_shell_append" >&6; }
6700
6701
6702 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6703   lt_unset=unset
6704 else
6705   lt_unset=false
6706 fi
6707
6708
6709
6710
6711
6712 # test EBCDIC or ASCII
6713 case `echo X|tr X '\101'` in
6714  A) # ASCII based system
6715     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6716   lt_SP2NL='tr \040 \012'
6717   lt_NL2SP='tr \015\012 \040\040'
6718   ;;
6719  *) # EBCDIC based system
6720   lt_SP2NL='tr \100 \n'
6721   lt_NL2SP='tr \r\n \100\100'
6722   ;;
6723 esac
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6734 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6735 if ${lt_cv_to_host_file_cmd+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   case $host in
6739   *-*-mingw* )
6740     case $build in
6741       *-*-mingw* ) # actually msys
6742         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6743         ;;
6744       *-*-cygwin* )
6745         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6746         ;;
6747       * ) # otherwise, assume *nix
6748         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6749         ;;
6750     esac
6751     ;;
6752   *-*-cygwin* )
6753     case $build in
6754       *-*-mingw* ) # actually msys
6755         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6756         ;;
6757       *-*-cygwin* )
6758         lt_cv_to_host_file_cmd=func_convert_file_noop
6759         ;;
6760       * ) # otherwise, assume *nix
6761         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6762         ;;
6763     esac
6764     ;;
6765   * ) # unhandled hosts (and "normal" native builds)
6766     lt_cv_to_host_file_cmd=func_convert_file_noop
6767     ;;
6768 esac
6769
6770 fi
6771
6772 to_host_file_cmd=$lt_cv_to_host_file_cmd
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6774 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6775
6776
6777
6778
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6781 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6782 if ${lt_cv_to_tool_file_cmd+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   #assume ordinary cross tools, or native build.
6786 lt_cv_to_tool_file_cmd=func_convert_file_noop
6787 case $host in
6788   *-*-mingw* )
6789     case $build in
6790       *-*-mingw* ) # actually msys
6791         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6792         ;;
6793     esac
6794     ;;
6795 esac
6796
6797 fi
6798
6799 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6801 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6802
6803
6804
6805
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6808 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6809 if ${lt_cv_ld_reload_flag+:} false; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   lt_cv_ld_reload_flag='-r'
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6815 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6816 reload_flag=$lt_cv_ld_reload_flag
6817 case $reload_flag in
6818 "" | " "*) ;;
6819 *) reload_flag=" $reload_flag" ;;
6820 esac
6821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6822 case $host_os in
6823   cygwin* | mingw* | pw32* | cegcc*)
6824     if test "$GCC" != yes; then
6825       reload_cmds=false
6826     fi
6827     ;;
6828   darwin*)
6829     if test "$GCC" = yes; then
6830       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6831     else
6832       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6833     fi
6834     ;;
6835 esac
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845 if test -n "$ac_tool_prefix"; then
6846   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_OBJDUMP+:} false; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   if test -n "$OBJDUMP"; then
6854   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861     for ac_exec_ext in '' $ac_executable_extensions; do
6862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868   done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 OBJDUMP=$ac_cv_prog_OBJDUMP
6874 if test -n "$OBJDUMP"; then
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6876 $as_echo "$OBJDUMP" >&6; }
6877 else
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882
6883 fi
6884 if test -z "$ac_cv_prog_OBJDUMP"; then
6885   ac_ct_OBJDUMP=$OBJDUMP
6886   # Extract the first word of "objdump", so it can be a program name with args.
6887 set dummy objdump; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   if test -n "$ac_ct_OBJDUMP"; then
6894   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6914 if test -n "$ac_ct_OBJDUMP"; then
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6916 $as_echo "$ac_ct_OBJDUMP" >&6; }
6917 else
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922   if test "x$ac_ct_OBJDUMP" = x; then
6923     OBJDUMP="false"
6924   else
6925     case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931     OBJDUMP=$ac_ct_OBJDUMP
6932   fi
6933 else
6934   OBJDUMP="$ac_cv_prog_OBJDUMP"
6935 fi
6936
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6948 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6949 if ${lt_cv_deplibs_check_method+:} false; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   lt_cv_file_magic_cmd='$MAGIC_CMD'
6953 lt_cv_file_magic_test_file=
6954 lt_cv_deplibs_check_method='unknown'
6955 # Need to set the preceding variable on all platforms that support
6956 # interlibrary dependencies.
6957 # 'none' -- dependencies not supported.
6958 # `unknown' -- same as none, but documents that we really don't know.
6959 # 'pass_all' -- all dependencies passed with no checks.
6960 # 'test_compile' -- check by making test program.
6961 # 'file_magic [[regex]]' -- check by looking for files in library path
6962 # which responds to the $file_magic_cmd with a given extended regex.
6963 # If you have `file' or equivalent on your system and you're not sure
6964 # whether `pass_all' will *always* work, you probably want this one.
6965
6966 case $host_os in
6967 aix[4-9]*)
6968   lt_cv_deplibs_check_method=pass_all
6969   ;;
6970
6971 beos*)
6972   lt_cv_deplibs_check_method=pass_all
6973   ;;
6974
6975 bsdi[45]*)
6976   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6977   lt_cv_file_magic_cmd='/usr/bin/file -L'
6978   lt_cv_file_magic_test_file=/shlib/libc.so
6979   ;;
6980
6981 cygwin*)
6982   # func_win32_libid is a shell function defined in ltmain.sh
6983   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6984   lt_cv_file_magic_cmd='func_win32_libid'
6985   ;;
6986
6987 mingw* | pw32*)
6988   # Base MSYS/MinGW do not provide the 'file' command needed by
6989   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6990   # unless we find 'file', for example because we are cross-compiling.
6991   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6992   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6993     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6994     lt_cv_file_magic_cmd='func_win32_libid'
6995   else
6996     # Keep this pattern in sync with the one in func_win32_libid.
6997     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6998     lt_cv_file_magic_cmd='$OBJDUMP -f'
6999   fi
7000   ;;
7001
7002 cegcc*)
7003   # use the weaker test based on 'objdump'. See mingw*.
7004   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7005   lt_cv_file_magic_cmd='$OBJDUMP -f'
7006   ;;
7007
7008 darwin* | rhapsody*)
7009   lt_cv_deplibs_check_method=pass_all
7010   ;;
7011
7012 freebsd* | dragonfly*)
7013   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7014     case $host_cpu in
7015     i*86 )
7016       # Not sure whether the presence of OpenBSD here was a mistake.
7017       # Let's accept both of them until this is cleared up.
7018       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7019       lt_cv_file_magic_cmd=/usr/bin/file
7020       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7021       ;;
7022     esac
7023   else
7024     lt_cv_deplibs_check_method=pass_all
7025   fi
7026   ;;
7027
7028 haiku*)
7029   lt_cv_deplibs_check_method=pass_all
7030   ;;
7031
7032 hpux10.20* | hpux11*)
7033   lt_cv_file_magic_cmd=/usr/bin/file
7034   case $host_cpu in
7035   ia64*)
7036     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7037     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7038     ;;
7039   hppa*64*)
7040     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]'
7041     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7042     ;;
7043   *)
7044     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7045     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7046     ;;
7047   esac
7048   ;;
7049
7050 interix[3-9]*)
7051   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7052   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7053   ;;
7054
7055 irix5* | irix6* | nonstopux*)
7056   case $LD in
7057   *-32|*"-32 ") libmagic=32-bit;;
7058   *-n32|*"-n32 ") libmagic=N32;;
7059   *-64|*"-64 ") libmagic=64-bit;;
7060   *) libmagic=never-match;;
7061   esac
7062   lt_cv_deplibs_check_method=pass_all
7063   ;;
7064
7065 # This must be glibc/ELF.
7066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7067   lt_cv_deplibs_check_method=pass_all
7068   ;;
7069
7070 netbsd* | netbsdelf*-gnu)
7071   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7073   else
7074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7075   fi
7076   ;;
7077
7078 newos6*)
7079   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7080   lt_cv_file_magic_cmd=/usr/bin/file
7081   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7082   ;;
7083
7084 *nto* | *qnx*)
7085   lt_cv_deplibs_check_method=pass_all
7086   ;;
7087
7088 openbsd*)
7089   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7091   else
7092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7093   fi
7094   ;;
7095
7096 osf3* | osf4* | osf5*)
7097   lt_cv_deplibs_check_method=pass_all
7098   ;;
7099
7100 rdos*)
7101   lt_cv_deplibs_check_method=pass_all
7102   ;;
7103
7104 solaris*)
7105   lt_cv_deplibs_check_method=pass_all
7106   ;;
7107
7108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7109   lt_cv_deplibs_check_method=pass_all
7110   ;;
7111
7112 sysv4 | sysv4.3*)
7113   case $host_vendor in
7114   motorola)
7115     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]'
7116     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7117     ;;
7118   ncr)
7119     lt_cv_deplibs_check_method=pass_all
7120     ;;
7121   sequent)
7122     lt_cv_file_magic_cmd='/bin/file'
7123     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7124     ;;
7125   sni)
7126     lt_cv_file_magic_cmd='/bin/file'
7127     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7128     lt_cv_file_magic_test_file=/lib/libc.so
7129     ;;
7130   siemens)
7131     lt_cv_deplibs_check_method=pass_all
7132     ;;
7133   pc)
7134     lt_cv_deplibs_check_method=pass_all
7135     ;;
7136   esac
7137   ;;
7138
7139 tpf*)
7140   lt_cv_deplibs_check_method=pass_all
7141   ;;
7142 esac
7143
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7146 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7147
7148 file_magic_glob=
7149 want_nocaseglob=no
7150 if test "$build" = "$host"; then
7151   case $host_os in
7152   mingw* | pw32*)
7153     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7154       want_nocaseglob=yes
7155     else
7156       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7157     fi
7158     ;;
7159   esac
7160 fi
7161
7162 file_magic_cmd=$lt_cv_file_magic_cmd
7163 deplibs_check_method=$lt_cv_deplibs_check_method
7164 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 if test -n "$ac_tool_prefix"; then
7188   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_DLLTOOL+:} false; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$DLLTOOL"; then
7196   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 DLLTOOL=$ac_cv_prog_DLLTOOL
7216 if test -n "$DLLTOOL"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7218 $as_echo "$DLLTOOL" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_DLLTOOL"; then
7227   ac_ct_DLLTOOL=$DLLTOOL
7228   # Extract the first word of "dlltool", so it can be a program name with args.
7229 set dummy dlltool; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$ac_ct_DLLTOOL"; then
7236   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243     for ac_exec_ext in '' $ac_executable_extensions; do
7244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250   done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7256 if test -n "$ac_ct_DLLTOOL"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7258 $as_echo "$ac_ct_DLLTOOL" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264   if test "x$ac_ct_DLLTOOL" = x; then
7265     DLLTOOL="false"
7266   else
7267     case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273     DLLTOOL=$ac_ct_DLLTOOL
7274   fi
7275 else
7276   DLLTOOL="$ac_cv_prog_DLLTOOL"
7277 fi
7278
7279 test -z "$DLLTOOL" && DLLTOOL=dlltool
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7291 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7292 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   lt_cv_sharedlib_from_linklib_cmd='unknown'
7296
7297 case $host_os in
7298 cygwin* | mingw* | pw32* | cegcc*)
7299   # two different shell functions defined in ltmain.sh
7300   # decide which to use based on capabilities of $DLLTOOL
7301   case `$DLLTOOL --help 2>&1` in
7302   *--identify-strict*)
7303     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7304     ;;
7305   *)
7306     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7307     ;;
7308   esac
7309   ;;
7310 *)
7311   # fallback: assume linklib IS sharedlib
7312   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7313   ;;
7314 esac
7315
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7318 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7319 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7320 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7321
7322
7323
7324
7325
7326
7327
7328 if test -n "$ac_tool_prefix"; then
7329   for ac_prog in ar
7330   do
7331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_AR+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$AR"; then
7339   ac_cv_prog_AR="$AR" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 AR=$ac_cv_prog_AR
7359 if test -n "$AR"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7361 $as_echo "$AR" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367
7368     test -n "$AR" && break
7369   done
7370 fi
7371 if test -z "$AR"; then
7372   ac_ct_AR=$AR
7373   for ac_prog in ar
7374 do
7375   # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7380   $as_echo_n "(cached) " >&6
7381 else
7382   if test -n "$ac_ct_AR"; then
7383   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390     for ac_exec_ext in '' $ac_executable_extensions; do
7391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392     ac_cv_prog_ac_ct_AR="$ac_prog"
7393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397   done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7403 if test -n "$ac_ct_AR"; then
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7405 $as_echo "$ac_ct_AR" >&6; }
7406 else
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411
7412   test -n "$ac_ct_AR" && break
7413 done
7414
7415   if test "x$ac_ct_AR" = x; then
7416     AR="false"
7417   else
7418     case $cross_compiling:$ac_tool_warned in
7419 yes:)
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7423 esac
7424     AR=$ac_ct_AR
7425   fi
7426 fi
7427
7428 : ${AR=ar}
7429 : ${AR_FLAGS=cru}
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7442 $as_echo_n "checking for archiver @FILE support... " >&6; }
7443 if ${lt_cv_ar_at_file+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   lt_cv_ar_at_file=no
7447    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h.  */
7449
7450 int
7451 main ()
7452 {
7453
7454   ;
7455   return 0;
7456 }
7457 _ACEOF
7458 if ac_fn_c_try_compile "$LINENO"; then :
7459   echo conftest.$ac_objext > conftest.lst
7460       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7461       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7462   (eval $lt_ar_try) 2>&5
7463   ac_status=$?
7464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465   test $ac_status = 0; }
7466       if test "$ac_status" -eq 0; then
7467         # Ensure the archiver fails upon bogus file names.
7468         rm -f conftest.$ac_objext libconftest.a
7469         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7470   (eval $lt_ar_try) 2>&5
7471   ac_status=$?
7472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473   test $ac_status = 0; }
7474         if test "$ac_status" -ne 0; then
7475           lt_cv_ar_at_file=@
7476         fi
7477       fi
7478       rm -f conftest.* libconftest.a
7479
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7485 $as_echo "$lt_cv_ar_at_file" >&6; }
7486
7487 if test "x$lt_cv_ar_at_file" = xno; then
7488   archiver_list_spec=
7489 else
7490   archiver_list_spec=$lt_cv_ar_at_file
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499 if test -n "$ac_tool_prefix"; then
7500   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}strip; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_STRIP+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   if test -n "$STRIP"; then
7508   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515     for ac_exec_ext in '' $ac_executable_extensions; do
7516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522   done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 STRIP=$ac_cv_prog_STRIP
7528 if test -n "$STRIP"; then
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7530 $as_echo "$STRIP" >&6; }
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536
7537 fi
7538 if test -z "$ac_cv_prog_STRIP"; then
7539   ac_ct_STRIP=$STRIP
7540   # Extract the first word of "strip", so it can be a program name with args.
7541 set dummy strip; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   if test -n "$ac_ct_STRIP"; then
7548   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555     for ac_exec_ext in '' $ac_executable_extensions; do
7556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557     ac_cv_prog_ac_ct_STRIP="strip"
7558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559     break 2
7560   fi
7561 done
7562   done
7563 IFS=$as_save_IFS
7564
7565 fi
7566 fi
7567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7568 if test -n "$ac_ct_STRIP"; then
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7570 $as_echo "$ac_ct_STRIP" >&6; }
7571 else
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575
7576   if test "x$ac_ct_STRIP" = x; then
7577     STRIP=":"
7578   else
7579     case $cross_compiling:$ac_tool_warned in
7580 yes:)
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583 ac_tool_warned=yes ;;
7584 esac
7585     STRIP=$ac_ct_STRIP
7586   fi
7587 else
7588   STRIP="$ac_cv_prog_STRIP"
7589 fi
7590
7591 test -z "$STRIP" && STRIP=:
7592
7593
7594
7595
7596
7597
7598 if test -n "$ac_tool_prefix"; then
7599   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_RANLIB+:} false; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   if test -n "$RANLIB"; then
7607   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614     for ac_exec_ext in '' $ac_executable_extensions; do
7615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621   done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 RANLIB=$ac_cv_prog_RANLIB
7627 if test -n "$RANLIB"; then
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7629 $as_echo "$RANLIB" >&6; }
7630 else
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635
7636 fi
7637 if test -z "$ac_cv_prog_RANLIB"; then
7638   ac_ct_RANLIB=$RANLIB
7639   # Extract the first word of "ranlib", so it can be a program name with args.
7640 set dummy ranlib; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646   if test -n "$ac_ct_RANLIB"; then
7647   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652   IFS=$as_save_IFS
7653   test -z "$as_dir" && as_dir=.
7654     for ac_exec_ext in '' $ac_executable_extensions; do
7655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656     ac_cv_prog_ac_ct_RANLIB="ranlib"
7657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658     break 2
7659   fi
7660 done
7661   done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7667 if test -n "$ac_ct_RANLIB"; then
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7669 $as_echo "$ac_ct_RANLIB" >&6; }
7670 else
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675   if test "x$ac_ct_RANLIB" = x; then
7676     RANLIB=":"
7677   else
7678     case $cross_compiling:$ac_tool_warned in
7679 yes:)
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682 ac_tool_warned=yes ;;
7683 esac
7684     RANLIB=$ac_ct_RANLIB
7685   fi
7686 else
7687   RANLIB="$ac_cv_prog_RANLIB"
7688 fi
7689
7690 test -z "$RANLIB" && RANLIB=:
7691
7692
7693
7694
7695
7696
7697 # Determine commands to create old-style static archives.
7698 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7699 old_postinstall_cmds='chmod 644 $oldlib'
7700 old_postuninstall_cmds=
7701
7702 if test -n "$RANLIB"; then
7703   case $host_os in
7704   openbsd*)
7705     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7706     ;;
7707   *)
7708     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7709     ;;
7710   esac
7711   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7712 fi
7713
7714 case $host_os in
7715   darwin*)
7716     lock_old_archive_extraction=yes ;;
7717   *)
7718     lock_old_archive_extraction=no ;;
7719 esac
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759 # If no C compiler was specified, use CC.
7760 LTCC=${LTCC-"$CC"}
7761
7762 # If no C compiler flags were specified, use CFLAGS.
7763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7764
7765 # Allow CC to be a program name with arguments.
7766 compiler=$CC
7767
7768
7769 # Check for command to grab the raw symbol name followed by C symbol from nm.
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7771 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7772 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7773   $as_echo_n "(cached) " >&6
7774 else
7775
7776 # These are sane defaults that work on at least a few old systems.
7777 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7778
7779 # Character class describing NM global symbol codes.
7780 symcode='[BCDEGRST]'
7781
7782 # Regexp to match symbols that can be accessed directly from C.
7783 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7784
7785 # Define system-specific variables.
7786 case $host_os in
7787 aix*)
7788   symcode='[BCDT]'
7789   ;;
7790 cygwin* | mingw* | pw32* | cegcc*)
7791   symcode='[ABCDGISTW]'
7792   ;;
7793 hpux*)
7794   if test "$host_cpu" = ia64; then
7795     symcode='[ABCDEGRST]'
7796   fi
7797   ;;
7798 irix* | nonstopux*)
7799   symcode='[BCDEGRST]'
7800   ;;
7801 osf*)
7802   symcode='[BCDEGQRST]'
7803   ;;
7804 solaris*)
7805   symcode='[BDRT]'
7806   ;;
7807 sco3.2v5*)
7808   symcode='[DT]'
7809   ;;
7810 sysv4.2uw2*)
7811   symcode='[DT]'
7812   ;;
7813 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7814   symcode='[ABDT]'
7815   ;;
7816 sysv4)
7817   symcode='[DFNSTU]'
7818   ;;
7819 esac
7820
7821 # If we're using GNU nm, then use its standard symbol codes.
7822 case `$NM -V 2>&1` in
7823 *GNU* | *'with BFD'*)
7824   symcode='[ABCDGIRSTW]' ;;
7825 esac
7826
7827 # Transform an extracted symbol line into a proper C declaration.
7828 # Some systems (esp. on ia64) link data and code symbols differently,
7829 # so use this general approach.
7830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7831
7832 # Transform an extracted symbol line into symbol name and symbol address
7833 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7834 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'"
7835
7836 # Handle CRLF in mingw tool chain
7837 opt_cr=
7838 case $build_os in
7839 mingw*)
7840   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7841   ;;
7842 esac
7843
7844 # Try without a prefix underscore, then with it.
7845 for ac_symprfx in "" "_"; do
7846
7847   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7848   symxfrm="\\1 $ac_symprfx\\2 \\2"
7849
7850   # Write the raw and C identifiers.
7851   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7852     # Fake it for dumpbin and say T for any non-static function
7853     # and D for any global variable.
7854     # Also find C++ and __fastcall symbols from MSVC++,
7855     # which start with @ or ?.
7856     lt_cv_sys_global_symbol_pipe="$AWK '"\
7857 "     {last_section=section; section=\$ 3};"\
7858 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7859 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7860 "     \$ 0!~/External *\|/{next};"\
7861 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7862 "     {if(hide[section]) next};"\
7863 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7864 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7865 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7866 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7867 "     ' prfx=^$ac_symprfx"
7868   else
7869     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7870   fi
7871   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7872
7873   # Check to see that the pipe works correctly.
7874   pipe_works=no
7875
7876   rm -f conftest*
7877   cat > conftest.$ac_ext <<_LT_EOF
7878 #ifdef __cplusplus
7879 extern "C" {
7880 #endif
7881 char nm_test_var;
7882 void nm_test_func(void);
7883 void nm_test_func(void){}
7884 #ifdef __cplusplus
7885 }
7886 #endif
7887 int main(){nm_test_var='a';nm_test_func();return(0);}
7888 _LT_EOF
7889
7890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7891   (eval $ac_compile) 2>&5
7892   ac_status=$?
7893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894   test $ac_status = 0; }; then
7895     # Now try to grab the symbols.
7896     nlist=conftest.nm
7897     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7898   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7899   ac_status=$?
7900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901   test $ac_status = 0; } && test -s "$nlist"; then
7902       # Try sorting and uniquifying the output.
7903       if sort "$nlist" | uniq > "$nlist"T; then
7904         mv -f "$nlist"T "$nlist"
7905       else
7906         rm -f "$nlist"T
7907       fi
7908
7909       # Make sure that we snagged all the symbols we need.
7910       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7911         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7912           cat <<_LT_EOF > conftest.$ac_ext
7913 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7914 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7915 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7916    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7917 # define LT_DLSYM_CONST
7918 #elif defined(__osf__)
7919 /* This system does not cope well with relocations in const data.  */
7920 # define LT_DLSYM_CONST
7921 #else
7922 # define LT_DLSYM_CONST const
7923 #endif
7924
7925 #ifdef __cplusplus
7926 extern "C" {
7927 #endif
7928
7929 _LT_EOF
7930           # Now generate the symbol file.
7931           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7932
7933           cat <<_LT_EOF >> conftest.$ac_ext
7934
7935 /* The mapping between symbol names and symbols.  */
7936 LT_DLSYM_CONST struct {
7937   const char *name;
7938   void       *address;
7939 }
7940 lt__PROGRAM__LTX_preloaded_symbols[] =
7941 {
7942   { "@PROGRAM@", (void *) 0 },
7943 _LT_EOF
7944           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7945           cat <<\_LT_EOF >> conftest.$ac_ext
7946   {0, (void *) 0}
7947 };
7948
7949 /* This works around a problem in FreeBSD linker */
7950 #ifdef FREEBSD_WORKAROUND
7951 static const void *lt_preloaded_setup() {
7952   return lt__PROGRAM__LTX_preloaded_symbols;
7953 }
7954 #endif
7955
7956 #ifdef __cplusplus
7957 }
7958 #endif
7959 _LT_EOF
7960           # Now try linking the two files.
7961           mv conftest.$ac_objext conftstm.$ac_objext
7962           lt_globsym_save_LIBS=$LIBS
7963           lt_globsym_save_CFLAGS=$CFLAGS
7964           LIBS="conftstm.$ac_objext"
7965           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7966           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7967   (eval $ac_link) 2>&5
7968   ac_status=$?
7969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7970   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7971             pipe_works=yes
7972           fi
7973           LIBS=$lt_globsym_save_LIBS
7974           CFLAGS=$lt_globsym_save_CFLAGS
7975         else
7976           echo "cannot find nm_test_func in $nlist" >&5
7977         fi
7978       else
7979         echo "cannot find nm_test_var in $nlist" >&5
7980       fi
7981     else
7982       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7983     fi
7984   else
7985     echo "$progname: failed program was:" >&5
7986     cat conftest.$ac_ext >&5
7987   fi
7988   rm -rf conftest* conftst*
7989
7990   # Do not use the global_symbol_pipe unless it works.
7991   if test "$pipe_works" = yes; then
7992     break
7993   else
7994     lt_cv_sys_global_symbol_pipe=
7995   fi
7996 done
7997
7998 fi
7999
8000 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8001   lt_cv_sys_global_symbol_to_cdecl=
8002 fi
8003 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8005 $as_echo "failed" >&6; }
8006 else
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8008 $as_echo "ok" >&6; }
8009 fi
8010
8011 # Response file support.
8012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8013   nm_file_list_spec='@'
8014 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8015   nm_file_list_spec='@'
8016 fi
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8045 $as_echo_n "checking for sysroot... " >&6; }
8046
8047 # Check whether --with-sysroot was given.
8048 if test "${with_sysroot+set}" = set; then :
8049   withval=$with_sysroot;
8050 else
8051   with_sysroot=no
8052 fi
8053
8054
8055 lt_sysroot=
8056 case ${with_sysroot} in #(
8057  yes)
8058    if test "$GCC" = yes; then
8059      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8060    fi
8061    ;; #(
8062  /*)
8063    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8064    ;; #(
8065  no|'')
8066    ;; #(
8067  *)
8068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8069 $as_echo "${with_sysroot}" >&6; }
8070    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8071    ;;
8072 esac
8073
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8075 $as_echo "${lt_sysroot:-no}" >&6; }
8076
8077
8078
8079
8080
8081 # Check whether --enable-libtool-lock was given.
8082 if test "${enable_libtool_lock+set}" = set; then :
8083   enableval=$enable_libtool_lock;
8084 fi
8085
8086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8087
8088 # Some flags need to be propagated to the compiler or linker for good
8089 # libtool support.
8090 case $host in
8091 ia64-*-hpux*)
8092   # Find out which ABI we are using.
8093   echo 'int i;' > conftest.$ac_ext
8094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8095   (eval $ac_compile) 2>&5
8096   ac_status=$?
8097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8098   test $ac_status = 0; }; then
8099     case `/usr/bin/file conftest.$ac_objext` in
8100       *ELF-32*)
8101         HPUX_IA64_MODE="32"
8102         ;;
8103       *ELF-64*)
8104         HPUX_IA64_MODE="64"
8105         ;;
8106     esac
8107   fi
8108   rm -rf conftest*
8109   ;;
8110 *-*-irix6*)
8111   # Find out which ABI we are using.
8112   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8113   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8114   (eval $ac_compile) 2>&5
8115   ac_status=$?
8116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117   test $ac_status = 0; }; then
8118     if test "$lt_cv_prog_gnu_ld" = yes; then
8119       case `/usr/bin/file conftest.$ac_objext` in
8120         *32-bit*)
8121           LD="${LD-ld} -melf32bsmip"
8122           ;;
8123         *N32*)
8124           LD="${LD-ld} -melf32bmipn32"
8125           ;;
8126         *64-bit*)
8127           LD="${LD-ld} -melf64bmip"
8128         ;;
8129       esac
8130     else
8131       case `/usr/bin/file conftest.$ac_objext` in
8132         *32-bit*)
8133           LD="${LD-ld} -32"
8134           ;;
8135         *N32*)
8136           LD="${LD-ld} -n32"
8137           ;;
8138         *64-bit*)
8139           LD="${LD-ld} -64"
8140           ;;
8141       esac
8142     fi
8143   fi
8144   rm -rf conftest*
8145   ;;
8146
8147 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8148 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8149   # Find out which ABI we are using.
8150   echo 'int i;' > conftest.$ac_ext
8151   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8152   (eval $ac_compile) 2>&5
8153   ac_status=$?
8154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8155   test $ac_status = 0; }; then
8156     case `/usr/bin/file conftest.o` in
8157       *32-bit*)
8158         case $host in
8159           x86_64-*kfreebsd*-gnu)
8160             LD="${LD-ld} -m elf_i386_fbsd"
8161             ;;
8162           x86_64-*linux*)
8163             case `/usr/bin/file conftest.o` in
8164               *x86-64*)
8165                 LD="${LD-ld} -m elf32_x86_64"
8166                 ;;
8167               *)
8168                 LD="${LD-ld} -m elf_i386"
8169                 ;;
8170             esac
8171             ;;
8172           powerpc64le-*)
8173             LD="${LD-ld} -m elf32lppclinux"
8174             ;;
8175           powerpc64-*)
8176             LD="${LD-ld} -m elf32ppclinux"
8177             ;;
8178           s390x-*linux*)
8179             LD="${LD-ld} -m elf_s390"
8180             ;;
8181           sparc64-*linux*)
8182             LD="${LD-ld} -m elf32_sparc"
8183             ;;
8184         esac
8185         ;;
8186       *64-bit*)
8187         case $host in
8188           x86_64-*kfreebsd*-gnu)
8189             LD="${LD-ld} -m elf_x86_64_fbsd"
8190             ;;
8191           x86_64-*linux*)
8192             LD="${LD-ld} -m elf_x86_64"
8193             ;;
8194           powerpcle-*)
8195             LD="${LD-ld} -m elf64lppc"
8196             ;;
8197           powerpc-*)
8198             LD="${LD-ld} -m elf64ppc"
8199             ;;
8200           s390*-*linux*|s390*-*tpf*)
8201             LD="${LD-ld} -m elf64_s390"
8202             ;;
8203           sparc*-*linux*)
8204             LD="${LD-ld} -m elf64_sparc"
8205             ;;
8206         esac
8207         ;;
8208     esac
8209   fi
8210   rm -rf conftest*
8211   ;;
8212
8213 *-*-sco3.2v5*)
8214   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8215   SAVE_CFLAGS="$CFLAGS"
8216   CFLAGS="$CFLAGS -belf"
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8218 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8219 if ${lt_cv_cc_needs_belf+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   ac_ext=c
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h.  */
8230
8231 int
8232 main ()
8233 {
8234
8235   ;
8236   return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_link "$LINENO"; then :
8240   lt_cv_cc_needs_belf=yes
8241 else
8242   lt_cv_cc_needs_belf=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext \
8245     conftest$ac_exeext conftest.$ac_ext
8246      ac_ext=c
8247 ac_cpp='$CPP $CPPFLAGS'
8248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8254 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8255   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8256     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8257     CFLAGS="$SAVE_CFLAGS"
8258   fi
8259   ;;
8260 *-*solaris*)
8261   # Find out which ABI we are using.
8262   echo 'int i;' > conftest.$ac_ext
8263   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8264   (eval $ac_compile) 2>&5
8265   ac_status=$?
8266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8267   test $ac_status = 0; }; then
8268     case `/usr/bin/file conftest.o` in
8269     *64-bit*)
8270       case $lt_cv_prog_gnu_ld in
8271       yes*)
8272         case $host in
8273         i?86-*-solaris*)
8274           LD="${LD-ld} -m elf_x86_64"
8275           ;;
8276         sparc*-*-solaris*)
8277           LD="${LD-ld} -m elf64_sparc"
8278           ;;
8279         esac
8280         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8281         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8282           LD="${LD-ld}_sol2"
8283         fi
8284         ;;
8285       *)
8286         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8287           LD="${LD-ld} -64"
8288         fi
8289         ;;
8290       esac
8291       ;;
8292     esac
8293   fi
8294   rm -rf conftest*
8295   ;;
8296 esac
8297
8298 need_locks="$enable_libtool_lock"
8299
8300 if test -n "$ac_tool_prefix"; then
8301   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8302 set dummy ${ac_tool_prefix}mt; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   if test -n "$MANIFEST_TOOL"; then
8309   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316     for ac_exec_ext in '' $ac_executable_extensions; do
8317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323   done
8324 IFS=$as_save_IFS
8325
8326 fi
8327 fi
8328 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8329 if test -n "$MANIFEST_TOOL"; then
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8331 $as_echo "$MANIFEST_TOOL" >&6; }
8332 else
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8335 fi
8336
8337
8338 fi
8339 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8340   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8341   # Extract the first word of "mt", so it can be a program name with args.
8342 set dummy mt; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8346   $as_echo_n "(cached) " >&6
8347 else
8348   if test -n "$ac_ct_MANIFEST_TOOL"; then
8349   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354   IFS=$as_save_IFS
8355   test -z "$as_dir" && as_dir=.
8356     for ac_exec_ext in '' $ac_executable_extensions; do
8357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360     break 2
8361   fi
8362 done
8363   done
8364 IFS=$as_save_IFS
8365
8366 fi
8367 fi
8368 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8369 if test -n "$ac_ct_MANIFEST_TOOL"; then
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8371 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8372 else
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 fi
8376
8377   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8378     MANIFEST_TOOL=":"
8379   else
8380     case $cross_compiling:$ac_tool_warned in
8381 yes:)
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8384 ac_tool_warned=yes ;;
8385 esac
8386     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8387   fi
8388 else
8389   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8390 fi
8391
8392 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8394 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8395 if ${lt_cv_path_mainfest_tool+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   lt_cv_path_mainfest_tool=no
8399   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8400   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8401   cat conftest.err >&5
8402   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8403     lt_cv_path_mainfest_tool=yes
8404   fi
8405   rm -f conftest*
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8408 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8409 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8410   MANIFEST_TOOL=:
8411 fi
8412
8413
8414
8415
8416
8417
8418   case $host_os in
8419     rhapsody* | darwin*)
8420     if test -n "$ac_tool_prefix"; then
8421   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8422 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8426   $as_echo_n "(cached) " >&6
8427 else
8428   if test -n "$DSYMUTIL"; then
8429   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8430 else
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8433 do
8434   IFS=$as_save_IFS
8435   test -z "$as_dir" && as_dir=.
8436     for ac_exec_ext in '' $ac_executable_extensions; do
8437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8438     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440     break 2
8441   fi
8442 done
8443   done
8444 IFS=$as_save_IFS
8445
8446 fi
8447 fi
8448 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8449 if test -n "$DSYMUTIL"; then
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8451 $as_echo "$DSYMUTIL" >&6; }
8452 else
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8455 fi
8456
8457
8458 fi
8459 if test -z "$ac_cv_prog_DSYMUTIL"; then
8460   ac_ct_DSYMUTIL=$DSYMUTIL
8461   # Extract the first word of "dsymutil", so it can be a program name with args.
8462 set dummy dsymutil; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   if test -n "$ac_ct_DSYMUTIL"; then
8469   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474   IFS=$as_save_IFS
8475   test -z "$as_dir" && as_dir=.
8476     for ac_exec_ext in '' $ac_executable_extensions; do
8477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480     break 2
8481   fi
8482 done
8483   done
8484 IFS=$as_save_IFS
8485
8486 fi
8487 fi
8488 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8489 if test -n "$ac_ct_DSYMUTIL"; then
8490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8491 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8492 else
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8495 fi
8496
8497   if test "x$ac_ct_DSYMUTIL" = x; then
8498     DSYMUTIL=":"
8499   else
8500     case $cross_compiling:$ac_tool_warned in
8501 yes:)
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8504 ac_tool_warned=yes ;;
8505 esac
8506     DSYMUTIL=$ac_ct_DSYMUTIL
8507   fi
8508 else
8509   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8510 fi
8511
8512     if test -n "$ac_tool_prefix"; then
8513   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8514 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_prog_NMEDIT+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   if test -n "$NMEDIT"; then
8521   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526   IFS=$as_save_IFS
8527   test -z "$as_dir" && as_dir=.
8528     for ac_exec_ext in '' $ac_executable_extensions; do
8529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532     break 2
8533   fi
8534 done
8535   done
8536 IFS=$as_save_IFS
8537
8538 fi
8539 fi
8540 NMEDIT=$ac_cv_prog_NMEDIT
8541 if test -n "$NMEDIT"; then
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8543 $as_echo "$NMEDIT" >&6; }
8544 else
8545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550 fi
8551 if test -z "$ac_cv_prog_NMEDIT"; then
8552   ac_ct_NMEDIT=$NMEDIT
8553   # Extract the first word of "nmedit", so it can be a program name with args.
8554 set dummy nmedit; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8558   $as_echo_n "(cached) " >&6
8559 else
8560   if test -n "$ac_ct_NMEDIT"; then
8561   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566   IFS=$as_save_IFS
8567   test -z "$as_dir" && as_dir=.
8568     for ac_exec_ext in '' $ac_executable_extensions; do
8569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8570     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572     break 2
8573   fi
8574 done
8575   done
8576 IFS=$as_save_IFS
8577
8578 fi
8579 fi
8580 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8581 if test -n "$ac_ct_NMEDIT"; then
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8583 $as_echo "$ac_ct_NMEDIT" >&6; }
8584 else
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8587 fi
8588
8589   if test "x$ac_ct_NMEDIT" = x; then
8590     NMEDIT=":"
8591   else
8592     case $cross_compiling:$ac_tool_warned in
8593 yes:)
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8596 ac_tool_warned=yes ;;
8597 esac
8598     NMEDIT=$ac_ct_NMEDIT
8599   fi
8600 else
8601   NMEDIT="$ac_cv_prog_NMEDIT"
8602 fi
8603
8604     if test -n "$ac_tool_prefix"; then
8605   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_prog_LIPO+:} false; then :
8610   $as_echo_n "(cached) " >&6
8611 else
8612   if test -n "$LIPO"; then
8613   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8614 else
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618   IFS=$as_save_IFS
8619   test -z "$as_dir" && as_dir=.
8620     for ac_exec_ext in '' $ac_executable_extensions; do
8621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8622     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624     break 2
8625   fi
8626 done
8627   done
8628 IFS=$as_save_IFS
8629
8630 fi
8631 fi
8632 LIPO=$ac_cv_prog_LIPO
8633 if test -n "$LIPO"; then
8634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8635 $as_echo "$LIPO" >&6; }
8636 else
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8639 fi
8640
8641
8642 fi
8643 if test -z "$ac_cv_prog_LIPO"; then
8644   ac_ct_LIPO=$LIPO
8645   # Extract the first word of "lipo", so it can be a program name with args.
8646 set dummy lipo; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8650   $as_echo_n "(cached) " >&6
8651 else
8652   if test -n "$ac_ct_LIPO"; then
8653   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8654 else
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658   IFS=$as_save_IFS
8659   test -z "$as_dir" && as_dir=.
8660     for ac_exec_ext in '' $ac_executable_extensions; do
8661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662     ac_cv_prog_ac_ct_LIPO="lipo"
8663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664     break 2
8665   fi
8666 done
8667   done
8668 IFS=$as_save_IFS
8669
8670 fi
8671 fi
8672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8673 if test -n "$ac_ct_LIPO"; then
8674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8675 $as_echo "$ac_ct_LIPO" >&6; }
8676 else
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8679 fi
8680
8681   if test "x$ac_ct_LIPO" = x; then
8682     LIPO=":"
8683   else
8684     case $cross_compiling:$ac_tool_warned in
8685 yes:)
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688 ac_tool_warned=yes ;;
8689 esac
8690     LIPO=$ac_ct_LIPO
8691   fi
8692 else
8693   LIPO="$ac_cv_prog_LIPO"
8694 fi
8695
8696     if test -n "$ac_tool_prefix"; then
8697   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8698 set dummy ${ac_tool_prefix}otool; ac_word=$2
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700 $as_echo_n "checking for $ac_word... " >&6; }
8701 if ${ac_cv_prog_OTOOL+:} false; then :
8702   $as_echo_n "(cached) " >&6
8703 else
8704   if test -n "$OTOOL"; then
8705   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8706 else
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710   IFS=$as_save_IFS
8711   test -z "$as_dir" && as_dir=.
8712     for ac_exec_ext in '' $ac_executable_extensions; do
8713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716     break 2
8717   fi
8718 done
8719   done
8720 IFS=$as_save_IFS
8721
8722 fi
8723 fi
8724 OTOOL=$ac_cv_prog_OTOOL
8725 if test -n "$OTOOL"; then
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8727 $as_echo "$OTOOL" >&6; }
8728 else
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8731 fi
8732
8733
8734 fi
8735 if test -z "$ac_cv_prog_OTOOL"; then
8736   ac_ct_OTOOL=$OTOOL
8737   # Extract the first word of "otool", so it can be a program name with args.
8738 set dummy otool; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8742   $as_echo_n "(cached) " >&6
8743 else
8744   if test -n "$ac_ct_OTOOL"; then
8745   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8746 else
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750   IFS=$as_save_IFS
8751   test -z "$as_dir" && as_dir=.
8752     for ac_exec_ext in '' $ac_executable_extensions; do
8753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754     ac_cv_prog_ac_ct_OTOOL="otool"
8755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756     break 2
8757   fi
8758 done
8759   done
8760 IFS=$as_save_IFS
8761
8762 fi
8763 fi
8764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8765 if test -n "$ac_ct_OTOOL"; then
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8767 $as_echo "$ac_ct_OTOOL" >&6; }
8768 else
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772
8773   if test "x$ac_ct_OTOOL" = x; then
8774     OTOOL=":"
8775   else
8776     case $cross_compiling:$ac_tool_warned in
8777 yes:)
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8780 ac_tool_warned=yes ;;
8781 esac
8782     OTOOL=$ac_ct_OTOOL
8783   fi
8784 else
8785   OTOOL="$ac_cv_prog_OTOOL"
8786 fi
8787
8788     if test -n "$ac_tool_prefix"; then
8789   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8790 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if ${ac_cv_prog_OTOOL64+:} false; then :
8794   $as_echo_n "(cached) " >&6
8795 else
8796   if test -n "$OTOOL64"; then
8797   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802   IFS=$as_save_IFS
8803   test -z "$as_dir" && as_dir=.
8804     for ac_exec_ext in '' $ac_executable_extensions; do
8805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808     break 2
8809   fi
8810 done
8811   done
8812 IFS=$as_save_IFS
8813
8814 fi
8815 fi
8816 OTOOL64=$ac_cv_prog_OTOOL64
8817 if test -n "$OTOOL64"; then
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8819 $as_echo "$OTOOL64" >&6; }
8820 else
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824
8825
8826 fi
8827 if test -z "$ac_cv_prog_OTOOL64"; then
8828   ac_ct_OTOOL64=$OTOOL64
8829   # Extract the first word of "otool64", so it can be a program name with args.
8830 set dummy otool64; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 $as_echo_n "checking for $ac_word... " >&6; }
8833 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   if test -n "$ac_ct_OTOOL64"; then
8837   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8838 else
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 for as_dir in $PATH
8841 do
8842   IFS=$as_save_IFS
8843   test -z "$as_dir" && as_dir=.
8844     for ac_exec_ext in '' $ac_executable_extensions; do
8845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846     ac_cv_prog_ac_ct_OTOOL64="otool64"
8847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848     break 2
8849   fi
8850 done
8851   done
8852 IFS=$as_save_IFS
8853
8854 fi
8855 fi
8856 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8857 if test -n "$ac_ct_OTOOL64"; then
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8859 $as_echo "$ac_ct_OTOOL64" >&6; }
8860 else
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8863 fi
8864
8865   if test "x$ac_ct_OTOOL64" = x; then
8866     OTOOL64=":"
8867   else
8868     case $cross_compiling:$ac_tool_warned in
8869 yes:)
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8872 ac_tool_warned=yes ;;
8873 esac
8874     OTOOL64=$ac_ct_OTOOL64
8875   fi
8876 else
8877   OTOOL64="$ac_cv_prog_OTOOL64"
8878 fi
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8907 $as_echo_n "checking for -single_module linker flag... " >&6; }
8908 if ${lt_cv_apple_cc_single_mod+:} false; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   lt_cv_apple_cc_single_mod=no
8912       if test -z "${LT_MULTI_MODULE}"; then
8913         # By default we will add the -single_module flag. You can override
8914         # by either setting the environment variable LT_MULTI_MODULE
8915         # non-empty at configure time, or by adding -multi_module to the
8916         # link flags.
8917         rm -rf libconftest.dylib*
8918         echo "int foo(void){return 1;}" > conftest.c
8919         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8920 -dynamiclib -Wl,-single_module conftest.c" >&5
8921         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8922           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8923         _lt_result=$?
8924         # If there is a non-empty error log, and "single_module"
8925         # appears in it, assume the flag caused a linker warning
8926         if test -s conftest.err && $GREP single_module conftest.err; then
8927           cat conftest.err >&5
8928         # Otherwise, if the output was created with a 0 exit code from
8929         # the compiler, it worked.
8930         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8931           lt_cv_apple_cc_single_mod=yes
8932         else
8933           cat conftest.err >&5
8934         fi
8935         rm -rf libconftest.dylib*
8936         rm -f conftest.*
8937       fi
8938 fi
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8940 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8941
8942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8943 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8944 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   lt_cv_ld_exported_symbols_list=no
8948       save_LDFLAGS=$LDFLAGS
8949       echo "_main" > conftest.sym
8950       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h.  */
8953
8954 int
8955 main ()
8956 {
8957
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 if ac_fn_c_try_link "$LINENO"; then :
8963   lt_cv_ld_exported_symbols_list=yes
8964 else
8965   lt_cv_ld_exported_symbols_list=no
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext \
8968     conftest$ac_exeext conftest.$ac_ext
8969         LDFLAGS="$save_LDFLAGS"
8970
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8973 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8974
8975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8976 $as_echo_n "checking for -force_load linker flag... " >&6; }
8977 if ${lt_cv_ld_force_load+:} false; then :
8978   $as_echo_n "(cached) " >&6
8979 else
8980   lt_cv_ld_force_load=no
8981       cat > conftest.c << _LT_EOF
8982 int forced_loaded() { return 2;}
8983 _LT_EOF
8984       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8985       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8986       echo "$AR cru libconftest.a conftest.o" >&5
8987       $AR cru libconftest.a conftest.o 2>&5
8988       echo "$RANLIB libconftest.a" >&5
8989       $RANLIB libconftest.a 2>&5
8990       cat > conftest.c << _LT_EOF
8991 int main() { return 0;}
8992 _LT_EOF
8993       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8994       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8995       _lt_result=$?
8996       if test -s conftest.err && $GREP force_load conftest.err; then
8997         cat conftest.err >&5
8998       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8999         lt_cv_ld_force_load=yes
9000       else
9001         cat conftest.err >&5
9002       fi
9003         rm -f conftest.err libconftest.a conftest conftest.c
9004         rm -rf conftest.dSYM
9005
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9008 $as_echo "$lt_cv_ld_force_load" >&6; }
9009     case $host_os in
9010     rhapsody* | darwin1.[012])
9011       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9012     darwin1.*)
9013       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9014     darwin*) # darwin 5.x on
9015       # if running on 10.5 or later, the deployment target defaults
9016       # to the OS version, if on x86, and 10.4, the deployment
9017       # target defaults to 10.4. Don't you love it?
9018       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9019         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9020           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9021         10.[012]*)
9022           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9023         10.*)
9024           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9025       esac
9026     ;;
9027   esac
9028     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9029       _lt_dar_single_mod='$single_module'
9030     fi
9031     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9032       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9033     else
9034       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9035     fi
9036     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9037       _lt_dsymutil='~$DSYMUTIL $lib || :'
9038     else
9039       _lt_dsymutil=
9040     fi
9041     ;;
9042   esac
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9045 $as_echo_n "checking for ANSI C header files... " >&6; }
9046 if ${ac_cv_header_stdc+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051 #include <stdlib.h>
9052 #include <stdarg.h>
9053 #include <string.h>
9054 #include <float.h>
9055
9056 int
9057 main ()
9058 {
9059
9060   ;
9061   return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065   ac_cv_header_stdc=yes
9066 else
9067   ac_cv_header_stdc=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070
9071 if test $ac_cv_header_stdc = yes; then
9072   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h.  */
9075 #include <string.h>
9076
9077 _ACEOF
9078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9079   $EGREP "memchr" >/dev/null 2>&1; then :
9080
9081 else
9082   ac_cv_header_stdc=no
9083 fi
9084 rm -f conftest*
9085
9086 fi
9087
9088 if test $ac_cv_header_stdc = yes; then
9089   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h.  */
9092 #include <stdlib.h>
9093
9094 _ACEOF
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096   $EGREP "free" >/dev/null 2>&1; then :
9097
9098 else
9099   ac_cv_header_stdc=no
9100 fi
9101 rm -f conftest*
9102
9103 fi
9104
9105 if test $ac_cv_header_stdc = yes; then
9106   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9107   if test "$cross_compiling" = yes; then :
9108   :
9109 else
9110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h.  */
9112 #include <ctype.h>
9113 #include <stdlib.h>
9114 #if ((' ' & 0x0FF) == 0x020)
9115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9117 #else
9118 # define ISLOWER(c) \
9119                    (('a' <= (c) && (c) <= 'i') \
9120                      || ('j' <= (c) && (c) <= 'r') \
9121                      || ('s' <= (c) && (c) <= 'z'))
9122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9123 #endif
9124
9125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9126 int
9127 main ()
9128 {
9129   int i;
9130   for (i = 0; i < 256; i++)
9131     if (XOR (islower (i), ISLOWER (i))
9132         || toupper (i) != TOUPPER (i))
9133       return 2;
9134   return 0;
9135 }
9136 _ACEOF
9137 if ac_fn_c_try_run "$LINENO"; then :
9138
9139 else
9140   ac_cv_header_stdc=no
9141 fi
9142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9143   conftest.$ac_objext conftest.beam conftest.$ac_ext
9144 fi
9145
9146 fi
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9149 $as_echo "$ac_cv_header_stdc" >&6; }
9150 if test $ac_cv_header_stdc = yes; then
9151
9152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9153
9154 fi
9155
9156 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9157 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9158                   inttypes.h stdint.h unistd.h
9159 do :
9160   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9161 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9162 "
9163 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9164   cat >>confdefs.h <<_ACEOF
9165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9166 _ACEOF
9167
9168 fi
9169
9170 done
9171
9172
9173 for ac_header in dlfcn.h
9174 do :
9175   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9176 "
9177 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9178   cat >>confdefs.h <<_ACEOF
9179 #define HAVE_DLFCN_H 1
9180 _ACEOF
9181
9182 fi
9183
9184 done
9185
9186
9187
9188
9189 func_stripname_cnf ()
9190 {
9191   case ${2} in
9192   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9193   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9194   esac
9195 } # func_stripname_cnf
9196
9197
9198
9199
9200
9201 # Set options
9202 # Check whether --enable-shared was given.
9203 if test "${enable_shared+set}" = set; then :
9204   enableval=$enable_shared; p=${PACKAGE-default}
9205     case $enableval in
9206     yes) enable_shared=yes ;;
9207     no) enable_shared=no ;;
9208     *)
9209       enable_shared=no
9210       # Look at the argument we got.  We use all the common list separators.
9211       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9212       for pkg in $enableval; do
9213         IFS="$lt_save_ifs"
9214         if test "X$pkg" = "X$p"; then
9215           enable_shared=yes
9216         fi
9217       done
9218       IFS="$lt_save_ifs"
9219       ;;
9220     esac
9221 else
9222   enable_shared=yes
9223 fi
9224
9225
9226
9227
9228
9229
9230
9231 # Check whether --enable-static was given.
9232 if test "${enable_static+set}" = set; then :
9233   enableval=$enable_static; p=${PACKAGE-default}
9234     case $enableval in
9235     yes) enable_static=yes ;;
9236     no) enable_static=no ;;
9237     *)
9238      enable_static=no
9239       # Look at the argument we got.  We use all the common list separators.
9240       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9241       for pkg in $enableval; do
9242         IFS="$lt_save_ifs"
9243         if test "X$pkg" = "X$p"; then
9244           enable_static=yes
9245         fi
9246       done
9247       IFS="$lt_save_ifs"
9248       ;;
9249     esac
9250 else
9251   enable_static=no
9252 fi
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263         enable_dlopen=no
9264
9265
9266   enable_win32_dll=no
9267
9268
9269
9270
9271
9272 # Check whether --with-pic was given.
9273 if test "${with_pic+set}" = set; then :
9274   withval=$with_pic; lt_p=${PACKAGE-default}
9275     case $withval in
9276     yes|no) pic_mode=$withval ;;
9277     *)
9278       pic_mode=default
9279       # Look at the argument we got.  We use all the common list separators.
9280       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9281       for lt_pkg in $withval; do
9282         IFS="$lt_save_ifs"
9283         if test "X$lt_pkg" = "X$lt_p"; then
9284           pic_mode=yes
9285         fi
9286       done
9287       IFS="$lt_save_ifs"
9288       ;;
9289     esac
9290 else
9291   pic_mode=default
9292 fi
9293
9294
9295 test -z "$pic_mode" && pic_mode=default
9296
9297
9298
9299
9300
9301
9302
9303   # Check whether --enable-fast-install was given.
9304 if test "${enable_fast_install+set}" = set; then :
9305   enableval=$enable_fast_install; p=${PACKAGE-default}
9306     case $enableval in
9307     yes) enable_fast_install=yes ;;
9308     no) enable_fast_install=no ;;
9309     *)
9310       enable_fast_install=no
9311       # Look at the argument we got.  We use all the common list separators.
9312       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9313       for pkg in $enableval; do
9314         IFS="$lt_save_ifs"
9315         if test "X$pkg" = "X$p"; then
9316           enable_fast_install=yes
9317         fi
9318       done
9319       IFS="$lt_save_ifs"
9320       ;;
9321     esac
9322 else
9323   enable_fast_install=yes
9324 fi
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 # This can be used to rebuild libtool when needed
9337 LIBTOOL_DEPS="$ltmain"
9338
9339 # Always use our own libtool.
9340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371 test -z "$LN_S" && LN_S="ln -s"
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386 if test -n "${ZSH_VERSION+set}" ; then
9387    setopt NO_GLOB_SUBST
9388 fi
9389
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9391 $as_echo_n "checking for objdir... " >&6; }
9392 if ${lt_cv_objdir+:} false; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   rm -f .libs 2>/dev/null
9396 mkdir .libs 2>/dev/null
9397 if test -d .libs; then
9398   lt_cv_objdir=.libs
9399 else
9400   # MS-DOS does not allow filenames that begin with a dot.
9401   lt_cv_objdir=_libs
9402 fi
9403 rmdir .libs 2>/dev/null
9404 fi
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9406 $as_echo "$lt_cv_objdir" >&6; }
9407 objdir=$lt_cv_objdir
9408
9409
9410
9411
9412
9413 cat >>confdefs.h <<_ACEOF
9414 #define LT_OBJDIR "$lt_cv_objdir/"
9415 _ACEOF
9416
9417
9418
9419
9420 case $host_os in
9421 aix3*)
9422   # AIX sometimes has problems with the GCC collect2 program.  For some
9423   # reason, if we set the COLLECT_NAMES environment variable, the problems
9424   # vanish in a puff of smoke.
9425   if test "X${COLLECT_NAMES+set}" != Xset; then
9426     COLLECT_NAMES=
9427     export COLLECT_NAMES
9428   fi
9429   ;;
9430 esac
9431
9432 # Global variables:
9433 ofile=libtool
9434 can_build_shared=yes
9435
9436 # All known linkers require a `.a' archive for static linking (except MSVC,
9437 # which needs '.lib').
9438 libext=a
9439
9440 with_gnu_ld="$lt_cv_prog_gnu_ld"
9441
9442 old_CC="$CC"
9443 old_CFLAGS="$CFLAGS"
9444
9445 # Set sane defaults for various variables
9446 test -z "$CC" && CC=cc
9447 test -z "$LTCC" && LTCC=$CC
9448 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9449 test -z "$LD" && LD=ld
9450 test -z "$ac_objext" && ac_objext=o
9451
9452 for cc_temp in $compiler""; do
9453   case $cc_temp in
9454     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9455     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9456     \-*) ;;
9457     *) break;;
9458   esac
9459 done
9460 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9461
9462
9463 # Only perform the check for file, if the check method requires it
9464 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9465 case $deplibs_check_method in
9466 file_magic*)
9467   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9469 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473   case $MAGIC_CMD in
9474 [\\/*] |  ?:[\\/]*)
9475   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9476   ;;
9477 *)
9478   lt_save_MAGIC_CMD="$MAGIC_CMD"
9479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9480   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9481   for ac_dir in $ac_dummy; do
9482     IFS="$lt_save_ifs"
9483     test -z "$ac_dir" && ac_dir=.
9484     if test -f $ac_dir/${ac_tool_prefix}file; then
9485       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9486       if test -n "$file_magic_test_file"; then
9487         case $deplibs_check_method in
9488         "file_magic "*)
9489           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9492             $EGREP "$file_magic_regex" > /dev/null; then
9493             :
9494           else
9495             cat <<_LT_EOF 1>&2
9496
9497 *** Warning: the command libtool uses to detect shared libraries,
9498 *** $file_magic_cmd, produces output that libtool cannot recognize.
9499 *** The result is that libtool may fail to recognize shared libraries
9500 *** as such.  This will affect the creation of libtool libraries that
9501 *** depend on shared libraries, but programs linked with such libtool
9502 *** libraries will work regardless of this problem.  Nevertheless, you
9503 *** may want to report the problem to your system manager and/or to
9504 *** bug-libtool@gnu.org
9505
9506 _LT_EOF
9507           fi ;;
9508         esac
9509       fi
9510       break
9511     fi
9512   done
9513   IFS="$lt_save_ifs"
9514   MAGIC_CMD="$lt_save_MAGIC_CMD"
9515   ;;
9516 esac
9517 fi
9518
9519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9520 if test -n "$MAGIC_CMD"; then
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9522 $as_echo "$MAGIC_CMD" >&6; }
9523 else
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9526 fi
9527
9528
9529
9530
9531
9532 if test -z "$lt_cv_path_MAGIC_CMD"; then
9533   if test -n "$ac_tool_prefix"; then
9534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9535 $as_echo_n "checking for file... " >&6; }
9536 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9537   $as_echo_n "(cached) " >&6
9538 else
9539   case $MAGIC_CMD in
9540 [\\/*] |  ?:[\\/]*)
9541   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9542   ;;
9543 *)
9544   lt_save_MAGIC_CMD="$MAGIC_CMD"
9545   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9546   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9547   for ac_dir in $ac_dummy; do
9548     IFS="$lt_save_ifs"
9549     test -z "$ac_dir" && ac_dir=.
9550     if test -f $ac_dir/file; then
9551       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9552       if test -n "$file_magic_test_file"; then
9553         case $deplibs_check_method in
9554         "file_magic "*)
9555           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9556           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9557           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9558             $EGREP "$file_magic_regex" > /dev/null; then
9559             :
9560           else
9561             cat <<_LT_EOF 1>&2
9562
9563 *** Warning: the command libtool uses to detect shared libraries,
9564 *** $file_magic_cmd, produces output that libtool cannot recognize.
9565 *** The result is that libtool may fail to recognize shared libraries
9566 *** as such.  This will affect the creation of libtool libraries that
9567 *** depend on shared libraries, but programs linked with such libtool
9568 *** libraries will work regardless of this problem.  Nevertheless, you
9569 *** may want to report the problem to your system manager and/or to
9570 *** bug-libtool@gnu.org
9571
9572 _LT_EOF
9573           fi ;;
9574         esac
9575       fi
9576       break
9577     fi
9578   done
9579   IFS="$lt_save_ifs"
9580   MAGIC_CMD="$lt_save_MAGIC_CMD"
9581   ;;
9582 esac
9583 fi
9584
9585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9586 if test -n "$MAGIC_CMD"; then
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9588 $as_echo "$MAGIC_CMD" >&6; }
9589 else
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595   else
9596     MAGIC_CMD=:
9597   fi
9598 fi
9599
9600   fi
9601   ;;
9602 esac
9603
9604 # Use C for the default configuration in the libtool script
9605
9606 lt_save_CC="$CC"
9607 ac_ext=c
9608 ac_cpp='$CPP $CPPFLAGS'
9609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9612
9613
9614 # Source file extension for C test sources.
9615 ac_ext=c
9616
9617 # Object file extension for compiled C test sources.
9618 objext=o
9619 objext=$objext
9620
9621 # Code to be used in simple compile tests
9622 lt_simple_compile_test_code="int some_variable = 0;"
9623
9624 # Code to be used in simple link tests
9625 lt_simple_link_test_code='int main(){return(0);}'
9626
9627
9628
9629
9630
9631
9632
9633 # If no C compiler was specified, use CC.
9634 LTCC=${LTCC-"$CC"}
9635
9636 # If no C compiler flags were specified, use CFLAGS.
9637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9638
9639 # Allow CC to be a program name with arguments.
9640 compiler=$CC
9641
9642 # Save the default compiler, since it gets overwritten when the other
9643 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9644 compiler_DEFAULT=$CC
9645
9646 # save warnings/boilerplate of simple test code
9647 ac_outfile=conftest.$ac_objext
9648 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9650 _lt_compiler_boilerplate=`cat conftest.err`
9651 $RM conftest*
9652
9653 ac_outfile=conftest.$ac_objext
9654 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9656 _lt_linker_boilerplate=`cat conftest.err`
9657 $RM -r conftest*
9658
9659
9660 ## CAVEAT EMPTOR:
9661 ## There is no encapsulation within the following macros, do not change
9662 ## the running order or otherwise move them around unless you know exactly
9663 ## what you are doing...
9664 if test -n "$compiler"; then
9665
9666 lt_prog_compiler_no_builtin_flag=
9667
9668 if test "$GCC" = yes; then
9669   case $cc_basename in
9670   nvcc*)
9671     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9672   *)
9673     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9674   esac
9675
9676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9677 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9678 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9679   $as_echo_n "(cached) " >&6
9680 else
9681   lt_cv_prog_compiler_rtti_exceptions=no
9682    ac_outfile=conftest.$ac_objext
9683    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9684    lt_compiler_flag="-fno-rtti -fno-exceptions"
9685    # Insert the option either (1) after the last *FLAGS variable, or
9686    # (2) before a word containing "conftest.", or (3) at the end.
9687    # Note that $ac_compile itself does not contain backslashes and begins
9688    # with a dollar sign (not a hyphen), so the echo should work correctly.
9689    # The option is referenced via a variable to avoid confusing sed.
9690    lt_compile=`echo "$ac_compile" | $SED \
9691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9693    -e 's:$: $lt_compiler_flag:'`
9694    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9695    (eval "$lt_compile" 2>conftest.err)
9696    ac_status=$?
9697    cat conftest.err >&5
9698    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699    if (exit $ac_status) && test -s "$ac_outfile"; then
9700      # The compiler can only warn and ignore the option if not recognized
9701      # So say no if there are warnings other than the usual output.
9702      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9703      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9704      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9705        lt_cv_prog_compiler_rtti_exceptions=yes
9706      fi
9707    fi
9708    $RM conftest*
9709
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9712 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9713
9714 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9715     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9716 else
9717     :
9718 fi
9719
9720 fi
9721
9722
9723
9724
9725
9726
9727   lt_prog_compiler_wl=
9728 lt_prog_compiler_pic=
9729 lt_prog_compiler_static=
9730
9731
9732   if test "$GCC" = yes; then
9733     lt_prog_compiler_wl='-Wl,'
9734     lt_prog_compiler_static='-static'
9735
9736     case $host_os in
9737       aix*)
9738       # All AIX code is PIC.
9739       if test "$host_cpu" = ia64; then
9740         # AIX 5 now supports IA64 processor
9741         lt_prog_compiler_static='-Bstatic'
9742       fi
9743       ;;
9744
9745     amigaos*)
9746       case $host_cpu in
9747       powerpc)
9748             # see comment about AmigaOS4 .so support
9749             lt_prog_compiler_pic='-fPIC'
9750         ;;
9751       m68k)
9752             # FIXME: we need at least 68020 code to build shared libraries, but
9753             # adding the `-m68020' flag to GCC prevents building anything better,
9754             # like `-m68040'.
9755             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9756         ;;
9757       esac
9758       ;;
9759
9760     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9761       # PIC is the default for these OSes.
9762       ;;
9763
9764     mingw* | cygwin* | pw32* | os2* | cegcc*)
9765       # This hack is so that the source file can tell whether it is being
9766       # built for inclusion in a dll (and should export symbols for example).
9767       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9768       # (--disable-auto-import) libraries
9769       lt_prog_compiler_pic='-DDLL_EXPORT'
9770       ;;
9771
9772     darwin* | rhapsody*)
9773       # PIC is the default on this platform
9774       # Common symbols not allowed in MH_DYLIB files
9775       lt_prog_compiler_pic='-fno-common'
9776       ;;
9777
9778     haiku*)
9779       # PIC is the default for Haiku.
9780       # The "-static" flag exists, but is broken.
9781       lt_prog_compiler_static=
9782       ;;
9783
9784     hpux*)
9785       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9786       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9787       # sets the default TLS model and affects inlining.
9788       case $host_cpu in
9789       hppa*64*)
9790         # +Z the default
9791         ;;
9792       *)
9793         lt_prog_compiler_pic='-fPIC'
9794         ;;
9795       esac
9796       ;;
9797
9798     interix[3-9]*)
9799       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9800       # Instead, we relocate shared libraries at runtime.
9801       ;;
9802
9803     msdosdjgpp*)
9804       # Just because we use GCC doesn't mean we suddenly get shared libraries
9805       # on systems that don't support them.
9806       lt_prog_compiler_can_build_shared=no
9807       enable_shared=no
9808       ;;
9809
9810     *nto* | *qnx*)
9811       # QNX uses GNU C++, but need to define -shared option too, otherwise
9812       # it will coredump.
9813       lt_prog_compiler_pic='-fPIC -shared'
9814       ;;
9815
9816     sysv4*MP*)
9817       if test -d /usr/nec; then
9818         lt_prog_compiler_pic=-Kconform_pic
9819       fi
9820       ;;
9821
9822     *)
9823       lt_prog_compiler_pic='-fPIC'
9824       ;;
9825     esac
9826
9827     case $cc_basename in
9828     nvcc*) # Cuda Compiler Driver 2.2
9829       lt_prog_compiler_wl='-Xlinker '
9830       if test -n "$lt_prog_compiler_pic"; then
9831         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9832       fi
9833       ;;
9834     esac
9835   else
9836     # PORTME Check for flag to pass linker flags through the system compiler.
9837     case $host_os in
9838     aix*)
9839       lt_prog_compiler_wl='-Wl,'
9840       if test "$host_cpu" = ia64; then
9841         # AIX 5 now supports IA64 processor
9842         lt_prog_compiler_static='-Bstatic'
9843       else
9844         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9845       fi
9846       ;;
9847
9848     mingw* | cygwin* | pw32* | os2* | cegcc*)
9849       # This hack is so that the source file can tell whether it is being
9850       # built for inclusion in a dll (and should export symbols for example).
9851       lt_prog_compiler_pic='-DDLL_EXPORT'
9852       ;;
9853
9854     hpux9* | hpux10* | hpux11*)
9855       lt_prog_compiler_wl='-Wl,'
9856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9857       # not for PA HP-UX.
9858       case $host_cpu in
9859       hppa*64*|ia64*)
9860         # +Z the default
9861         ;;
9862       *)
9863         lt_prog_compiler_pic='+Z'
9864         ;;
9865       esac
9866       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9867       lt_prog_compiler_static='${wl}-a ${wl}archive'
9868       ;;
9869
9870     irix5* | irix6* | nonstopux*)
9871       lt_prog_compiler_wl='-Wl,'
9872       # PIC (with -KPIC) is the default.
9873       lt_prog_compiler_static='-non_shared'
9874       ;;
9875
9876     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9877       case $cc_basename in
9878       # old Intel for x86_64 which still supported -KPIC.
9879       ecc*)
9880         lt_prog_compiler_wl='-Wl,'
9881         lt_prog_compiler_pic='-KPIC'
9882         lt_prog_compiler_static='-static'
9883         ;;
9884       # icc used to be incompatible with GCC.
9885       # ICC 10 doesn't accept -KPIC any more.
9886       icc* | ifort*)
9887         lt_prog_compiler_wl='-Wl,'
9888         lt_prog_compiler_pic='-fPIC'
9889         lt_prog_compiler_static='-static'
9890         ;;
9891       # Lahey Fortran 8.1.
9892       lf95*)
9893         lt_prog_compiler_wl='-Wl,'
9894         lt_prog_compiler_pic='--shared'
9895         lt_prog_compiler_static='--static'
9896         ;;
9897       nagfor*)
9898         # NAG Fortran compiler
9899         lt_prog_compiler_wl='-Wl,-Wl,,'
9900         lt_prog_compiler_pic='-PIC'
9901         lt_prog_compiler_static='-Bstatic'
9902         ;;
9903       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9904         # Portland Group compilers (*not* the Pentium gcc compiler,
9905         # which looks to be a dead project)
9906         lt_prog_compiler_wl='-Wl,'
9907         lt_prog_compiler_pic='-fpic'
9908         lt_prog_compiler_static='-Bstatic'
9909         ;;
9910       ccc*)
9911         lt_prog_compiler_wl='-Wl,'
9912         # All Alpha code is PIC.
9913         lt_prog_compiler_static='-non_shared'
9914         ;;
9915       xl* | bgxl* | bgf* | mpixl*)
9916         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9917         lt_prog_compiler_wl='-Wl,'
9918         lt_prog_compiler_pic='-qpic'
9919         lt_prog_compiler_static='-qstaticlink'
9920         ;;
9921       *)
9922         case `$CC -V 2>&1 | sed 5q` in
9923         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9924           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9925           lt_prog_compiler_pic='-KPIC'
9926           lt_prog_compiler_static='-Bstatic'
9927           lt_prog_compiler_wl=''
9928           ;;
9929         *Sun\ F* | *Sun*Fortran*)
9930           lt_prog_compiler_pic='-KPIC'
9931           lt_prog_compiler_static='-Bstatic'
9932           lt_prog_compiler_wl='-Qoption ld '
9933           ;;
9934         *Sun\ C*)
9935           # Sun C 5.9
9936           lt_prog_compiler_pic='-KPIC'
9937           lt_prog_compiler_static='-Bstatic'
9938           lt_prog_compiler_wl='-Wl,'
9939           ;;
9940         *Intel*\ [CF]*Compiler*)
9941           lt_prog_compiler_wl='-Wl,'
9942           lt_prog_compiler_pic='-fPIC'
9943           lt_prog_compiler_static='-static'
9944           ;;
9945         *Portland\ Group*)
9946           lt_prog_compiler_wl='-Wl,'
9947           lt_prog_compiler_pic='-fpic'
9948           lt_prog_compiler_static='-Bstatic'
9949           ;;
9950         esac
9951         ;;
9952       esac
9953       ;;
9954
9955     newsos6)
9956       lt_prog_compiler_pic='-KPIC'
9957       lt_prog_compiler_static='-Bstatic'
9958       ;;
9959
9960     *nto* | *qnx*)
9961       # QNX uses GNU C++, but need to define -shared option too, otherwise
9962       # it will coredump.
9963       lt_prog_compiler_pic='-fPIC -shared'
9964       ;;
9965
9966     osf3* | osf4* | osf5*)
9967       lt_prog_compiler_wl='-Wl,'
9968       # All OSF/1 code is PIC.
9969       lt_prog_compiler_static='-non_shared'
9970       ;;
9971
9972     rdos*)
9973       lt_prog_compiler_static='-non_shared'
9974       ;;
9975
9976     solaris*)
9977       lt_prog_compiler_pic='-KPIC'
9978       lt_prog_compiler_static='-Bstatic'
9979       case $cc_basename in
9980       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9981         lt_prog_compiler_wl='-Qoption ld ';;
9982       *)
9983         lt_prog_compiler_wl='-Wl,';;
9984       esac
9985       ;;
9986
9987     sunos4*)
9988       lt_prog_compiler_wl='-Qoption ld '
9989       lt_prog_compiler_pic='-PIC'
9990       lt_prog_compiler_static='-Bstatic'
9991       ;;
9992
9993     sysv4 | sysv4.2uw2* | sysv4.3*)
9994       lt_prog_compiler_wl='-Wl,'
9995       lt_prog_compiler_pic='-KPIC'
9996       lt_prog_compiler_static='-Bstatic'
9997       ;;
9998
9999     sysv4*MP*)
10000       if test -d /usr/nec ;then
10001         lt_prog_compiler_pic='-Kconform_pic'
10002         lt_prog_compiler_static='-Bstatic'
10003       fi
10004       ;;
10005
10006     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10007       lt_prog_compiler_wl='-Wl,'
10008       lt_prog_compiler_pic='-KPIC'
10009       lt_prog_compiler_static='-Bstatic'
10010       ;;
10011
10012     unicos*)
10013       lt_prog_compiler_wl='-Wl,'
10014       lt_prog_compiler_can_build_shared=no
10015       ;;
10016
10017     uts4*)
10018       lt_prog_compiler_pic='-pic'
10019       lt_prog_compiler_static='-Bstatic'
10020       ;;
10021
10022     *)
10023       lt_prog_compiler_can_build_shared=no
10024       ;;
10025     esac
10026   fi
10027
10028 case $host_os in
10029   # For platforms which do not support PIC, -DPIC is meaningless:
10030   *djgpp*)
10031     lt_prog_compiler_pic=
10032     ;;
10033   *)
10034     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10035     ;;
10036 esac
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10039 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10040 if ${lt_cv_prog_compiler_pic+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10044 fi
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10046 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10047 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10048
10049 #
10050 # Check to make sure the PIC flag actually works.
10051 #
10052 if test -n "$lt_prog_compiler_pic"; then
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10054 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10055 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058   lt_cv_prog_compiler_pic_works=no
10059    ac_outfile=conftest.$ac_objext
10060    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10061    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10062    # Insert the option either (1) after the last *FLAGS variable, or
10063    # (2) before a word containing "conftest.", or (3) at the end.
10064    # Note that $ac_compile itself does not contain backslashes and begins
10065    # with a dollar sign (not a hyphen), so the echo should work correctly.
10066    # The option is referenced via a variable to avoid confusing sed.
10067    lt_compile=`echo "$ac_compile" | $SED \
10068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10070    -e 's:$: $lt_compiler_flag:'`
10071    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10072    (eval "$lt_compile" 2>conftest.err)
10073    ac_status=$?
10074    cat conftest.err >&5
10075    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076    if (exit $ac_status) && test -s "$ac_outfile"; then
10077      # The compiler can only warn and ignore the option if not recognized
10078      # So say no if there are warnings other than the usual output.
10079      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10080      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10081      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10082        lt_cv_prog_compiler_pic_works=yes
10083      fi
10084    fi
10085    $RM conftest*
10086
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10089 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10090
10091 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10092     case $lt_prog_compiler_pic in
10093      "" | " "*) ;;
10094      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10095      esac
10096 else
10097     lt_prog_compiler_pic=
10098      lt_prog_compiler_can_build_shared=no
10099 fi
10100
10101 fi
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113 #
10114 # Check to make sure the static flag actually works.
10115 #
10116 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10118 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10119 if ${lt_cv_prog_compiler_static_works+:} false; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   lt_cv_prog_compiler_static_works=no
10123    save_LDFLAGS="$LDFLAGS"
10124    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10125    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10126    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10127      # The linker can only warn and ignore the option if not recognized
10128      # So say no if there are warnings
10129      if test -s conftest.err; then
10130        # Append any errors to the config.log.
10131        cat conftest.err 1>&5
10132        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10133        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10134        if diff conftest.exp conftest.er2 >/dev/null; then
10135          lt_cv_prog_compiler_static_works=yes
10136        fi
10137      else
10138        lt_cv_prog_compiler_static_works=yes
10139      fi
10140    fi
10141    $RM -r conftest*
10142    LDFLAGS="$save_LDFLAGS"
10143
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10146 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10147
10148 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10149     :
10150 else
10151     lt_prog_compiler_static=
10152 fi
10153
10154
10155
10156
10157
10158
10159
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10162 if ${lt_cv_prog_compiler_c_o+:} false; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   lt_cv_prog_compiler_c_o=no
10166    $RM -r conftest 2>/dev/null
10167    mkdir conftest
10168    cd conftest
10169    mkdir out
10170    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10171
10172    lt_compiler_flag="-o out/conftest2.$ac_objext"
10173    # Insert the option either (1) after the last *FLAGS variable, or
10174    # (2) before a word containing "conftest.", or (3) at the end.
10175    # Note that $ac_compile itself does not contain backslashes and begins
10176    # with a dollar sign (not a hyphen), so the echo should work correctly.
10177    lt_compile=`echo "$ac_compile" | $SED \
10178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10180    -e 's:$: $lt_compiler_flag:'`
10181    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10182    (eval "$lt_compile" 2>out/conftest.err)
10183    ac_status=$?
10184    cat out/conftest.err >&5
10185    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10187    then
10188      # The compiler can only warn and ignore the option if not recognized
10189      # So say no if there are warnings
10190      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10191      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10192      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10193        lt_cv_prog_compiler_c_o=yes
10194      fi
10195    fi
10196    chmod u+w . 2>&5
10197    $RM conftest*
10198    # SGI C++ compiler will create directory out/ii_files/ for
10199    # template instantiation
10200    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10201    $RM out/* && rmdir out
10202    cd ..
10203    $RM -r conftest
10204    $RM conftest*
10205
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10209
10210
10211
10212
10213
10214
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10216 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10217 if ${lt_cv_prog_compiler_c_o+:} false; then :
10218   $as_echo_n "(cached) " >&6
10219 else
10220   lt_cv_prog_compiler_c_o=no
10221    $RM -r conftest 2>/dev/null
10222    mkdir conftest
10223    cd conftest
10224    mkdir out
10225    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10226
10227    lt_compiler_flag="-o out/conftest2.$ac_objext"
10228    # Insert the option either (1) after the last *FLAGS variable, or
10229    # (2) before a word containing "conftest.", or (3) at the end.
10230    # Note that $ac_compile itself does not contain backslashes and begins
10231    # with a dollar sign (not a hyphen), so the echo should work correctly.
10232    lt_compile=`echo "$ac_compile" | $SED \
10233    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10234    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10235    -e 's:$: $lt_compiler_flag:'`
10236    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10237    (eval "$lt_compile" 2>out/conftest.err)
10238    ac_status=$?
10239    cat out/conftest.err >&5
10240    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10242    then
10243      # The compiler can only warn and ignore the option if not recognized
10244      # So say no if there are warnings
10245      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10246      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10247      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10248        lt_cv_prog_compiler_c_o=yes
10249      fi
10250    fi
10251    chmod u+w . 2>&5
10252    $RM conftest*
10253    # SGI C++ compiler will create directory out/ii_files/ for
10254    # template instantiation
10255    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10256    $RM out/* && rmdir out
10257    cd ..
10258    $RM -r conftest
10259    $RM conftest*
10260
10261 fi
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10263 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10264
10265
10266
10267
10268 hard_links="nottested"
10269 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10270   # do not overwrite the value of need_locks provided by the user
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10272 $as_echo_n "checking if we can lock with hard links... " >&6; }
10273   hard_links=yes
10274   $RM conftest*
10275   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10276   touch conftest.a
10277   ln conftest.a conftest.b 2>&5 || hard_links=no
10278   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10280 $as_echo "$hard_links" >&6; }
10281   if test "$hard_links" = no; then
10282     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10283 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10284     need_locks=warn
10285   fi
10286 else
10287   need_locks=no
10288 fi
10289
10290
10291
10292
10293
10294
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10296 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10297
10298   runpath_var=
10299   allow_undefined_flag=
10300   always_export_symbols=no
10301   archive_cmds=
10302   archive_expsym_cmds=
10303   compiler_needs_object=no
10304   enable_shared_with_static_runtimes=no
10305   export_dynamic_flag_spec=
10306   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10307   hardcode_automatic=no
10308   hardcode_direct=no
10309   hardcode_direct_absolute=no
10310   hardcode_libdir_flag_spec=
10311   hardcode_libdir_separator=
10312   hardcode_minus_L=no
10313   hardcode_shlibpath_var=unsupported
10314   inherit_rpath=no
10315   link_all_deplibs=unknown
10316   module_cmds=
10317   module_expsym_cmds=
10318   old_archive_from_new_cmds=
10319   old_archive_from_expsyms_cmds=
10320   thread_safe_flag_spec=
10321   whole_archive_flag_spec=
10322   # include_expsyms should be a list of space-separated symbols to be *always*
10323   # included in the symbol list
10324   include_expsyms=
10325   # exclude_expsyms can be an extended regexp of symbols to exclude
10326   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10327   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10328   # as well as any symbol that contains `d'.
10329   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10330   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10331   # platforms (ab)use it in PIC code, but their linkers get confused if
10332   # the symbol is explicitly referenced.  Since portable code cannot
10333   # rely on this symbol name, it's probably fine to never include it in
10334   # preloaded symbol tables.
10335   # Exclude shared library initialization/finalization symbols.
10336   extract_expsyms_cmds=
10337
10338   case $host_os in
10339   cygwin* | mingw* | pw32* | cegcc*)
10340     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10341     # When not using gcc, we currently assume that we are using
10342     # Microsoft Visual C++.
10343     if test "$GCC" != yes; then
10344       with_gnu_ld=no
10345     fi
10346     ;;
10347   interix*)
10348     # we just hope/assume this is gcc and not c89 (= MSVC++)
10349     with_gnu_ld=yes
10350     ;;
10351   openbsd*)
10352     with_gnu_ld=no
10353     ;;
10354   linux* | k*bsd*-gnu | gnu*)
10355     link_all_deplibs=no
10356     ;;
10357   esac
10358
10359   ld_shlibs=yes
10360
10361   # On some targets, GNU ld is compatible enough with the native linker
10362   # that we're better off using the native interface for both.
10363   lt_use_gnu_ld_interface=no
10364   if test "$with_gnu_ld" = yes; then
10365     case $host_os in
10366       aix*)
10367         # The AIX port of GNU ld has always aspired to compatibility
10368         # with the native linker.  However, as the warning in the GNU ld
10369         # block says, versions before 2.19.5* couldn't really create working
10370         # shared libraries, regardless of the interface used.
10371         case `$LD -v 2>&1` in
10372           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10373           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10374           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10375           *)
10376             lt_use_gnu_ld_interface=yes
10377             ;;
10378         esac
10379         ;;
10380       *)
10381         lt_use_gnu_ld_interface=yes
10382         ;;
10383     esac
10384   fi
10385
10386   if test "$lt_use_gnu_ld_interface" = yes; then
10387     # If archive_cmds runs LD, not CC, wlarc should be empty
10388     wlarc='${wl}'
10389
10390     # Set some defaults for GNU ld with shared library support. These
10391     # are reset later if shared libraries are not supported. Putting them
10392     # here allows them to be overridden if necessary.
10393     runpath_var=LD_RUN_PATH
10394     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10395     export_dynamic_flag_spec='${wl}--export-dynamic'
10396     # ancient GNU ld didn't support --whole-archive et. al.
10397     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10398       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10399     else
10400       whole_archive_flag_spec=
10401     fi
10402     supports_anon_versioning=no
10403     case `$LD -v 2>&1` in
10404       *GNU\ gold*) supports_anon_versioning=yes ;;
10405       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10406       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10407       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10408       *\ 2.11.*) ;; # other 2.11 versions
10409       *) supports_anon_versioning=yes ;;
10410     esac
10411
10412     # See if GNU ld supports shared libraries.
10413     case $host_os in
10414     aix[3-9]*)
10415       # On AIX/PPC, the GNU linker is very broken
10416       if test "$host_cpu" != ia64; then
10417         ld_shlibs=no
10418         cat <<_LT_EOF 1>&2
10419
10420 *** Warning: the GNU linker, at least up to release 2.19, is reported
10421 *** to be unable to reliably create shared libraries on AIX.
10422 *** Therefore, libtool is disabling shared libraries support.  If you
10423 *** really care for shared libraries, you may want to install binutils
10424 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10425 *** You will then need to restart the configuration process.
10426
10427 _LT_EOF
10428       fi
10429       ;;
10430
10431     amigaos*)
10432       case $host_cpu in
10433       powerpc)
10434             # see comment about AmigaOS4 .so support
10435             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436             archive_expsym_cmds=''
10437         ;;
10438       m68k)
10439             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)'
10440             hardcode_libdir_flag_spec='-L$libdir'
10441             hardcode_minus_L=yes
10442         ;;
10443       esac
10444       ;;
10445
10446     beos*)
10447       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10448         allow_undefined_flag=unsupported
10449         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10450         # support --undefined.  This deserves some investigation.  FIXME
10451         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452       else
10453         ld_shlibs=no
10454       fi
10455       ;;
10456
10457     cygwin* | mingw* | pw32* | cegcc*)
10458       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10459       # as there is no search path for DLLs.
10460       hardcode_libdir_flag_spec='-L$libdir'
10461       export_dynamic_flag_spec='${wl}--export-all-symbols'
10462       allow_undefined_flag=unsupported
10463       always_export_symbols=no
10464       enable_shared_with_static_runtimes=yes
10465       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'
10466       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10467
10468       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10469         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10470         # If the export-symbols file already is a .def file (1st line
10471         # is EXPORTS), use it as is; otherwise, prepend...
10472         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10473           cp $export_symbols $output_objdir/$soname.def;
10474         else
10475           echo EXPORTS > $output_objdir/$soname.def;
10476           cat $export_symbols >> $output_objdir/$soname.def;
10477         fi~
10478         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10479       else
10480         ld_shlibs=no
10481       fi
10482       ;;
10483
10484     haiku*)
10485       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486       link_all_deplibs=yes
10487       ;;
10488
10489     interix[3-9]*)
10490       hardcode_direct=no
10491       hardcode_shlibpath_var=no
10492       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10493       export_dynamic_flag_spec='${wl}-E'
10494       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10495       # Instead, shared libraries are loaded at an image base (0x10000000 by
10496       # default) and relocated if they conflict, which is a slow very memory
10497       # consuming and fragmenting process.  To avoid this, we pick a random,
10498       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10499       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10500       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10501       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'
10502       ;;
10503
10504     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10505       tmp_diet=no
10506       if test "$host_os" = linux-dietlibc; then
10507         case $cc_basename in
10508           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10509         esac
10510       fi
10511       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10512          && test "$tmp_diet" = no
10513       then
10514         tmp_addflag=' $pic_flag'
10515         tmp_sharedflag='-shared'
10516         case $cc_basename,$host_cpu in
10517         pgcc*)                          # Portland Group C compiler
10518           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'
10519           tmp_addflag=' $pic_flag'
10520           ;;
10521         pgf77* | pgf90* | pgf95* | pgfortran*)
10522                                         # Portland Group f77 and f90 compilers
10523           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'
10524           tmp_addflag=' $pic_flag -Mnomain' ;;
10525         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10526           tmp_addflag=' -i_dynamic' ;;
10527         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10528           tmp_addflag=' -i_dynamic -nofor_main' ;;
10529         ifc* | ifort*)                  # Intel Fortran compiler
10530           tmp_addflag=' -nofor_main' ;;
10531         lf95*)                          # Lahey Fortran 8.1
10532           whole_archive_flag_spec=
10533           tmp_sharedflag='--shared' ;;
10534         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10535           tmp_sharedflag='-qmkshrobj'
10536           tmp_addflag= ;;
10537         nvcc*)  # Cuda Compiler Driver 2.2
10538           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'
10539           compiler_needs_object=yes
10540           ;;
10541         esac
10542         case `$CC -V 2>&1 | sed 5q` in
10543         *Sun\ C*)                       # Sun C 5.9
10544           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'
10545           compiler_needs_object=yes
10546           tmp_sharedflag='-G' ;;
10547         *Sun\ F*)                       # Sun Fortran 8.3
10548           tmp_sharedflag='-G' ;;
10549         esac
10550         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10551
10552         if test "x$supports_anon_versioning" = xyes; then
10553           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10554             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10555             echo "local: *; };" >> $output_objdir/$libname.ver~
10556             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10557         fi
10558
10559         case $cc_basename in
10560         xlf* | bgf* | bgxlf* | mpixlf*)
10561           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10562           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10563           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10564           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10565           if test "x$supports_anon_versioning" = xyes; then
10566             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10567               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10568               echo "local: *; };" >> $output_objdir/$libname.ver~
10569               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10570           fi
10571           ;;
10572         esac
10573       else
10574         ld_shlibs=no
10575       fi
10576       ;;
10577
10578     netbsd* | netbsdelf*-gnu)
10579       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10580         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10581         wlarc=
10582       else
10583         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10584         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10585       fi
10586       ;;
10587
10588     solaris*)
10589       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10590         ld_shlibs=no
10591         cat <<_LT_EOF 1>&2
10592
10593 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10594 *** create shared libraries on Solaris systems.  Therefore, libtool
10595 *** is disabling shared libraries support.  We urge you to upgrade GNU
10596 *** binutils to release 2.9.1 or newer.  Another option is to modify
10597 *** your PATH or compiler configuration so that the native linker is
10598 *** used, and then restart.
10599
10600 _LT_EOF
10601       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10602         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10604       else
10605         ld_shlibs=no
10606       fi
10607       ;;
10608
10609     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10610       case `$LD -v 2>&1` in
10611         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10612         ld_shlibs=no
10613         cat <<_LT_EOF 1>&2
10614
10615 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10616 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10617 *** is disabling shared libraries support.  We urge you to upgrade GNU
10618 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10619 *** your PATH or compiler configuration so that the native linker is
10620 *** used, and then restart.
10621
10622 _LT_EOF
10623         ;;
10624         *)
10625           # For security reasons, it is highly recommended that you always
10626           # use absolute paths for naming shared libraries, and exclude the
10627           # DT_RUNPATH tag from executables and libraries.  But doing so
10628           # requires that you compile everything twice, which is a pain.
10629           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10630             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10631             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10632             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10633           else
10634             ld_shlibs=no
10635           fi
10636         ;;
10637       esac
10638       ;;
10639
10640     sunos4*)
10641       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10642       wlarc=
10643       hardcode_direct=yes
10644       hardcode_shlibpath_var=no
10645       ;;
10646
10647     *)
10648       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10649         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10650         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10651       else
10652         ld_shlibs=no
10653       fi
10654       ;;
10655     esac
10656
10657     if test "$ld_shlibs" = no; then
10658       runpath_var=
10659       hardcode_libdir_flag_spec=
10660       export_dynamic_flag_spec=
10661       whole_archive_flag_spec=
10662     fi
10663   else
10664     # PORTME fill in a description of your system's linker (not GNU ld)
10665     case $host_os in
10666     aix3*)
10667       allow_undefined_flag=unsupported
10668       always_export_symbols=yes
10669       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'
10670       # Note: this linker hardcodes the directories in LIBPATH if there
10671       # are no directories specified by -L.
10672       hardcode_minus_L=yes
10673       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10674         # Neither direct hardcoding nor static linking is supported with a
10675         # broken collect2.
10676         hardcode_direct=unsupported
10677       fi
10678       ;;
10679
10680     aix[4-9]*)
10681       if test "$host_cpu" = ia64; then
10682         # On IA64, the linker does run time linking by default, so we don't
10683         # have to do anything special.
10684         aix_use_runtimelinking=no
10685         exp_sym_flag='-Bexport'
10686         no_entry_flag=""
10687       else
10688         # If we're using GNU nm, then we don't want the "-C" option.
10689         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10690         # Also, AIX nm treats weak defined symbols like other global
10691         # defined symbols, whereas GNU nm marks them as "W".
10692         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10693           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'
10694         else
10695           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'
10696         fi
10697         aix_use_runtimelinking=no
10698
10699         # Test if we are trying to use run time linking or normal
10700         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10701         # need to do runtime linking.
10702         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10703           for ld_flag in $LDFLAGS; do
10704           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10705             aix_use_runtimelinking=yes
10706             break
10707           fi
10708           done
10709           ;;
10710         esac
10711
10712         exp_sym_flag='-bexport'
10713         no_entry_flag='-bnoentry'
10714       fi
10715
10716       # When large executables or shared objects are built, AIX ld can
10717       # have problems creating the table of contents.  If linking a library
10718       # or program results in "error TOC overflow" add -mminimal-toc to
10719       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10720       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10721
10722       archive_cmds=''
10723       hardcode_direct=yes
10724       hardcode_direct_absolute=yes
10725       hardcode_libdir_separator=':'
10726       link_all_deplibs=yes
10727       file_list_spec='${wl}-f,'
10728
10729       if test "$GCC" = yes; then
10730         case $host_os in aix4.[012]|aix4.[012].*)
10731         # We only want to do this on AIX 4.2 and lower, the check
10732         # below for broken collect2 doesn't work under 4.3+
10733           collect2name=`${CC} -print-prog-name=collect2`
10734           if test -f "$collect2name" &&
10735            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10736           then
10737           # We have reworked collect2
10738           :
10739           else
10740           # We have old collect2
10741           hardcode_direct=unsupported
10742           # It fails to find uninstalled libraries when the uninstalled
10743           # path is not listed in the libpath.  Setting hardcode_minus_L
10744           # to unsupported forces relinking
10745           hardcode_minus_L=yes
10746           hardcode_libdir_flag_spec='-L$libdir'
10747           hardcode_libdir_separator=
10748           fi
10749           ;;
10750         esac
10751         shared_flag='-shared'
10752         if test "$aix_use_runtimelinking" = yes; then
10753           shared_flag="$shared_flag "'${wl}-G'
10754         fi
10755         link_all_deplibs=no
10756       else
10757         # not using gcc
10758         if test "$host_cpu" = ia64; then
10759         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10760         # chokes on -Wl,-G. The following line is correct:
10761           shared_flag='-G'
10762         else
10763           if test "$aix_use_runtimelinking" = yes; then
10764             shared_flag='${wl}-G'
10765           else
10766             shared_flag='${wl}-bM:SRE'
10767           fi
10768         fi
10769       fi
10770
10771       export_dynamic_flag_spec='${wl}-bexpall'
10772       # It seems that -bexpall does not export symbols beginning with
10773       # underscore (_), so it is better to generate a list of symbols to export.
10774       always_export_symbols=yes
10775       if test "$aix_use_runtimelinking" = yes; then
10776         # Warning - without using the other runtime loading flags (-brtl),
10777         # -berok will link without error, but may produce a broken library.
10778         allow_undefined_flag='-berok'
10779         # Determine the default libpath from the value encoded in an
10780         # empty executable.
10781         if test "${lt_cv_aix_libpath+set}" = set; then
10782   aix_libpath=$lt_cv_aix_libpath
10783 else
10784   if ${lt_cv_aix_libpath_+:} false; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h.  */
10789
10790 int
10791 main ()
10792 {
10793
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_link "$LINENO"; then :
10799
10800   lt_aix_libpath_sed='
10801       /Import File Strings/,/^$/ {
10802           /^0/ {
10803               s/^0  *\([^ ]*\) *$/\1/
10804               p
10805           }
10806       }'
10807   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10808   # Check for a 64-bit object if we didn't find anything.
10809   if test -z "$lt_cv_aix_libpath_"; then
10810     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10811   fi
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext \
10814     conftest$ac_exeext conftest.$ac_ext
10815   if test -z "$lt_cv_aix_libpath_"; then
10816     lt_cv_aix_libpath_="/usr/lib:/lib"
10817   fi
10818
10819 fi
10820
10821   aix_libpath=$lt_cv_aix_libpath_
10822 fi
10823
10824         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10825         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"
10826       else
10827         if test "$host_cpu" = ia64; then
10828           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10829           allow_undefined_flag="-z nodefs"
10830           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"
10831         else
10832          # Determine the default libpath from the value encoded in an
10833          # empty executable.
10834          if test "${lt_cv_aix_libpath+set}" = set; then
10835   aix_libpath=$lt_cv_aix_libpath
10836 else
10837   if ${lt_cv_aix_libpath_+:} false; then :
10838   $as_echo_n "(cached) " >&6
10839 else
10840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h.  */
10842
10843 int
10844 main ()
10845 {
10846
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852
10853   lt_aix_libpath_sed='
10854       /Import File Strings/,/^$/ {
10855           /^0/ {
10856               s/^0  *\([^ ]*\) *$/\1/
10857               p
10858           }
10859       }'
10860   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10861   # Check for a 64-bit object if we didn't find anything.
10862   if test -z "$lt_cv_aix_libpath_"; then
10863     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10864   fi
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext \
10867     conftest$ac_exeext conftest.$ac_ext
10868   if test -z "$lt_cv_aix_libpath_"; then
10869     lt_cv_aix_libpath_="/usr/lib:/lib"
10870   fi
10871
10872 fi
10873
10874   aix_libpath=$lt_cv_aix_libpath_
10875 fi
10876
10877          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10878           # Warning - without using the other run time loading flags,
10879           # -berok will link without error, but may produce a broken library.
10880           no_undefined_flag=' ${wl}-bernotok'
10881           allow_undefined_flag=' ${wl}-berok'
10882           if test "$with_gnu_ld" = yes; then
10883             # We only use this code for GNU lds that support --whole-archive.
10884             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10885           else
10886             # Exported symbols can be pulled into shared objects from archives
10887             whole_archive_flag_spec='$convenience'
10888           fi
10889           archive_cmds_need_lc=yes
10890           # This is similar to how AIX traditionally builds its shared libraries.
10891           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'
10892         fi
10893       fi
10894       ;;
10895
10896     amigaos*)
10897       case $host_cpu in
10898       powerpc)
10899             # see comment about AmigaOS4 .so support
10900             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10901             archive_expsym_cmds=''
10902         ;;
10903       m68k)
10904             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)'
10905             hardcode_libdir_flag_spec='-L$libdir'
10906             hardcode_minus_L=yes
10907         ;;
10908       esac
10909       ;;
10910
10911     bsdi[45]*)
10912       export_dynamic_flag_spec=-rdynamic
10913       ;;
10914
10915     cygwin* | mingw* | pw32* | cegcc*)
10916       # When not using gcc, we currently assume that we are using
10917       # Microsoft Visual C++.
10918       # hardcode_libdir_flag_spec is actually meaningless, as there is
10919       # no search path for DLLs.
10920       case $cc_basename in
10921       cl*)
10922         # Native MSVC
10923         hardcode_libdir_flag_spec=' '
10924         allow_undefined_flag=unsupported
10925         always_export_symbols=yes
10926         file_list_spec='@'
10927         # Tell ltmain to make .lib files, not .a files.
10928         libext=lib
10929         # Tell ltmain to make .dll files, not .so files.
10930         shrext_cmds=".dll"
10931         # FIXME: Setting linknames here is a bad hack.
10932         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10933         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10934             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10935           else
10936             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10937           fi~
10938           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10939           linknames='
10940         # The linker will not automatically build a static lib if we build a DLL.
10941         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10942         enable_shared_with_static_runtimes=yes
10943         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10944         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10945         # Don't use ranlib
10946         old_postinstall_cmds='chmod 644 $oldlib'
10947         postlink_cmds='lt_outputfile="@OUTPUT@"~
10948           lt_tool_outputfile="@TOOL_OUTPUT@"~
10949           case $lt_outputfile in
10950             *.exe|*.EXE) ;;
10951             *)
10952               lt_outputfile="$lt_outputfile.exe"
10953               lt_tool_outputfile="$lt_tool_outputfile.exe"
10954               ;;
10955           esac~
10956           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10957             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10958             $RM "$lt_outputfile.manifest";
10959           fi'
10960         ;;
10961       *)
10962         # Assume MSVC wrapper
10963         hardcode_libdir_flag_spec=' '
10964         allow_undefined_flag=unsupported
10965         # Tell ltmain to make .lib files, not .a files.
10966         libext=lib
10967         # Tell ltmain to make .dll files, not .so files.
10968         shrext_cmds=".dll"
10969         # FIXME: Setting linknames here is a bad hack.
10970         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10971         # The linker will automatically build a .lib file if we build a DLL.
10972         old_archive_from_new_cmds='true'
10973         # FIXME: Should let the user specify the lib program.
10974         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10975         enable_shared_with_static_runtimes=yes
10976         ;;
10977       esac
10978       ;;
10979
10980     darwin* | rhapsody*)
10981
10982
10983   archive_cmds_need_lc=no
10984   hardcode_direct=no
10985   hardcode_automatic=yes
10986   hardcode_shlibpath_var=unsupported
10987   if test "$lt_cv_ld_force_load" = "yes"; then
10988     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\"`'
10989
10990   else
10991     whole_archive_flag_spec=''
10992   fi
10993   link_all_deplibs=yes
10994   allow_undefined_flag="$_lt_dar_allow_undefined"
10995   case $cc_basename in
10996      ifort*) _lt_dar_can_shared=yes ;;
10997      *) _lt_dar_can_shared=$GCC ;;
10998   esac
10999   if test "$_lt_dar_can_shared" = "yes"; then
11000     output_verbose_link_cmd=func_echo_all
11001     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11002     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11003     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}"
11004     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}"
11005
11006   else
11007   ld_shlibs=no
11008   fi
11009
11010       ;;
11011
11012     dgux*)
11013       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11014       hardcode_libdir_flag_spec='-L$libdir'
11015       hardcode_shlibpath_var=no
11016       ;;
11017
11018     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11019     # support.  Future versions do this automatically, but an explicit c++rt0.o
11020     # does not break anything, and helps significantly (at the cost of a little
11021     # extra space).
11022     freebsd2.2*)
11023       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11024       hardcode_libdir_flag_spec='-R$libdir'
11025       hardcode_direct=yes
11026       hardcode_shlibpath_var=no
11027       ;;
11028
11029     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11030     freebsd2.*)
11031       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11032       hardcode_direct=yes
11033       hardcode_minus_L=yes
11034       hardcode_shlibpath_var=no
11035       ;;
11036
11037     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11038     freebsd* | dragonfly*)
11039       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11040       hardcode_libdir_flag_spec='-R$libdir'
11041       hardcode_direct=yes
11042       hardcode_shlibpath_var=no
11043       ;;
11044
11045     hpux9*)
11046       if test "$GCC" = yes; then
11047         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'
11048       else
11049         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'
11050       fi
11051       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11052       hardcode_libdir_separator=:
11053       hardcode_direct=yes
11054
11055       # hardcode_minus_L: Not really in the search PATH,
11056       # but as the default location of the library.
11057       hardcode_minus_L=yes
11058       export_dynamic_flag_spec='${wl}-E'
11059       ;;
11060
11061     hpux10*)
11062       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11063         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11064       else
11065         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11066       fi
11067       if test "$with_gnu_ld" = no; then
11068         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11069         hardcode_libdir_separator=:
11070         hardcode_direct=yes
11071         hardcode_direct_absolute=yes
11072         export_dynamic_flag_spec='${wl}-E'
11073         # hardcode_minus_L: Not really in the search PATH,
11074         # but as the default location of the library.
11075         hardcode_minus_L=yes
11076       fi
11077       ;;
11078
11079     hpux11*)
11080       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11081         case $host_cpu in
11082         hppa*64*)
11083           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11084           ;;
11085         ia64*)
11086           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11087           ;;
11088         *)
11089           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11090           ;;
11091         esac
11092       else
11093         case $host_cpu in
11094         hppa*64*)
11095           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11096           ;;
11097         ia64*)
11098           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11099           ;;
11100         *)
11101
11102           # Older versions of the 11.00 compiler do not understand -b yet
11103           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11104           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11105 $as_echo_n "checking if $CC understands -b... " >&6; }
11106 if ${lt_cv_prog_compiler__b+:} false; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109   lt_cv_prog_compiler__b=no
11110    save_LDFLAGS="$LDFLAGS"
11111    LDFLAGS="$LDFLAGS -b"
11112    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11113    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11114      # The linker can only warn and ignore the option if not recognized
11115      # So say no if there are warnings
11116      if test -s conftest.err; then
11117        # Append any errors to the config.log.
11118        cat conftest.err 1>&5
11119        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11120        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11121        if diff conftest.exp conftest.er2 >/dev/null; then
11122          lt_cv_prog_compiler__b=yes
11123        fi
11124      else
11125        lt_cv_prog_compiler__b=yes
11126      fi
11127    fi
11128    $RM -r conftest*
11129    LDFLAGS="$save_LDFLAGS"
11130
11131 fi
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11133 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11134
11135 if test x"$lt_cv_prog_compiler__b" = xyes; then
11136     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11137 else
11138     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11139 fi
11140
11141           ;;
11142         esac
11143       fi
11144       if test "$with_gnu_ld" = no; then
11145         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11146         hardcode_libdir_separator=:
11147
11148         case $host_cpu in
11149         hppa*64*|ia64*)
11150           hardcode_direct=no
11151           hardcode_shlibpath_var=no
11152           ;;
11153         *)
11154           hardcode_direct=yes
11155           hardcode_direct_absolute=yes
11156           export_dynamic_flag_spec='${wl}-E'
11157
11158           # hardcode_minus_L: Not really in the search PATH,
11159           # but as the default location of the library.
11160           hardcode_minus_L=yes
11161           ;;
11162         esac
11163       fi
11164       ;;
11165
11166     irix5* | irix6* | nonstopux*)
11167       if test "$GCC" = yes; then
11168         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'
11169         # Try to use the -exported_symbol ld option, if it does not
11170         # work, assume that -exports_file does not work either and
11171         # implicitly export all symbols.
11172         # This should be the same for all languages, so no per-tag cache variable.
11173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11174 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11175 if ${lt_cv_irix_exported_symbol+:} false; then :
11176   $as_echo_n "(cached) " >&6
11177 else
11178   save_LDFLAGS="$LDFLAGS"
11179            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11180            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h.  */
11182 int foo (void) { return 0; }
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185   lt_cv_irix_exported_symbol=yes
11186 else
11187   lt_cv_irix_exported_symbol=no
11188 fi
11189 rm -f core conftest.err conftest.$ac_objext \
11190     conftest$ac_exeext conftest.$ac_ext
11191            LDFLAGS="$save_LDFLAGS"
11192 fi
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11194 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11195         if test "$lt_cv_irix_exported_symbol" = yes; then
11196           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'
11197         fi
11198       else
11199         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'
11200         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'
11201       fi
11202       archive_cmds_need_lc='no'
11203       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11204       hardcode_libdir_separator=:
11205       inherit_rpath=yes
11206       link_all_deplibs=yes
11207       ;;
11208
11209     netbsd* | netbsdelf*-gnu)
11210       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11211         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11212       else
11213         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11214       fi
11215       hardcode_libdir_flag_spec='-R$libdir'
11216       hardcode_direct=yes
11217       hardcode_shlibpath_var=no
11218       ;;
11219
11220     newsos6)
11221       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11222       hardcode_direct=yes
11223       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11224       hardcode_libdir_separator=:
11225       hardcode_shlibpath_var=no
11226       ;;
11227
11228     *nto* | *qnx*)
11229       ;;
11230
11231     openbsd*)
11232       if test -f /usr/libexec/ld.so; then
11233         hardcode_direct=yes
11234         hardcode_shlibpath_var=no
11235         hardcode_direct_absolute=yes
11236         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11237           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11238           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11239           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11240           export_dynamic_flag_spec='${wl}-E'
11241         else
11242           case $host_os in
11243            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11244              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11245              hardcode_libdir_flag_spec='-R$libdir'
11246              ;;
11247            *)
11248              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11249              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11250              ;;
11251           esac
11252         fi
11253       else
11254         ld_shlibs=no
11255       fi
11256       ;;
11257
11258     os2*)
11259       hardcode_libdir_flag_spec='-L$libdir'
11260       hardcode_minus_L=yes
11261       allow_undefined_flag=unsupported
11262       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'
11263       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11264       ;;
11265
11266     osf3*)
11267       if test "$GCC" = yes; then
11268         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11269         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'
11270       else
11271         allow_undefined_flag=' -expect_unresolved \*'
11272         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'
11273       fi
11274       archive_cmds_need_lc='no'
11275       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11276       hardcode_libdir_separator=:
11277       ;;
11278
11279     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11280       if test "$GCC" = yes; then
11281         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11282         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'
11283         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11284       else
11285         allow_undefined_flag=' -expect_unresolved \*'
11286         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'
11287         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~
11288         $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'
11289
11290         # Both c and cxx compiler support -rpath directly
11291         hardcode_libdir_flag_spec='-rpath $libdir'
11292       fi
11293       archive_cmds_need_lc='no'
11294       hardcode_libdir_separator=:
11295       ;;
11296
11297     solaris*)
11298       no_undefined_flag=' -z defs'
11299       if test "$GCC" = yes; then
11300         wlarc='${wl}'
11301         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11302         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303           $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'
11304       else
11305         case `$CC -V 2>&1` in
11306         *"Compilers 5.0"*)
11307           wlarc=''
11308           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11310           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11311           ;;
11312         *)
11313           wlarc='${wl}'
11314           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11315           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11316           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11317           ;;
11318         esac
11319       fi
11320       hardcode_libdir_flag_spec='-R$libdir'
11321       hardcode_shlibpath_var=no
11322       case $host_os in
11323       solaris2.[0-5] | solaris2.[0-5].*) ;;
11324       *)
11325         # The compiler driver will combine and reorder linker options,
11326         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11327         # but is careful enough not to reorder.
11328         # Supported since Solaris 2.6 (maybe 2.5.1?)
11329         if test "$GCC" = yes; then
11330           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11331         else
11332           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11333         fi
11334         ;;
11335       esac
11336       link_all_deplibs=yes
11337       ;;
11338
11339     sunos4*)
11340       if test "x$host_vendor" = xsequent; then
11341         # Use $CC to link under sequent, because it throws in some extra .o
11342         # files that make .init and .fini sections work.
11343         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11344       else
11345         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11346       fi
11347       hardcode_libdir_flag_spec='-L$libdir'
11348       hardcode_direct=yes
11349       hardcode_minus_L=yes
11350       hardcode_shlibpath_var=no
11351       ;;
11352
11353     sysv4)
11354       case $host_vendor in
11355         sni)
11356           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11357           hardcode_direct=yes # is this really true???
11358         ;;
11359         siemens)
11360           ## LD is ld it makes a PLAMLIB
11361           ## CC just makes a GrossModule.
11362           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11363           reload_cmds='$CC -r -o $output$reload_objs'
11364           hardcode_direct=no
11365         ;;
11366         motorola)
11367           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11368           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11369         ;;
11370       esac
11371       runpath_var='LD_RUN_PATH'
11372       hardcode_shlibpath_var=no
11373       ;;
11374
11375     sysv4.3*)
11376       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377       hardcode_shlibpath_var=no
11378       export_dynamic_flag_spec='-Bexport'
11379       ;;
11380
11381     sysv4*MP*)
11382       if test -d /usr/nec; then
11383         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11384         hardcode_shlibpath_var=no
11385         runpath_var=LD_RUN_PATH
11386         hardcode_runpath_var=yes
11387         ld_shlibs=yes
11388       fi
11389       ;;
11390
11391     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11392       no_undefined_flag='${wl}-z,text'
11393       archive_cmds_need_lc=no
11394       hardcode_shlibpath_var=no
11395       runpath_var='LD_RUN_PATH'
11396
11397       if test "$GCC" = yes; then
11398         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400       else
11401         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403       fi
11404       ;;
11405
11406     sysv5* | sco3.2v5* | sco5v6*)
11407       # Note: We can NOT use -z defs as we might desire, because we do not
11408       # link with -lc, and that would cause any symbols used from libc to
11409       # always be unresolved, which means just about no library would
11410       # ever link correctly.  If we're not using GNU ld we use -z text
11411       # though, which does catch some bad symbols but isn't as heavy-handed
11412       # as -z defs.
11413       no_undefined_flag='${wl}-z,text'
11414       allow_undefined_flag='${wl}-z,nodefs'
11415       archive_cmds_need_lc=no
11416       hardcode_shlibpath_var=no
11417       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11418       hardcode_libdir_separator=':'
11419       link_all_deplibs=yes
11420       export_dynamic_flag_spec='${wl}-Bexport'
11421       runpath_var='LD_RUN_PATH'
11422
11423       if test "$GCC" = yes; then
11424         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11425         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11426       else
11427         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11428         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11429       fi
11430       ;;
11431
11432     uts4*)
11433       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11434       hardcode_libdir_flag_spec='-L$libdir'
11435       hardcode_shlibpath_var=no
11436       ;;
11437
11438     *)
11439       ld_shlibs=no
11440       ;;
11441     esac
11442
11443     if test x$host_vendor = xsni; then
11444       case $host in
11445       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11446         export_dynamic_flag_spec='${wl}-Blargedynsym'
11447         ;;
11448       esac
11449     fi
11450   fi
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11453 $as_echo "$ld_shlibs" >&6; }
11454 test "$ld_shlibs" = no && can_build_shared=no
11455
11456 with_gnu_ld=$with_gnu_ld
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472 #
11473 # Do we need to explicitly link libc?
11474 #
11475 case "x$archive_cmds_need_lc" in
11476 x|xyes)
11477   # Assume -lc should be added
11478   archive_cmds_need_lc=yes
11479
11480   if test "$enable_shared" = yes && test "$GCC" = yes; then
11481     case $archive_cmds in
11482     *'~'*)
11483       # FIXME: we may have to deal with multi-command sequences.
11484       ;;
11485     '$CC '*)
11486       # Test whether the compiler implicitly links with -lc since on some
11487       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11488       # to ld, don't add -lc before -lgcc.
11489       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11490 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11491 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11492   $as_echo_n "(cached) " >&6
11493 else
11494   $RM conftest*
11495         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11496
11497         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11498   (eval $ac_compile) 2>&5
11499   ac_status=$?
11500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11501   test $ac_status = 0; } 2>conftest.err; then
11502           soname=conftest
11503           lib=conftest
11504           libobjs=conftest.$ac_objext
11505           deplibs=
11506           wl=$lt_prog_compiler_wl
11507           pic_flag=$lt_prog_compiler_pic
11508           compiler_flags=-v
11509           linker_flags=-v
11510           verstring=
11511           output_objdir=.
11512           libname=conftest
11513           lt_save_allow_undefined_flag=$allow_undefined_flag
11514           allow_undefined_flag=
11515           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11516   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11517   ac_status=$?
11518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11519   test $ac_status = 0; }
11520           then
11521             lt_cv_archive_cmds_need_lc=no
11522           else
11523             lt_cv_archive_cmds_need_lc=yes
11524           fi
11525           allow_undefined_flag=$lt_save_allow_undefined_flag
11526         else
11527           cat conftest.err 1>&5
11528         fi
11529         $RM conftest*
11530
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11533 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11534       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11535       ;;
11536     esac
11537   fi
11538   ;;
11539 esac
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11693 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11694
11695 if test "$GCC" = yes; then
11696   case $host_os in
11697     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11698     *) lt_awk_arg="/^libraries:/" ;;
11699   esac
11700   case $host_os in
11701     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11702     *) lt_sed_strip_eq="s,=/,/,g" ;;
11703   esac
11704   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11705   case $lt_search_path_spec in
11706   *\;*)
11707     # if the path contains ";" then we assume it to be the separator
11708     # otherwise default to the standard path separator (i.e. ":") - it is
11709     # assumed that no part of a normal pathname contains ";" but that should
11710     # okay in the real world where ";" in dirpaths is itself problematic.
11711     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11712     ;;
11713   *)
11714     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11715     ;;
11716   esac
11717   # Ok, now we have the path, separated by spaces, we can step through it
11718   # and add multilib dir if necessary.
11719   lt_tmp_lt_search_path_spec=
11720   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11721   for lt_sys_path in $lt_search_path_spec; do
11722     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11723       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11724     else
11725       test -d "$lt_sys_path" && \
11726         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11727     fi
11728   done
11729   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11730 BEGIN {RS=" "; FS="/|\n";} {
11731   lt_foo="";
11732   lt_count=0;
11733   for (lt_i = NF; lt_i > 0; lt_i--) {
11734     if ($lt_i != "" && $lt_i != ".") {
11735       if ($lt_i == "..") {
11736         lt_count++;
11737       } else {
11738         if (lt_count == 0) {
11739           lt_foo="/" $lt_i lt_foo;
11740         } else {
11741           lt_count--;
11742         }
11743       }
11744     }
11745   }
11746   if (lt_foo != "") { lt_freq[lt_foo]++; }
11747   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11748 }'`
11749   # AWK program above erroneously prepends '/' to C:/dos/paths
11750   # for these hosts.
11751   case $host_os in
11752     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11753       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11754   esac
11755   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11756 else
11757   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11758 fi
11759 library_names_spec=
11760 libname_spec='lib$name'
11761 soname_spec=
11762 shrext_cmds=".so"
11763 postinstall_cmds=
11764 postuninstall_cmds=
11765 finish_cmds=
11766 finish_eval=
11767 shlibpath_var=
11768 shlibpath_overrides_runpath=unknown
11769 version_type=none
11770 dynamic_linker="$host_os ld.so"
11771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11772 need_lib_prefix=unknown
11773 hardcode_into_libs=no
11774
11775 # when you set need_version to no, make sure it does not cause -set_version
11776 # flags to be left without arguments
11777 need_version=unknown
11778
11779 case $host_os in
11780 aix3*)
11781   version_type=linux # correct to gnu/linux during the next big refactor
11782   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11783   shlibpath_var=LIBPATH
11784
11785   # AIX 3 has no versioning support, so we append a major version to the name.
11786   soname_spec='${libname}${release}${shared_ext}$major'
11787   ;;
11788
11789 aix[4-9]*)
11790   version_type=linux # correct to gnu/linux during the next big refactor
11791   need_lib_prefix=no
11792   need_version=no
11793   hardcode_into_libs=yes
11794   if test "$host_cpu" = ia64; then
11795     # AIX 5 supports IA64
11796     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11797     shlibpath_var=LD_LIBRARY_PATH
11798   else
11799     # With GCC up to 2.95.x, collect2 would create an import file
11800     # for dependence libraries.  The import file would start with
11801     # the line `#! .'.  This would cause the generated library to
11802     # depend on `.', always an invalid library.  This was fixed in
11803     # development snapshots of GCC prior to 3.0.
11804     case $host_os in
11805       aix4 | aix4.[01] | aix4.[01].*)
11806       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11807            echo ' yes '
11808            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11809         :
11810       else
11811         can_build_shared=no
11812       fi
11813       ;;
11814     esac
11815     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11816     # soname into executable. Probably we can add versioning support to
11817     # collect2, so additional links can be useful in future.
11818     if test "$aix_use_runtimelinking" = yes; then
11819       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11820       # instead of lib<name>.a to let people know that these are not
11821       # typical AIX shared libraries.
11822       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823     else
11824       # We preserve .a as extension for shared libraries through AIX4.2
11825       # and later when we are not doing run time linking.
11826       library_names_spec='${libname}${release}.a $libname.a'
11827       soname_spec='${libname}${release}${shared_ext}$major'
11828     fi
11829     shlibpath_var=LIBPATH
11830   fi
11831   ;;
11832
11833 amigaos*)
11834   case $host_cpu in
11835   powerpc)
11836     # Since July 2007 AmigaOS4 officially supports .so libraries.
11837     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839     ;;
11840   m68k)
11841     library_names_spec='$libname.ixlibrary $libname.a'
11842     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11843     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'
11844     ;;
11845   esac
11846   ;;
11847
11848 beos*)
11849   library_names_spec='${libname}${shared_ext}'
11850   dynamic_linker="$host_os ld.so"
11851   shlibpath_var=LIBRARY_PATH
11852   ;;
11853
11854 bsdi[45]*)
11855   version_type=linux # correct to gnu/linux during the next big refactor
11856   need_version=no
11857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858   soname_spec='${libname}${release}${shared_ext}$major'
11859   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11860   shlibpath_var=LD_LIBRARY_PATH
11861   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11862   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11863   # the default ld.so.conf also contains /usr/contrib/lib and
11864   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11865   # libtool to hard-code these into programs
11866   ;;
11867
11868 cygwin* | mingw* | pw32* | cegcc*)
11869   version_type=windows
11870   shrext_cmds=".dll"
11871   need_version=no
11872   need_lib_prefix=no
11873
11874   case $GCC,$cc_basename in
11875   yes,*)
11876     # gcc
11877     library_names_spec='$libname.dll.a'
11878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11879     postinstall_cmds='base_file=`basename \${file}`~
11880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11881       dldir=$destdir/`dirname \$dlpath`~
11882       test -d \$dldir || mkdir -p \$dldir~
11883       $install_prog $dir/$dlname \$dldir/$dlname~
11884       chmod a+x \$dldir/$dlname~
11885       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11886         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11887       fi'
11888     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11889       dlpath=$dir/\$dldll~
11890        $RM \$dlpath'
11891     shlibpath_overrides_runpath=yes
11892
11893     case $host_os in
11894     cygwin*)
11895       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11896       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11897
11898       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11899       ;;
11900     mingw* | cegcc*)
11901       # MinGW DLLs use traditional 'lib' prefix
11902       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11903       ;;
11904     pw32*)
11905       # pw32 DLLs use 'pw' prefix rather than 'lib'
11906       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11907       ;;
11908     esac
11909     dynamic_linker='Win32 ld.exe'
11910     ;;
11911
11912   *,cl*)
11913     # Native MSVC
11914     libname_spec='$name'
11915     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11916     library_names_spec='${libname}.dll.lib'
11917
11918     case $build_os in
11919     mingw*)
11920       sys_lib_search_path_spec=
11921       lt_save_ifs=$IFS
11922       IFS=';'
11923       for lt_path in $LIB
11924       do
11925         IFS=$lt_save_ifs
11926         # Let DOS variable expansion print the short 8.3 style file name.
11927         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11928         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11929       done
11930       IFS=$lt_save_ifs
11931       # Convert to MSYS style.
11932       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11933       ;;
11934     cygwin*)
11935       # Convert to unix form, then to dos form, then back to unix form
11936       # but this time dos style (no spaces!) so that the unix form looks
11937       # like /cygdrive/c/PROGRA~1:/cygdr...
11938       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11939       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11940       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11941       ;;
11942     *)
11943       sys_lib_search_path_spec="$LIB"
11944       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11945         # It is most probably a Windows format PATH.
11946         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11947       else
11948         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11949       fi
11950       # FIXME: find the short name or the path components, as spaces are
11951       # common. (e.g. "Program Files" -> "PROGRA~1")
11952       ;;
11953     esac
11954
11955     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11956     postinstall_cmds='base_file=`basename \${file}`~
11957       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11958       dldir=$destdir/`dirname \$dlpath`~
11959       test -d \$dldir || mkdir -p \$dldir~
11960       $install_prog $dir/$dlname \$dldir/$dlname'
11961     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11962       dlpath=$dir/\$dldll~
11963        $RM \$dlpath'
11964     shlibpath_overrides_runpath=yes
11965     dynamic_linker='Win32 link.exe'
11966     ;;
11967
11968   *)
11969     # Assume MSVC wrapper
11970     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11971     dynamic_linker='Win32 ld.exe'
11972     ;;
11973   esac
11974   # FIXME: first we should search . and the directory the executable is in
11975   shlibpath_var=PATH
11976   ;;
11977
11978 darwin* | rhapsody*)
11979   dynamic_linker="$host_os dyld"
11980   version_type=darwin
11981   need_lib_prefix=no
11982   need_version=no
11983   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11984   soname_spec='${libname}${release}${major}$shared_ext'
11985   shlibpath_overrides_runpath=yes
11986   shlibpath_var=DYLD_LIBRARY_PATH
11987   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11988
11989   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11990   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11991   ;;
11992
11993 dgux*)
11994   version_type=linux # correct to gnu/linux during the next big refactor
11995   need_lib_prefix=no
11996   need_version=no
11997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11998   soname_spec='${libname}${release}${shared_ext}$major'
11999   shlibpath_var=LD_LIBRARY_PATH
12000   ;;
12001
12002 freebsd* | dragonfly*)
12003   # DragonFly does not have aout.  When/if they implement a new
12004   # versioning mechanism, adjust this.
12005   if test -x /usr/bin/objformat; then
12006     objformat=`/usr/bin/objformat`
12007   else
12008     case $host_os in
12009     freebsd[23].*) objformat=aout ;;
12010     *) objformat=elf ;;
12011     esac
12012   fi
12013   version_type=freebsd-$objformat
12014   case $version_type in
12015     freebsd-elf*)
12016       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12017       need_version=no
12018       need_lib_prefix=no
12019       ;;
12020     freebsd-*)
12021       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12022       need_version=yes
12023       ;;
12024   esac
12025   shlibpath_var=LD_LIBRARY_PATH
12026   case $host_os in
12027   freebsd2.*)
12028     shlibpath_overrides_runpath=yes
12029     ;;
12030   freebsd3.[01]* | freebsdelf3.[01]*)
12031     shlibpath_overrides_runpath=yes
12032     hardcode_into_libs=yes
12033     ;;
12034   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12035   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12036     shlibpath_overrides_runpath=no
12037     hardcode_into_libs=yes
12038     ;;
12039   *) # from 4.6 on, and DragonFly
12040     shlibpath_overrides_runpath=yes
12041     hardcode_into_libs=yes
12042     ;;
12043   esac
12044   ;;
12045
12046 haiku*)
12047   version_type=linux # correct to gnu/linux during the next big refactor
12048   need_lib_prefix=no
12049   need_version=no
12050   dynamic_linker="$host_os runtime_loader"
12051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12052   soname_spec='${libname}${release}${shared_ext}$major'
12053   shlibpath_var=LIBRARY_PATH
12054   shlibpath_overrides_runpath=yes
12055   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12056   hardcode_into_libs=yes
12057   ;;
12058
12059 hpux9* | hpux10* | hpux11*)
12060   # Give a soname corresponding to the major version so that dld.sl refuses to
12061   # link against other versions.
12062   version_type=sunos
12063   need_lib_prefix=no
12064   need_version=no
12065   case $host_cpu in
12066   ia64*)
12067     shrext_cmds='.so'
12068     hardcode_into_libs=yes
12069     dynamic_linker="$host_os dld.so"
12070     shlibpath_var=LD_LIBRARY_PATH
12071     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073     soname_spec='${libname}${release}${shared_ext}$major'
12074     if test "X$HPUX_IA64_MODE" = X32; then
12075       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12076     else
12077       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12078     fi
12079     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12080     ;;
12081   hppa*64*)
12082     shrext_cmds='.sl'
12083     hardcode_into_libs=yes
12084     dynamic_linker="$host_os dld.sl"
12085     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12086     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088     soname_spec='${libname}${release}${shared_ext}$major'
12089     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12090     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12091     ;;
12092   *)
12093     shrext_cmds='.sl'
12094     dynamic_linker="$host_os dld.sl"
12095     shlibpath_var=SHLIB_PATH
12096     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12098     soname_spec='${libname}${release}${shared_ext}$major'
12099     ;;
12100   esac
12101   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12102   postinstall_cmds='chmod 555 $lib'
12103   # or fails outright, so override atomically:
12104   install_override_mode=555
12105   ;;
12106
12107 interix[3-9]*)
12108   version_type=linux # correct to gnu/linux during the next big refactor
12109   need_lib_prefix=no
12110   need_version=no
12111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12112   soname_spec='${libname}${release}${shared_ext}$major'
12113   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12114   shlibpath_var=LD_LIBRARY_PATH
12115   shlibpath_overrides_runpath=no
12116   hardcode_into_libs=yes
12117   ;;
12118
12119 irix5* | irix6* | nonstopux*)
12120   case $host_os in
12121     nonstopux*) version_type=nonstopux ;;
12122     *)
12123         if test "$lt_cv_prog_gnu_ld" = yes; then
12124                 version_type=linux # correct to gnu/linux during the next big refactor
12125         else
12126                 version_type=irix
12127         fi ;;
12128   esac
12129   need_lib_prefix=no
12130   need_version=no
12131   soname_spec='${libname}${release}${shared_ext}$major'
12132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12133   case $host_os in
12134   irix5* | nonstopux*)
12135     libsuff= shlibsuff=
12136     ;;
12137   *)
12138     case $LD in # libtool.m4 will add one of these switches to LD
12139     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12140       libsuff= shlibsuff= libmagic=32-bit;;
12141     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12142       libsuff=32 shlibsuff=N32 libmagic=N32;;
12143     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12144       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12145     *) libsuff= shlibsuff= libmagic=never-match;;
12146     esac
12147     ;;
12148   esac
12149   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12150   shlibpath_overrides_runpath=no
12151   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12152   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12153   hardcode_into_libs=yes
12154   ;;
12155
12156 # No shared lib support for Linux oldld, aout, or coff.
12157 linux*oldld* | linux*aout* | linux*coff*)
12158   dynamic_linker=no
12159   ;;
12160
12161 # This must be glibc/ELF.
12162 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12163   version_type=linux # correct to gnu/linux during the next big refactor
12164   need_lib_prefix=no
12165   need_version=no
12166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12167   soname_spec='${libname}${release}${shared_ext}$major'
12168   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12169   shlibpath_var=LD_LIBRARY_PATH
12170   shlibpath_overrides_runpath=no
12171
12172   # Some binutils ld are patched to set DT_RUNPATH
12173   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   lt_cv_shlibpath_overrides_runpath=no
12177     save_LDFLAGS=$LDFLAGS
12178     save_libdir=$libdir
12179     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12180          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h.  */
12183
12184 int
12185 main ()
12186 {
12187
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12194   lt_cv_shlibpath_overrides_runpath=yes
12195 fi
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext \
12198     conftest$ac_exeext conftest.$ac_ext
12199     LDFLAGS=$save_LDFLAGS
12200     libdir=$save_libdir
12201
12202 fi
12203
12204   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12205
12206   # This implies no fast_install, which is unacceptable.
12207   # Some rework will be needed to allow for fast_install
12208   # before this can be enabled.
12209   hardcode_into_libs=yes
12210
12211   # Append ld.so.conf contents to the search path
12212   if test -f /etc/ld.so.conf; then
12213     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' ' '`
12214     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12215   fi
12216
12217   # We used to test for /lib/ld.so.1 and disable shared libraries on
12218   # powerpc, because MkLinux only supported shared libraries with the
12219   # GNU dynamic linker.  Since this was broken with cross compilers,
12220   # most powerpc-linux boxes support dynamic linking these days and
12221   # people can always --disable-shared, the test was removed, and we
12222   # assume the GNU/Linux dynamic linker is in use.
12223   dynamic_linker='GNU/Linux ld.so'
12224   ;;
12225
12226 netbsdelf*-gnu)
12227   version_type=linux
12228   need_lib_prefix=no
12229   need_version=no
12230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12231   soname_spec='${libname}${release}${shared_ext}$major'
12232   shlibpath_var=LD_LIBRARY_PATH
12233   shlibpath_overrides_runpath=no
12234   hardcode_into_libs=yes
12235   dynamic_linker='NetBSD ld.elf_so'
12236   ;;
12237
12238 netbsd*)
12239   version_type=sunos
12240   need_lib_prefix=no
12241   need_version=no
12242   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12244     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12245     dynamic_linker='NetBSD (a.out) ld.so'
12246   else
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     dynamic_linker='NetBSD ld.elf_so'
12250   fi
12251   shlibpath_var=LD_LIBRARY_PATH
12252   shlibpath_overrides_runpath=yes
12253   hardcode_into_libs=yes
12254   ;;
12255
12256 newsos6)
12257   version_type=linux # correct to gnu/linux during the next big refactor
12258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259   shlibpath_var=LD_LIBRARY_PATH
12260   shlibpath_overrides_runpath=yes
12261   ;;
12262
12263 *nto* | *qnx*)
12264   version_type=qnx
12265   need_lib_prefix=no
12266   need_version=no
12267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268   soname_spec='${libname}${release}${shared_ext}$major'
12269   shlibpath_var=LD_LIBRARY_PATH
12270   shlibpath_overrides_runpath=no
12271   hardcode_into_libs=yes
12272   dynamic_linker='ldqnx.so'
12273   ;;
12274
12275 openbsd*)
12276   version_type=sunos
12277   sys_lib_dlsearch_path_spec="/usr/lib"
12278   need_lib_prefix=no
12279   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12280   case $host_os in
12281     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12282     *)                          need_version=no  ;;
12283   esac
12284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12285   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12286   shlibpath_var=LD_LIBRARY_PATH
12287   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12288     case $host_os in
12289       openbsd2.[89] | openbsd2.[89].*)
12290         shlibpath_overrides_runpath=no
12291         ;;
12292       *)
12293         shlibpath_overrides_runpath=yes
12294         ;;
12295       esac
12296   else
12297     shlibpath_overrides_runpath=yes
12298   fi
12299   ;;
12300
12301 os2*)
12302   libname_spec='$name'
12303   shrext_cmds=".dll"
12304   need_lib_prefix=no
12305   library_names_spec='$libname${shared_ext} $libname.a'
12306   dynamic_linker='OS/2 ld.exe'
12307   shlibpath_var=LIBPATH
12308   ;;
12309
12310 osf3* | osf4* | osf5*)
12311   version_type=osf
12312   need_lib_prefix=no
12313   need_version=no
12314   soname_spec='${libname}${release}${shared_ext}$major'
12315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12316   shlibpath_var=LD_LIBRARY_PATH
12317   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12318   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12319   ;;
12320
12321 rdos*)
12322   dynamic_linker=no
12323   ;;
12324
12325 solaris*)
12326   version_type=linux # correct to gnu/linux during the next big refactor
12327   need_lib_prefix=no
12328   need_version=no
12329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330   soname_spec='${libname}${release}${shared_ext}$major'
12331   shlibpath_var=LD_LIBRARY_PATH
12332   shlibpath_overrides_runpath=yes
12333   hardcode_into_libs=yes
12334   # ldd complains unless libraries are executable
12335   postinstall_cmds='chmod +x $lib'
12336   ;;
12337
12338 sunos4*)
12339   version_type=sunos
12340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12341   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12342   shlibpath_var=LD_LIBRARY_PATH
12343   shlibpath_overrides_runpath=yes
12344   if test "$with_gnu_ld" = yes; then
12345     need_lib_prefix=no
12346   fi
12347   need_version=yes
12348   ;;
12349
12350 sysv4 | sysv4.3*)
12351   version_type=linux # correct to gnu/linux during the next big refactor
12352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353   soname_spec='${libname}${release}${shared_ext}$major'
12354   shlibpath_var=LD_LIBRARY_PATH
12355   case $host_vendor in
12356     sni)
12357       shlibpath_overrides_runpath=no
12358       need_lib_prefix=no
12359       runpath_var=LD_RUN_PATH
12360       ;;
12361     siemens)
12362       need_lib_prefix=no
12363       ;;
12364     motorola)
12365       need_lib_prefix=no
12366       need_version=no
12367       shlibpath_overrides_runpath=no
12368       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12369       ;;
12370   esac
12371   ;;
12372
12373 sysv4*MP*)
12374   if test -d /usr/nec ;then
12375     version_type=linux # correct to gnu/linux during the next big refactor
12376     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12377     soname_spec='$libname${shared_ext}.$major'
12378     shlibpath_var=LD_LIBRARY_PATH
12379   fi
12380   ;;
12381
12382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12383   version_type=freebsd-elf
12384   need_lib_prefix=no
12385   need_version=no
12386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12387   soname_spec='${libname}${release}${shared_ext}$major'
12388   shlibpath_var=LD_LIBRARY_PATH
12389   shlibpath_overrides_runpath=yes
12390   hardcode_into_libs=yes
12391   if test "$with_gnu_ld" = yes; then
12392     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12393   else
12394     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12395     case $host_os in
12396       sco3.2v5*)
12397         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12398         ;;
12399     esac
12400   fi
12401   sys_lib_dlsearch_path_spec='/usr/lib'
12402   ;;
12403
12404 tpf*)
12405   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12406   version_type=linux # correct to gnu/linux during the next big refactor
12407   need_lib_prefix=no
12408   need_version=no
12409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410   shlibpath_var=LD_LIBRARY_PATH
12411   shlibpath_overrides_runpath=no
12412   hardcode_into_libs=yes
12413   ;;
12414
12415 uts4*)
12416   version_type=linux # correct to gnu/linux during the next big refactor
12417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418   soname_spec='${libname}${release}${shared_ext}$major'
12419   shlibpath_var=LD_LIBRARY_PATH
12420   ;;
12421
12422 *)
12423   dynamic_linker=no
12424   ;;
12425 esac
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12427 $as_echo "$dynamic_linker" >&6; }
12428 test "$dynamic_linker" = no && can_build_shared=no
12429
12430 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12431 if test "$GCC" = yes; then
12432   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12433 fi
12434
12435 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12436   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12437 fi
12438 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12439   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12440 fi
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12534 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12535 hardcode_action=
12536 if test -n "$hardcode_libdir_flag_spec" ||
12537    test -n "$runpath_var" ||
12538    test "X$hardcode_automatic" = "Xyes" ; then
12539
12540   # We can hardcode non-existent directories.
12541   if test "$hardcode_direct" != no &&
12542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12543      # have to relink, otherwise we might link with an installed library
12544      # when we should be linking with a yet-to-be-installed one
12545      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12546      test "$hardcode_minus_L" != no; then
12547     # Linking always hardcodes the temporary library directory.
12548     hardcode_action=relink
12549   else
12550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12551     hardcode_action=immediate
12552   fi
12553 else
12554   # We cannot hardcode anything, or else we can only hardcode existing
12555   # directories.
12556   hardcode_action=unsupported
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12559 $as_echo "$hardcode_action" >&6; }
12560
12561 if test "$hardcode_action" = relink ||
12562    test "$inherit_rpath" = yes; then
12563   # Fast installation is not supported
12564   enable_fast_install=no
12565 elif test "$shlibpath_overrides_runpath" = yes ||
12566      test "$enable_shared" = no; then
12567   # Fast installation is not necessary
12568   enable_fast_install=needless
12569 fi
12570
12571
12572
12573
12574
12575
12576   if test "x$enable_dlopen" != xyes; then
12577   enable_dlopen=unknown
12578   enable_dlopen_self=unknown
12579   enable_dlopen_self_static=unknown
12580 else
12581   lt_cv_dlopen=no
12582   lt_cv_dlopen_libs=
12583
12584   case $host_os in
12585   beos*)
12586     lt_cv_dlopen="load_add_on"
12587     lt_cv_dlopen_libs=
12588     lt_cv_dlopen_self=yes
12589     ;;
12590
12591   mingw* | pw32* | cegcc*)
12592     lt_cv_dlopen="LoadLibrary"
12593     lt_cv_dlopen_libs=
12594     ;;
12595
12596   cygwin*)
12597     lt_cv_dlopen="dlopen"
12598     lt_cv_dlopen_libs=
12599     ;;
12600
12601   darwin*)
12602   # if libdl is installed we need to link against it
12603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12604 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12605 if ${ac_cv_lib_dl_dlopen+:} false; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   ac_check_lib_save_LIBS=$LIBS
12609 LIBS="-ldl  $LIBS"
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h.  */
12612
12613 /* Override any GCC internal prototype to avoid an error.
12614    Use char because int might match the return type of a GCC
12615    builtin and then its argument prototype would still apply.  */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 char dlopen ();
12620 int
12621 main ()
12622 {
12623 return dlopen ();
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629   ac_cv_lib_dl_dlopen=yes
12630 else
12631   ac_cv_lib_dl_dlopen=no
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext \
12634     conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12636 fi
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12639 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12640   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12641 else
12642
12643     lt_cv_dlopen="dyld"
12644     lt_cv_dlopen_libs=
12645     lt_cv_dlopen_self=yes
12646
12647 fi
12648
12649     ;;
12650
12651   *)
12652     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12653 if test "x$ac_cv_func_shl_load" = xyes; then :
12654   lt_cv_dlopen="shl_load"
12655 else
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12657 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12658 if ${ac_cv_lib_dld_shl_load+:} false; then :
12659   $as_echo_n "(cached) " >&6
12660 else
12661   ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-ldld  $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 shl_load ();
12673 int
12674 main ()
12675 {
12676 return shl_load ();
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 if ac_fn_c_try_link "$LINENO"; then :
12682   ac_cv_lib_dld_shl_load=yes
12683 else
12684   ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
12691 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12692 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12693   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12694 else
12695   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12696 if test "x$ac_cv_func_dlopen" = xyes; then :
12697   lt_cv_dlopen="dlopen"
12698 else
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12700 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12701 if ${ac_cv_lib_dl_dlopen+:} false; then :
12702   $as_echo_n "(cached) " >&6
12703 else
12704   ac_check_lib_save_LIBS=$LIBS
12705 LIBS="-ldl  $LIBS"
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708
12709 /* Override any GCC internal prototype to avoid an error.
12710    Use char because int might match the return type of a GCC
12711    builtin and then its argument prototype would still apply.  */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char dlopen ();
12716 int
12717 main ()
12718 {
12719 return dlopen ();
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725   ac_cv_lib_dl_dlopen=yes
12726 else
12727   ac_cv_lib_dl_dlopen=no
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext \
12730     conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12734 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12735 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12736   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12737 else
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12739 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12740 if ${ac_cv_lib_svld_dlopen+:} false; then :
12741   $as_echo_n "(cached) " >&6
12742 else
12743   ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-lsvld  $LIBS"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h.  */
12747
12748 /* Override any GCC internal prototype to avoid an error.
12749    Use char because int might match the return type of a GCC
12750    builtin and then its argument prototype would still apply.  */
12751 #ifdef __cplusplus
12752 extern "C"
12753 #endif
12754 char dlopen ();
12755 int
12756 main ()
12757 {
12758 return dlopen ();
12759   ;
12760   return 0;
12761 }
12762 _ACEOF
12763 if ac_fn_c_try_link "$LINENO"; then :
12764   ac_cv_lib_svld_dlopen=yes
12765 else
12766   ac_cv_lib_svld_dlopen=no
12767 fi
12768 rm -f core conftest.err conftest.$ac_objext \
12769     conftest$ac_exeext conftest.$ac_ext
12770 LIBS=$ac_check_lib_save_LIBS
12771 fi
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12773 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12774 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12775   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12776 else
12777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12778 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12779 if ${ac_cv_lib_dld_dld_link+:} false; then :
12780   $as_echo_n "(cached) " >&6
12781 else
12782   ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-ldld  $LIBS"
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h.  */
12786
12787 /* Override any GCC internal prototype to avoid an error.
12788    Use char because int might match the return type of a GCC
12789    builtin and then its argument prototype would still apply.  */
12790 #ifdef __cplusplus
12791 extern "C"
12792 #endif
12793 char dld_link ();
12794 int
12795 main ()
12796 {
12797 return dld_link ();
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 if ac_fn_c_try_link "$LINENO"; then :
12803   ac_cv_lib_dld_dld_link=yes
12804 else
12805   ac_cv_lib_dld_dld_link=no
12806 fi
12807 rm -f core conftest.err conftest.$ac_objext \
12808     conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12810 fi
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12812 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12813 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12814   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12815 fi
12816
12817
12818 fi
12819
12820
12821 fi
12822
12823
12824 fi
12825
12826
12827 fi
12828
12829
12830 fi
12831
12832     ;;
12833   esac
12834
12835   if test "x$lt_cv_dlopen" != xno; then
12836     enable_dlopen=yes
12837   else
12838     enable_dlopen=no
12839   fi
12840
12841   case $lt_cv_dlopen in
12842   dlopen)
12843     save_CPPFLAGS="$CPPFLAGS"
12844     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12845
12846     save_LDFLAGS="$LDFLAGS"
12847     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12848
12849     save_LIBS="$LIBS"
12850     LIBS="$lt_cv_dlopen_libs $LIBS"
12851
12852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12853 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12854 if ${lt_cv_dlopen_self+:} false; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857           if test "$cross_compiling" = yes; then :
12858   lt_cv_dlopen_self=cross
12859 else
12860   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12861   lt_status=$lt_dlunknown
12862   cat > conftest.$ac_ext <<_LT_EOF
12863 #line $LINENO "configure"
12864 #include "confdefs.h"
12865
12866 #if HAVE_DLFCN_H
12867 #include <dlfcn.h>
12868 #endif
12869
12870 #include <stdio.h>
12871
12872 #ifdef RTLD_GLOBAL
12873 #  define LT_DLGLOBAL           RTLD_GLOBAL
12874 #else
12875 #  ifdef DL_GLOBAL
12876 #    define LT_DLGLOBAL         DL_GLOBAL
12877 #  else
12878 #    define LT_DLGLOBAL         0
12879 #  endif
12880 #endif
12881
12882 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12883    find out it does not work in some platform. */
12884 #ifndef LT_DLLAZY_OR_NOW
12885 #  ifdef RTLD_LAZY
12886 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12887 #  else
12888 #    ifdef DL_LAZY
12889 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12890 #    else
12891 #      ifdef RTLD_NOW
12892 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12893 #      else
12894 #        ifdef DL_NOW
12895 #          define LT_DLLAZY_OR_NOW      DL_NOW
12896 #        else
12897 #          define LT_DLLAZY_OR_NOW      0
12898 #        endif
12899 #      endif
12900 #    endif
12901 #  endif
12902 #endif
12903
12904 /* When -fvisbility=hidden is used, assume the code has been annotated
12905    correspondingly for the symbols needed.  */
12906 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12907 int fnord () __attribute__((visibility("default")));
12908 #endif
12909
12910 int fnord () { return 42; }
12911 int main ()
12912 {
12913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12914   int status = $lt_dlunknown;
12915
12916   if (self)
12917     {
12918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12919       else
12920         {
12921           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12922           else puts (dlerror ());
12923         }
12924       /* dlclose (self); */
12925     }
12926   else
12927     puts (dlerror ());
12928
12929   return status;
12930 }
12931 _LT_EOF
12932   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12933   (eval $ac_link) 2>&5
12934   ac_status=$?
12935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12937     (./conftest; exit; ) >&5 2>/dev/null
12938     lt_status=$?
12939     case x$lt_status in
12940       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12941       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12942       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12943     esac
12944   else :
12945     # compilation failed
12946     lt_cv_dlopen_self=no
12947   fi
12948 fi
12949 rm -fr conftest*
12950
12951
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12954 $as_echo "$lt_cv_dlopen_self" >&6; }
12955
12956     if test "x$lt_cv_dlopen_self" = xyes; then
12957       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12958       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12959 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12960 if ${lt_cv_dlopen_self_static+:} false; then :
12961   $as_echo_n "(cached) " >&6
12962 else
12963           if test "$cross_compiling" = yes; then :
12964   lt_cv_dlopen_self_static=cross
12965 else
12966   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12967   lt_status=$lt_dlunknown
12968   cat > conftest.$ac_ext <<_LT_EOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12971
12972 #if HAVE_DLFCN_H
12973 #include <dlfcn.h>
12974 #endif
12975
12976 #include <stdio.h>
12977
12978 #ifdef RTLD_GLOBAL
12979 #  define LT_DLGLOBAL           RTLD_GLOBAL
12980 #else
12981 #  ifdef DL_GLOBAL
12982 #    define LT_DLGLOBAL         DL_GLOBAL
12983 #  else
12984 #    define LT_DLGLOBAL         0
12985 #  endif
12986 #endif
12987
12988 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12989    find out it does not work in some platform. */
12990 #ifndef LT_DLLAZY_OR_NOW
12991 #  ifdef RTLD_LAZY
12992 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12993 #  else
12994 #    ifdef DL_LAZY
12995 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12996 #    else
12997 #      ifdef RTLD_NOW
12998 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12999 #      else
13000 #        ifdef DL_NOW
13001 #          define LT_DLLAZY_OR_NOW      DL_NOW
13002 #        else
13003 #          define LT_DLLAZY_OR_NOW      0
13004 #        endif
13005 #      endif
13006 #    endif
13007 #  endif
13008 #endif
13009
13010 /* When -fvisbility=hidden is used, assume the code has been annotated
13011    correspondingly for the symbols needed.  */
13012 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13013 int fnord () __attribute__((visibility("default")));
13014 #endif
13015
13016 int fnord () { return 42; }
13017 int main ()
13018 {
13019   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13020   int status = $lt_dlunknown;
13021
13022   if (self)
13023     {
13024       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13025       else
13026         {
13027           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13028           else puts (dlerror ());
13029         }
13030       /* dlclose (self); */
13031     }
13032   else
13033     puts (dlerror ());
13034
13035   return status;
13036 }
13037 _LT_EOF
13038   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13039   (eval $ac_link) 2>&5
13040   ac_status=$?
13041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13042   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13043     (./conftest; exit; ) >&5 2>/dev/null
13044     lt_status=$?
13045     case x$lt_status in
13046       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13047       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13048       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13049     esac
13050   else :
13051     # compilation failed
13052     lt_cv_dlopen_self_static=no
13053   fi
13054 fi
13055 rm -fr conftest*
13056
13057
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13060 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13061     fi
13062
13063     CPPFLAGS="$save_CPPFLAGS"
13064     LDFLAGS="$save_LDFLAGS"
13065     LIBS="$save_LIBS"
13066     ;;
13067   esac
13068
13069   case $lt_cv_dlopen_self in
13070   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13071   *) enable_dlopen_self=unknown ;;
13072   esac
13073
13074   case $lt_cv_dlopen_self_static in
13075   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13076   *) enable_dlopen_self_static=unknown ;;
13077   esac
13078 fi
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096 striplib=
13097 old_striplib=
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13099 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13100 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13101   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13102   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; }
13105 else
13106 # FIXME - insert some real tests, host_os isn't really good enough
13107   case $host_os in
13108   darwin*)
13109     if test -n "$STRIP" ; then
13110       striplib="$STRIP -x"
13111       old_striplib="$STRIP -S"
13112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113 $as_echo "yes" >&6; }
13114     else
13115       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117     fi
13118     ;;
13119   *)
13120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13122     ;;
13123   esac
13124 fi
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137   # Report which library types will actually be built
13138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13139 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13141 $as_echo "$can_build_shared" >&6; }
13142
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13144 $as_echo_n "checking whether to build shared libraries... " >&6; }
13145   test "$can_build_shared" = "no" && enable_shared=no
13146
13147   # On AIX, shared libraries and static libraries use the same namespace, and
13148   # are all built from PIC.
13149   case $host_os in
13150   aix3*)
13151     test "$enable_shared" = yes && enable_static=no
13152     if test -n "$RANLIB"; then
13153       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13154       postinstall_cmds='$RANLIB $lib'
13155     fi
13156     ;;
13157
13158   aix[4-9]*)
13159     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13160       test "$enable_shared" = yes && enable_static=no
13161     fi
13162     ;;
13163   esac
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13165 $as_echo "$enable_shared" >&6; }
13166
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13168 $as_echo_n "checking whether to build static libraries... " >&6; }
13169   # Make sure either enable_shared or enable_static is yes.
13170   test "$enable_shared" = yes || enable_static=yes
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13172 $as_echo "$enable_static" >&6; }
13173
13174
13175
13176
13177 fi
13178 ac_ext=c
13179 ac_cpp='$CPP $CPPFLAGS'
13180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13183
13184 CC="$lt_save_CC"
13185
13186       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13187     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13188     (test "X$CXX" != "Xg++"))) ; then
13189   ac_ext=cpp
13190 ac_cpp='$CXXCPP $CPPFLAGS'
13191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13195 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13196 if test -z "$CXXCPP"; then
13197   if ${ac_cv_prog_CXXCPP+:} false; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200       # Double quotes because CXXCPP needs to be expanded
13201     for CXXCPP in "$CXX -E" "/lib/cpp"
13202     do
13203       ac_preproc_ok=false
13204 for ac_cxx_preproc_warn_flag in '' yes
13205 do
13206   # Use a header file that comes with gcc, so configuring glibc
13207   # with a fresh cross-compiler works.
13208   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13209   # <limits.h> exists even on freestanding compilers.
13210   # On the NeXT, cc -E runs the code through the compiler's parser,
13211   # not just through cpp. "Syntax error" is here to catch this case.
13212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h.  */
13214 #ifdef __STDC__
13215 # include <limits.h>
13216 #else
13217 # include <assert.h>
13218 #endif
13219                      Syntax error
13220 _ACEOF
13221 if ac_fn_cxx_try_cpp "$LINENO"; then :
13222
13223 else
13224   # Broken: fails on valid input.
13225 continue
13226 fi
13227 rm -f conftest.err conftest.i conftest.$ac_ext
13228
13229   # OK, works on sane cases.  Now check whether nonexistent headers
13230   # can be detected and how.
13231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h.  */
13233 #include <ac_nonexistent.h>
13234 _ACEOF
13235 if ac_fn_cxx_try_cpp "$LINENO"; then :
13236   # Broken: success on invalid input.
13237 continue
13238 else
13239   # Passes both tests.
13240 ac_preproc_ok=:
13241 break
13242 fi
13243 rm -f conftest.err conftest.i conftest.$ac_ext
13244
13245 done
13246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13247 rm -f conftest.i conftest.err conftest.$ac_ext
13248 if $ac_preproc_ok; then :
13249   break
13250 fi
13251
13252     done
13253     ac_cv_prog_CXXCPP=$CXXCPP
13254
13255 fi
13256   CXXCPP=$ac_cv_prog_CXXCPP
13257 else
13258   ac_cv_prog_CXXCPP=$CXXCPP
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13261 $as_echo "$CXXCPP" >&6; }
13262 ac_preproc_ok=false
13263 for ac_cxx_preproc_warn_flag in '' yes
13264 do
13265   # Use a header file that comes with gcc, so configuring glibc
13266   # with a fresh cross-compiler works.
13267   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13268   # <limits.h> exists even on freestanding compilers.
13269   # On the NeXT, cc -E runs the code through the compiler's parser,
13270   # not just through cpp. "Syntax error" is here to catch this case.
13271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h.  */
13273 #ifdef __STDC__
13274 # include <limits.h>
13275 #else
13276 # include <assert.h>
13277 #endif
13278                      Syntax error
13279 _ACEOF
13280 if ac_fn_cxx_try_cpp "$LINENO"; then :
13281
13282 else
13283   # Broken: fails on valid input.
13284 continue
13285 fi
13286 rm -f conftest.err conftest.i conftest.$ac_ext
13287
13288   # OK, works on sane cases.  Now check whether nonexistent headers
13289   # can be detected and how.
13290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h.  */
13292 #include <ac_nonexistent.h>
13293 _ACEOF
13294 if ac_fn_cxx_try_cpp "$LINENO"; then :
13295   # Broken: success on invalid input.
13296 continue
13297 else
13298   # Passes both tests.
13299 ac_preproc_ok=:
13300 break
13301 fi
13302 rm -f conftest.err conftest.i conftest.$ac_ext
13303
13304 done
13305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13306 rm -f conftest.i conftest.err conftest.$ac_ext
13307 if $ac_preproc_ok; then :
13308
13309 else
13310   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13312 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13313 See \`config.log' for more details" "$LINENO" 5; }
13314 fi
13315
13316 ac_ext=c
13317 ac_cpp='$CPP $CPPFLAGS'
13318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13321
13322 else
13323   _lt_caught_CXX_error=yes
13324 fi
13325
13326 ac_ext=cpp
13327 ac_cpp='$CXXCPP $CPPFLAGS'
13328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13331
13332 archive_cmds_need_lc_CXX=no
13333 allow_undefined_flag_CXX=
13334 always_export_symbols_CXX=no
13335 archive_expsym_cmds_CXX=
13336 compiler_needs_object_CXX=no
13337 export_dynamic_flag_spec_CXX=
13338 hardcode_direct_CXX=no
13339 hardcode_direct_absolute_CXX=no
13340 hardcode_libdir_flag_spec_CXX=
13341 hardcode_libdir_separator_CXX=
13342 hardcode_minus_L_CXX=no
13343 hardcode_shlibpath_var_CXX=unsupported
13344 hardcode_automatic_CXX=no
13345 inherit_rpath_CXX=no
13346 module_cmds_CXX=
13347 module_expsym_cmds_CXX=
13348 link_all_deplibs_CXX=unknown
13349 old_archive_cmds_CXX=$old_archive_cmds
13350 reload_flag_CXX=$reload_flag
13351 reload_cmds_CXX=$reload_cmds
13352 no_undefined_flag_CXX=
13353 whole_archive_flag_spec_CXX=
13354 enable_shared_with_static_runtimes_CXX=no
13355
13356 # Source file extension for C++ test sources.
13357 ac_ext=cpp
13358
13359 # Object file extension for compiled C++ test sources.
13360 objext=o
13361 objext_CXX=$objext
13362
13363 # No sense in running all these tests if we already determined that
13364 # the CXX compiler isn't working.  Some variables (like enable_shared)
13365 # are currently assumed to apply to all compilers on this platform,
13366 # and will be corrupted by setting them based on a non-working compiler.
13367 if test "$_lt_caught_CXX_error" != yes; then
13368   # Code to be used in simple compile tests
13369   lt_simple_compile_test_code="int some_variable = 0;"
13370
13371   # Code to be used in simple link tests
13372   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13373
13374   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13375
13376
13377
13378
13379
13380
13381 # If no C compiler was specified, use CC.
13382 LTCC=${LTCC-"$CC"}
13383
13384 # If no C compiler flags were specified, use CFLAGS.
13385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13386
13387 # Allow CC to be a program name with arguments.
13388 compiler=$CC
13389
13390
13391   # save warnings/boilerplate of simple test code
13392   ac_outfile=conftest.$ac_objext
13393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13395 _lt_compiler_boilerplate=`cat conftest.err`
13396 $RM conftest*
13397
13398   ac_outfile=conftest.$ac_objext
13399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13401 _lt_linker_boilerplate=`cat conftest.err`
13402 $RM -r conftest*
13403
13404
13405   # Allow CC to be a program name with arguments.
13406   lt_save_CC=$CC
13407   lt_save_CFLAGS=$CFLAGS
13408   lt_save_LD=$LD
13409   lt_save_GCC=$GCC
13410   GCC=$GXX
13411   lt_save_with_gnu_ld=$with_gnu_ld
13412   lt_save_path_LD=$lt_cv_path_LD
13413   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13414     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13415   else
13416     $as_unset lt_cv_prog_gnu_ld
13417   fi
13418   if test -n "${lt_cv_path_LDCXX+set}"; then
13419     lt_cv_path_LD=$lt_cv_path_LDCXX
13420   else
13421     $as_unset lt_cv_path_LD
13422   fi
13423   test -z "${LDCXX+set}" || LD=$LDCXX
13424   CC=${CXX-"c++"}
13425   CFLAGS=$CXXFLAGS
13426   compiler=$CC
13427   compiler_CXX=$CC
13428   for cc_temp in $compiler""; do
13429   case $cc_temp in
13430     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13431     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13432     \-*) ;;
13433     *) break;;
13434   esac
13435 done
13436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13437
13438
13439   if test -n "$compiler"; then
13440     # We don't want -fno-exception when compiling C++ code, so set the
13441     # no_builtin_flag separately
13442     if test "$GXX" = yes; then
13443       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13444     else
13445       lt_prog_compiler_no_builtin_flag_CXX=
13446     fi
13447
13448     if test "$GXX" = yes; then
13449       # Set up default GNU C++ configuration
13450
13451
13452
13453 # Check whether --with-gnu-ld was given.
13454 if test "${with_gnu_ld+set}" = set; then :
13455   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13456 else
13457   with_gnu_ld=no
13458 fi
13459
13460 ac_prog=ld
13461 if test "$GCC" = yes; then
13462   # Check if gcc -print-prog-name=ld gives a path.
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13464 $as_echo_n "checking for ld used by $CC... " >&6; }
13465   case $host in
13466   *-*-mingw*)
13467     # gcc leaves a trailing carriage return which upsets mingw
13468     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13469   *)
13470     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13471   esac
13472   case $ac_prog in
13473     # Accept absolute paths.
13474     [\\/]* | ?:[\\/]*)
13475       re_direlt='/[^/][^/]*/\.\./'
13476       # Canonicalize the pathname of ld
13477       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13478       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13479         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13480       done
13481       test -z "$LD" && LD="$ac_prog"
13482       ;;
13483   "")
13484     # If it fails, then pretend we aren't using GCC.
13485     ac_prog=ld
13486     ;;
13487   *)
13488     # If it is relative, then search for the first ld in PATH.
13489     with_gnu_ld=unknown
13490     ;;
13491   esac
13492 elif test "$with_gnu_ld" = yes; then
13493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13494 $as_echo_n "checking for GNU ld... " >&6; }
13495 else
13496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13497 $as_echo_n "checking for non-GNU ld... " >&6; }
13498 fi
13499 if ${lt_cv_path_LD+:} false; then :
13500   $as_echo_n "(cached) " >&6
13501 else
13502   if test -z "$LD"; then
13503   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13504   for ac_dir in $PATH; do
13505     IFS="$lt_save_ifs"
13506     test -z "$ac_dir" && ac_dir=.
13507     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13508       lt_cv_path_LD="$ac_dir/$ac_prog"
13509       # Check to see if the program is GNU ld.  I'd rather use --version,
13510       # but apparently some variants of GNU ld only accept -v.
13511       # Break only if it was the GNU/non-GNU ld that we prefer.
13512       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13513       *GNU* | *'with BFD'*)
13514         test "$with_gnu_ld" != no && break
13515         ;;
13516       *)
13517         test "$with_gnu_ld" != yes && break
13518         ;;
13519       esac
13520     fi
13521   done
13522   IFS="$lt_save_ifs"
13523 else
13524   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13525 fi
13526 fi
13527
13528 LD="$lt_cv_path_LD"
13529 if test -n "$LD"; then
13530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13531 $as_echo "$LD" >&6; }
13532 else
13533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13535 fi
13536 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13538 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13539 if ${lt_cv_prog_gnu_ld+:} false; then :
13540   $as_echo_n "(cached) " >&6
13541 else
13542   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13543 case `$LD -v 2>&1 </dev/null` in
13544 *GNU* | *'with BFD'*)
13545   lt_cv_prog_gnu_ld=yes
13546   ;;
13547 *)
13548   lt_cv_prog_gnu_ld=no
13549   ;;
13550 esac
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13553 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13554 with_gnu_ld=$lt_cv_prog_gnu_ld
13555
13556
13557
13558
13559
13560
13561
13562       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13563       # archiving commands below assume that GNU ld is being used.
13564       if test "$with_gnu_ld" = yes; then
13565         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13566         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'
13567
13568         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13569         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13570
13571         # If archive_cmds runs LD, not CC, wlarc should be empty
13572         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13573         #     investigate it a little bit more. (MM)
13574         wlarc='${wl}'
13575
13576         # ancient GNU ld didn't support --whole-archive et. al.
13577         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13578           $GREP 'no-whole-archive' > /dev/null; then
13579           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13580         else
13581           whole_archive_flag_spec_CXX=
13582         fi
13583       else
13584         with_gnu_ld=no
13585         wlarc=
13586
13587         # A generic and very simple default shared library creation
13588         # command for GNU C++ for the case where it uses the native
13589         # linker, instead of GNU ld.  If possible, this setting should
13590         # overridden to take advantage of the native linker features on
13591         # the platform it is being used on.
13592         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13593       fi
13594
13595       # Commands to make compiler produce verbose output that lists
13596       # what "hidden" libraries, object files and flags are used when
13597       # linking a shared library.
13598       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13599
13600     else
13601       GXX=no
13602       with_gnu_ld=no
13603       wlarc=
13604     fi
13605
13606     # PORTME: fill in a description of your system's C++ link characteristics
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13608 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13609     ld_shlibs_CXX=yes
13610     case $host_os in
13611       aix3*)
13612         # FIXME: insert proper C++ library support
13613         ld_shlibs_CXX=no
13614         ;;
13615       aix[4-9]*)
13616         if test "$host_cpu" = ia64; then
13617           # On IA64, the linker does run time linking by default, so we don't
13618           # have to do anything special.
13619           aix_use_runtimelinking=no
13620           exp_sym_flag='-Bexport'
13621           no_entry_flag=""
13622         else
13623           aix_use_runtimelinking=no
13624
13625           # Test if we are trying to use run time linking or normal
13626           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13627           # need to do runtime linking.
13628           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13629             for ld_flag in $LDFLAGS; do
13630               case $ld_flag in
13631               *-brtl*)
13632                 aix_use_runtimelinking=yes
13633                 break
13634                 ;;
13635               esac
13636             done
13637             ;;
13638           esac
13639
13640           exp_sym_flag='-bexport'
13641           no_entry_flag='-bnoentry'
13642         fi
13643
13644         # When large executables or shared objects are built, AIX ld can
13645         # have problems creating the table of contents.  If linking a library
13646         # or program results in "error TOC overflow" add -mminimal-toc to
13647         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13648         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13649
13650         archive_cmds_CXX=''
13651         hardcode_direct_CXX=yes
13652         hardcode_direct_absolute_CXX=yes
13653         hardcode_libdir_separator_CXX=':'
13654         link_all_deplibs_CXX=yes
13655         file_list_spec_CXX='${wl}-f,'
13656
13657         if test "$GXX" = yes; then
13658           case $host_os in aix4.[012]|aix4.[012].*)
13659           # We only want to do this on AIX 4.2 and lower, the check
13660           # below for broken collect2 doesn't work under 4.3+
13661           collect2name=`${CC} -print-prog-name=collect2`
13662           if test -f "$collect2name" &&
13663              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13664           then
13665             # We have reworked collect2
13666             :
13667           else
13668             # We have old collect2
13669             hardcode_direct_CXX=unsupported
13670             # It fails to find uninstalled libraries when the uninstalled
13671             # path is not listed in the libpath.  Setting hardcode_minus_L
13672             # to unsupported forces relinking
13673             hardcode_minus_L_CXX=yes
13674             hardcode_libdir_flag_spec_CXX='-L$libdir'
13675             hardcode_libdir_separator_CXX=
13676           fi
13677           esac
13678           shared_flag='-shared'
13679           if test "$aix_use_runtimelinking" = yes; then
13680             shared_flag="$shared_flag "'${wl}-G'
13681           fi
13682         else
13683           # not using gcc
13684           if test "$host_cpu" = ia64; then
13685           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13686           # chokes on -Wl,-G. The following line is correct:
13687           shared_flag='-G'
13688           else
13689             if test "$aix_use_runtimelinking" = yes; then
13690               shared_flag='${wl}-G'
13691             else
13692               shared_flag='${wl}-bM:SRE'
13693             fi
13694           fi
13695         fi
13696
13697         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13698         # It seems that -bexpall does not export symbols beginning with
13699         # underscore (_), so it is better to generate a list of symbols to
13700         # export.
13701         always_export_symbols_CXX=yes
13702         if test "$aix_use_runtimelinking" = yes; then
13703           # Warning - without using the other runtime loading flags (-brtl),
13704           # -berok will link without error, but may produce a broken library.
13705           allow_undefined_flag_CXX='-berok'
13706           # Determine the default libpath from the value encoded in an empty
13707           # executable.
13708           if test "${lt_cv_aix_libpath+set}" = set; then
13709   aix_libpath=$lt_cv_aix_libpath
13710 else
13711   if ${lt_cv_aix_libpath__CXX+:} false; then :
13712   $as_echo_n "(cached) " >&6
13713 else
13714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h.  */
13716
13717 int
13718 main ()
13719 {
13720
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 if ac_fn_cxx_try_link "$LINENO"; then :
13726
13727   lt_aix_libpath_sed='
13728       /Import File Strings/,/^$/ {
13729           /^0/ {
13730               s/^0  *\([^ ]*\) *$/\1/
13731               p
13732           }
13733       }'
13734   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13735   # Check for a 64-bit object if we didn't find anything.
13736   if test -z "$lt_cv_aix_libpath__CXX"; then
13737     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13738   fi
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext \
13741     conftest$ac_exeext conftest.$ac_ext
13742   if test -z "$lt_cv_aix_libpath__CXX"; then
13743     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13744   fi
13745
13746 fi
13747
13748   aix_libpath=$lt_cv_aix_libpath__CXX
13749 fi
13750
13751           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13752
13753           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"
13754         else
13755           if test "$host_cpu" = ia64; then
13756             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13757             allow_undefined_flag_CXX="-z nodefs"
13758             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"
13759           else
13760             # Determine the default libpath from the value encoded in an
13761             # empty executable.
13762             if test "${lt_cv_aix_libpath+set}" = set; then
13763   aix_libpath=$lt_cv_aix_libpath
13764 else
13765   if ${lt_cv_aix_libpath__CXX+:} false; then :
13766   $as_echo_n "(cached) " >&6
13767 else
13768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h.  */
13770
13771 int
13772 main ()
13773 {
13774
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 if ac_fn_cxx_try_link "$LINENO"; then :
13780
13781   lt_aix_libpath_sed='
13782       /Import File Strings/,/^$/ {
13783           /^0/ {
13784               s/^0  *\([^ ]*\) *$/\1/
13785               p
13786           }
13787       }'
13788   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13789   # Check for a 64-bit object if we didn't find anything.
13790   if test -z "$lt_cv_aix_libpath__CXX"; then
13791     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13792   fi
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext \
13795     conftest$ac_exeext conftest.$ac_ext
13796   if test -z "$lt_cv_aix_libpath__CXX"; then
13797     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13798   fi
13799
13800 fi
13801
13802   aix_libpath=$lt_cv_aix_libpath__CXX
13803 fi
13804
13805             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13806             # Warning - without using the other run time loading flags,
13807             # -berok will link without error, but may produce a broken library.
13808             no_undefined_flag_CXX=' ${wl}-bernotok'
13809             allow_undefined_flag_CXX=' ${wl}-berok'
13810             if test "$with_gnu_ld" = yes; then
13811               # We only use this code for GNU lds that support --whole-archive.
13812               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13813             else
13814               # Exported symbols can be pulled into shared objects from archives
13815               whole_archive_flag_spec_CXX='$convenience'
13816             fi
13817             archive_cmds_need_lc_CXX=yes
13818             # This is similar to how AIX traditionally builds its shared
13819             # libraries.
13820             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'
13821           fi
13822         fi
13823         ;;
13824
13825       beos*)
13826         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13827           allow_undefined_flag_CXX=unsupported
13828           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13829           # support --undefined.  This deserves some investigation.  FIXME
13830           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831         else
13832           ld_shlibs_CXX=no
13833         fi
13834         ;;
13835
13836       chorus*)
13837         case $cc_basename in
13838           *)
13839           # FIXME: insert proper C++ library support
13840           ld_shlibs_CXX=no
13841           ;;
13842         esac
13843         ;;
13844
13845       cygwin* | mingw* | pw32* | cegcc*)
13846         case $GXX,$cc_basename in
13847         ,cl* | no,cl*)
13848           # Native MSVC
13849           # hardcode_libdir_flag_spec is actually meaningless, as there is
13850           # no search path for DLLs.
13851           hardcode_libdir_flag_spec_CXX=' '
13852           allow_undefined_flag_CXX=unsupported
13853           always_export_symbols_CXX=yes
13854           file_list_spec_CXX='@'
13855           # Tell ltmain to make .lib files, not .a files.
13856           libext=lib
13857           # Tell ltmain to make .dll files, not .so files.
13858           shrext_cmds=".dll"
13859           # FIXME: Setting linknames here is a bad hack.
13860           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13861           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13862               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13863             else
13864               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13865             fi~
13866             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13867             linknames='
13868           # The linker will not automatically build a static lib if we build a DLL.
13869           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13870           enable_shared_with_static_runtimes_CXX=yes
13871           # Don't use ranlib
13872           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13873           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13874             lt_tool_outputfile="@TOOL_OUTPUT@"~
13875             case $lt_outputfile in
13876               *.exe|*.EXE) ;;
13877               *)
13878                 lt_outputfile="$lt_outputfile.exe"
13879                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13880                 ;;
13881             esac~
13882             func_to_tool_file "$lt_outputfile"~
13883             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13884               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13885               $RM "$lt_outputfile.manifest";
13886             fi'
13887           ;;
13888         *)
13889           # g++
13890           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13891           # as there is no search path for DLLs.
13892           hardcode_libdir_flag_spec_CXX='-L$libdir'
13893           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13894           allow_undefined_flag_CXX=unsupported
13895           always_export_symbols_CXX=no
13896           enable_shared_with_static_runtimes_CXX=yes
13897
13898           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13899             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'
13900             # If the export-symbols file already is a .def file (1st line
13901             # is EXPORTS), use it as is; otherwise, prepend...
13902             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13903               cp $export_symbols $output_objdir/$soname.def;
13904             else
13905               echo EXPORTS > $output_objdir/$soname.def;
13906               cat $export_symbols >> $output_objdir/$soname.def;
13907             fi~
13908             $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'
13909           else
13910             ld_shlibs_CXX=no
13911           fi
13912           ;;
13913         esac
13914         ;;
13915       darwin* | rhapsody*)
13916
13917
13918   archive_cmds_need_lc_CXX=no
13919   hardcode_direct_CXX=no
13920   hardcode_automatic_CXX=yes
13921   hardcode_shlibpath_var_CXX=unsupported
13922   if test "$lt_cv_ld_force_load" = "yes"; then
13923     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\"`'
13924
13925   else
13926     whole_archive_flag_spec_CXX=''
13927   fi
13928   link_all_deplibs_CXX=yes
13929   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13930   case $cc_basename in
13931      ifort*) _lt_dar_can_shared=yes ;;
13932      *) _lt_dar_can_shared=$GCC ;;
13933   esac
13934   if test "$_lt_dar_can_shared" = "yes"; then
13935     output_verbose_link_cmd=func_echo_all
13936     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}"
13937     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13938     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}"
13939     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}"
13940        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13941       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}"
13942       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}"
13943     fi
13944
13945   else
13946   ld_shlibs_CXX=no
13947   fi
13948
13949         ;;
13950
13951       dgux*)
13952         case $cc_basename in
13953           ec++*)
13954             # FIXME: insert proper C++ library support
13955             ld_shlibs_CXX=no
13956             ;;
13957           ghcx*)
13958             # Green Hills C++ Compiler
13959             # FIXME: insert proper C++ library support
13960             ld_shlibs_CXX=no
13961             ;;
13962           *)
13963             # FIXME: insert proper C++ library support
13964             ld_shlibs_CXX=no
13965             ;;
13966         esac
13967         ;;
13968
13969       freebsd2.*)
13970         # C++ shared libraries reported to be fairly broken before
13971         # switch to ELF
13972         ld_shlibs_CXX=no
13973         ;;
13974
13975       freebsd-elf*)
13976         archive_cmds_need_lc_CXX=no
13977         ;;
13978
13979       freebsd* | dragonfly*)
13980         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13981         # conventions
13982         ld_shlibs_CXX=yes
13983         ;;
13984
13985       haiku*)
13986         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987         link_all_deplibs_CXX=yes
13988         ;;
13989
13990       hpux9*)
13991         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13992         hardcode_libdir_separator_CXX=:
13993         export_dynamic_flag_spec_CXX='${wl}-E'
13994         hardcode_direct_CXX=yes
13995         hardcode_minus_L_CXX=yes # Not in the search PATH,
13996                                              # but as the default
13997                                              # location of the library.
13998
13999         case $cc_basename in
14000           CC*)
14001             # FIXME: insert proper C++ library support
14002             ld_shlibs_CXX=no
14003             ;;
14004           aCC*)
14005             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'
14006             # Commands to make compiler produce verbose output that lists
14007             # what "hidden" libraries, object files and flags are used when
14008             # linking a shared library.
14009             #
14010             # There doesn't appear to be a way to prevent this compiler from
14011             # explicitly linking system object files so we need to strip them
14012             # from the output so that they don't get included in the library
14013             # dependencies.
14014             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"'
14015             ;;
14016           *)
14017             if test "$GXX" = yes; then
14018               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'
14019             else
14020               # FIXME: insert proper C++ library support
14021               ld_shlibs_CXX=no
14022             fi
14023             ;;
14024         esac
14025         ;;
14026
14027       hpux10*|hpux11*)
14028         if test $with_gnu_ld = no; then
14029           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14030           hardcode_libdir_separator_CXX=:
14031
14032           case $host_cpu in
14033             hppa*64*|ia64*)
14034               ;;
14035             *)
14036               export_dynamic_flag_spec_CXX='${wl}-E'
14037               ;;
14038           esac
14039         fi
14040         case $host_cpu in
14041           hppa*64*|ia64*)
14042             hardcode_direct_CXX=no
14043             hardcode_shlibpath_var_CXX=no
14044             ;;
14045           *)
14046             hardcode_direct_CXX=yes
14047             hardcode_direct_absolute_CXX=yes
14048             hardcode_minus_L_CXX=yes # Not in the search PATH,
14049                                                  # but as the default
14050                                                  # location of the library.
14051             ;;
14052         esac
14053
14054         case $cc_basename in
14055           CC*)
14056             # FIXME: insert proper C++ library support
14057             ld_shlibs_CXX=no
14058             ;;
14059           aCC*)
14060             case $host_cpu in
14061               hppa*64*)
14062                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14063                 ;;
14064               ia64*)
14065                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14066                 ;;
14067               *)
14068                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14069                 ;;
14070             esac
14071             # Commands to make compiler produce verbose output that lists
14072             # what "hidden" libraries, object files and flags are used when
14073             # linking a shared library.
14074             #
14075             # There doesn't appear to be a way to prevent this compiler from
14076             # explicitly linking system object files so we need to strip them
14077             # from the output so that they don't get included in the library
14078             # dependencies.
14079             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"'
14080             ;;
14081           *)
14082             if test "$GXX" = yes; then
14083               if test $with_gnu_ld = no; then
14084                 case $host_cpu in
14085                   hppa*64*)
14086                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14087                     ;;
14088                   ia64*)
14089                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14090                     ;;
14091                   *)
14092                     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'
14093                     ;;
14094                 esac
14095               fi
14096             else
14097               # FIXME: insert proper C++ library support
14098               ld_shlibs_CXX=no
14099             fi
14100             ;;
14101         esac
14102         ;;
14103
14104       interix[3-9]*)
14105         hardcode_direct_CXX=no
14106         hardcode_shlibpath_var_CXX=no
14107         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14108         export_dynamic_flag_spec_CXX='${wl}-E'
14109         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14110         # Instead, shared libraries are loaded at an image base (0x10000000 by
14111         # default) and relocated if they conflict, which is a slow very memory
14112         # consuming and fragmenting process.  To avoid this, we pick a random,
14113         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14114         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14115         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'
14116         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'
14117         ;;
14118       irix5* | irix6*)
14119         case $cc_basename in
14120           CC*)
14121             # SGI C++
14122             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'
14123
14124             # Archives containing C++ object files must be created using
14125             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14126             # necessary to make sure instantiated templates are included
14127             # in the archive.
14128             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14129             ;;
14130           *)
14131             if test "$GXX" = yes; then
14132               if test "$with_gnu_ld" = no; then
14133                 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'
14134               else
14135                 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'
14136               fi
14137             fi
14138             link_all_deplibs_CXX=yes
14139             ;;
14140         esac
14141         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14142         hardcode_libdir_separator_CXX=:
14143         inherit_rpath_CXX=yes
14144         ;;
14145
14146       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14147         case $cc_basename in
14148           KCC*)
14149             # Kuck and Associates, Inc. (KAI) C++ Compiler
14150
14151             # KCC will only create a shared library if the output file
14152             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14153             # to its proper name (with version) after linking.
14154             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'
14155             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'
14156             # Commands to make compiler produce verbose output that lists
14157             # what "hidden" libraries, object files and flags are used when
14158             # linking a shared library.
14159             #
14160             # There doesn't appear to be a way to prevent this compiler from
14161             # explicitly linking system object files so we need to strip them
14162             # from the output so that they don't get included in the library
14163             # dependencies.
14164             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"'
14165
14166             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14167             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14168
14169             # Archives containing C++ object files must be created using
14170             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14171             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14172             ;;
14173           icpc* | ecpc* )
14174             # Intel C++
14175             with_gnu_ld=yes
14176             # version 8.0 and above of icpc choke on multiply defined symbols
14177             # if we add $predep_objects and $postdep_objects, however 7.1 and
14178             # earlier do not add the objects themselves.
14179             case `$CC -V 2>&1` in
14180               *"Version 7."*)
14181                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14182                 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'
14183                 ;;
14184               *)  # Version 8.0 or newer
14185                 tmp_idyn=
14186                 case $host_cpu in
14187                   ia64*) tmp_idyn=' -i_dynamic';;
14188                 esac
14189                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14190                 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'
14191                 ;;
14192             esac
14193             archive_cmds_need_lc_CXX=no
14194             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14195             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14196             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14197             ;;
14198           pgCC* | pgcpp*)
14199             # Portland Group C++ compiler
14200             case `$CC -V` in
14201             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14202               prelink_cmds_CXX='tpldir=Template.dir~
14203                 rm -rf $tpldir~
14204                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14205                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14206               old_archive_cmds_CXX='tpldir=Template.dir~
14207                 rm -rf $tpldir~
14208                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14209                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14210                 $RANLIB $oldlib'
14211               archive_cmds_CXX='tpldir=Template.dir~
14212                 rm -rf $tpldir~
14213                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14214                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14215               archive_expsym_cmds_CXX='tpldir=Template.dir~
14216                 rm -rf $tpldir~
14217                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14218                 $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'
14219               ;;
14220             *) # Version 6 and above use weak symbols
14221               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14222               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'
14223               ;;
14224             esac
14225
14226             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14227             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14228             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'
14229             ;;
14230           cxx*)
14231             # Compaq C++
14232             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14233             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'
14234
14235             runpath_var=LD_RUN_PATH
14236             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14237             hardcode_libdir_separator_CXX=:
14238
14239             # Commands to make compiler produce verbose output that lists
14240             # what "hidden" libraries, object files and flags are used when
14241             # linking a shared library.
14242             #
14243             # There doesn't appear to be a way to prevent this compiler from
14244             # explicitly linking system object files so we need to strip them
14245             # from the output so that they don't get included in the library
14246             # dependencies.
14247             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'
14248             ;;
14249           xl* | mpixl* | bgxl*)
14250             # IBM XL 8.0 on PPC, with GNU ld
14251             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14252             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14253             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14254             if test "x$supports_anon_versioning" = xyes; then
14255               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14256                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14257                 echo "local: *; };" >> $output_objdir/$libname.ver~
14258                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14259             fi
14260             ;;
14261           *)
14262             case `$CC -V 2>&1 | sed 5q` in
14263             *Sun\ C*)
14264               # Sun C++ 5.9
14265               no_undefined_flag_CXX=' -zdefs'
14266               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14267               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'
14268               hardcode_libdir_flag_spec_CXX='-R$libdir'
14269               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'
14270               compiler_needs_object_CXX=yes
14271
14272               # Not sure whether something based on
14273               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14274               # would be better.
14275               output_verbose_link_cmd='func_echo_all'
14276
14277               # Archives containing C++ object files must be created using
14278               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14279               # necessary to make sure instantiated templates are included
14280               # in the archive.
14281               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14282               ;;
14283             esac
14284             ;;
14285         esac
14286         ;;
14287
14288       lynxos*)
14289         # FIXME: insert proper C++ library support
14290         ld_shlibs_CXX=no
14291         ;;
14292
14293       m88k*)
14294         # FIXME: insert proper C++ library support
14295         ld_shlibs_CXX=no
14296         ;;
14297
14298       mvs*)
14299         case $cc_basename in
14300           cxx*)
14301             # FIXME: insert proper C++ library support
14302             ld_shlibs_CXX=no
14303             ;;
14304           *)
14305             # FIXME: insert proper C++ library support
14306             ld_shlibs_CXX=no
14307             ;;
14308         esac
14309         ;;
14310
14311       netbsd*)
14312         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14313           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14314           wlarc=
14315           hardcode_libdir_flag_spec_CXX='-R$libdir'
14316           hardcode_direct_CXX=yes
14317           hardcode_shlibpath_var_CXX=no
14318         fi
14319         # Workaround some broken pre-1.5 toolchains
14320         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14321         ;;
14322
14323       *nto* | *qnx*)
14324         ld_shlibs_CXX=yes
14325         ;;
14326
14327       openbsd2*)
14328         # C++ shared libraries are fairly broken
14329         ld_shlibs_CXX=no
14330         ;;
14331
14332       openbsd*)
14333         if test -f /usr/libexec/ld.so; then
14334           hardcode_direct_CXX=yes
14335           hardcode_shlibpath_var_CXX=no
14336           hardcode_direct_absolute_CXX=yes
14337           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14338           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14339           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14340             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14341             export_dynamic_flag_spec_CXX='${wl}-E'
14342             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14343           fi
14344           output_verbose_link_cmd=func_echo_all
14345         else
14346           ld_shlibs_CXX=no
14347         fi
14348         ;;
14349
14350       osf3* | osf4* | osf5*)
14351         case $cc_basename in
14352           KCC*)
14353             # Kuck and Associates, Inc. (KAI) C++ Compiler
14354
14355             # KCC will only create a shared library if the output file
14356             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14357             # to its proper name (with version) after linking.
14358             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'
14359
14360             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14361             hardcode_libdir_separator_CXX=:
14362
14363             # Archives containing C++ object files must be created using
14364             # the KAI C++ compiler.
14365             case $host in
14366               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14367               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14368             esac
14369             ;;
14370           RCC*)
14371             # Rational C++ 2.4.1
14372             # FIXME: insert proper C++ library support
14373             ld_shlibs_CXX=no
14374             ;;
14375           cxx*)
14376             case $host in
14377               osf3*)
14378                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14379                 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'
14380                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14381                 ;;
14382               *)
14383                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14384                 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'
14385                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14386                   echo "-hidden">> $lib.exp~
14387                   $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~
14388                   $RM $lib.exp'
14389                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14390                 ;;
14391             esac
14392
14393             hardcode_libdir_separator_CXX=:
14394
14395             # Commands to make compiler produce verbose output that lists
14396             # what "hidden" libraries, object files and flags are used when
14397             # linking a shared library.
14398             #
14399             # There doesn't appear to be a way to prevent this compiler from
14400             # explicitly linking system object files so we need to strip them
14401             # from the output so that they don't get included in the library
14402             # dependencies.
14403             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"'
14404             ;;
14405           *)
14406             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14407               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14408               case $host in
14409                 osf3*)
14410                   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'
14411                   ;;
14412                 *)
14413                   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'
14414                   ;;
14415               esac
14416
14417               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14418               hardcode_libdir_separator_CXX=:
14419
14420               # Commands to make compiler produce verbose output that lists
14421               # what "hidden" libraries, object files and flags are used when
14422               # linking a shared library.
14423               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14424
14425             else
14426               # FIXME: insert proper C++ library support
14427               ld_shlibs_CXX=no
14428             fi
14429             ;;
14430         esac
14431         ;;
14432
14433       psos*)
14434         # FIXME: insert proper C++ library support
14435         ld_shlibs_CXX=no
14436         ;;
14437
14438       sunos4*)
14439         case $cc_basename in
14440           CC*)
14441             # Sun C++ 4.x
14442             # FIXME: insert proper C++ library support
14443             ld_shlibs_CXX=no
14444             ;;
14445           lcc*)
14446             # Lucid
14447             # FIXME: insert proper C++ library support
14448             ld_shlibs_CXX=no
14449             ;;
14450           *)
14451             # FIXME: insert proper C++ library support
14452             ld_shlibs_CXX=no
14453             ;;
14454         esac
14455         ;;
14456
14457       solaris*)
14458         case $cc_basename in
14459           CC* | sunCC*)
14460             # Sun C++ 4.2, 5.x and Centerline C++
14461             archive_cmds_need_lc_CXX=yes
14462             no_undefined_flag_CXX=' -zdefs'
14463             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14464             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14465               $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'
14466
14467             hardcode_libdir_flag_spec_CXX='-R$libdir'
14468             hardcode_shlibpath_var_CXX=no
14469             case $host_os in
14470               solaris2.[0-5] | solaris2.[0-5].*) ;;
14471               *)
14472                 # The compiler driver will combine and reorder linker options,
14473                 # but understands `-z linker_flag'.
14474                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14475                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14476                 ;;
14477             esac
14478             link_all_deplibs_CXX=yes
14479
14480             output_verbose_link_cmd='func_echo_all'
14481
14482             # Archives containing C++ object files must be created using
14483             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14484             # necessary to make sure instantiated templates are included
14485             # in the archive.
14486             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14487             ;;
14488           gcx*)
14489             # Green Hills C++ Compiler
14490             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14491
14492             # The C++ compiler must be used to create the archive.
14493             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14494             ;;
14495           *)
14496             # GNU C++ compiler with Solaris linker
14497             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14498               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14499               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14500                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14501                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14502                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14503
14504                 # Commands to make compiler produce verbose output that lists
14505                 # what "hidden" libraries, object files and flags are used when
14506                 # linking a shared library.
14507                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14508               else
14509                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14510                 # platform.
14511                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14512                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14513                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14514
14515                 # Commands to make compiler produce verbose output that lists
14516                 # what "hidden" libraries, object files and flags are used when
14517                 # linking a shared library.
14518                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14519               fi
14520
14521               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14522               case $host_os in
14523                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14524                 *)
14525                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14526                   ;;
14527               esac
14528             fi
14529             ;;
14530         esac
14531         ;;
14532
14533     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14534       no_undefined_flag_CXX='${wl}-z,text'
14535       archive_cmds_need_lc_CXX=no
14536       hardcode_shlibpath_var_CXX=no
14537       runpath_var='LD_RUN_PATH'
14538
14539       case $cc_basename in
14540         CC*)
14541           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543           ;;
14544         *)
14545           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547           ;;
14548       esac
14549       ;;
14550
14551       sysv5* | sco3.2v5* | sco5v6*)
14552         # Note: We can NOT use -z defs as we might desire, because we do not
14553         # link with -lc, and that would cause any symbols used from libc to
14554         # always be unresolved, which means just about no library would
14555         # ever link correctly.  If we're not using GNU ld we use -z text
14556         # though, which does catch some bad symbols but isn't as heavy-handed
14557         # as -z defs.
14558         no_undefined_flag_CXX='${wl}-z,text'
14559         allow_undefined_flag_CXX='${wl}-z,nodefs'
14560         archive_cmds_need_lc_CXX=no
14561         hardcode_shlibpath_var_CXX=no
14562         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14563         hardcode_libdir_separator_CXX=':'
14564         link_all_deplibs_CXX=yes
14565         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14566         runpath_var='LD_RUN_PATH'
14567
14568         case $cc_basename in
14569           CC*)
14570             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14571             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14572             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14573               '"$old_archive_cmds_CXX"
14574             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14575               '"$reload_cmds_CXX"
14576             ;;
14577           *)
14578             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580             ;;
14581         esac
14582       ;;
14583
14584       tandem*)
14585         case $cc_basename in
14586           NCC*)
14587             # NonStop-UX NCC 3.20
14588             # FIXME: insert proper C++ library support
14589             ld_shlibs_CXX=no
14590             ;;
14591           *)
14592             # FIXME: insert proper C++ library support
14593             ld_shlibs_CXX=no
14594             ;;
14595         esac
14596         ;;
14597
14598       vxworks*)
14599         # FIXME: insert proper C++ library support
14600         ld_shlibs_CXX=no
14601         ;;
14602
14603       *)
14604         # FIXME: insert proper C++ library support
14605         ld_shlibs_CXX=no
14606         ;;
14607     esac
14608
14609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14610 $as_echo "$ld_shlibs_CXX" >&6; }
14611     test "$ld_shlibs_CXX" = no && can_build_shared=no
14612
14613     GCC_CXX="$GXX"
14614     LD_CXX="$LD"
14615
14616     ## CAVEAT EMPTOR:
14617     ## There is no encapsulation within the following macros, do not change
14618     ## the running order or otherwise move them around unless you know exactly
14619     ## what you are doing...
14620     # Dependencies to place before and after the object being linked:
14621 predep_objects_CXX=
14622 postdep_objects_CXX=
14623 predeps_CXX=
14624 postdeps_CXX=
14625 compiler_lib_search_path_CXX=
14626
14627 cat > conftest.$ac_ext <<_LT_EOF
14628 class Foo
14629 {
14630 public:
14631   Foo (void) { a = 0; }
14632 private:
14633   int a;
14634 };
14635 _LT_EOF
14636
14637
14638 _lt_libdeps_save_CFLAGS=$CFLAGS
14639 case "$CC $CFLAGS " in #(
14640 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14641 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14642 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14643 esac
14644
14645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14646   (eval $ac_compile) 2>&5
14647   ac_status=$?
14648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14649   test $ac_status = 0; }; then
14650   # Parse the compiler output and extract the necessary
14651   # objects, libraries and library flags.
14652
14653   # Sentinel used to keep track of whether or not we are before
14654   # the conftest object file.
14655   pre_test_object_deps_done=no
14656
14657   for p in `eval "$output_verbose_link_cmd"`; do
14658     case ${prev}${p} in
14659
14660     -L* | -R* | -l*)
14661        # Some compilers place space between "-{L,R}" and the path.
14662        # Remove the space.
14663        if test $p = "-L" ||
14664           test $p = "-R"; then
14665          prev=$p
14666          continue
14667        fi
14668
14669        # Expand the sysroot to ease extracting the directories later.
14670        if test -z "$prev"; then
14671          case $p in
14672          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14673          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14674          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14675          esac
14676        fi
14677        case $p in
14678        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14679        esac
14680        if test "$pre_test_object_deps_done" = no; then
14681          case ${prev} in
14682          -L | -R)
14683            # Internal compiler library paths should come after those
14684            # provided the user.  The postdeps already come after the
14685            # user supplied libs so there is no need to process them.
14686            if test -z "$compiler_lib_search_path_CXX"; then
14687              compiler_lib_search_path_CXX="${prev}${p}"
14688            else
14689              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14690            fi
14691            ;;
14692          # The "-l" case would never come before the object being
14693          # linked, so don't bother handling this case.
14694          esac
14695        else
14696          if test -z "$postdeps_CXX"; then
14697            postdeps_CXX="${prev}${p}"
14698          else
14699            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14700          fi
14701        fi
14702        prev=
14703        ;;
14704
14705     *.lto.$objext) ;; # Ignore GCC LTO objects
14706     *.$objext)
14707        # This assumes that the test object file only shows up
14708        # once in the compiler output.
14709        if test "$p" = "conftest.$objext"; then
14710          pre_test_object_deps_done=yes
14711          continue
14712        fi
14713
14714        if test "$pre_test_object_deps_done" = no; then
14715          if test -z "$predep_objects_CXX"; then
14716            predep_objects_CXX="$p"
14717          else
14718            predep_objects_CXX="$predep_objects_CXX $p"
14719          fi
14720        else
14721          if test -z "$postdep_objects_CXX"; then
14722            postdep_objects_CXX="$p"
14723          else
14724            postdep_objects_CXX="$postdep_objects_CXX $p"
14725          fi
14726        fi
14727        ;;
14728
14729     *) ;; # Ignore the rest.
14730
14731     esac
14732   done
14733
14734   # Clean up.
14735   rm -f a.out a.exe
14736 else
14737   echo "libtool.m4: error: problem compiling CXX test program"
14738 fi
14739
14740 $RM -f confest.$objext
14741 CFLAGS=$_lt_libdeps_save_CFLAGS
14742
14743 # PORTME: override above test on systems where it is broken
14744 case $host_os in
14745 interix[3-9]*)
14746   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14747   # hack all around it, let's just trust "g++" to DTRT.
14748   predep_objects_CXX=
14749   postdep_objects_CXX=
14750   postdeps_CXX=
14751   ;;
14752
14753 linux*)
14754   case `$CC -V 2>&1 | sed 5q` in
14755   *Sun\ C*)
14756     # Sun C++ 5.9
14757
14758     # The more standards-conforming stlport4 library is
14759     # incompatible with the Cstd library. Avoid specifying
14760     # it if it's in CXXFLAGS. Ignore libCrun as
14761     # -library=stlport4 depends on it.
14762     case " $CXX $CXXFLAGS " in
14763     *" -library=stlport4 "*)
14764       solaris_use_stlport4=yes
14765       ;;
14766     esac
14767
14768     if test "$solaris_use_stlport4" != yes; then
14769       postdeps_CXX='-library=Cstd -library=Crun'
14770     fi
14771     ;;
14772   esac
14773   ;;
14774
14775 solaris*)
14776   case $cc_basename in
14777   CC* | sunCC*)
14778     # The more standards-conforming stlport4 library is
14779     # incompatible with the Cstd library. Avoid specifying
14780     # it if it's in CXXFLAGS. Ignore libCrun as
14781     # -library=stlport4 depends on it.
14782     case " $CXX $CXXFLAGS " in
14783     *" -library=stlport4 "*)
14784       solaris_use_stlport4=yes
14785       ;;
14786     esac
14787
14788     # Adding this requires a known-good setup of shared libraries for
14789     # Sun compiler versions before 5.6, else PIC objects from an old
14790     # archive will be linked into the output, leading to subtle bugs.
14791     if test "$solaris_use_stlport4" != yes; then
14792       postdeps_CXX='-library=Cstd -library=Crun'
14793     fi
14794     ;;
14795   esac
14796   ;;
14797 esac
14798
14799
14800 case " $postdeps_CXX " in
14801 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14802 esac
14803  compiler_lib_search_dirs_CXX=
14804 if test -n "${compiler_lib_search_path_CXX}"; then
14805  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14806 fi
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838     lt_prog_compiler_wl_CXX=
14839 lt_prog_compiler_pic_CXX=
14840 lt_prog_compiler_static_CXX=
14841
14842
14843   # C++ specific cases for pic, static, wl, etc.
14844   if test "$GXX" = yes; then
14845     lt_prog_compiler_wl_CXX='-Wl,'
14846     lt_prog_compiler_static_CXX='-static'
14847
14848     case $host_os in
14849     aix*)
14850       # All AIX code is PIC.
14851       if test "$host_cpu" = ia64; then
14852         # AIX 5 now supports IA64 processor
14853         lt_prog_compiler_static_CXX='-Bstatic'
14854       fi
14855       ;;
14856
14857     amigaos*)
14858       case $host_cpu in
14859       powerpc)
14860             # see comment about AmigaOS4 .so support
14861             lt_prog_compiler_pic_CXX='-fPIC'
14862         ;;
14863       m68k)
14864             # FIXME: we need at least 68020 code to build shared libraries, but
14865             # adding the `-m68020' flag to GCC prevents building anything better,
14866             # like `-m68040'.
14867             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14868         ;;
14869       esac
14870       ;;
14871
14872     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14873       # PIC is the default for these OSes.
14874       ;;
14875     mingw* | cygwin* | os2* | pw32* | cegcc*)
14876       # This hack is so that the source file can tell whether it is being
14877       # built for inclusion in a dll (and should export symbols for example).
14878       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14879       # (--disable-auto-import) libraries
14880       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14881       ;;
14882     darwin* | rhapsody*)
14883       # PIC is the default on this platform
14884       # Common symbols not allowed in MH_DYLIB files
14885       lt_prog_compiler_pic_CXX='-fno-common'
14886       ;;
14887     *djgpp*)
14888       # DJGPP does not support shared libraries at all
14889       lt_prog_compiler_pic_CXX=
14890       ;;
14891     haiku*)
14892       # PIC is the default for Haiku.
14893       # The "-static" flag exists, but is broken.
14894       lt_prog_compiler_static_CXX=
14895       ;;
14896     interix[3-9]*)
14897       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14898       # Instead, we relocate shared libraries at runtime.
14899       ;;
14900     sysv4*MP*)
14901       if test -d /usr/nec; then
14902         lt_prog_compiler_pic_CXX=-Kconform_pic
14903       fi
14904       ;;
14905     hpux*)
14906       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14907       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14908       # sets the default TLS model and affects inlining.
14909       case $host_cpu in
14910       hppa*64*)
14911         ;;
14912       *)
14913         lt_prog_compiler_pic_CXX='-fPIC'
14914         ;;
14915       esac
14916       ;;
14917     *qnx* | *nto*)
14918       # QNX uses GNU C++, but need to define -shared option too, otherwise
14919       # it will coredump.
14920       lt_prog_compiler_pic_CXX='-fPIC -shared'
14921       ;;
14922     *)
14923       lt_prog_compiler_pic_CXX='-fPIC'
14924       ;;
14925     esac
14926   else
14927     case $host_os in
14928       aix[4-9]*)
14929         # All AIX code is PIC.
14930         if test "$host_cpu" = ia64; then
14931           # AIX 5 now supports IA64 processor
14932           lt_prog_compiler_static_CXX='-Bstatic'
14933         else
14934           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14935         fi
14936         ;;
14937       chorus*)
14938         case $cc_basename in
14939         cxch68*)
14940           # Green Hills C++ Compiler
14941           # _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"
14942           ;;
14943         esac
14944         ;;
14945       mingw* | cygwin* | os2* | pw32* | cegcc*)
14946         # This hack is so that the source file can tell whether it is being
14947         # built for inclusion in a dll (and should export symbols for example).
14948         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14949         ;;
14950       dgux*)
14951         case $cc_basename in
14952           ec++*)
14953             lt_prog_compiler_pic_CXX='-KPIC'
14954             ;;
14955           ghcx*)
14956             # Green Hills C++ Compiler
14957             lt_prog_compiler_pic_CXX='-pic'
14958             ;;
14959           *)
14960             ;;
14961         esac
14962         ;;
14963       freebsd* | dragonfly*)
14964         # FreeBSD uses GNU C++
14965         ;;
14966       hpux9* | hpux10* | hpux11*)
14967         case $cc_basename in
14968           CC*)
14969             lt_prog_compiler_wl_CXX='-Wl,'
14970             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14971             if test "$host_cpu" != ia64; then
14972               lt_prog_compiler_pic_CXX='+Z'
14973             fi
14974             ;;
14975           aCC*)
14976             lt_prog_compiler_wl_CXX='-Wl,'
14977             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14978             case $host_cpu in
14979             hppa*64*|ia64*)
14980               # +Z the default
14981               ;;
14982             *)
14983               lt_prog_compiler_pic_CXX='+Z'
14984               ;;
14985             esac
14986             ;;
14987           *)
14988             ;;
14989         esac
14990         ;;
14991       interix*)
14992         # This is c89, which is MS Visual C++ (no shared libs)
14993         # Anyone wants to do a port?
14994         ;;
14995       irix5* | irix6* | nonstopux*)
14996         case $cc_basename in
14997           CC*)
14998             lt_prog_compiler_wl_CXX='-Wl,'
14999             lt_prog_compiler_static_CXX='-non_shared'
15000             # CC pic flag -KPIC is the default.
15001             ;;
15002           *)
15003             ;;
15004         esac
15005         ;;
15006       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15007         case $cc_basename in
15008           KCC*)
15009             # KAI C++ Compiler
15010             lt_prog_compiler_wl_CXX='--backend -Wl,'
15011             lt_prog_compiler_pic_CXX='-fPIC'
15012             ;;
15013           ecpc* )
15014             # old Intel C++ for x86_64 which still supported -KPIC.
15015             lt_prog_compiler_wl_CXX='-Wl,'
15016             lt_prog_compiler_pic_CXX='-KPIC'
15017             lt_prog_compiler_static_CXX='-static'
15018             ;;
15019           icpc* )
15020             # Intel C++, used to be incompatible with GCC.
15021             # ICC 10 doesn't accept -KPIC any more.
15022             lt_prog_compiler_wl_CXX='-Wl,'
15023             lt_prog_compiler_pic_CXX='-fPIC'
15024             lt_prog_compiler_static_CXX='-static'
15025             ;;
15026           pgCC* | pgcpp*)
15027             # Portland Group C++ compiler
15028             lt_prog_compiler_wl_CXX='-Wl,'
15029             lt_prog_compiler_pic_CXX='-fpic'
15030             lt_prog_compiler_static_CXX='-Bstatic'
15031             ;;
15032           cxx*)
15033             # Compaq C++
15034             # Make sure the PIC flag is empty.  It appears that all Alpha
15035             # Linux and Compaq Tru64 Unix objects are PIC.
15036             lt_prog_compiler_pic_CXX=
15037             lt_prog_compiler_static_CXX='-non_shared'
15038             ;;
15039           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15040             # IBM XL 8.0, 9.0 on PPC and BlueGene
15041             lt_prog_compiler_wl_CXX='-Wl,'
15042             lt_prog_compiler_pic_CXX='-qpic'
15043             lt_prog_compiler_static_CXX='-qstaticlink'
15044             ;;
15045           *)
15046             case `$CC -V 2>&1 | sed 5q` in
15047             *Sun\ C*)
15048               # Sun C++ 5.9
15049               lt_prog_compiler_pic_CXX='-KPIC'
15050               lt_prog_compiler_static_CXX='-Bstatic'
15051               lt_prog_compiler_wl_CXX='-Qoption ld '
15052               ;;
15053             esac
15054             ;;
15055         esac
15056         ;;
15057       lynxos*)
15058         ;;
15059       m88k*)
15060         ;;
15061       mvs*)
15062         case $cc_basename in
15063           cxx*)
15064             lt_prog_compiler_pic_CXX='-W c,exportall'
15065             ;;
15066           *)
15067             ;;
15068         esac
15069         ;;
15070       netbsd* | netbsdelf*-gnu)
15071         ;;
15072       *qnx* | *nto*)
15073         # QNX uses GNU C++, but need to define -shared option too, otherwise
15074         # it will coredump.
15075         lt_prog_compiler_pic_CXX='-fPIC -shared'
15076         ;;
15077       osf3* | osf4* | osf5*)
15078         case $cc_basename in
15079           KCC*)
15080             lt_prog_compiler_wl_CXX='--backend -Wl,'
15081             ;;
15082           RCC*)
15083             # Rational C++ 2.4.1
15084             lt_prog_compiler_pic_CXX='-pic'
15085             ;;
15086           cxx*)
15087             # Digital/Compaq C++
15088             lt_prog_compiler_wl_CXX='-Wl,'
15089             # Make sure the PIC flag is empty.  It appears that all Alpha
15090             # Linux and Compaq Tru64 Unix objects are PIC.
15091             lt_prog_compiler_pic_CXX=
15092             lt_prog_compiler_static_CXX='-non_shared'
15093             ;;
15094           *)
15095             ;;
15096         esac
15097         ;;
15098       psos*)
15099         ;;
15100       solaris*)
15101         case $cc_basename in
15102           CC* | sunCC*)
15103             # Sun C++ 4.2, 5.x and Centerline C++
15104             lt_prog_compiler_pic_CXX='-KPIC'
15105             lt_prog_compiler_static_CXX='-Bstatic'
15106             lt_prog_compiler_wl_CXX='-Qoption ld '
15107             ;;
15108           gcx*)
15109             # Green Hills C++ Compiler
15110             lt_prog_compiler_pic_CXX='-PIC'
15111             ;;
15112           *)
15113             ;;
15114         esac
15115         ;;
15116       sunos4*)
15117         case $cc_basename in
15118           CC*)
15119             # Sun C++ 4.x
15120             lt_prog_compiler_pic_CXX='-pic'
15121             lt_prog_compiler_static_CXX='-Bstatic'
15122             ;;
15123           lcc*)
15124             # Lucid
15125             lt_prog_compiler_pic_CXX='-pic'
15126             ;;
15127           *)
15128             ;;
15129         esac
15130         ;;
15131       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15132         case $cc_basename in
15133           CC*)
15134             lt_prog_compiler_wl_CXX='-Wl,'
15135             lt_prog_compiler_pic_CXX='-KPIC'
15136             lt_prog_compiler_static_CXX='-Bstatic'
15137             ;;
15138         esac
15139         ;;
15140       tandem*)
15141         case $cc_basename in
15142           NCC*)
15143             # NonStop-UX NCC 3.20
15144             lt_prog_compiler_pic_CXX='-KPIC'
15145             ;;
15146           *)
15147             ;;
15148         esac
15149         ;;
15150       vxworks*)
15151         ;;
15152       *)
15153         lt_prog_compiler_can_build_shared_CXX=no
15154         ;;
15155     esac
15156   fi
15157
15158 case $host_os in
15159   # For platforms which do not support PIC, -DPIC is meaningless:
15160   *djgpp*)
15161     lt_prog_compiler_pic_CXX=
15162     ;;
15163   *)
15164     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15165     ;;
15166 esac
15167
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15170 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15171   $as_echo_n "(cached) " >&6
15172 else
15173   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15176 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15177 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15178
15179 #
15180 # Check to make sure the PIC flag actually works.
15181 #
15182 if test -n "$lt_prog_compiler_pic_CXX"; then
15183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15184 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15185 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15186   $as_echo_n "(cached) " >&6
15187 else
15188   lt_cv_prog_compiler_pic_works_CXX=no
15189    ac_outfile=conftest.$ac_objext
15190    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15191    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15192    # Insert the option either (1) after the last *FLAGS variable, or
15193    # (2) before a word containing "conftest.", or (3) at the end.
15194    # Note that $ac_compile itself does not contain backslashes and begins
15195    # with a dollar sign (not a hyphen), so the echo should work correctly.
15196    # The option is referenced via a variable to avoid confusing sed.
15197    lt_compile=`echo "$ac_compile" | $SED \
15198    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15199    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15200    -e 's:$: $lt_compiler_flag:'`
15201    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15202    (eval "$lt_compile" 2>conftest.err)
15203    ac_status=$?
15204    cat conftest.err >&5
15205    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206    if (exit $ac_status) && test -s "$ac_outfile"; then
15207      # The compiler can only warn and ignore the option if not recognized
15208      # So say no if there are warnings other than the usual output.
15209      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15210      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15211      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15212        lt_cv_prog_compiler_pic_works_CXX=yes
15213      fi
15214    fi
15215    $RM conftest*
15216
15217 fi
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15219 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15220
15221 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15222     case $lt_prog_compiler_pic_CXX in
15223      "" | " "*) ;;
15224      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15225      esac
15226 else
15227     lt_prog_compiler_pic_CXX=
15228      lt_prog_compiler_can_build_shared_CXX=no
15229 fi
15230
15231 fi
15232
15233
15234
15235
15236
15237 #
15238 # Check to make sure the static flag actually works.
15239 #
15240 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15242 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15243 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15244   $as_echo_n "(cached) " >&6
15245 else
15246   lt_cv_prog_compiler_static_works_CXX=no
15247    save_LDFLAGS="$LDFLAGS"
15248    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15249    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15250    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15251      # The linker can only warn and ignore the option if not recognized
15252      # So say no if there are warnings
15253      if test -s conftest.err; then
15254        # Append any errors to the config.log.
15255        cat conftest.err 1>&5
15256        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15257        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15258        if diff conftest.exp conftest.er2 >/dev/null; then
15259          lt_cv_prog_compiler_static_works_CXX=yes
15260        fi
15261      else
15262        lt_cv_prog_compiler_static_works_CXX=yes
15263      fi
15264    fi
15265    $RM -r conftest*
15266    LDFLAGS="$save_LDFLAGS"
15267
15268 fi
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15270 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15271
15272 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15273     :
15274 else
15275     lt_prog_compiler_static_CXX=
15276 fi
15277
15278
15279
15280
15281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15283 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15284   $as_echo_n "(cached) " >&6
15285 else
15286   lt_cv_prog_compiler_c_o_CXX=no
15287    $RM -r conftest 2>/dev/null
15288    mkdir conftest
15289    cd conftest
15290    mkdir out
15291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15292
15293    lt_compiler_flag="-o out/conftest2.$ac_objext"
15294    # Insert the option either (1) after the last *FLAGS variable, or
15295    # (2) before a word containing "conftest.", or (3) at the end.
15296    # Note that $ac_compile itself does not contain backslashes and begins
15297    # with a dollar sign (not a hyphen), so the echo should work correctly.
15298    lt_compile=`echo "$ac_compile" | $SED \
15299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15301    -e 's:$: $lt_compiler_flag:'`
15302    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15303    (eval "$lt_compile" 2>out/conftest.err)
15304    ac_status=$?
15305    cat out/conftest.err >&5
15306    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15308    then
15309      # The compiler can only warn and ignore the option if not recognized
15310      # So say no if there are warnings
15311      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15312      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15313      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15314        lt_cv_prog_compiler_c_o_CXX=yes
15315      fi
15316    fi
15317    chmod u+w . 2>&5
15318    $RM conftest*
15319    # SGI C++ compiler will create directory out/ii_files/ for
15320    # template instantiation
15321    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15322    $RM out/* && rmdir out
15323    cd ..
15324    $RM -r conftest
15325    $RM conftest*
15326
15327 fi
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15329 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15330
15331
15332
15333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15335 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15336   $as_echo_n "(cached) " >&6
15337 else
15338   lt_cv_prog_compiler_c_o_CXX=no
15339    $RM -r conftest 2>/dev/null
15340    mkdir conftest
15341    cd conftest
15342    mkdir out
15343    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15344
15345    lt_compiler_flag="-o out/conftest2.$ac_objext"
15346    # Insert the option either (1) after the last *FLAGS variable, or
15347    # (2) before a word containing "conftest.", or (3) at the end.
15348    # Note that $ac_compile itself does not contain backslashes and begins
15349    # with a dollar sign (not a hyphen), so the echo should work correctly.
15350    lt_compile=`echo "$ac_compile" | $SED \
15351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15353    -e 's:$: $lt_compiler_flag:'`
15354    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15355    (eval "$lt_compile" 2>out/conftest.err)
15356    ac_status=$?
15357    cat out/conftest.err >&5
15358    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15360    then
15361      # The compiler can only warn and ignore the option if not recognized
15362      # So say no if there are warnings
15363      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15364      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15365      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15366        lt_cv_prog_compiler_c_o_CXX=yes
15367      fi
15368    fi
15369    chmod u+w . 2>&5
15370    $RM conftest*
15371    # SGI C++ compiler will create directory out/ii_files/ for
15372    # template instantiation
15373    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15374    $RM out/* && rmdir out
15375    cd ..
15376    $RM -r conftest
15377    $RM conftest*
15378
15379 fi
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15381 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15382
15383
15384
15385
15386 hard_links="nottested"
15387 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15388   # do not overwrite the value of need_locks provided by the user
15389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15390 $as_echo_n "checking if we can lock with hard links... " >&6; }
15391   hard_links=yes
15392   $RM conftest*
15393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15394   touch conftest.a
15395   ln conftest.a conftest.b 2>&5 || hard_links=no
15396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15398 $as_echo "$hard_links" >&6; }
15399   if test "$hard_links" = no; then
15400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15401 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15402     need_locks=warn
15403   fi
15404 else
15405   need_locks=no
15406 fi
15407
15408
15409
15410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15411 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15412
15413   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15414   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15415   case $host_os in
15416   aix[4-9]*)
15417     # If we're using GNU nm, then we don't want the "-C" option.
15418     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15419     # Also, AIX nm treats weak defined symbols like other global defined
15420     # symbols, whereas GNU nm marks them as "W".
15421     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15422       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'
15423     else
15424       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'
15425     fi
15426     ;;
15427   pw32*)
15428     export_symbols_cmds_CXX="$ltdll_cmds"
15429     ;;
15430   cygwin* | mingw* | cegcc*)
15431     case $cc_basename in
15432     cl*)
15433       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15434       ;;
15435     *)
15436       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'
15437       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15438       ;;
15439     esac
15440     ;;
15441   linux* | k*bsd*-gnu | gnu*)
15442     link_all_deplibs_CXX=no
15443     ;;
15444   *)
15445     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15446     ;;
15447   esac
15448
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15450 $as_echo "$ld_shlibs_CXX" >&6; }
15451 test "$ld_shlibs_CXX" = no && can_build_shared=no
15452
15453 with_gnu_ld_CXX=$with_gnu_ld
15454
15455
15456
15457
15458
15459
15460 #
15461 # Do we need to explicitly link libc?
15462 #
15463 case "x$archive_cmds_need_lc_CXX" in
15464 x|xyes)
15465   # Assume -lc should be added
15466   archive_cmds_need_lc_CXX=yes
15467
15468   if test "$enable_shared" = yes && test "$GCC" = yes; then
15469     case $archive_cmds_CXX in
15470     *'~'*)
15471       # FIXME: we may have to deal with multi-command sequences.
15472       ;;
15473     '$CC '*)
15474       # Test whether the compiler implicitly links with -lc since on some
15475       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15476       # to ld, don't add -lc before -lgcc.
15477       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15478 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15479 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15480   $as_echo_n "(cached) " >&6
15481 else
15482   $RM conftest*
15483         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15484
15485         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15486   (eval $ac_compile) 2>&5
15487   ac_status=$?
15488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15489   test $ac_status = 0; } 2>conftest.err; then
15490           soname=conftest
15491           lib=conftest
15492           libobjs=conftest.$ac_objext
15493           deplibs=
15494           wl=$lt_prog_compiler_wl_CXX
15495           pic_flag=$lt_prog_compiler_pic_CXX
15496           compiler_flags=-v
15497           linker_flags=-v
15498           verstring=
15499           output_objdir=.
15500           libname=conftest
15501           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15502           allow_undefined_flag_CXX=
15503           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15504   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15505   ac_status=$?
15506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15507   test $ac_status = 0; }
15508           then
15509             lt_cv_archive_cmds_need_lc_CXX=no
15510           else
15511             lt_cv_archive_cmds_need_lc_CXX=yes
15512           fi
15513           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15514         else
15515           cat conftest.err 1>&5
15516         fi
15517         $RM conftest*
15518
15519 fi
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15521 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15522       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15523       ;;
15524     esac
15525   fi
15526   ;;
15527 esac
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15592
15593 library_names_spec=
15594 libname_spec='lib$name'
15595 soname_spec=
15596 shrext_cmds=".so"
15597 postinstall_cmds=
15598 postuninstall_cmds=
15599 finish_cmds=
15600 finish_eval=
15601 shlibpath_var=
15602 shlibpath_overrides_runpath=unknown
15603 version_type=none
15604 dynamic_linker="$host_os ld.so"
15605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15606 need_lib_prefix=unknown
15607 hardcode_into_libs=no
15608
15609 # when you set need_version to no, make sure it does not cause -set_version
15610 # flags to be left without arguments
15611 need_version=unknown
15612
15613 case $host_os in
15614 aix3*)
15615   version_type=linux # correct to gnu/linux during the next big refactor
15616   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15617   shlibpath_var=LIBPATH
15618
15619   # AIX 3 has no versioning support, so we append a major version to the name.
15620   soname_spec='${libname}${release}${shared_ext}$major'
15621   ;;
15622
15623 aix[4-9]*)
15624   version_type=linux # correct to gnu/linux during the next big refactor
15625   need_lib_prefix=no
15626   need_version=no
15627   hardcode_into_libs=yes
15628   if test "$host_cpu" = ia64; then
15629     # AIX 5 supports IA64
15630     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15631     shlibpath_var=LD_LIBRARY_PATH
15632   else
15633     # With GCC up to 2.95.x, collect2 would create an import file
15634     # for dependence libraries.  The import file would start with
15635     # the line `#! .'.  This would cause the generated library to
15636     # depend on `.', always an invalid library.  This was fixed in
15637     # development snapshots of GCC prior to 3.0.
15638     case $host_os in
15639       aix4 | aix4.[01] | aix4.[01].*)
15640       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15641            echo ' yes '
15642            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15643         :
15644       else
15645         can_build_shared=no
15646       fi
15647       ;;
15648     esac
15649     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15650     # soname into executable. Probably we can add versioning support to
15651     # collect2, so additional links can be useful in future.
15652     if test "$aix_use_runtimelinking" = yes; then
15653       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15654       # instead of lib<name>.a to let people know that these are not
15655       # typical AIX shared libraries.
15656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657     else
15658       # We preserve .a as extension for shared libraries through AIX4.2
15659       # and later when we are not doing run time linking.
15660       library_names_spec='${libname}${release}.a $libname.a'
15661       soname_spec='${libname}${release}${shared_ext}$major'
15662     fi
15663     shlibpath_var=LIBPATH
15664   fi
15665   ;;
15666
15667 amigaos*)
15668   case $host_cpu in
15669   powerpc)
15670     # Since July 2007 AmigaOS4 officially supports .so libraries.
15671     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673     ;;
15674   m68k)
15675     library_names_spec='$libname.ixlibrary $libname.a'
15676     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15677     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'
15678     ;;
15679   esac
15680   ;;
15681
15682 beos*)
15683   library_names_spec='${libname}${shared_ext}'
15684   dynamic_linker="$host_os ld.so"
15685   shlibpath_var=LIBRARY_PATH
15686   ;;
15687
15688 bsdi[45]*)
15689   version_type=linux # correct to gnu/linux during the next big refactor
15690   need_version=no
15691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692   soname_spec='${libname}${release}${shared_ext}$major'
15693   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15694   shlibpath_var=LD_LIBRARY_PATH
15695   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15696   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15697   # the default ld.so.conf also contains /usr/contrib/lib and
15698   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15699   # libtool to hard-code these into programs
15700   ;;
15701
15702 cygwin* | mingw* | pw32* | cegcc*)
15703   version_type=windows
15704   shrext_cmds=".dll"
15705   need_version=no
15706   need_lib_prefix=no
15707
15708   case $GCC,$cc_basename in
15709   yes,*)
15710     # gcc
15711     library_names_spec='$libname.dll.a'
15712     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15713     postinstall_cmds='base_file=`basename \${file}`~
15714       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15715       dldir=$destdir/`dirname \$dlpath`~
15716       test -d \$dldir || mkdir -p \$dldir~
15717       $install_prog $dir/$dlname \$dldir/$dlname~
15718       chmod a+x \$dldir/$dlname~
15719       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15720         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15721       fi'
15722     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15723       dlpath=$dir/\$dldll~
15724        $RM \$dlpath'
15725     shlibpath_overrides_runpath=yes
15726
15727     case $host_os in
15728     cygwin*)
15729       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15730       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731
15732       ;;
15733     mingw* | cegcc*)
15734       # MinGW DLLs use traditional 'lib' prefix
15735       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15736       ;;
15737     pw32*)
15738       # pw32 DLLs use 'pw' prefix rather than 'lib'
15739       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740       ;;
15741     esac
15742     dynamic_linker='Win32 ld.exe'
15743     ;;
15744
15745   *,cl*)
15746     # Native MSVC
15747     libname_spec='$name'
15748     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15749     library_names_spec='${libname}.dll.lib'
15750
15751     case $build_os in
15752     mingw*)
15753       sys_lib_search_path_spec=
15754       lt_save_ifs=$IFS
15755       IFS=';'
15756       for lt_path in $LIB
15757       do
15758         IFS=$lt_save_ifs
15759         # Let DOS variable expansion print the short 8.3 style file name.
15760         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15761         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15762       done
15763       IFS=$lt_save_ifs
15764       # Convert to MSYS style.
15765       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15766       ;;
15767     cygwin*)
15768       # Convert to unix form, then to dos form, then back to unix form
15769       # but this time dos style (no spaces!) so that the unix form looks
15770       # like /cygdrive/c/PROGRA~1:/cygdr...
15771       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15772       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15773       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15774       ;;
15775     *)
15776       sys_lib_search_path_spec="$LIB"
15777       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15778         # It is most probably a Windows format PATH.
15779         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15780       else
15781         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15782       fi
15783       # FIXME: find the short name or the path components, as spaces are
15784       # common. (e.g. "Program Files" -> "PROGRA~1")
15785       ;;
15786     esac
15787
15788     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15789     postinstall_cmds='base_file=`basename \${file}`~
15790       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15791       dldir=$destdir/`dirname \$dlpath`~
15792       test -d \$dldir || mkdir -p \$dldir~
15793       $install_prog $dir/$dlname \$dldir/$dlname'
15794     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15795       dlpath=$dir/\$dldll~
15796        $RM \$dlpath'
15797     shlibpath_overrides_runpath=yes
15798     dynamic_linker='Win32 link.exe'
15799     ;;
15800
15801   *)
15802     # Assume MSVC wrapper
15803     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15804     dynamic_linker='Win32 ld.exe'
15805     ;;
15806   esac
15807   # FIXME: first we should search . and the directory the executable is in
15808   shlibpath_var=PATH
15809   ;;
15810
15811 darwin* | rhapsody*)
15812   dynamic_linker="$host_os dyld"
15813   version_type=darwin
15814   need_lib_prefix=no
15815   need_version=no
15816   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15817   soname_spec='${libname}${release}${major}$shared_ext'
15818   shlibpath_overrides_runpath=yes
15819   shlibpath_var=DYLD_LIBRARY_PATH
15820   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15821
15822   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15823   ;;
15824
15825 dgux*)
15826   version_type=linux # correct to gnu/linux during the next big refactor
15827   need_lib_prefix=no
15828   need_version=no
15829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15830   soname_spec='${libname}${release}${shared_ext}$major'
15831   shlibpath_var=LD_LIBRARY_PATH
15832   ;;
15833
15834 freebsd* | dragonfly*)
15835   # DragonFly does not have aout.  When/if they implement a new
15836   # versioning mechanism, adjust this.
15837   if test -x /usr/bin/objformat; then
15838     objformat=`/usr/bin/objformat`
15839   else
15840     case $host_os in
15841     freebsd[23].*) objformat=aout ;;
15842     *) objformat=elf ;;
15843     esac
15844   fi
15845   version_type=freebsd-$objformat
15846   case $version_type in
15847     freebsd-elf*)
15848       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15849       need_version=no
15850       need_lib_prefix=no
15851       ;;
15852     freebsd-*)
15853       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15854       need_version=yes
15855       ;;
15856   esac
15857   shlibpath_var=LD_LIBRARY_PATH
15858   case $host_os in
15859   freebsd2.*)
15860     shlibpath_overrides_runpath=yes
15861     ;;
15862   freebsd3.[01]* | freebsdelf3.[01]*)
15863     shlibpath_overrides_runpath=yes
15864     hardcode_into_libs=yes
15865     ;;
15866   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15867   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15868     shlibpath_overrides_runpath=no
15869     hardcode_into_libs=yes
15870     ;;
15871   *) # from 4.6 on, and DragonFly
15872     shlibpath_overrides_runpath=yes
15873     hardcode_into_libs=yes
15874     ;;
15875   esac
15876   ;;
15877
15878 haiku*)
15879   version_type=linux # correct to gnu/linux during the next big refactor
15880   need_lib_prefix=no
15881   need_version=no
15882   dynamic_linker="$host_os runtime_loader"
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   shlibpath_var=LIBRARY_PATH
15886   shlibpath_overrides_runpath=yes
15887   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15888   hardcode_into_libs=yes
15889   ;;
15890
15891 hpux9* | hpux10* | hpux11*)
15892   # Give a soname corresponding to the major version so that dld.sl refuses to
15893   # link against other versions.
15894   version_type=sunos
15895   need_lib_prefix=no
15896   need_version=no
15897   case $host_cpu in
15898   ia64*)
15899     shrext_cmds='.so'
15900     hardcode_into_libs=yes
15901     dynamic_linker="$host_os dld.so"
15902     shlibpath_var=LD_LIBRARY_PATH
15903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905     soname_spec='${libname}${release}${shared_ext}$major'
15906     if test "X$HPUX_IA64_MODE" = X32; then
15907       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15908     else
15909       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15910     fi
15911     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15912     ;;
15913   hppa*64*)
15914     shrext_cmds='.sl'
15915     hardcode_into_libs=yes
15916     dynamic_linker="$host_os dld.sl"
15917     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15918     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15920     soname_spec='${libname}${release}${shared_ext}$major'
15921     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15922     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15923     ;;
15924   *)
15925     shrext_cmds='.sl'
15926     dynamic_linker="$host_os dld.sl"
15927     shlibpath_var=SHLIB_PATH
15928     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
15932   esac
15933   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15934   postinstall_cmds='chmod 555 $lib'
15935   # or fails outright, so override atomically:
15936   install_override_mode=555
15937   ;;
15938
15939 interix[3-9]*)
15940   version_type=linux # correct to gnu/linux during the next big refactor
15941   need_lib_prefix=no
15942   need_version=no
15943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15944   soname_spec='${libname}${release}${shared_ext}$major'
15945   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15946   shlibpath_var=LD_LIBRARY_PATH
15947   shlibpath_overrides_runpath=no
15948   hardcode_into_libs=yes
15949   ;;
15950
15951 irix5* | irix6* | nonstopux*)
15952   case $host_os in
15953     nonstopux*) version_type=nonstopux ;;
15954     *)
15955         if test "$lt_cv_prog_gnu_ld" = yes; then
15956                 version_type=linux # correct to gnu/linux during the next big refactor
15957         else
15958                 version_type=irix
15959         fi ;;
15960   esac
15961   need_lib_prefix=no
15962   need_version=no
15963   soname_spec='${libname}${release}${shared_ext}$major'
15964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15965   case $host_os in
15966   irix5* | nonstopux*)
15967     libsuff= shlibsuff=
15968     ;;
15969   *)
15970     case $LD in # libtool.m4 will add one of these switches to LD
15971     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15972       libsuff= shlibsuff= libmagic=32-bit;;
15973     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15974       libsuff=32 shlibsuff=N32 libmagic=N32;;
15975     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15976       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15977     *) libsuff= shlibsuff= libmagic=never-match;;
15978     esac
15979     ;;
15980   esac
15981   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15982   shlibpath_overrides_runpath=no
15983   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15984   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15985   hardcode_into_libs=yes
15986   ;;
15987
15988 # No shared lib support for Linux oldld, aout, or coff.
15989 linux*oldld* | linux*aout* | linux*coff*)
15990   dynamic_linker=no
15991   ;;
15992
15993 # This must be glibc/ELF.
15994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15995   version_type=linux # correct to gnu/linux during the next big refactor
15996   need_lib_prefix=no
15997   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16001   shlibpath_var=LD_LIBRARY_PATH
16002   shlibpath_overrides_runpath=no
16003
16004   # Some binutils ld are patched to set DT_RUNPATH
16005   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16006   $as_echo_n "(cached) " >&6
16007 else
16008   lt_cv_shlibpath_overrides_runpath=no
16009     save_LDFLAGS=$LDFLAGS
16010     save_libdir=$libdir
16011     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16012          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h.  */
16015
16016 int
16017 main ()
16018 {
16019
16020   ;
16021   return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_cxx_try_link "$LINENO"; then :
16025   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16026   lt_cv_shlibpath_overrides_runpath=yes
16027 fi
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext \
16030     conftest$ac_exeext conftest.$ac_ext
16031     LDFLAGS=$save_LDFLAGS
16032     libdir=$save_libdir
16033
16034 fi
16035
16036   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16037
16038   # This implies no fast_install, which is unacceptable.
16039   # Some rework will be needed to allow for fast_install
16040   # before this can be enabled.
16041   hardcode_into_libs=yes
16042
16043   # Append ld.so.conf contents to the search path
16044   if test -f /etc/ld.so.conf; then
16045     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' ' '`
16046     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16047   fi
16048
16049   # We used to test for /lib/ld.so.1 and disable shared libraries on
16050   # powerpc, because MkLinux only supported shared libraries with the
16051   # GNU dynamic linker.  Since this was broken with cross compilers,
16052   # most powerpc-linux boxes support dynamic linking these days and
16053   # people can always --disable-shared, the test was removed, and we
16054   # assume the GNU/Linux dynamic linker is in use.
16055   dynamic_linker='GNU/Linux ld.so'
16056   ;;
16057
16058 netbsdelf*-gnu)
16059   version_type=linux
16060   need_lib_prefix=no
16061   need_version=no
16062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16063   soname_spec='${libname}${release}${shared_ext}$major'
16064   shlibpath_var=LD_LIBRARY_PATH
16065   shlibpath_overrides_runpath=no
16066   hardcode_into_libs=yes
16067   dynamic_linker='NetBSD ld.elf_so'
16068   ;;
16069
16070 netbsd*)
16071   version_type=sunos
16072   need_lib_prefix=no
16073   need_version=no
16074   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16076     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16077     dynamic_linker='NetBSD (a.out) ld.so'
16078   else
16079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16080     soname_spec='${libname}${release}${shared_ext}$major'
16081     dynamic_linker='NetBSD ld.elf_so'
16082   fi
16083   shlibpath_var=LD_LIBRARY_PATH
16084   shlibpath_overrides_runpath=yes
16085   hardcode_into_libs=yes
16086   ;;
16087
16088 newsos6)
16089   version_type=linux # correct to gnu/linux during the next big refactor
16090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   shlibpath_overrides_runpath=yes
16093   ;;
16094
16095 *nto* | *qnx*)
16096   version_type=qnx
16097   need_lib_prefix=no
16098   need_version=no
16099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100   soname_spec='${libname}${release}${shared_ext}$major'
16101   shlibpath_var=LD_LIBRARY_PATH
16102   shlibpath_overrides_runpath=no
16103   hardcode_into_libs=yes
16104   dynamic_linker='ldqnx.so'
16105   ;;
16106
16107 openbsd*)
16108   version_type=sunos
16109   sys_lib_dlsearch_path_spec="/usr/lib"
16110   need_lib_prefix=no
16111   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16112   case $host_os in
16113     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16114     *)                          need_version=no  ;;
16115   esac
16116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16117   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16118   shlibpath_var=LD_LIBRARY_PATH
16119   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16120     case $host_os in
16121       openbsd2.[89] | openbsd2.[89].*)
16122         shlibpath_overrides_runpath=no
16123         ;;
16124       *)
16125         shlibpath_overrides_runpath=yes
16126         ;;
16127       esac
16128   else
16129     shlibpath_overrides_runpath=yes
16130   fi
16131   ;;
16132
16133 os2*)
16134   libname_spec='$name'
16135   shrext_cmds=".dll"
16136   need_lib_prefix=no
16137   library_names_spec='$libname${shared_ext} $libname.a'
16138   dynamic_linker='OS/2 ld.exe'
16139   shlibpath_var=LIBPATH
16140   ;;
16141
16142 osf3* | osf4* | osf5*)
16143   version_type=osf
16144   need_lib_prefix=no
16145   need_version=no
16146   soname_spec='${libname}${release}${shared_ext}$major'
16147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148   shlibpath_var=LD_LIBRARY_PATH
16149   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16150   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16151   ;;
16152
16153 rdos*)
16154   dynamic_linker=no
16155   ;;
16156
16157 solaris*)
16158   version_type=linux # correct to gnu/linux during the next big refactor
16159   need_lib_prefix=no
16160   need_version=no
16161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162   soname_spec='${libname}${release}${shared_ext}$major'
16163   shlibpath_var=LD_LIBRARY_PATH
16164   shlibpath_overrides_runpath=yes
16165   hardcode_into_libs=yes
16166   # ldd complains unless libraries are executable
16167   postinstall_cmds='chmod +x $lib'
16168   ;;
16169
16170 sunos4*)
16171   version_type=sunos
16172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16173   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16174   shlibpath_var=LD_LIBRARY_PATH
16175   shlibpath_overrides_runpath=yes
16176   if test "$with_gnu_ld" = yes; then
16177     need_lib_prefix=no
16178   fi
16179   need_version=yes
16180   ;;
16181
16182 sysv4 | sysv4.3*)
16183   version_type=linux # correct to gnu/linux during the next big refactor
16184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185   soname_spec='${libname}${release}${shared_ext}$major'
16186   shlibpath_var=LD_LIBRARY_PATH
16187   case $host_vendor in
16188     sni)
16189       shlibpath_overrides_runpath=no
16190       need_lib_prefix=no
16191       runpath_var=LD_RUN_PATH
16192       ;;
16193     siemens)
16194       need_lib_prefix=no
16195       ;;
16196     motorola)
16197       need_lib_prefix=no
16198       need_version=no
16199       shlibpath_overrides_runpath=no
16200       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16201       ;;
16202   esac
16203   ;;
16204
16205 sysv4*MP*)
16206   if test -d /usr/nec ;then
16207     version_type=linux # correct to gnu/linux during the next big refactor
16208     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16209     soname_spec='$libname${shared_ext}.$major'
16210     shlibpath_var=LD_LIBRARY_PATH
16211   fi
16212   ;;
16213
16214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16215   version_type=freebsd-elf
16216   need_lib_prefix=no
16217   need_version=no
16218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16219   soname_spec='${libname}${release}${shared_ext}$major'
16220   shlibpath_var=LD_LIBRARY_PATH
16221   shlibpath_overrides_runpath=yes
16222   hardcode_into_libs=yes
16223   if test "$with_gnu_ld" = yes; then
16224     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16225   else
16226     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16227     case $host_os in
16228       sco3.2v5*)
16229         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16230         ;;
16231     esac
16232   fi
16233   sys_lib_dlsearch_path_spec='/usr/lib'
16234   ;;
16235
16236 tpf*)
16237   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16238   version_type=linux # correct to gnu/linux during the next big refactor
16239   need_lib_prefix=no
16240   need_version=no
16241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16242   shlibpath_var=LD_LIBRARY_PATH
16243   shlibpath_overrides_runpath=no
16244   hardcode_into_libs=yes
16245   ;;
16246
16247 uts4*)
16248   version_type=linux # correct to gnu/linux during the next big refactor
16249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16250   soname_spec='${libname}${release}${shared_ext}$major'
16251   shlibpath_var=LD_LIBRARY_PATH
16252   ;;
16253
16254 *)
16255   dynamic_linker=no
16256   ;;
16257 esac
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16259 $as_echo "$dynamic_linker" >&6; }
16260 test "$dynamic_linker" = no && can_build_shared=no
16261
16262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16263 if test "$GCC" = yes; then
16264   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16265 fi
16266
16267 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16268   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16269 fi
16270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16271   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16272 fi
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16313 hardcode_action_CXX=
16314 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16315    test -n "$runpath_var_CXX" ||
16316    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16317
16318   # We can hardcode non-existent directories.
16319   if test "$hardcode_direct_CXX" != no &&
16320      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16321      # have to relink, otherwise we might link with an installed library
16322      # when we should be linking with a yet-to-be-installed one
16323      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16324      test "$hardcode_minus_L_CXX" != no; then
16325     # Linking always hardcodes the temporary library directory.
16326     hardcode_action_CXX=relink
16327   else
16328     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16329     hardcode_action_CXX=immediate
16330   fi
16331 else
16332   # We cannot hardcode anything, or else we can only hardcode existing
16333   # directories.
16334   hardcode_action_CXX=unsupported
16335 fi
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16337 $as_echo "$hardcode_action_CXX" >&6; }
16338
16339 if test "$hardcode_action_CXX" = relink ||
16340    test "$inherit_rpath_CXX" = yes; then
16341   # Fast installation is not supported
16342   enable_fast_install=no
16343 elif test "$shlibpath_overrides_runpath" = yes ||
16344      test "$enable_shared" = no; then
16345   # Fast installation is not necessary
16346   enable_fast_install=needless
16347 fi
16348
16349
16350
16351
16352
16353
16354
16355   fi # test -n "$compiler"
16356
16357   CC=$lt_save_CC
16358   CFLAGS=$lt_save_CFLAGS
16359   LDCXX=$LD
16360   LD=$lt_save_LD
16361   GCC=$lt_save_GCC
16362   with_gnu_ld=$lt_save_with_gnu_ld
16363   lt_cv_path_LDCXX=$lt_cv_path_LD
16364   lt_cv_path_LD=$lt_save_path_LD
16365   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16366   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16367 fi # test "$_lt_caught_CXX_error" != yes
16368
16369 ac_ext=c
16370 ac_cpp='$CPP $CPPFLAGS'
16371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389         ac_config_commands="$ac_config_commands libtool"
16390
16391
16392
16393
16394 # Only expand once:
16395
16396
16397
16398 LT_DLLOADERS=
16399
16400
16401 ac_ext=c
16402 ac_cpp='$CPP $CPPFLAGS'
16403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16406
16407
16408 LIBADD_DLOPEN=
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16410 $as_echo_n "checking for library containing dlopen... " >&6; }
16411 if ${ac_cv_search_dlopen+:} false; then :
16412   $as_echo_n "(cached) " >&6
16413 else
16414   ac_func_search_save_LIBS=$LIBS
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h.  */
16417
16418 /* Override any GCC internal prototype to avoid an error.
16419    Use char because int might match the return type of a GCC
16420    builtin and then its argument prototype would still apply.  */
16421 #ifdef __cplusplus
16422 extern "C"
16423 #endif
16424 char dlopen ();
16425 int
16426 main ()
16427 {
16428 return dlopen ();
16429   ;
16430   return 0;
16431 }
16432 _ACEOF
16433 for ac_lib in '' dl; do
16434   if test -z "$ac_lib"; then
16435     ac_res="none required"
16436   else
16437     ac_res=-l$ac_lib
16438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16439   fi
16440   if ac_fn_c_try_link "$LINENO"; then :
16441   ac_cv_search_dlopen=$ac_res
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext \
16444     conftest$ac_exeext
16445   if ${ac_cv_search_dlopen+:} false; then :
16446   break
16447 fi
16448 done
16449 if ${ac_cv_search_dlopen+:} false; then :
16450
16451 else
16452   ac_cv_search_dlopen=no
16453 fi
16454 rm conftest.$ac_ext
16455 LIBS=$ac_func_search_save_LIBS
16456 fi
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16458 $as_echo "$ac_cv_search_dlopen" >&6; }
16459 ac_res=$ac_cv_search_dlopen
16460 if test "$ac_res" != no; then :
16461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16462
16463 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16464
16465         if test "$ac_cv_search_dlopen" != "none required" ; then
16466           LIBADD_DLOPEN="-ldl"
16467         fi
16468         libltdl_cv_lib_dl_dlopen="yes"
16469         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16470 else
16471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h.  */
16473 #if HAVE_DLFCN_H
16474 #  include <dlfcn.h>
16475 #endif
16476
16477 int
16478 main ()
16479 {
16480 dlopen(0, 0);
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 if ac_fn_c_try_link "$LINENO"; then :
16486
16487 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16488
16489             libltdl_cv_func_dlopen="yes"
16490             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16491 else
16492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16493 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16494 if ${ac_cv_lib_svld_dlopen+:} false; then :
16495   $as_echo_n "(cached) " >&6
16496 else
16497   ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lsvld  $LIBS"
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h.  */
16501
16502 /* Override any GCC internal prototype to avoid an error.
16503    Use char because int might match the return type of a GCC
16504    builtin and then its argument prototype would still apply.  */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 char dlopen ();
16509 int
16510 main ()
16511 {
16512 return dlopen ();
16513   ;
16514   return 0;
16515 }
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16518   ac_cv_lib_svld_dlopen=yes
16519 else
16520   ac_cv_lib_svld_dlopen=no
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext \
16523     conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16525 fi
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16527 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16528 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16529
16530 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16531
16532                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16533                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16534 fi
16535
16536 fi
16537 rm -f core conftest.err conftest.$ac_objext \
16538     conftest$ac_exeext conftest.$ac_ext
16539 fi
16540
16541 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16542 then
16543   lt_save_LIBS="$LIBS"
16544   LIBS="$LIBS $LIBADD_DLOPEN"
16545   for ac_func in dlerror
16546 do :
16547   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16548 if test "x$ac_cv_func_dlerror" = xyes; then :
16549   cat >>confdefs.h <<_ACEOF
16550 #define HAVE_DLERROR 1
16551 _ACEOF
16552
16553 fi
16554 done
16555
16556   LIBS="$lt_save_LIBS"
16557 fi
16558
16559
16560 LIBADD_SHL_LOAD=
16561 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16562 if test "x$ac_cv_func_shl_load" = xyes; then :
16563
16564 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16565
16566         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16567 else
16568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16569 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16570 if ${ac_cv_lib_dld_shl_load+:} false; then :
16571   $as_echo_n "(cached) " >&6
16572 else
16573   ac_check_lib_save_LIBS=$LIBS
16574 LIBS="-ldld  $LIBS"
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h.  */
16577
16578 /* Override any GCC internal prototype to avoid an error.
16579    Use char because int might match the return type of a GCC
16580    builtin and then its argument prototype would still apply.  */
16581 #ifdef __cplusplus
16582 extern "C"
16583 #endif
16584 char shl_load ();
16585 int
16586 main ()
16587 {
16588 return shl_load ();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 if ac_fn_c_try_link "$LINENO"; then :
16594   ac_cv_lib_dld_shl_load=yes
16595 else
16596   ac_cv_lib_dld_shl_load=no
16597 fi
16598 rm -f core conftest.err conftest.$ac_objext \
16599     conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16601 fi
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16603 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16604 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16605
16606 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16607
16608             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16609             LIBADD_SHL_LOAD="-ldld"
16610 fi
16611
16612 fi
16613
16614
16615
16616 case $host_os in
16617 darwin[1567].*)
16618 # We only want this for pre-Mac OS X 10.4.
16619   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16620 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16621
16622 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16623
16624         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16625 fi
16626
16627   ;;
16628 beos*)
16629   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16630   ;;
16631 cygwin* | mingw* | os2* | pw32*)
16632   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16633 "
16634 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16635   ac_have_decl=1
16636 else
16637   ac_have_decl=0
16638 fi
16639
16640 cat >>confdefs.h <<_ACEOF
16641 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16642 _ACEOF
16643
16644   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16645   ;;
16646 esac
16647
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16649 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16650 if ${ac_cv_lib_dld_dld_link+:} false; then :
16651   $as_echo_n "(cached) " >&6
16652 else
16653   ac_check_lib_save_LIBS=$LIBS
16654 LIBS="-ldld  $LIBS"
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h.  */
16657
16658 /* Override any GCC internal prototype to avoid an error.
16659    Use char because int might match the return type of a GCC
16660    builtin and then its argument prototype would still apply.  */
16661 #ifdef __cplusplus
16662 extern "C"
16663 #endif
16664 char dld_link ();
16665 int
16666 main ()
16667 {
16668 return dld_link ();
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 if ac_fn_c_try_link "$LINENO"; then :
16674   ac_cv_lib_dld_dld_link=yes
16675 else
16676   ac_cv_lib_dld_dld_link=no
16677 fi
16678 rm -f core conftest.err conftest.$ac_objext \
16679     conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16681 fi
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16683 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16684 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16685
16686 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16687
16688                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16689 fi
16690
16691
16692
16693
16694 LT_DLPREOPEN=
16695 if test -n "$LT_DLLOADERS"
16696 then
16697   for lt_loader in $LT_DLLOADERS; do
16698     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16699   done
16700
16701 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16702
16703 fi
16704
16705
16706 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16707
16708
16709 ac_ext=c
16710 ac_cpp='$CPP $CPPFLAGS'
16711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16714
16715
16716
16717
16718 if test x$use_libtool != xno; then
16719    DEFAULT_OBJECT_TYPE=".lo"
16720    DEFAULT_ARCHIVE_TYPE=".la"
16721    DEFAULT_SHARED_OBJECT_TYPE=".la"
16722    LIBTOOL="\$(LIBTOOL)"
16723    LIBTOOL_INSTALL_TARGET="libtool-install"
16724    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16725    LIBTOOL_CLEAN_TARGET="libtool-clean"
16726    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16727    FD_PLUGIN_DIR="src/plugins/fd"
16728    have_plugins=yes
16729 else
16730    DEFAULT_OBJECT_TYPE=".o"
16731    DEFAULT_ARCHIVE_TYPE=".a"
16732    DEFAULT_SHARED_OBJECT_TYPE=".so"
16733    LIBTOOL="# \$(LIBTOOL)"
16734    LIBTOOL_INSTALL_TARGET=""
16735    LIBTOOL_UNINSTALL_TARGET=""
16736    LIBTOOL_CLEAN_TARGET=""
16737    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16738    FD_PLUGIN_DIR=""
16739    have_plugins=no
16740 fi
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752 # Check whether --enable-includes was given.
16753 if test "${enable_includes+set}" = set; then :
16754   enableval=$enable_includes;
16755        if test x$enableval = xyes; then
16756           install_includes=yes
16757        fi
16758
16759
16760 fi
16761
16762
16763
16764 if test x$use_libtool != xno -a x$install_includes = xyes; then
16765    INCLUDE_INSTALL_TARGET="install-includes"
16766    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16767 else
16768    INCLUDE_INSTALL_TARGET=""
16769    INCLUDE_UNINSTALL_TARGET=""
16770 fi
16771
16772
16773
16774
16775
16776 case $host_os in
16777   *cygwin* ) CYGWIN=yes;;
16778          * ) CYGWIN=no;;
16779 esac
16780
16781 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16782 then
16783
16784
16785 if $TRUEPRG; then
16786   HAVE_SUN_OS_TRUE=
16787   HAVE_SUN_OS_FALSE='#'
16788 else
16789   HAVE_SUN_OS_TRUE='#'
16790   HAVE_SUN_OS_FALSE=
16791 fi
16792         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16793
16794 else
16795
16796
16797 if $FALSEPRG; then
16798   HAVE_SUN_OS_TRUE=
16799   HAVE_SUN_OS_FALSE='#'
16800 else
16801   HAVE_SUN_OS_TRUE='#'
16802   HAVE_SUN_OS_FALSE=
16803 fi
16804 fi
16805
16806 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16807 then
16808
16809
16810 if $TRUEPRG; then
16811   HAVE_HURD_OS_TRUE=
16812   HAVE_HURD_OS_FALSE='#'
16813 else
16814   HAVE_HURD_OS_TRUE='#'
16815   HAVE_HURD_OS_FALSE=
16816 fi
16817         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16818
16819 else
16820
16821
16822 if $FALSEPRG; then
16823   HAVE_HURD_OS_TRUE=
16824   HAVE_HURD_OS_FALSE='#'
16825 else
16826   HAVE_HURD_OS_TRUE='#'
16827   HAVE_HURD_OS_FALSE=
16828 fi
16829 fi
16830
16831 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16832 then
16833
16834
16835 if $TRUEPRG; then
16836   HAVE_OSF1_OS_TRUE=
16837   HAVE_OSF1_OS_FALSE='#'
16838 else
16839   HAVE_OSF1_OS_TRUE='#'
16840   HAVE_OSF1_OS_FALSE=
16841 fi
16842         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16843
16844 else
16845
16846
16847 if $FALSEPRG; then
16848   HAVE_OSF1_OS_TRUE=
16849   HAVE_OSF1_OS_FALSE='#'
16850 else
16851   HAVE_OSF1_OS_TRUE='#'
16852   HAVE_OSF1_OS_FALSE=
16853 fi
16854 fi
16855
16856 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16857 then
16858
16859
16860 if $TRUEPRG; then
16861   HAVE_AIX_OS_TRUE=
16862   HAVE_AIX_OS_FALSE='#'
16863 else
16864   HAVE_AIX_OS_TRUE='#'
16865   HAVE_AIX_OS_FALSE=
16866 fi
16867         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16868
16869 else
16870
16871
16872 if $FALSEPRG; then
16873   HAVE_AIX_OS_TRUE=
16874   HAVE_AIX_OS_FALSE='#'
16875 else
16876   HAVE_AIX_OS_TRUE='#'
16877   HAVE_AIX_OS_FALSE=
16878 fi
16879 fi
16880
16881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16882 then
16883
16884
16885 if $TRUEPRG; then
16886   HAVE_HPUX_OS_TRUE=
16887   HAVE_HPUX_OS_FALSE='#'
16888 else
16889   HAVE_HPUX_OS_TRUE='#'
16890   HAVE_HPUX_OS_FALSE=
16891 fi
16892         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16893
16894 else
16895
16896
16897 if $FALSEPRG; then
16898   HAVE_HPUX_OS_TRUE=
16899   HAVE_HPUX_OS_FALSE='#'
16900 else
16901   HAVE_HPUX_OS_TRUE='#'
16902   HAVE_HPUX_OS_FALSE=
16903 fi
16904 fi
16905
16906 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16907 then
16908
16909
16910 if $TRUEPRG; then
16911   HAVE_LINUX_OS_TRUE=
16912   HAVE_LINUX_OS_FALSE='#'
16913 else
16914   HAVE_LINUX_OS_TRUE='#'
16915   HAVE_LINUX_OS_FALSE=
16916 fi
16917         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16918
16919 else
16920
16921
16922 if $FALSEPRG; then
16923   HAVE_LINUX_OS_TRUE=
16924   HAVE_LINUX_OS_FALSE='#'
16925 else
16926   HAVE_LINUX_OS_TRUE='#'
16927   HAVE_LINUX_OS_FALSE=
16928 fi
16929 fi
16930
16931 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16932 then
16933
16934
16935 if $TRUEPRG; then
16936   HAVE_FREEBSD_OS_TRUE=
16937   HAVE_FREEBSD_OS_FALSE='#'
16938 else
16939   HAVE_FREEBSD_OS_TRUE='#'
16940   HAVE_FREEBSD_OS_FALSE=
16941 fi
16942         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16943
16944 else
16945
16946
16947 if $FALSEPRG; then
16948   HAVE_FREEBSD_OS_TRUE=
16949   HAVE_FREEBSD_OS_FALSE='#'
16950 else
16951   HAVE_FREEBSD_OS_TRUE='#'
16952   HAVE_FREEBSD_OS_FALSE=
16953 fi
16954 fi
16955
16956 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16957 then
16958
16959
16960 if $TRUEPRG; then
16961   HAVE_NETBSD_OS_TRUE=
16962   HAVE_NETBSD_OS_FALSE='#'
16963 else
16964   HAVE_NETBSD_OS_TRUE='#'
16965   HAVE_NETBSD_OS_FALSE=
16966 fi
16967         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16968
16969 else
16970
16971
16972 if $FALSEPRG; then
16973   HAVE_NETBSD_OS_TRUE=
16974   HAVE_NETBSD_OS_FALSE='#'
16975 else
16976   HAVE_NETBSD_OS_TRUE='#'
16977   HAVE_NETBSD_OS_FALSE=
16978 fi
16979 fi
16980
16981 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16982 then
16983
16984
16985 if $TRUEPRG; then
16986   HAVE_OPENBSD_OS_TRUE=
16987   HAVE_OPENBSD_OS_FALSE='#'
16988 else
16989   HAVE_OPENBSD_OS_TRUE='#'
16990   HAVE_OPENBSD_OS_FALSE=
16991 fi
16992         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16993
16994 else
16995
16996
16997 if $FALSEPRG; then
16998   HAVE_OPENBSD_OS_TRUE=
16999   HAVE_OPENBSD_OS_FALSE='#'
17000 else
17001   HAVE_OPENBSD_OS_TRUE='#'
17002   HAVE_OPENBSD_OS_FALSE=
17003 fi
17004 fi
17005
17006 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17007 then
17008
17009
17010 if $TRUEPRG; then
17011   HAVE_BSDI_OS_TRUE=
17012   HAVE_BSDI_OS_FALSE='#'
17013 else
17014   HAVE_BSDI_OS_TRUE='#'
17015   HAVE_BSDI_OS_FALSE=
17016 fi
17017         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17018
17019 else
17020
17021
17022 if $FALSEPRG; then
17023   HAVE_BSDI_OS_TRUE=
17024   HAVE_BSDI_OS_FALSE='#'
17025 else
17026   HAVE_BSDI_OS_TRUE='#'
17027   HAVE_BSDI_OS_FALSE=
17028 fi
17029 fi
17030
17031 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17032 then
17033
17034
17035 if $TRUEPRG; then
17036   HAVE_SGI_OS_TRUE=
17037   HAVE_SGI_OS_FALSE='#'
17038 else
17039   HAVE_SGI_OS_TRUE='#'
17040   HAVE_SGI_OS_FALSE=
17041 fi
17042         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17043
17044 else
17045
17046
17047 if $FALSEPRG; then
17048   HAVE_SGI_OS_TRUE=
17049   HAVE_SGI_OS_FALSE='#'
17050 else
17051   HAVE_SGI_OS_TRUE='#'
17052   HAVE_SGI_OS_FALSE=
17053 fi
17054 fi
17055
17056 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17057 then
17058
17059
17060 if $TRUEPRG; then
17061   HAVE_IRIX_OS_TRUE=
17062   HAVE_IRIX_OS_FALSE='#'
17063 else
17064   HAVE_IRIX_OS_TRUE='#'
17065   HAVE_IRIX_OS_FALSE=
17066 fi
17067         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17068
17069 else
17070
17071
17072 if $FALSEPRG; then
17073   HAVE_IRIX_OS_TRUE=
17074   HAVE_IRIX_OS_FALSE='#'
17075 else
17076   HAVE_IRIX_OS_TRUE='#'
17077   HAVE_IRIX_OS_FALSE=
17078 fi
17079 fi
17080
17081 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17082 then
17083
17084
17085 if $TRUEPRG; then
17086   HAVE_DARWIN_OS_TRUE=
17087   HAVE_DARWIN_OS_FALSE='#'
17088 else
17089   HAVE_DARWIN_OS_TRUE='#'
17090   HAVE_DARWIN_OS_FALSE=
17091 fi
17092     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17093
17094 else
17095
17096
17097 if $FALSEPRG; then
17098   HAVE_DARWIN_OS_TRUE=
17099   HAVE_DARWIN_OS_FALSE='#'
17100 else
17101   HAVE_DARWIN_OS_TRUE='#'
17102   HAVE_DARWIN_OS_FALSE=
17103 fi
17104 fi
17105
17106 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17107 then
17108
17109
17110 if $TRUEPRG; then
17111   HAVE_KFREEBSD_OS_TRUE=
17112   HAVE_KFREEBSD_OS_FALSE='#'
17113 else
17114   HAVE_KFREEBSD_OS_TRUE='#'
17115   HAVE_KFREEBSD_OS_FALSE=
17116 fi
17117     $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17118
17119 else
17120
17121
17122 if $FALSEPRG; then
17123   HAVE_KFREEBSD_OS_TRUE=
17124   HAVE_KFREEBSD_OS_FALSE='#'
17125 else
17126   HAVE_KFREEBSD_OS_TRUE='#'
17127   HAVE_KFREEBSD_OS_FALSE=
17128 fi
17129 fi
17130
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17133 $as_echo_n "checking for Operating System Distribution... " >&6; }
17134 if test "x$DISTNAME" != "x"
17135 then
17136         echo "distname set to $DISTNAME"
17137 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17138 then
17139         DISTNAME=alpha
17140 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17141 then
17142         DISTNAME=aix
17143 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17144 then
17145         DISTNAME=hpux
17146 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17147 then
17148         DISTNAME=solaris
17149 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17150 then
17151         DISTNAME=hurd
17152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17153 then
17154         DISTNAME=freebsd
17155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17156 then
17157         DISTNAME=netbsd
17158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17159 then
17160         DISTNAME=openbsd
17161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17162 then
17163         DISTNAME=irix
17164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17165 then
17166         DISTNAME=bsdi
17167 elif test -f /etc/SuSE-release
17168 then
17169         DISTNAME=suse
17170 elif test -d /etc/SuSEconfig
17171 then
17172         DISTNAME=suse5
17173 elif test -f /etc/mandrake-release
17174 then
17175         DISTNAME=mandrake
17176 elif test -f /etc/whitebox-release
17177 then
17178        DISTNAME=redhat
17179 elif test -f /etc/redhat-release
17180 then
17181         DISTNAME=redhat
17182 elif test -f /etc/gentoo-release
17183 then
17184         DISTNAME=gentoo
17185 elif test -f /etc/debian_version
17186 then
17187         DISTNAME=debian
17188 elif test -f /etc/slackware-version
17189 then
17190         DISTNAME=slackware
17191 elif test x$host_vendor = xapple
17192 then
17193     DISTNAME=osx
17194 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17195 then
17196     DISTNAME=darwin
17197 elif test -f /etc/engarde-version
17198 then
17199         DISTNAME=engarde
17200 elif test -f /etc/arch-release
17201 then
17202         DISTNAME=archlinux
17203 elif test "$CYGWIN" = yes
17204 then
17205         DISTNAME=cygwin
17206         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17207
17208 else
17209         DISTNAME=unknown
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17212 $as_echo "done" >&6; }
17213
17214
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17217 set x ${MAKE-make}
17218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17219 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17220   $as_echo_n "(cached) " >&6
17221 else
17222   cat >conftest.make <<\_ACEOF
17223 SHELL = /bin/sh
17224 all:
17225         @echo '@@@%%%=$(MAKE)=@@@%%%'
17226 _ACEOF
17227 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17229   *@@@%%%=?*=@@@%%%*)
17230     eval ac_cv_prog_make_${ac_make}_set=yes;;
17231   *)
17232     eval ac_cv_prog_make_${ac_make}_set=no;;
17233 esac
17234 rm -f conftest.make
17235 fi
17236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17238 $as_echo "yes" >&6; }
17239   SET_MAKE=
17240 else
17241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242 $as_echo "no" >&6; }
17243   SET_MAKE="MAKE=${MAKE-make}"
17244 fi
17245
17246
17247
17248         MKINSTALLDIRS=
17249   if test -n "$ac_aux_dir"; then
17250     case "$ac_aux_dir" in
17251       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17252       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17253     esac
17254   fi
17255   if test -z "$MKINSTALLDIRS"; then
17256     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17257   fi
17258
17259
17260
17261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17262 $as_echo_n "checking whether NLS is requested... " >&6; }
17263     # Check whether --enable-nls was given.
17264 if test "${enable_nls+set}" = set; then :
17265   enableval=$enable_nls; USE_NLS=$enableval
17266 else
17267   USE_NLS=yes
17268 fi
17269
17270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17271 $as_echo "$USE_NLS" >&6; }
17272
17273
17274
17275
17276
17277
17278 # Prepare PATH_SEPARATOR.
17279 # The user is always right.
17280 if test "${PATH_SEPARATOR+set}" != set; then
17281   echo "#! /bin/sh" >conf$$.sh
17282   echo  "exit 0"   >>conf$$.sh
17283   chmod +x conf$$.sh
17284   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17285     PATH_SEPARATOR=';'
17286   else
17287     PATH_SEPARATOR=:
17288   fi
17289   rm -f conf$$.sh
17290 fi
17291
17292 # Find out how to test for executable files. Don't use a zero-byte file,
17293 # as systems may use methods other than mode bits to determine executability.
17294 cat >conf$$.file <<_ASEOF
17295 #! /bin/sh
17296 exit 0
17297 _ASEOF
17298 chmod +x conf$$.file
17299 if test -x conf$$.file >/dev/null 2>&1; then
17300   ac_executable_p="test -x"
17301 else
17302   ac_executable_p="test -f"
17303 fi
17304 rm -f conf$$.file
17305
17306 # Extract the first word of "msgfmt", so it can be a program name with args.
17307 set dummy msgfmt; ac_word=$2
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17309 $as_echo_n "checking for $ac_word... " >&6; }
17310 if ${ac_cv_path_MSGFMT+:} false; then :
17311   $as_echo_n "(cached) " >&6
17312 else
17313   case "$MSGFMT" in
17314   [\\/]* | ?:[\\/]*)
17315     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17316     ;;
17317   *)
17318     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17319     for ac_dir in $PATH; do
17320       IFS="$ac_save_IFS"
17321       test -z "$ac_dir" && ac_dir=.
17322       for ac_exec_ext in '' $ac_executable_extensions; do
17323         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17324           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17325           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17326      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17327             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17328             break 2
17329           fi
17330         fi
17331       done
17332     done
17333     IFS="$ac_save_IFS"
17334   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17335     ;;
17336 esac
17337 fi
17338 MSGFMT="$ac_cv_path_MSGFMT"
17339 if test "$MSGFMT" != ":"; then
17340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17341 $as_echo "$MSGFMT" >&6; }
17342 else
17343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17345 fi
17346
17347   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17348 set dummy gmsgfmt; ac_word=$2
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17350 $as_echo_n "checking for $ac_word... " >&6; }
17351 if ${ac_cv_path_GMSGFMT+:} false; then :
17352   $as_echo_n "(cached) " >&6
17353 else
17354   case $GMSGFMT in
17355   [\\/]* | ?:[\\/]*)
17356   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17357   ;;
17358   *)
17359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17360 for as_dir in $PATH
17361 do
17362   IFS=$as_save_IFS
17363   test -z "$as_dir" && as_dir=.
17364     for ac_exec_ext in '' $ac_executable_extensions; do
17365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17366     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17368     break 2
17369   fi
17370 done
17371   done
17372 IFS=$as_save_IFS
17373
17374   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17375   ;;
17376 esac
17377 fi
17378 GMSGFMT=$ac_cv_path_GMSGFMT
17379 if test -n "$GMSGFMT"; then
17380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17381 $as_echo "$GMSGFMT" >&6; }
17382 else
17383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17385 fi
17386
17387
17388
17389
17390 # Prepare PATH_SEPARATOR.
17391 # The user is always right.
17392 if test "${PATH_SEPARATOR+set}" != set; then
17393   echo "#! /bin/sh" >conf$$.sh
17394   echo  "exit 0"   >>conf$$.sh
17395   chmod +x conf$$.sh
17396   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17397     PATH_SEPARATOR=';'
17398   else
17399     PATH_SEPARATOR=:
17400   fi
17401   rm -f conf$$.sh
17402 fi
17403
17404 # Find out how to test for executable files. Don't use a zero-byte file,
17405 # as systems may use methods other than mode bits to determine executability.
17406 cat >conf$$.file <<_ASEOF
17407 #! /bin/sh
17408 exit 0
17409 _ASEOF
17410 chmod +x conf$$.file
17411 if test -x conf$$.file >/dev/null 2>&1; then
17412   ac_executable_p="test -x"
17413 else
17414   ac_executable_p="test -f"
17415 fi
17416 rm -f conf$$.file
17417
17418 # Extract the first word of "xgettext", so it can be a program name with args.
17419 set dummy xgettext; ac_word=$2
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17421 $as_echo_n "checking for $ac_word... " >&6; }
17422 if ${ac_cv_path_XGETTEXT+:} false; then :
17423   $as_echo_n "(cached) " >&6
17424 else
17425   case "$XGETTEXT" in
17426   [\\/]* | ?:[\\/]*)
17427     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17428     ;;
17429   *)
17430     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17431     for ac_dir in $PATH; do
17432       IFS="$ac_save_IFS"
17433       test -z "$ac_dir" && ac_dir=.
17434       for ac_exec_ext in '' $ac_executable_extensions; do
17435         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17436           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17437           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17438      (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
17439             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17440             break 2
17441           fi
17442         fi
17443       done
17444     done
17445     IFS="$ac_save_IFS"
17446   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17447     ;;
17448 esac
17449 fi
17450 XGETTEXT="$ac_cv_path_XGETTEXT"
17451 if test "$XGETTEXT" != ":"; then
17452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17453 $as_echo "$XGETTEXT" >&6; }
17454 else
17455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456 $as_echo "no" >&6; }
17457 fi
17458
17459     rm -f messages.po
17460
17461
17462 # Prepare PATH_SEPARATOR.
17463 # The user is always right.
17464 if test "${PATH_SEPARATOR+set}" != set; then
17465   echo "#! /bin/sh" >conf$$.sh
17466   echo  "exit 0"   >>conf$$.sh
17467   chmod +x conf$$.sh
17468   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17469     PATH_SEPARATOR=';'
17470   else
17471     PATH_SEPARATOR=:
17472   fi
17473   rm -f conf$$.sh
17474 fi
17475
17476 # Find out how to test for executable files. Don't use a zero-byte file,
17477 # as systems may use methods other than mode bits to determine executability.
17478 cat >conf$$.file <<_ASEOF
17479 #! /bin/sh
17480 exit 0
17481 _ASEOF
17482 chmod +x conf$$.file
17483 if test -x conf$$.file >/dev/null 2>&1; then
17484   ac_executable_p="test -x"
17485 else
17486   ac_executable_p="test -f"
17487 fi
17488 rm -f conf$$.file
17489
17490 # Extract the first word of "msgmerge", so it can be a program name with args.
17491 set dummy msgmerge; ac_word=$2
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17493 $as_echo_n "checking for $ac_word... " >&6; }
17494 if ${ac_cv_path_MSGMERGE+:} false; then :
17495   $as_echo_n "(cached) " >&6
17496 else
17497   case "$MSGMERGE" in
17498   [\\/]* | ?:[\\/]*)
17499     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17500     ;;
17501   *)
17502     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17503     for ac_dir in $PATH; do
17504       IFS="$ac_save_IFS"
17505       test -z "$ac_dir" && ac_dir=.
17506       for ac_exec_ext in '' $ac_executable_extensions; do
17507         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17508           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17509           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17510             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17511             break 2
17512           fi
17513         fi
17514       done
17515     done
17516     IFS="$ac_save_IFS"
17517   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17518     ;;
17519 esac
17520 fi
17521 MSGMERGE="$ac_cv_path_MSGMERGE"
17522 if test "$MSGMERGE" != ":"; then
17523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17524 $as_echo "$MSGMERGE" >&6; }
17525 else
17526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17527 $as_echo "no" >&6; }
17528 fi
17529
17530
17531       if test "$GMSGFMT" != ":"; then
17532             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17533        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17534       : ;
17535     else
17536       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17538 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17539       GMSGFMT=":"
17540     fi
17541   fi
17542
17543       if test "$XGETTEXT" != ":"; then
17544             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17545        (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
17546       : ;
17547     else
17548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17549 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17550       XGETTEXT=":"
17551     fi
17552         rm -f messages.po
17553   fi
17554
17555   ac_config_commands="$ac_config_commands default-1"
17556
17557
17558
17559       if test "X$prefix" = "XNONE"; then
17560     acl_final_prefix="$ac_default_prefix"
17561   else
17562     acl_final_prefix="$prefix"
17563   fi
17564   if test "X$exec_prefix" = "XNONE"; then
17565     acl_final_exec_prefix='${prefix}'
17566   else
17567     acl_final_exec_prefix="$exec_prefix"
17568   fi
17569   acl_save_prefix="$prefix"
17570   prefix="$acl_final_prefix"
17571   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17572   prefix="$acl_save_prefix"
17573
17574
17575 # Check whether --with-gnu-ld was given.
17576 if test "${with_gnu_ld+set}" = set; then :
17577   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17578 else
17579   with_gnu_ld=no
17580 fi
17581
17582 # Prepare PATH_SEPARATOR.
17583 # The user is always right.
17584 if test "${PATH_SEPARATOR+set}" != set; then
17585   echo "#! /bin/sh" >conf$$.sh
17586   echo  "exit 0"   >>conf$$.sh
17587   chmod +x conf$$.sh
17588   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17589     PATH_SEPARATOR=';'
17590   else
17591     PATH_SEPARATOR=:
17592   fi
17593   rm -f conf$$.sh
17594 fi
17595 ac_prog=ld
17596 if test "$GCC" = yes; then
17597   # Check if gcc -print-prog-name=ld gives a path.
17598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17599 $as_echo_n "checking for ld used by GCC... " >&6; }
17600   case $host in
17601   *-*-mingw*)
17602     # gcc leaves a trailing carriage return which upsets mingw
17603     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17604   *)
17605     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17606   esac
17607   case $ac_prog in
17608     # Accept absolute paths.
17609     [\\/]* | [A-Za-z]:[\\/]*)
17610       re_direlt='/[^/][^/]*/\.\./'
17611       # Canonicalize the path of ld
17612       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17613       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17614         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17615       done
17616       test -z "$LD" && LD="$ac_prog"
17617       ;;
17618   "")
17619     # If it fails, then pretend we aren't using GCC.
17620     ac_prog=ld
17621     ;;
17622   *)
17623     # If it is relative, then search for the first ld in PATH.
17624     with_gnu_ld=unknown
17625     ;;
17626   esac
17627 elif test "$with_gnu_ld" = yes; then
17628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17629 $as_echo_n "checking for GNU ld... " >&6; }
17630 else
17631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17632 $as_echo_n "checking for non-GNU ld... " >&6; }
17633 fi
17634 if ${acl_cv_path_LD+:} false; then :
17635   $as_echo_n "(cached) " >&6
17636 else
17637   if test -z "$LD"; then
17638   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17639   for ac_dir in $PATH; do
17640     test -z "$ac_dir" && ac_dir=.
17641     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17642       acl_cv_path_LD="$ac_dir/$ac_prog"
17643       # Check to see if the program is GNU ld.  I'd rather use --version,
17644       # but apparently some GNU ld's only accept -v.
17645       # Break only if it was the GNU/non-GNU ld that we prefer.
17646       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17647       *GNU* | *'with BFD'*)
17648         test "$with_gnu_ld" != no && break ;;
17649       *)
17650         test "$with_gnu_ld" != yes && break ;;
17651       esac
17652     fi
17653   done
17654   IFS="$ac_save_ifs"
17655 else
17656   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17657 fi
17658 fi
17659
17660 LD="$acl_cv_path_LD"
17661 if test -n "$LD"; then
17662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17663 $as_echo "$LD" >&6; }
17664 else
17665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666 $as_echo "no" >&6; }
17667 fi
17668 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17670 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17671 if ${acl_cv_prog_gnu_ld+:} false; then :
17672   $as_echo_n "(cached) " >&6
17673 else
17674   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17675 case `$LD -v 2>&1 </dev/null` in
17676 *GNU* | *'with BFD'*)
17677   acl_cv_prog_gnu_ld=yes ;;
17678 *)
17679   acl_cv_prog_gnu_ld=no ;;
17680 esac
17681 fi
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17683 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17684 with_gnu_ld=$acl_cv_prog_gnu_ld
17685
17686
17687
17688
17689                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17690 $as_echo_n "checking for shared library run path origin... " >&6; }
17691 if ${acl_cv_rpath+:} false; then :
17692   $as_echo_n "(cached) " >&6
17693 else
17694
17695     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17696     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17697     . ./conftest.sh
17698     rm -f ./conftest.sh
17699     acl_cv_rpath=done
17700
17701 fi
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17703 $as_echo "$acl_cv_rpath" >&6; }
17704   wl="$acl_cv_wl"
17705   libext="$acl_cv_libext"
17706   shlibext="$acl_cv_shlibext"
17707   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17708   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17709   hardcode_direct="$acl_cv_hardcode_direct"
17710   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17711     # Check whether --enable-rpath was given.
17712 if test "${enable_rpath+set}" = set; then :
17713   enableval=$enable_rpath; :
17714 else
17715   enable_rpath=yes
17716 fi
17717
17718
17719
17720
17721
17722
17723
17724
17725     use_additional=yes
17726
17727   acl_save_prefix="$prefix"
17728   prefix="$acl_final_prefix"
17729   acl_save_exec_prefix="$exec_prefix"
17730   exec_prefix="$acl_final_exec_prefix"
17731
17732     eval additional_includedir=\"$includedir\"
17733     eval additional_libdir=\"$libdir\"
17734
17735   exec_prefix="$acl_save_exec_prefix"
17736   prefix="$acl_save_prefix"
17737
17738
17739 # Check whether --with-libiconv-prefix was given.
17740 if test "${with_libiconv_prefix+set}" = set; then :
17741   withval=$with_libiconv_prefix;
17742     if test "X$withval" = "Xno"; then
17743       use_additional=no
17744     else
17745       if test "X$withval" = "X"; then
17746
17747   acl_save_prefix="$prefix"
17748   prefix="$acl_final_prefix"
17749   acl_save_exec_prefix="$exec_prefix"
17750   exec_prefix="$acl_final_exec_prefix"
17751
17752           eval additional_includedir=\"$includedir\"
17753           eval additional_libdir=\"$libdir\"
17754
17755   exec_prefix="$acl_save_exec_prefix"
17756   prefix="$acl_save_prefix"
17757
17758       else
17759         additional_includedir="$withval/include"
17760         additional_libdir="$withval/lib"
17761       fi
17762     fi
17763
17764 fi
17765
17766       LIBICONV=
17767   LTLIBICONV=
17768   INCICONV=
17769   rpathdirs=
17770   ltrpathdirs=
17771   names_already_handled=
17772   names_next_round='iconv '
17773   while test -n "$names_next_round"; do
17774     names_this_round="$names_next_round"
17775     names_next_round=
17776     for name in $names_this_round; do
17777       already_handled=
17778       for n in $names_already_handled; do
17779         if test "$n" = "$name"; then
17780           already_handled=yes
17781           break
17782         fi
17783       done
17784       if test -z "$already_handled"; then
17785         names_already_handled="$names_already_handled $name"
17786                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17787         eval value=\"\$HAVE_LIB$uppername\"
17788         if test -n "$value"; then
17789           if test "$value" = yes; then
17790             eval value=\"\$LIB$uppername\"
17791             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17792             eval value=\"\$LTLIB$uppername\"
17793             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17794           else
17795                                     :
17796           fi
17797         else
17798                               found_dir=
17799           found_la=
17800           found_so=
17801           found_a=
17802           if test $use_additional = yes; then
17803             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17804               found_dir="$additional_libdir"
17805               found_so="$additional_libdir/lib$name.$shlibext"
17806               if test -f "$additional_libdir/lib$name.la"; then
17807                 found_la="$additional_libdir/lib$name.la"
17808               fi
17809             else
17810               if test -f "$additional_libdir/lib$name.$libext"; then
17811                 found_dir="$additional_libdir"
17812                 found_a="$additional_libdir/lib$name.$libext"
17813                 if test -f "$additional_libdir/lib$name.la"; then
17814                   found_la="$additional_libdir/lib$name.la"
17815                 fi
17816               fi
17817             fi
17818           fi
17819           if test "X$found_dir" = "X"; then
17820             for x in $LDFLAGS $LTLIBICONV; do
17821
17822   acl_save_prefix="$prefix"
17823   prefix="$acl_final_prefix"
17824   acl_save_exec_prefix="$exec_prefix"
17825   exec_prefix="$acl_final_exec_prefix"
17826   eval x=\"$x\"
17827   exec_prefix="$acl_save_exec_prefix"
17828   prefix="$acl_save_prefix"
17829
17830               case "$x" in
17831                 -L*)
17832                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17833                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17834                     found_dir="$dir"
17835                     found_so="$dir/lib$name.$shlibext"
17836                     if test -f "$dir/lib$name.la"; then
17837                       found_la="$dir/lib$name.la"
17838                     fi
17839                   else
17840                     if test -f "$dir/lib$name.$libext"; then
17841                       found_dir="$dir"
17842                       found_a="$dir/lib$name.$libext"
17843                       if test -f "$dir/lib$name.la"; then
17844                         found_la="$dir/lib$name.la"
17845                       fi
17846                     fi
17847                   fi
17848                   ;;
17849               esac
17850               if test "X$found_dir" != "X"; then
17851                 break
17852               fi
17853             done
17854           fi
17855           if test "X$found_dir" != "X"; then
17856                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17857             if test "X$found_so" != "X"; then
17858                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17859                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17860               else
17861                                                                                 haveit=
17862                 for x in $ltrpathdirs; do
17863                   if test "X$x" = "X$found_dir"; then
17864                     haveit=yes
17865                     break
17866                   fi
17867                 done
17868                 if test -z "$haveit"; then
17869                   ltrpathdirs="$ltrpathdirs $found_dir"
17870                 fi
17871                                 if test "$hardcode_direct" = yes; then
17872                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17873                 else
17874                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17875                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17876                                                             haveit=
17877                     for x in $rpathdirs; do
17878                       if test "X$x" = "X$found_dir"; then
17879                         haveit=yes
17880                         break
17881                       fi
17882                     done
17883                     if test -z "$haveit"; then
17884                       rpathdirs="$rpathdirs $found_dir"
17885                     fi
17886                   else
17887                                                                                 haveit=
17888                     for x in $LDFLAGS $LIBICONV; do
17889
17890   acl_save_prefix="$prefix"
17891   prefix="$acl_final_prefix"
17892   acl_save_exec_prefix="$exec_prefix"
17893   exec_prefix="$acl_final_exec_prefix"
17894   eval x=\"$x\"
17895   exec_prefix="$acl_save_exec_prefix"
17896   prefix="$acl_save_prefix"
17897
17898                       if test "X$x" = "X-L$found_dir"; then
17899                         haveit=yes
17900                         break
17901                       fi
17902                     done
17903                     if test -z "$haveit"; then
17904                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17905                     fi
17906                     if test "$hardcode_minus_L" != no; then
17907                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17908                     else
17909                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17910                     fi
17911                   fi
17912                 fi
17913               fi
17914             else
17915               if test "X$found_a" != "X"; then
17916                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17917               else
17918                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17919               fi
17920             fi
17921                         additional_includedir=
17922             case "$found_dir" in
17923               */lib | */lib/)
17924                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17925                 additional_includedir="$basedir/include"
17926                 ;;
17927             esac
17928             if test "X$additional_includedir" != "X"; then
17929                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17930                 haveit=
17931                 if test "X$additional_includedir" = "X/usr/local/include"; then
17932                   if test -n "$GCC"; then
17933                     case $host_os in
17934                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17935                     esac
17936                   fi
17937                 fi
17938                 if test -z "$haveit"; then
17939                   for x in $CPPFLAGS $INCICONV; do
17940
17941   acl_save_prefix="$prefix"
17942   prefix="$acl_final_prefix"
17943   acl_save_exec_prefix="$exec_prefix"
17944   exec_prefix="$acl_final_exec_prefix"
17945   eval x=\"$x\"
17946   exec_prefix="$acl_save_exec_prefix"
17947   prefix="$acl_save_prefix"
17948
17949                     if test "X$x" = "X-I$additional_includedir"; then
17950                       haveit=yes
17951                       break
17952                     fi
17953                   done
17954                   if test -z "$haveit"; then
17955                     if test -d "$additional_includedir"; then
17956                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17957                     fi
17958                   fi
17959                 fi
17960               fi
17961             fi
17962                         if test -n "$found_la"; then
17963                                                         save_libdir="$libdir"
17964               case "$found_la" in
17965                 */* | *\\*) . "$found_la" ;;
17966                 *) . "./$found_la" ;;
17967               esac
17968               libdir="$save_libdir"
17969                             for dep in $dependency_libs; do
17970                 case "$dep" in
17971                   -L*)
17972                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17973                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17974                       haveit=
17975                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17976                         if test -n "$GCC"; then
17977                           case $host_os in
17978                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17979                           esac
17980                         fi
17981                       fi
17982                       if test -z "$haveit"; then
17983                         haveit=
17984                         for x in $LDFLAGS $LIBICONV; do
17985
17986   acl_save_prefix="$prefix"
17987   prefix="$acl_final_prefix"
17988   acl_save_exec_prefix="$exec_prefix"
17989   exec_prefix="$acl_final_exec_prefix"
17990   eval x=\"$x\"
17991   exec_prefix="$acl_save_exec_prefix"
17992   prefix="$acl_save_prefix"
17993
17994                           if test "X$x" = "X-L$additional_libdir"; then
17995                             haveit=yes
17996                             break
17997                           fi
17998                         done
17999                         if test -z "$haveit"; then
18000                           if test -d "$additional_libdir"; then
18001                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18002                           fi
18003                         fi
18004                         haveit=
18005                         for x in $LDFLAGS $LTLIBICONV; do
18006
18007   acl_save_prefix="$prefix"
18008   prefix="$acl_final_prefix"
18009   acl_save_exec_prefix="$exec_prefix"
18010   exec_prefix="$acl_final_exec_prefix"
18011   eval x=\"$x\"
18012   exec_prefix="$acl_save_exec_prefix"
18013   prefix="$acl_save_prefix"
18014
18015                           if test "X$x" = "X-L$additional_libdir"; then
18016                             haveit=yes
18017                             break
18018                           fi
18019                         done
18020                         if test -z "$haveit"; then
18021                           if test -d "$additional_libdir"; then
18022                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18023                           fi
18024                         fi
18025                       fi
18026                     fi
18027                     ;;
18028                   -R*)
18029                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18030                     if test "$enable_rpath" != no; then
18031                                                                   haveit=
18032                       for x in $rpathdirs; do
18033                         if test "X$x" = "X$dir"; then
18034                           haveit=yes
18035                           break
18036                         fi
18037                       done
18038                       if test -z "$haveit"; then
18039                         rpathdirs="$rpathdirs $dir"
18040                       fi
18041                                                                   haveit=
18042                       for x in $ltrpathdirs; do
18043                         if test "X$x" = "X$dir"; then
18044                           haveit=yes
18045                           break
18046                         fi
18047                       done
18048                       if test -z "$haveit"; then
18049                         ltrpathdirs="$ltrpathdirs $dir"
18050                       fi
18051                     fi
18052                     ;;
18053                   -l*)
18054                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18055                     ;;
18056                   *.la)
18057                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18058                     ;;
18059                   *)
18060                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18061                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18062                     ;;
18063                 esac
18064               done
18065             fi
18066           else
18067                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18068             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18069           fi
18070         fi
18071       fi
18072     done
18073   done
18074   if test "X$rpathdirs" != "X"; then
18075     if test -n "$hardcode_libdir_separator"; then
18076                         alldirs=
18077       for found_dir in $rpathdirs; do
18078         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18079       done
18080             acl_save_libdir="$libdir"
18081       libdir="$alldirs"
18082       eval flag=\"$hardcode_libdir_flag_spec\"
18083       libdir="$acl_save_libdir"
18084       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18085     else
18086             for found_dir in $rpathdirs; do
18087         acl_save_libdir="$libdir"
18088         libdir="$found_dir"
18089         eval flag=\"$hardcode_libdir_flag_spec\"
18090         libdir="$acl_save_libdir"
18091         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18092       done
18093     fi
18094   fi
18095   if test "X$ltrpathdirs" != "X"; then
18096             for found_dir in $ltrpathdirs; do
18097       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18098     done
18099   fi
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18119 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18120 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18121   $as_echo_n "(cached) " >&6
18122 else
18123   gt_save_CPPFLAGS="$CPPFLAGS"
18124      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18125      gt_save_LIBS="$LIBS"
18126      LIBS="$LIBS -framework CoreFoundation"
18127      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h.  */
18129 #include <CFPreferences.h>
18130 int
18131 main ()
18132 {
18133 CFPreferencesCopyAppValue(NULL, NULL)
18134   ;
18135   return 0;
18136 }
18137 _ACEOF
18138 if ac_fn_c_try_link "$LINENO"; then :
18139   gt_cv_func_CFPreferencesCopyAppValue=yes
18140 else
18141   gt_cv_func_CFPreferencesCopyAppValue=no
18142 fi
18143 rm -f core conftest.err conftest.$ac_objext \
18144     conftest$ac_exeext conftest.$ac_ext
18145      CPPFLAGS="$gt_save_CPPFLAGS"
18146      LIBS="$gt_save_LIBS"
18147 fi
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18149 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18150   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18151
18152 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18153
18154   fi
18155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18156 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18157 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18158   $as_echo_n "(cached) " >&6
18159 else
18160   gt_save_CPPFLAGS="$CPPFLAGS"
18161      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18162      gt_save_LIBS="$LIBS"
18163      LIBS="$LIBS -framework CoreFoundation"
18164      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h.  */
18166 #include <CFLocale.h>
18167 int
18168 main ()
18169 {
18170 CFLocaleCopyCurrent();
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 if ac_fn_c_try_link "$LINENO"; then :
18176   gt_cv_func_CFLocaleCopyCurrent=yes
18177 else
18178   gt_cv_func_CFLocaleCopyCurrent=no
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext \
18181     conftest$ac_exeext conftest.$ac_ext
18182      CPPFLAGS="$gt_save_CPPFLAGS"
18183      LIBS="$gt_save_LIBS"
18184 fi
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18186 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18187   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18188
18189 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18190
18191   fi
18192   INTL_MACOSX_LIBS=
18193   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18194     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18195   fi
18196
18197
18198
18199
18200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18201 $as_echo_n "checking whether NLS is requested... " >&6; }
18202     # Check whether --enable-nls was given.
18203 if test "${enable_nls+set}" = set; then :
18204   enableval=$enable_nls; USE_NLS=$enableval
18205 else
18206   USE_NLS=yes
18207 fi
18208
18209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18210 $as_echo "$USE_NLS" >&6; }
18211
18212
18213
18214
18215   LIBINTL=
18216   LTLIBINTL=
18217   POSUB=
18218
18219     if test "$USE_NLS" = "yes"; then
18220     gt_use_preinstalled_gnugettext=no
18221
18222
18223
18224
18225
18226
18227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18228 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18229 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18230   $as_echo_n "(cached) " >&6
18231 else
18232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h.  */
18234 #include <libintl.h>
18235 extern int _nl_msg_cat_cntr;
18236 extern int *_nl_domain_bindings;
18237 int
18238 main ()
18239 {
18240 bindtextdomain ("", "");
18241 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 if ac_fn_c_try_link "$LINENO"; then :
18247   gt_cv_func_gnugettext1_libc=yes
18248 else
18249   gt_cv_func_gnugettext1_libc=no
18250 fi
18251 rm -f core conftest.err conftest.$ac_objext \
18252     conftest$ac_exeext conftest.$ac_ext
18253 fi
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18255 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18256
18257         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18258
18259
18260
18261
18262
18263           am_save_CPPFLAGS="$CPPFLAGS"
18264
18265   for element in $INCICONV; do
18266     haveit=
18267     for x in $CPPFLAGS; do
18268
18269   acl_save_prefix="$prefix"
18270   prefix="$acl_final_prefix"
18271   acl_save_exec_prefix="$exec_prefix"
18272   exec_prefix="$acl_final_exec_prefix"
18273   eval x=\"$x\"
18274   exec_prefix="$acl_save_exec_prefix"
18275   prefix="$acl_save_prefix"
18276
18277       if test "X$x" = "X$element"; then
18278         haveit=yes
18279         break
18280       fi
18281     done
18282     if test -z "$haveit"; then
18283       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18284     fi
18285   done
18286
18287
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18289 $as_echo_n "checking for iconv... " >&6; }
18290 if ${am_cv_func_iconv+:} false; then :
18291   $as_echo_n "(cached) " >&6
18292 else
18293
18294     am_cv_func_iconv="no, consider installing GNU libiconv"
18295     am_cv_lib_iconv=no
18296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h.  */
18298 #include <stdlib.h>
18299 #include <iconv.h>
18300 int
18301 main ()
18302 {
18303 iconv_t cd = iconv_open("","");
18304        iconv(cd,NULL,NULL,NULL,NULL);
18305        iconv_close(cd);
18306   ;
18307   return 0;
18308 }
18309 _ACEOF
18310 if ac_fn_c_try_link "$LINENO"; then :
18311   am_cv_func_iconv=yes
18312 fi
18313 rm -f core conftest.err conftest.$ac_objext \
18314     conftest$ac_exeext conftest.$ac_ext
18315     if test "$am_cv_func_iconv" != yes; then
18316       am_save_LIBS="$LIBS"
18317       LIBS="$LIBS $LIBICONV"
18318       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h.  */
18320 #include <stdlib.h>
18321 #include <iconv.h>
18322 int
18323 main ()
18324 {
18325 iconv_t cd = iconv_open("","");
18326          iconv(cd,NULL,NULL,NULL,NULL);
18327          iconv_close(cd);
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 if ac_fn_c_try_link "$LINENO"; then :
18333   am_cv_lib_iconv=yes
18334         am_cv_func_iconv=yes
18335 fi
18336 rm -f core conftest.err conftest.$ac_objext \
18337     conftest$ac_exeext conftest.$ac_ext
18338       LIBS="$am_save_LIBS"
18339     fi
18340
18341 fi
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18343 $as_echo "$am_cv_func_iconv" >&6; }
18344   if test "$am_cv_func_iconv" = yes; then
18345
18346 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18347
18348   fi
18349   if test "$am_cv_lib_iconv" = yes; then
18350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18351 $as_echo_n "checking how to link with libiconv... " >&6; }
18352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18353 $as_echo "$LIBICONV" >&6; }
18354   else
18355             CPPFLAGS="$am_save_CPPFLAGS"
18356     LIBICONV=
18357     LTLIBICONV=
18358   fi
18359
18360
18361
18362
18363
18364
18365     use_additional=yes
18366
18367   acl_save_prefix="$prefix"
18368   prefix="$acl_final_prefix"
18369   acl_save_exec_prefix="$exec_prefix"
18370   exec_prefix="$acl_final_exec_prefix"
18371
18372     eval additional_includedir=\"$includedir\"
18373     eval additional_libdir=\"$libdir\"
18374
18375   exec_prefix="$acl_save_exec_prefix"
18376   prefix="$acl_save_prefix"
18377
18378
18379 # Check whether --with-libintl-prefix was given.
18380 if test "${with_libintl_prefix+set}" = set; then :
18381   withval=$with_libintl_prefix;
18382     if test "X$withval" = "Xno"; then
18383       use_additional=no
18384     else
18385       if test "X$withval" = "X"; then
18386
18387   acl_save_prefix="$prefix"
18388   prefix="$acl_final_prefix"
18389   acl_save_exec_prefix="$exec_prefix"
18390   exec_prefix="$acl_final_exec_prefix"
18391
18392           eval additional_includedir=\"$includedir\"
18393           eval additional_libdir=\"$libdir\"
18394
18395   exec_prefix="$acl_save_exec_prefix"
18396   prefix="$acl_save_prefix"
18397
18398       else
18399         additional_includedir="$withval/include"
18400         additional_libdir="$withval/lib"
18401       fi
18402     fi
18403
18404 fi
18405
18406       LIBINTL=
18407   LTLIBINTL=
18408   INCINTL=
18409   rpathdirs=
18410   ltrpathdirs=
18411   names_already_handled=
18412   names_next_round='intl '
18413   while test -n "$names_next_round"; do
18414     names_this_round="$names_next_round"
18415     names_next_round=
18416     for name in $names_this_round; do
18417       already_handled=
18418       for n in $names_already_handled; do
18419         if test "$n" = "$name"; then
18420           already_handled=yes
18421           break
18422         fi
18423       done
18424       if test -z "$already_handled"; then
18425         names_already_handled="$names_already_handled $name"
18426                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18427         eval value=\"\$HAVE_LIB$uppername\"
18428         if test -n "$value"; then
18429           if test "$value" = yes; then
18430             eval value=\"\$LIB$uppername\"
18431             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18432             eval value=\"\$LTLIB$uppername\"
18433             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18434           else
18435                                     :
18436           fi
18437         else
18438                               found_dir=
18439           found_la=
18440           found_so=
18441           found_a=
18442           if test $use_additional = yes; then
18443             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18444               found_dir="$additional_libdir"
18445               found_so="$additional_libdir/lib$name.$shlibext"
18446               if test -f "$additional_libdir/lib$name.la"; then
18447                 found_la="$additional_libdir/lib$name.la"
18448               fi
18449             else
18450               if test -f "$additional_libdir/lib$name.$libext"; then
18451                 found_dir="$additional_libdir"
18452                 found_a="$additional_libdir/lib$name.$libext"
18453                 if test -f "$additional_libdir/lib$name.la"; then
18454                   found_la="$additional_libdir/lib$name.la"
18455                 fi
18456               fi
18457             fi
18458           fi
18459           if test "X$found_dir" = "X"; then
18460             for x in $LDFLAGS $LTLIBINTL; do
18461
18462   acl_save_prefix="$prefix"
18463   prefix="$acl_final_prefix"
18464   acl_save_exec_prefix="$exec_prefix"
18465   exec_prefix="$acl_final_exec_prefix"
18466   eval x=\"$x\"
18467   exec_prefix="$acl_save_exec_prefix"
18468   prefix="$acl_save_prefix"
18469
18470               case "$x" in
18471                 -L*)
18472                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18473                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18474                     found_dir="$dir"
18475                     found_so="$dir/lib$name.$shlibext"
18476                     if test -f "$dir/lib$name.la"; then
18477                       found_la="$dir/lib$name.la"
18478                     fi
18479                   else
18480                     if test -f "$dir/lib$name.$libext"; then
18481                       found_dir="$dir"
18482                       found_a="$dir/lib$name.$libext"
18483                       if test -f "$dir/lib$name.la"; then
18484                         found_la="$dir/lib$name.la"
18485                       fi
18486                     fi
18487                   fi
18488                   ;;
18489               esac
18490               if test "X$found_dir" != "X"; then
18491                 break
18492               fi
18493             done
18494           fi
18495           if test "X$found_dir" != "X"; then
18496                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18497             if test "X$found_so" != "X"; then
18498                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18499                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18500               else
18501                                                                                 haveit=
18502                 for x in $ltrpathdirs; do
18503                   if test "X$x" = "X$found_dir"; then
18504                     haveit=yes
18505                     break
18506                   fi
18507                 done
18508                 if test -z "$haveit"; then
18509                   ltrpathdirs="$ltrpathdirs $found_dir"
18510                 fi
18511                                 if test "$hardcode_direct" = yes; then
18512                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18513                 else
18514                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18515                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18516                                                             haveit=
18517                     for x in $rpathdirs; do
18518                       if test "X$x" = "X$found_dir"; then
18519                         haveit=yes
18520                         break
18521                       fi
18522                     done
18523                     if test -z "$haveit"; then
18524                       rpathdirs="$rpathdirs $found_dir"
18525                     fi
18526                   else
18527                                                                                 haveit=
18528                     for x in $LDFLAGS $LIBINTL; do
18529
18530   acl_save_prefix="$prefix"
18531   prefix="$acl_final_prefix"
18532   acl_save_exec_prefix="$exec_prefix"
18533   exec_prefix="$acl_final_exec_prefix"
18534   eval x=\"$x\"
18535   exec_prefix="$acl_save_exec_prefix"
18536   prefix="$acl_save_prefix"
18537
18538                       if test "X$x" = "X-L$found_dir"; then
18539                         haveit=yes
18540                         break
18541                       fi
18542                     done
18543                     if test -z "$haveit"; then
18544                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18545                     fi
18546                     if test "$hardcode_minus_L" != no; then
18547                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18548                     else
18549                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18550                     fi
18551                   fi
18552                 fi
18553               fi
18554             else
18555               if test "X$found_a" != "X"; then
18556                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18557               else
18558                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18559               fi
18560             fi
18561                         additional_includedir=
18562             case "$found_dir" in
18563               */lib | */lib/)
18564                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18565                 additional_includedir="$basedir/include"
18566                 ;;
18567             esac
18568             if test "X$additional_includedir" != "X"; then
18569                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18570                 haveit=
18571                 if test "X$additional_includedir" = "X/usr/local/include"; then
18572                   if test -n "$GCC"; then
18573                     case $host_os in
18574                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18575                     esac
18576                   fi
18577                 fi
18578                 if test -z "$haveit"; then
18579                   for x in $CPPFLAGS $INCINTL; do
18580
18581   acl_save_prefix="$prefix"
18582   prefix="$acl_final_prefix"
18583   acl_save_exec_prefix="$exec_prefix"
18584   exec_prefix="$acl_final_exec_prefix"
18585   eval x=\"$x\"
18586   exec_prefix="$acl_save_exec_prefix"
18587   prefix="$acl_save_prefix"
18588
18589                     if test "X$x" = "X-I$additional_includedir"; then
18590                       haveit=yes
18591                       break
18592                     fi
18593                   done
18594                   if test -z "$haveit"; then
18595                     if test -d "$additional_includedir"; then
18596                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18597                     fi
18598                   fi
18599                 fi
18600               fi
18601             fi
18602                         if test -n "$found_la"; then
18603                                                         save_libdir="$libdir"
18604               case "$found_la" in
18605                 */* | *\\*) . "$found_la" ;;
18606                 *) . "./$found_la" ;;
18607               esac
18608               libdir="$save_libdir"
18609                             for dep in $dependency_libs; do
18610                 case "$dep" in
18611                   -L*)
18612                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18613                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18614                       haveit=
18615                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18616                         if test -n "$GCC"; then
18617                           case $host_os in
18618                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18619                           esac
18620                         fi
18621                       fi
18622                       if test -z "$haveit"; then
18623                         haveit=
18624                         for x in $LDFLAGS $LIBINTL; do
18625
18626   acl_save_prefix="$prefix"
18627   prefix="$acl_final_prefix"
18628   acl_save_exec_prefix="$exec_prefix"
18629   exec_prefix="$acl_final_exec_prefix"
18630   eval x=\"$x\"
18631   exec_prefix="$acl_save_exec_prefix"
18632   prefix="$acl_save_prefix"
18633
18634                           if test "X$x" = "X-L$additional_libdir"; then
18635                             haveit=yes
18636                             break
18637                           fi
18638                         done
18639                         if test -z "$haveit"; then
18640                           if test -d "$additional_libdir"; then
18641                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18642                           fi
18643                         fi
18644                         haveit=
18645                         for x in $LDFLAGS $LTLIBINTL; do
18646
18647   acl_save_prefix="$prefix"
18648   prefix="$acl_final_prefix"
18649   acl_save_exec_prefix="$exec_prefix"
18650   exec_prefix="$acl_final_exec_prefix"
18651   eval x=\"$x\"
18652   exec_prefix="$acl_save_exec_prefix"
18653   prefix="$acl_save_prefix"
18654
18655                           if test "X$x" = "X-L$additional_libdir"; then
18656                             haveit=yes
18657                             break
18658                           fi
18659                         done
18660                         if test -z "$haveit"; then
18661                           if test -d "$additional_libdir"; then
18662                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18663                           fi
18664                         fi
18665                       fi
18666                     fi
18667                     ;;
18668                   -R*)
18669                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18670                     if test "$enable_rpath" != no; then
18671                                                                   haveit=
18672                       for x in $rpathdirs; do
18673                         if test "X$x" = "X$dir"; then
18674                           haveit=yes
18675                           break
18676                         fi
18677                       done
18678                       if test -z "$haveit"; then
18679                         rpathdirs="$rpathdirs $dir"
18680                       fi
18681                                                                   haveit=
18682                       for x in $ltrpathdirs; do
18683                         if test "X$x" = "X$dir"; then
18684                           haveit=yes
18685                           break
18686                         fi
18687                       done
18688                       if test -z "$haveit"; then
18689                         ltrpathdirs="$ltrpathdirs $dir"
18690                       fi
18691                     fi
18692                     ;;
18693                   -l*)
18694                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18695                     ;;
18696                   *.la)
18697                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18698                     ;;
18699                   *)
18700                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18701                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18702                     ;;
18703                 esac
18704               done
18705             fi
18706           else
18707                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18708             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18709           fi
18710         fi
18711       fi
18712     done
18713   done
18714   if test "X$rpathdirs" != "X"; then
18715     if test -n "$hardcode_libdir_separator"; then
18716                         alldirs=
18717       for found_dir in $rpathdirs; do
18718         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18719       done
18720             acl_save_libdir="$libdir"
18721       libdir="$alldirs"
18722       eval flag=\"$hardcode_libdir_flag_spec\"
18723       libdir="$acl_save_libdir"
18724       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18725     else
18726             for found_dir in $rpathdirs; do
18727         acl_save_libdir="$libdir"
18728         libdir="$found_dir"
18729         eval flag=\"$hardcode_libdir_flag_spec\"
18730         libdir="$acl_save_libdir"
18731         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18732       done
18733     fi
18734   fi
18735   if test "X$ltrpathdirs" != "X"; then
18736             for found_dir in $ltrpathdirs; do
18737       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18738     done
18739   fi
18740
18741           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18742 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18743 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18744   $as_echo_n "(cached) " >&6
18745 else
18746   gt_save_CPPFLAGS="$CPPFLAGS"
18747             CPPFLAGS="$CPPFLAGS $INCINTL"
18748             gt_save_LIBS="$LIBS"
18749             LIBS="$LIBS $LIBINTL"
18750                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751 /* end confdefs.h.  */
18752 #include <libintl.h>
18753 extern int _nl_msg_cat_cntr;
18754 extern
18755 #ifdef __cplusplus
18756 "C"
18757 #endif
18758 const char *_nl_expand_alias (const char *);
18759 int
18760 main ()
18761 {
18762 bindtextdomain ("", "");
18763 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 if ac_fn_c_try_link "$LINENO"; then :
18769   gt_cv_func_gnugettext1_libintl=yes
18770 else
18771   gt_cv_func_gnugettext1_libintl=no
18772 fi
18773 rm -f core conftest.err conftest.$ac_objext \
18774     conftest$ac_exeext conftest.$ac_ext
18775                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18776               LIBS="$LIBS $LIBICONV"
18777               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h.  */
18779 #include <libintl.h>
18780 extern int _nl_msg_cat_cntr;
18781 extern
18782 #ifdef __cplusplus
18783 "C"
18784 #endif
18785 const char *_nl_expand_alias (const char *);
18786 int
18787 main ()
18788 {
18789 bindtextdomain ("", "");
18790 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796   LIBINTL="$LIBINTL $LIBICONV"
18797                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18798                 gt_cv_func_gnugettext1_libintl=yes
18799
18800 fi
18801 rm -f core conftest.err conftest.$ac_objext \
18802     conftest$ac_exeext conftest.$ac_ext
18803             fi
18804             CPPFLAGS="$gt_save_CPPFLAGS"
18805             LIBS="$gt_save_LIBS"
18806 fi
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18808 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18809         fi
18810
18811                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18812            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18813                 && test "$PACKAGE" != gettext-runtime \
18814                 && test "$PACKAGE" != gettext-tools; }; then
18815           gt_use_preinstalled_gnugettext=yes
18816         else
18817                     LIBINTL=
18818           LTLIBINTL=
18819           INCINTL=
18820         fi
18821
18822
18823
18824     if test -n "$INTL_MACOSX_LIBS"; then
18825       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18826          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18827                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18828         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18829       fi
18830     fi
18831
18832     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18833        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18834
18835 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18836
18837     else
18838       USE_NLS=no
18839     fi
18840   fi
18841
18842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18843 $as_echo_n "checking whether to use NLS... " >&6; }
18844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18845 $as_echo "$USE_NLS" >&6; }
18846   if test "$USE_NLS" = "yes"; then
18847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18848 $as_echo_n "checking where the gettext function comes from... " >&6; }
18849     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18850       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18851         gt_source="external libintl"
18852       else
18853         gt_source="libc"
18854       fi
18855     else
18856       gt_source="included intl directory"
18857     fi
18858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18859 $as_echo "$gt_source" >&6; }
18860   fi
18861
18862   if test "$USE_NLS" = "yes"; then
18863
18864     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18865       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18867 $as_echo_n "checking how to link with libintl... " >&6; }
18868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18869 $as_echo "$LIBINTL" >&6; }
18870
18871   for element in $INCINTL; do
18872     haveit=
18873     for x in $CPPFLAGS; do
18874
18875   acl_save_prefix="$prefix"
18876   prefix="$acl_final_prefix"
18877   acl_save_exec_prefix="$exec_prefix"
18878   exec_prefix="$acl_final_exec_prefix"
18879   eval x=\"$x\"
18880   exec_prefix="$acl_save_exec_prefix"
18881   prefix="$acl_save_prefix"
18882
18883       if test "X$x" = "X$element"; then
18884         haveit=yes
18885         break
18886       fi
18887     done
18888     if test -z "$haveit"; then
18889       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18890     fi
18891   done
18892
18893       fi
18894
18895
18896 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18897
18898
18899 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18900
18901     fi
18902
18903         POSUB=po
18904   fi
18905
18906
18907
18908     INTLLIBS="$LIBINTL"
18909
18910
18911
18912
18913
18914
18915
18916 os_name=`uname -s 2>/dev/null`
18917 if test x${prefix} = xNONE ; then
18918    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18919       sysconfdir=/etc/bacula
18920    fi
18921
18922    if test `eval echo ${libdir}` = NONE/lib ; then
18923       case ${os_name} in
18924       Linux)
18925          os_processor=`uname -p 2>/dev/null`
18926          case ${os_processor} in
18927          x86_64)
18928             libdir=/usr/lib64
18929             ;;
18930          *)
18931             libdir=/usr/lib
18932             ;;
18933          esac
18934          ;;
18935       *)
18936          libdir=/usr/lib
18937          ;;
18938       esac
18939    fi
18940
18941    if test `eval echo ${includedir}` = NONE/include ; then
18942       includedir=/usr/include
18943    fi
18944
18945    if test `eval echo ${datarootdir}` = NONE/share ; then
18946       datarootdir=/usr/share
18947    fi
18948    prefix=
18949 fi
18950
18951 if test x${exec_prefix} = xNONE ; then
18952    exec_prefix=${prefix}
18953 fi
18954
18955 sysconfdir=`eval echo ${sysconfdir}`
18956 datarootdir=`eval echo ${datarootdir}`
18957 docdir=`eval echo ${docdir}`
18958 htmldir=`eval echo ${htmldir}`
18959 libdir=`eval echo ${libdir}`
18960 includedir=`eval echo ${includedir}`
18961 localedir=`eval echo ${datarootdir}/locale`
18962 cat >>confdefs.h <<_ACEOF
18963 #define SYSCONFDIR "$sysconfdir"
18964 _ACEOF
18965
18966 cat >>confdefs.h <<_ACEOF
18967 #define LOCALEDIR "$localedir"
18968 _ACEOF
18969
18970
18971 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18972    sbindir=${exec_prefix}/sbin
18973 fi
18974 sbindir=`eval echo ${sbindir}`
18975
18976 if test x$mandir = x'${prefix}/man' ; then
18977    mandir=/usr/share/man
18978 fi
18979
18980 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18981    htmldir=`eval echo ${docdir}html`
18982 fi
18983
18984 if test x$docdir = x'/usr/share/doc/' ; then
18985    docdir=`eval echo ${docdir}bacula`
18986 fi
18987
18988
18989 for ac_prog in msgfmt
18990 do
18991   # Extract the first word of "$ac_prog", so it can be a program name with args.
18992 set dummy $ac_prog; ac_word=$2
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18994 $as_echo_n "checking for $ac_word... " >&6; }
18995 if ${ac_cv_path_MSGFMT+:} false; then :
18996   $as_echo_n "(cached) " >&6
18997 else
18998   case $MSGFMT in
18999   [\\/]* | ?:[\\/]*)
19000   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19001   ;;
19002   *)
19003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19004 for as_dir in $PATH
19005 do
19006   IFS=$as_save_IFS
19007   test -z "$as_dir" && as_dir=.
19008     for ac_exec_ext in '' $ac_executable_extensions; do
19009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19010     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19012     break 2
19013   fi
19014 done
19015   done
19016 IFS=$as_save_IFS
19017
19018   ;;
19019 esac
19020 fi
19021 MSGFMT=$ac_cv_path_MSGFMT
19022 if test -n "$MSGFMT"; then
19023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19024 $as_echo "$MSGFMT" >&6; }
19025 else
19026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027 $as_echo "no" >&6; }
19028 fi
19029
19030
19031   test -n "$MSGFMT" && break
19032 done
19033 test -n "$MSGFMT" || MSGFMT="no"
19034
19035 if test "$MSGFMT" = "no"
19036 then
19037    echo 'msgfmt program not found, disabling NLS !'
19038    USE_NLS=no
19039    USE_INCLUDED_LIBINTL=no
19040 #else
19041
19042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19043 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19044 if ${ac_cv_gnu_library_2+:} false; then :
19045   $as_echo_n "(cached) " >&6
19046 else
19047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h.  */
19049
19050 #include <features.h>
19051 #ifdef __GNU_LIBRARY__
19052  #if (__GLIBC__ >= 2)
19053   Lucky GNU user
19054  #endif
19055 #endif
19056
19057 _ACEOF
19058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19059   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19060   ac_cv_gnu_library_2=yes
19061 else
19062   ac_cv_gnu_library_2=no
19063 fi
19064 rm -f conftest*
19065
19066
19067
19068 fi
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19070 $as_echo "$ac_cv_gnu_library_2" >&6; }
19071
19072     GLIBC2="$ac_cv_gnu_library_2"
19073
19074
19075 if test -n "$ac_tool_prefix"; then
19076   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19079 $as_echo_n "checking for $ac_word... " >&6; }
19080 if ${ac_cv_prog_RANLIB+:} false; then :
19081   $as_echo_n "(cached) " >&6
19082 else
19083   if test -n "$RANLIB"; then
19084   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19085 else
19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH
19088 do
19089   IFS=$as_save_IFS
19090   test -z "$as_dir" && as_dir=.
19091     for ac_exec_ext in '' $ac_executable_extensions; do
19092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19093     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19095     break 2
19096   fi
19097 done
19098   done
19099 IFS=$as_save_IFS
19100
19101 fi
19102 fi
19103 RANLIB=$ac_cv_prog_RANLIB
19104 if test -n "$RANLIB"; then
19105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19106 $as_echo "$RANLIB" >&6; }
19107 else
19108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19109 $as_echo "no" >&6; }
19110 fi
19111
19112
19113 fi
19114 if test -z "$ac_cv_prog_RANLIB"; then
19115   ac_ct_RANLIB=$RANLIB
19116   # Extract the first word of "ranlib", so it can be a program name with args.
19117 set dummy ranlib; ac_word=$2
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19119 $as_echo_n "checking for $ac_word... " >&6; }
19120 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19121   $as_echo_n "(cached) " >&6
19122 else
19123   if test -n "$ac_ct_RANLIB"; then
19124   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19125 else
19126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 for as_dir in $PATH
19128 do
19129   IFS=$as_save_IFS
19130   test -z "$as_dir" && as_dir=.
19131     for ac_exec_ext in '' $ac_executable_extensions; do
19132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19133     ac_cv_prog_ac_ct_RANLIB="ranlib"
19134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19135     break 2
19136   fi
19137 done
19138   done
19139 IFS=$as_save_IFS
19140
19141 fi
19142 fi
19143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19144 if test -n "$ac_ct_RANLIB"; then
19145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19146 $as_echo "$ac_ct_RANLIB" >&6; }
19147 else
19148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19149 $as_echo "no" >&6; }
19150 fi
19151
19152   if test "x$ac_ct_RANLIB" = x; then
19153     RANLIB=":"
19154   else
19155     case $cross_compiling:$ac_tool_warned in
19156 yes:)
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19159 ac_tool_warned=yes ;;
19160 esac
19161     RANLIB=$ac_ct_RANLIB
19162   fi
19163 else
19164   RANLIB="$ac_cv_prog_RANLIB"
19165 fi
19166
19167
19168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19169 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19170 if ${ac_cv_lib_cposix_strerror+:} false; then :
19171   $as_echo_n "(cached) " >&6
19172 else
19173   ac_check_lib_save_LIBS=$LIBS
19174 LIBS="-lcposix  $LIBS"
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h.  */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179    Use char because int might match the return type of a GCC
19180    builtin and then its argument prototype would still apply.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char strerror ();
19185 int
19186 main ()
19187 {
19188 return strerror ();
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 if ac_fn_c_try_link "$LINENO"; then :
19194   ac_cv_lib_cposix_strerror=yes
19195 else
19196   ac_cv_lib_cposix_strerror=no
19197 fi
19198 rm -f core conftest.err conftest.$ac_objext \
19199     conftest$ac_exeext conftest.$ac_ext
19200 LIBS=$ac_check_lib_save_LIBS
19201 fi
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19203 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19204 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19205   LIBS="$LIBS -lcposix"
19206 fi
19207
19208
19209
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19211 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19212 if ${ac_cv_c_const+:} false; then :
19213   $as_echo_n "(cached) " >&6
19214 else
19215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h.  */
19217
19218 int
19219 main ()
19220 {
19221
19222 #ifndef __cplusplus
19223   /* Ultrix mips cc rejects this sort of thing.  */
19224   typedef int charset[2];
19225   const charset cs = { 0, 0 };
19226   /* SunOS 4.1.1 cc rejects this.  */
19227   char const *const *pcpcc;
19228   char **ppc;
19229   /* NEC SVR4.0.2 mips cc rejects this.  */
19230   struct point {int x, y;};
19231   static struct point const zero = {0,0};
19232   /* AIX XL C 1.02.0.0 rejects this.
19233      It does not let you subtract one const X* pointer from another in
19234      an arm of an if-expression whose if-part is not a constant
19235      expression */
19236   const char *g = "string";
19237   pcpcc = &g + (g ? g-g : 0);
19238   /* HPUX 7.0 cc rejects these. */
19239   ++pcpcc;
19240   ppc = (char**) pcpcc;
19241   pcpcc = (char const *const *) ppc;
19242   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19243     char tx;
19244     char *t = &tx;
19245     char const *s = 0 ? (char *) 0 : (char const *) 0;
19246
19247     *t++ = 0;
19248     if (s) return 0;
19249   }
19250   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19251     int x[] = {25, 17};
19252     const int *foo = &x[0];
19253     ++foo;
19254   }
19255   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19256     typedef const int *iptr;
19257     iptr p = 0;
19258     ++p;
19259   }
19260   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19261        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19262     struct s { int j; const int *ap[3]; } bx;
19263     struct s *b = &bx; b->j = 5;
19264   }
19265   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19266     const int foo = 10;
19267     if (!foo) return 0;
19268   }
19269   return !cs[0] && !zero.x;
19270 #endif
19271
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 if ac_fn_c_try_compile "$LINENO"; then :
19277   ac_cv_c_const=yes
19278 else
19279   ac_cv_c_const=no
19280 fi
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 fi
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19284 $as_echo "$ac_cv_c_const" >&6; }
19285 if test $ac_cv_c_const = no; then
19286
19287 $as_echo "#define const /**/" >>confdefs.h
19288
19289 fi
19290
19291
19292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19293 $as_echo_n "checking for signed... " >&6; }
19294 if ${bh_cv_c_signed+:} false; then :
19295   $as_echo_n "(cached) " >&6
19296 else
19297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h.  */
19299
19300 int
19301 main ()
19302 {
19303 signed char x;
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309   bh_cv_c_signed=yes
19310 else
19311   bh_cv_c_signed=no
19312 fi
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19316 $as_echo "$bh_cv_c_signed" >&6; }
19317   if test $bh_cv_c_signed = no; then
19318
19319 $as_echo "#define signed /**/" >>confdefs.h
19320
19321   fi
19322
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19324 $as_echo_n "checking for inline... " >&6; }
19325 if ${ac_cv_c_inline+:} false; then :
19326   $as_echo_n "(cached) " >&6
19327 else
19328   ac_cv_c_inline=no
19329 for ac_kw in inline __inline__ __inline; do
19330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332 #ifndef __cplusplus
19333 typedef int foo_t;
19334 static $ac_kw foo_t static_foo () {return 0; }
19335 $ac_kw foo_t foo () {return 0; }
19336 #endif
19337
19338 _ACEOF
19339 if ac_fn_c_try_compile "$LINENO"; then :
19340   ac_cv_c_inline=$ac_kw
19341 fi
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343   test "$ac_cv_c_inline" != no && break
19344 done
19345
19346 fi
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19348 $as_echo "$ac_cv_c_inline" >&6; }
19349
19350 case $ac_cv_c_inline in
19351   inline | yes) ;;
19352   *)
19353     case $ac_cv_c_inline in
19354       no) ac_val=;;
19355       *) ac_val=$ac_cv_c_inline;;
19356     esac
19357     cat >>confdefs.h <<_ACEOF
19358 #ifndef __cplusplus
19359 #define inline $ac_val
19360 #endif
19361 _ACEOF
19362     ;;
19363 esac
19364
19365 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19366 if test "x$ac_cv_type_off_t" = xyes; then :
19367
19368 else
19369
19370 cat >>confdefs.h <<_ACEOF
19371 #define off_t long int
19372 _ACEOF
19373
19374 fi
19375
19376 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19377 if test "x$ac_cv_type_size_t" = xyes; then :
19378
19379 else
19380
19381 cat >>confdefs.h <<_ACEOF
19382 #define size_t unsigned int
19383 _ACEOF
19384
19385 fi
19386
19387
19388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19389 $as_echo_n "checking for long long... " >&6; }
19390 if ${ac_cv_type_long_long+:} false; then :
19391   $as_echo_n "(cached) " >&6
19392 else
19393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h.  */
19395 long long ll = 1LL; int i = 63;
19396 int
19397 main ()
19398 {
19399 long long llmax = (long long) -1;
19400      return ll << i | ll >> i | llmax / ll | llmax % ll;
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 if ac_fn_c_try_link "$LINENO"; then :
19406   ac_cv_type_long_long=yes
19407 else
19408   ac_cv_type_long_long=no
19409 fi
19410 rm -f core conftest.err conftest.$ac_objext \
19411     conftest$ac_exeext conftest.$ac_ext
19412 fi
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19414 $as_echo "$ac_cv_type_long_long" >&6; }
19415   if test $ac_cv_type_long_long = yes; then
19416
19417 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19418
19419   fi
19420
19421
19422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19423 $as_echo_n "checking for long double... " >&6; }
19424 if ${gt_cv_c_long_double+:} false; then :
19425   $as_echo_n "(cached) " >&6
19426 else
19427   if test "$GCC" = yes; then
19428        gt_cv_c_long_double=yes
19429      else
19430        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h.  */
19432
19433          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19434          long double foo = 0.0;
19435          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19436          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19437
19438 int
19439 main ()
19440 {
19441
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 if ac_fn_c_try_compile "$LINENO"; then :
19447   gt_cv_c_long_double=yes
19448 else
19449   gt_cv_c_long_double=no
19450 fi
19451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452      fi
19453 fi
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19455 $as_echo "$gt_cv_c_long_double" >&6; }
19456   if test $gt_cv_c_long_double = yes; then
19457
19458 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19459
19460   fi
19461
19462
19463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19464 $as_echo_n "checking for wchar_t... " >&6; }
19465 if ${gt_cv_c_wchar_t+:} false; then :
19466   $as_echo_n "(cached) " >&6
19467 else
19468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h.  */
19470 #include <stddef.h>
19471        wchar_t foo = (wchar_t)'\0';
19472 int
19473 main ()
19474 {
19475
19476   ;
19477   return 0;
19478 }
19479 _ACEOF
19480 if ac_fn_c_try_compile "$LINENO"; then :
19481   gt_cv_c_wchar_t=yes
19482 else
19483   gt_cv_c_wchar_t=no
19484 fi
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486 fi
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19488 $as_echo "$gt_cv_c_wchar_t" >&6; }
19489   if test $gt_cv_c_wchar_t = yes; then
19490
19491 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19492
19493   fi
19494
19495
19496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19497 $as_echo_n "checking for wint_t... " >&6; }
19498 if ${gt_cv_c_wint_t+:} false; then :
19499   $as_echo_n "(cached) " >&6
19500 else
19501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h.  */
19503 #include <wchar.h>
19504        wint_t foo = (wchar_t)'\0';
19505 int
19506 main ()
19507 {
19508
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_c_try_compile "$LINENO"; then :
19514   gt_cv_c_wint_t=yes
19515 else
19516   gt_cv_c_wint_t=no
19517 fi
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 fi
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19521 $as_echo "$gt_cv_c_wint_t" >&6; }
19522   if test $gt_cv_c_wint_t = yes; then
19523
19524 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19525
19526   fi
19527
19528
19529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19530 $as_echo_n "checking for inttypes.h... " >&6; }
19531 if ${gl_cv_header_inttypes_h+:} false; then :
19532   $as_echo_n "(cached) " >&6
19533 else
19534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h.  */
19536 #include <sys/types.h>
19537 #include <inttypes.h>
19538 int
19539 main ()
19540 {
19541 uintmax_t i = (uintmax_t) -1;
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 if ac_fn_c_try_compile "$LINENO"; then :
19547   gl_cv_header_inttypes_h=yes
19548 else
19549   gl_cv_header_inttypes_h=no
19550 fi
19551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552 fi
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19554 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19555   if test $gl_cv_header_inttypes_h = yes; then
19556
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19559 _ACEOF
19560
19561   fi
19562
19563
19564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19565 $as_echo_n "checking for stdint.h... " >&6; }
19566 if ${gl_cv_header_stdint_h+:} false; then :
19567   $as_echo_n "(cached) " >&6
19568 else
19569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19570 /* end confdefs.h.  */
19571 #include <sys/types.h>
19572 #include <stdint.h>
19573 int
19574 main ()
19575 {
19576 uintmax_t i = (uintmax_t) -1;
19577   ;
19578   return 0;
19579 }
19580 _ACEOF
19581 if ac_fn_c_try_compile "$LINENO"; then :
19582   gl_cv_header_stdint_h=yes
19583 else
19584   gl_cv_header_stdint_h=no
19585 fi
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19587 fi
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19589 $as_echo "$gl_cv_header_stdint_h" >&6; }
19590   if test $gl_cv_header_stdint_h = yes; then
19591
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_STDINT_H_WITH_UINTMAX 1
19594 _ACEOF
19595
19596   fi
19597
19598
19599
19600
19601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19602 $as_echo_n "checking for intmax_t... " >&6; }
19603 if ${gt_cv_c_intmax_t+:} false; then :
19604   $as_echo_n "(cached) " >&6
19605 else
19606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h.  */
19608
19609 #include <stddef.h>
19610 #include <stdlib.h>
19611 #if HAVE_STDINT_H_WITH_UINTMAX
19612 #include <stdint.h>
19613 #endif
19614 #if HAVE_INTTYPES_H_WITH_UINTMAX
19615 #include <inttypes.h>
19616 #endif
19617
19618 int
19619 main ()
19620 {
19621 intmax_t x = -1;
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 if ac_fn_c_try_compile "$LINENO"; then :
19627   gt_cv_c_intmax_t=yes
19628 else
19629   gt_cv_c_intmax_t=no
19630 fi
19631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 fi
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19634 $as_echo "$gt_cv_c_intmax_t" >&6; }
19635   if test $gt_cv_c_intmax_t = yes; then
19636
19637 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19638
19639   fi
19640
19641
19642
19643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19644 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19645 if ${gt_cv_func_printf_posix+:} false; then :
19646   $as_echo_n "(cached) " >&6
19647 else
19648
19649       if test "$cross_compiling" = yes; then :
19650
19651         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h.  */
19653
19654 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19655   notposix
19656 #endif
19657
19658 _ACEOF
19659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19660   $EGREP "notposix" >/dev/null 2>&1; then :
19661   gt_cv_func_printf_posix="guessing no"
19662 else
19663   gt_cv_func_printf_posix="guessing yes"
19664 fi
19665 rm -f conftest*
19666
19667
19668 else
19669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h.  */
19671
19672 #include <stdio.h>
19673 #include <string.h>
19674 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19675    dollar expansion (possibly an autoconf bug).  */
19676 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19677 static char buf[100];
19678 int main ()
19679 {
19680   sprintf (buf, format, 33, 55);
19681   return (strcmp (buf, "55 33") != 0);
19682 }
19683 _ACEOF
19684 if ac_fn_c_try_run "$LINENO"; then :
19685   gt_cv_func_printf_posix=yes
19686 else
19687   gt_cv_func_printf_posix=no
19688 fi
19689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19690   conftest.$ac_objext conftest.beam conftest.$ac_ext
19691 fi
19692
19693
19694 fi
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19696 $as_echo "$gt_cv_func_printf_posix" >&6; }
19697   case $gt_cv_func_printf_posix in
19698     *yes)
19699
19700 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19701
19702       ;;
19703   esac
19704
19705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19706 # for constant arguments.  Useless!
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19708 $as_echo_n "checking for working alloca.h... " >&6; }
19709 if ${ac_cv_working_alloca_h+:} false; then :
19710   $as_echo_n "(cached) " >&6
19711 else
19712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h.  */
19714 #include <alloca.h>
19715 int
19716 main ()
19717 {
19718 char *p = (char *) alloca (2 * sizeof (int));
19719                           if (p) return 0;
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 if ac_fn_c_try_link "$LINENO"; then :
19725   ac_cv_working_alloca_h=yes
19726 else
19727   ac_cv_working_alloca_h=no
19728 fi
19729 rm -f core conftest.err conftest.$ac_objext \
19730     conftest$ac_exeext conftest.$ac_ext
19731 fi
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19733 $as_echo "$ac_cv_working_alloca_h" >&6; }
19734 if test $ac_cv_working_alloca_h = yes; then
19735
19736 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19737
19738 fi
19739
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19741 $as_echo_n "checking for alloca... " >&6; }
19742 if ${ac_cv_func_alloca_works+:} false; then :
19743   $as_echo_n "(cached) " >&6
19744 else
19745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746 /* end confdefs.h.  */
19747 #ifdef __GNUC__
19748 # define alloca __builtin_alloca
19749 #else
19750 # ifdef _MSC_VER
19751 #  include <malloc.h>
19752 #  define alloca _alloca
19753 # else
19754 #  ifdef HAVE_ALLOCA_H
19755 #   include <alloca.h>
19756 #  else
19757 #   ifdef _AIX
19758  #pragma alloca
19759 #   else
19760 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19761 void *alloca (size_t);
19762 #    endif
19763 #   endif
19764 #  endif
19765 # endif
19766 #endif
19767
19768 int
19769 main ()
19770 {
19771 char *p = (char *) alloca (1);
19772                                     if (p) return 0;
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 if ac_fn_c_try_link "$LINENO"; then :
19778   ac_cv_func_alloca_works=yes
19779 else
19780   ac_cv_func_alloca_works=no
19781 fi
19782 rm -f core conftest.err conftest.$ac_objext \
19783     conftest$ac_exeext conftest.$ac_ext
19784 fi
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19786 $as_echo "$ac_cv_func_alloca_works" >&6; }
19787
19788 if test $ac_cv_func_alloca_works = yes; then
19789
19790 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19791
19792 else
19793   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19794 # that cause trouble.  Some versions do not even contain alloca or
19795 # contain a buggy version.  If you still want to use their alloca,
19796 # use ar to extract alloca.o from them instead of compiling alloca.c.
19797
19798 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19799
19800 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19801
19802
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19804 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19805 if ${ac_cv_os_cray+:} false; then :
19806   $as_echo_n "(cached) " >&6
19807 else
19808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h.  */
19810 #if defined CRAY && ! defined CRAY2
19811 webecray
19812 #else
19813 wenotbecray
19814 #endif
19815
19816 _ACEOF
19817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19818   $EGREP "webecray" >/dev/null 2>&1; then :
19819   ac_cv_os_cray=yes
19820 else
19821   ac_cv_os_cray=no
19822 fi
19823 rm -f conftest*
19824
19825 fi
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19827 $as_echo "$ac_cv_os_cray" >&6; }
19828 if test $ac_cv_os_cray = yes; then
19829   for ac_func in _getb67 GETB67 getb67; do
19830     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19833
19834 cat >>confdefs.h <<_ACEOF
19835 #define CRAY_STACKSEG_END $ac_func
19836 _ACEOF
19837
19838     break
19839 fi
19840
19841   done
19842 fi
19843
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19845 $as_echo_n "checking stack direction for C alloca... " >&6; }
19846 if ${ac_cv_c_stack_direction+:} false; then :
19847   $as_echo_n "(cached) " >&6
19848 else
19849   if test "$cross_compiling" = yes; then :
19850   ac_cv_c_stack_direction=0
19851 else
19852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853 /* end confdefs.h.  */
19854 $ac_includes_default
19855 int
19856 find_stack_direction (int *addr, int depth)
19857 {
19858   int dir, dummy = 0;
19859   if (! addr)
19860     addr = &dummy;
19861   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19862   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19863   return dir + dummy;
19864 }
19865
19866 int
19867 main (int argc, char **argv)
19868 {
19869   return find_stack_direction (0, argc + !argv + 20) < 0;
19870 }
19871 _ACEOF
19872 if ac_fn_c_try_run "$LINENO"; then :
19873   ac_cv_c_stack_direction=1
19874 else
19875   ac_cv_c_stack_direction=-1
19876 fi
19877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19878   conftest.$ac_objext conftest.beam conftest.$ac_ext
19879 fi
19880
19881 fi
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19883 $as_echo "$ac_cv_c_stack_direction" >&6; }
19884 cat >>confdefs.h <<_ACEOF
19885 #define STACK_DIRECTION $ac_cv_c_stack_direction
19886 _ACEOF
19887
19888
19889 fi
19890
19891
19892
19893
19894   for ac_header in $ac_header_list
19895 do :
19896   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19897 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19898 "
19899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19900   cat >>confdefs.h <<_ACEOF
19901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19902 _ACEOF
19903
19904 fi
19905
19906 done
19907
19908
19909
19910
19911
19912
19913
19914
19915 for ac_func in getpagesize
19916 do :
19917   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19918 if test "x$ac_cv_func_getpagesize" = xyes; then :
19919   cat >>confdefs.h <<_ACEOF
19920 #define HAVE_GETPAGESIZE 1
19921 _ACEOF
19922
19923 fi
19924 done
19925
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19927 $as_echo_n "checking for working mmap... " >&6; }
19928 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19929   $as_echo_n "(cached) " >&6
19930 else
19931   if test "$cross_compiling" = yes; then :
19932   ac_cv_func_mmap_fixed_mapped=no
19933 else
19934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h.  */
19936 $ac_includes_default
19937 /* malloc might have been renamed as rpl_malloc. */
19938 #undef malloc
19939
19940 /* Thanks to Mike Haertel and Jim Avera for this test.
19941    Here is a matrix of mmap possibilities:
19942         mmap private not fixed
19943         mmap private fixed at somewhere currently unmapped
19944         mmap private fixed at somewhere already mapped
19945         mmap shared not fixed
19946         mmap shared fixed at somewhere currently unmapped
19947         mmap shared fixed at somewhere already mapped
19948    For private mappings, we should verify that changes cannot be read()
19949    back from the file, nor mmap's back from the file at a different
19950    address.  (There have been systems where private was not correctly
19951    implemented like the infamous i386 svr4.0, and systems where the
19952    VM page cache was not coherent with the file system buffer cache
19953    like early versions of FreeBSD and possibly contemporary NetBSD.)
19954    For shared mappings, we should conversely verify that changes get
19955    propagated back to all the places they're supposed to be.
19956
19957    Grep wants private fixed already mapped.
19958    The main things grep needs to know about mmap are:
19959    * does it exist and is it safe to write into the mmap'd area
19960    * how to use it (BSD variants)  */
19961
19962 #include <fcntl.h>
19963 #include <sys/mman.h>
19964
19965 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19966 char *malloc ();
19967 #endif
19968
19969 /* This mess was copied from the GNU getpagesize.h.  */
19970 #ifndef HAVE_GETPAGESIZE
19971 # ifdef _SC_PAGESIZE
19972 #  define getpagesize() sysconf(_SC_PAGESIZE)
19973 # else /* no _SC_PAGESIZE */
19974 #  ifdef HAVE_SYS_PARAM_H
19975 #   include <sys/param.h>
19976 #   ifdef EXEC_PAGESIZE
19977 #    define getpagesize() EXEC_PAGESIZE
19978 #   else /* no EXEC_PAGESIZE */
19979 #    ifdef NBPG
19980 #     define getpagesize() NBPG * CLSIZE
19981 #     ifndef CLSIZE
19982 #      define CLSIZE 1
19983 #     endif /* no CLSIZE */
19984 #    else /* no NBPG */
19985 #     ifdef NBPC
19986 #      define getpagesize() NBPC
19987 #     else /* no NBPC */
19988 #      ifdef PAGESIZE
19989 #       define getpagesize() PAGESIZE
19990 #      endif /* PAGESIZE */
19991 #     endif /* no NBPC */
19992 #    endif /* no NBPG */
19993 #   endif /* no EXEC_PAGESIZE */
19994 #  else /* no HAVE_SYS_PARAM_H */
19995 #   define getpagesize() 8192   /* punt totally */
19996 #  endif /* no HAVE_SYS_PARAM_H */
19997 # endif /* no _SC_PAGESIZE */
19998
19999 #endif /* no HAVE_GETPAGESIZE */
20000
20001 int
20002 main ()
20003 {
20004   char *data, *data2, *data3;
20005   const char *cdata2;
20006   int i, pagesize;
20007   int fd, fd2;
20008
20009   pagesize = getpagesize ();
20010
20011   /* First, make a file with some known garbage in it. */
20012   data = (char *) malloc (pagesize);
20013   if (!data)
20014     return 1;
20015   for (i = 0; i < pagesize; ++i)
20016     *(data + i) = rand ();
20017   umask (0);
20018   fd = creat ("conftest.mmap", 0600);
20019   if (fd < 0)
20020     return 2;
20021   if (write (fd, data, pagesize) != pagesize)
20022     return 3;
20023   close (fd);
20024
20025   /* Next, check that the tail of a page is zero-filled.  File must have
20026      non-zero length, otherwise we risk SIGBUS for entire page.  */
20027   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20028   if (fd2 < 0)
20029     return 4;
20030   cdata2 = "";
20031   if (write (fd2, cdata2, 1) != 1)
20032     return 5;
20033   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20034   if (data2 == MAP_FAILED)
20035     return 6;
20036   for (i = 0; i < pagesize; ++i)
20037     if (*(data2 + i))
20038       return 7;
20039   close (fd2);
20040   if (munmap (data2, pagesize))
20041     return 8;
20042
20043   /* Next, try to mmap the file at a fixed address which already has
20044      something else allocated at it.  If we can, also make sure that
20045      we see the same garbage.  */
20046   fd = open ("conftest.mmap", O_RDWR);
20047   if (fd < 0)
20048     return 9;
20049   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20050                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20051     return 10;
20052   for (i = 0; i < pagesize; ++i)
20053     if (*(data + i) != *(data2 + i))
20054       return 11;
20055
20056   /* Finally, make sure that changes to the mapped area do not
20057      percolate back to the file as seen by read().  (This is a bug on
20058      some variants of i386 svr4.0.)  */
20059   for (i = 0; i < pagesize; ++i)
20060     *(data2 + i) = *(data2 + i) + 1;
20061   data3 = (char *) malloc (pagesize);
20062   if (!data3)
20063     return 12;
20064   if (read (fd, data3, pagesize) != pagesize)
20065     return 13;
20066   for (i = 0; i < pagesize; ++i)
20067     if (*(data + i) != *(data3 + i))
20068       return 14;
20069   close (fd);
20070   return 0;
20071 }
20072 _ACEOF
20073 if ac_fn_c_try_run "$LINENO"; then :
20074   ac_cv_func_mmap_fixed_mapped=yes
20075 else
20076   ac_cv_func_mmap_fixed_mapped=no
20077 fi
20078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20079   conftest.$ac_objext conftest.beam conftest.$ac_ext
20080 fi
20081
20082 fi
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20084 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20085 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20086
20087 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20088
20089 fi
20090 rm -f conftest.mmap conftest.txt
20091
20092
20093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20094 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20095 if ${ac_cv_gnu_library_2_1+:} false; then :
20096   $as_echo_n "(cached) " >&6
20097 else
20098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h.  */
20100
20101 #include <features.h>
20102 #ifdef __GNU_LIBRARY__
20103  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20104   Lucky GNU user
20105  #endif
20106 #endif
20107
20108 _ACEOF
20109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20110   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20111   ac_cv_gnu_library_2_1=yes
20112 else
20113   ac_cv_gnu_library_2_1=no
20114 fi
20115 rm -f conftest*
20116
20117
20118
20119 fi
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20121 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20122
20123     GLIBC21="$ac_cv_gnu_library_2_1"
20124
20125
20126
20127
20128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20129 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20130 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20131   $as_echo_n "(cached) " >&6
20132 else
20133
20134       if test "$cross_compiling" = yes; then :
20135
20136           # Guess based on the CPU.
20137           case "$host_cpu" in
20138             alpha* | i3456786 | m68k | s390*)
20139               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20140             *)
20141               gt_cv_int_divbyzero_sigfpe="guessing no";;
20142           esac
20143
20144 else
20145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h.  */
20147
20148 #include <stdlib.h>
20149 #include <signal.h>
20150
20151 static void
20152 #ifdef __cplusplus
20153 sigfpe_handler (int sig)
20154 #else
20155 sigfpe_handler (sig) int sig;
20156 #endif
20157 {
20158   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20159   exit (sig != SIGFPE);
20160 }
20161
20162 int x = 1;
20163 int y = 0;
20164 int z;
20165 int nan;
20166
20167 int main ()
20168 {
20169   signal (SIGFPE, sigfpe_handler);
20170 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20171 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20172   signal (SIGTRAP, sigfpe_handler);
20173 #endif
20174 /* Linux/SPARC yields signal SIGILL.  */
20175 #if defined (__sparc__) && defined (__linux__)
20176   signal (SIGILL, sigfpe_handler);
20177 #endif
20178
20179   z = x / y;
20180   nan = y / y;
20181   exit (1);
20182 }
20183
20184 _ACEOF
20185 if ac_fn_c_try_run "$LINENO"; then :
20186   gt_cv_int_divbyzero_sigfpe=yes
20187 else
20188   gt_cv_int_divbyzero_sigfpe=no
20189 fi
20190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20191   conftest.$ac_objext conftest.beam conftest.$ac_ext
20192 fi
20193
20194
20195 fi
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20197 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20198   case "$gt_cv_int_divbyzero_sigfpe" in
20199     *yes) value=1;;
20200     *) value=0;;
20201   esac
20202
20203 cat >>confdefs.h <<_ACEOF
20204 #define INTDIV0_RAISES_SIGFPE $value
20205 _ACEOF
20206
20207
20208
20209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20210 $as_echo_n "checking for unsigned long long... " >&6; }
20211 if ${ac_cv_type_unsigned_long_long+:} false; then :
20212   $as_echo_n "(cached) " >&6
20213 else
20214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h.  */
20216 unsigned long long ull = 1ULL; int i = 63;
20217 int
20218 main ()
20219 {
20220 unsigned long long ullmax = (unsigned long long) -1;
20221      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 if ac_fn_c_try_link "$LINENO"; then :
20227   ac_cv_type_unsigned_long_long=yes
20228 else
20229   ac_cv_type_unsigned_long_long=no
20230 fi
20231 rm -f core conftest.err conftest.$ac_objext \
20232     conftest$ac_exeext conftest.$ac_ext
20233 fi
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20235 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20236   if test $ac_cv_type_unsigned_long_long = yes; then
20237
20238 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20239
20240   fi
20241
20242
20243
20244
20245   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20246
20247     test $ac_cv_type_unsigned_long_long = yes \
20248       && ac_type='unsigned long long' \
20249       || ac_type='unsigned long'
20250
20251 cat >>confdefs.h <<_ACEOF
20252 #define uintmax_t $ac_type
20253 _ACEOF
20254
20255   else
20256
20257 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20258
20259   fi
20260
20261
20262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20263 $as_echo_n "checking for inttypes.h... " >&6; }
20264 if ${gt_cv_header_inttypes_h+:} false; then :
20265   $as_echo_n "(cached) " >&6
20266 else
20267
20268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h.  */
20270 #include <sys/types.h>
20271 #include <inttypes.h>
20272 int
20273 main ()
20274 {
20275
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 if ac_fn_c_try_compile "$LINENO"; then :
20281   gt_cv_header_inttypes_h=yes
20282 else
20283   gt_cv_header_inttypes_h=no
20284 fi
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286
20287 fi
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20289 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20290   if test $gt_cv_header_inttypes_h = yes; then
20291
20292 cat >>confdefs.h <<_ACEOF
20293 #define HAVE_INTTYPES_H 1
20294 _ACEOF
20295
20296   fi
20297
20298
20299
20300   if test $gt_cv_header_inttypes_h = yes; then
20301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20302 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20303 if ${gt_cv_inttypes_pri_broken+:} false; then :
20304   $as_echo_n "(cached) " >&6
20305 else
20306
20307         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308 /* end confdefs.h.  */
20309 #include <inttypes.h>
20310 #ifdef PRId32
20311 char *p = PRId32;
20312 #endif
20313
20314 int
20315 main ()
20316 {
20317
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 if ac_fn_c_try_compile "$LINENO"; then :
20323   gt_cv_inttypes_pri_broken=no
20324 else
20325   gt_cv_inttypes_pri_broken=yes
20326 fi
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328
20329 fi
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20331 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20332   fi
20333   if test "$gt_cv_inttypes_pri_broken" = yes; then
20334
20335 cat >>confdefs.h <<_ACEOF
20336 #define PRI_MACROS_BROKEN 1
20337 _ACEOF
20338
20339   fi
20340
20341
20342   for ac_header in stdint.h
20343 do :
20344   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20345 if test "x$ac_cv_header_stdint_h" = xyes; then :
20346   cat >>confdefs.h <<_ACEOF
20347 #define HAVE_STDINT_H 1
20348 _ACEOF
20349
20350 fi
20351
20352 done
20353
20354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20355 $as_echo_n "checking for SIZE_MAX... " >&6; }
20356   result=
20357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h.  */
20359
20360 #include <limits.h>
20361 #if HAVE_STDINT_H
20362 #include <stdint.h>
20363 #endif
20364 #ifdef SIZE_MAX
20365 Found it
20366 #endif
20367
20368 _ACEOF
20369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20370   $EGREP "Found it" >/dev/null 2>&1; then :
20371   result=yes
20372 fi
20373 rm -f conftest*
20374
20375   if test -z "$result"; then
20376                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20377
20378 else
20379   result=?
20380 fi
20381
20382
20383     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20384
20385 else
20386   result=?
20387 fi
20388
20389
20390     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20391
20392 else
20393   result=?
20394 fi
20395
20396
20397     if test "$fits_in_uint" = 1; then
20398                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h.  */
20400 #include <stddef.h>
20401         extern size_t foo;
20402         extern unsigned long foo;
20403
20404 int
20405 main ()
20406 {
20407
20408   ;
20409   return 0;
20410 }
20411 _ACEOF
20412 if ac_fn_c_try_compile "$LINENO"; then :
20413   fits_in_uint=0
20414 fi
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416     fi
20417     if test -z "$result"; then
20418       if test "$fits_in_uint" = 1; then
20419         result="$res_hi$res_lo"U
20420       else
20421         result="$res_hi$res_lo"UL
20422       fi
20423     else
20424             result='~(size_t)0'
20425     fi
20426   fi
20427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20428 $as_echo "$result" >&6; }
20429   if test "$result" != yes; then
20430
20431 cat >>confdefs.h <<_ACEOF
20432 #define SIZE_MAX $result
20433 _ACEOF
20434
20435   fi
20436
20437
20438
20439
20440   for ac_header in stdint.h
20441 do :
20442   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20443 if test "x$ac_cv_header_stdint_h" = xyes; then :
20444   cat >>confdefs.h <<_ACEOF
20445 #define HAVE_STDINT_H 1
20446 _ACEOF
20447
20448 fi
20449
20450 done
20451
20452
20453
20454
20455
20456
20457
20458
20459   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20460 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20461
20462 else
20463
20464 $as_echo "#define ptrdiff_t long" >>confdefs.h
20465
20466
20467 fi
20468
20469   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20470 stdlib.h string.h unistd.h sys/param.h
20471 do :
20472   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20473 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20475   cat >>confdefs.h <<_ACEOF
20476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20477 _ACEOF
20478
20479 fi
20480
20481 done
20482
20483   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20484 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20485 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20486 __fsetlocking
20487 do :
20488   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20491   cat >>confdefs.h <<_ACEOF
20492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20493 _ACEOF
20494
20495 fi
20496 done
20497
20498
20499
20500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20501 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20502 if ${ac_cv_have_decl__snprintf+:} false; then :
20503   $as_echo_n "(cached) " >&6
20504 else
20505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h.  */
20507 #include <stdio.h>
20508 int
20509 main ()
20510 {
20511
20512 #ifndef _snprintf
20513   char *p = (char *) _snprintf;
20514 #endif
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 if ac_fn_c_try_compile "$LINENO"; then :
20521   ac_cv_have_decl__snprintf=yes
20522 else
20523   ac_cv_have_decl__snprintf=no
20524 fi
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 fi
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20528 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20529   if test $ac_cv_have_decl__snprintf = yes; then
20530     gt_value=1
20531   else
20532     gt_value=0
20533   fi
20534
20535 cat >>confdefs.h <<_ACEOF
20536 #define HAVE_DECL__SNPRINTF $gt_value
20537 _ACEOF
20538
20539
20540
20541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20542 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20543 if ${ac_cv_have_decl__snwprintf+:} false; then :
20544   $as_echo_n "(cached) " >&6
20545 else
20546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h.  */
20548 #include <stdio.h>
20549 int
20550 main ()
20551 {
20552
20553 #ifndef _snwprintf
20554   char *p = (char *) _snwprintf;
20555 #endif
20556
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 if ac_fn_c_try_compile "$LINENO"; then :
20562   ac_cv_have_decl__snwprintf=yes
20563 else
20564   ac_cv_have_decl__snwprintf=no
20565 fi
20566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 fi
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20569 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20570   if test $ac_cv_have_decl__snwprintf = yes; then
20571     gt_value=1
20572   else
20573     gt_value=0
20574   fi
20575
20576 cat >>confdefs.h <<_ACEOF
20577 #define HAVE_DECL__SNWPRINTF $gt_value
20578 _ACEOF
20579
20580
20581
20582
20583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20584 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20585 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20586   $as_echo_n "(cached) " >&6
20587 else
20588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h.  */
20590 #include <stdio.h>
20591 int
20592 main ()
20593 {
20594
20595 #ifndef feof_unlocked
20596   char *p = (char *) feof_unlocked;
20597 #endif
20598
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 if ac_fn_c_try_compile "$LINENO"; then :
20604   ac_cv_have_decl_feof_unlocked=yes
20605 else
20606   ac_cv_have_decl_feof_unlocked=no
20607 fi
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 fi
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20611 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20612   if test $ac_cv_have_decl_feof_unlocked = yes; then
20613     gt_value=1
20614   else
20615     gt_value=0
20616   fi
20617
20618 cat >>confdefs.h <<_ACEOF
20619 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20620 _ACEOF
20621
20622
20623
20624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20625 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20626 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20627   $as_echo_n "(cached) " >&6
20628 else
20629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20630 /* end confdefs.h.  */
20631 #include <stdio.h>
20632 int
20633 main ()
20634 {
20635
20636 #ifndef fgets_unlocked
20637   char *p = (char *) fgets_unlocked;
20638 #endif
20639
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 if ac_fn_c_try_compile "$LINENO"; then :
20645   ac_cv_have_decl_fgets_unlocked=yes
20646 else
20647   ac_cv_have_decl_fgets_unlocked=no
20648 fi
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20652 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20653   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20654     gt_value=1
20655   else
20656     gt_value=0
20657   fi
20658
20659 cat >>confdefs.h <<_ACEOF
20660 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20661 _ACEOF
20662
20663
20664
20665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20666 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20667 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20668   $as_echo_n "(cached) " >&6
20669 else
20670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h.  */
20672 #include <stdio.h>
20673 int
20674 main ()
20675 {
20676
20677 #ifndef getc_unlocked
20678   char *p = (char *) getc_unlocked;
20679 #endif
20680
20681   ;
20682   return 0;
20683 }
20684 _ACEOF
20685 if ac_fn_c_try_compile "$LINENO"; then :
20686   ac_cv_have_decl_getc_unlocked=yes
20687 else
20688   ac_cv_have_decl_getc_unlocked=no
20689 fi
20690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 fi
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20693 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20694   if test $ac_cv_have_decl_getc_unlocked = yes; then
20695     gt_value=1
20696   else
20697     gt_value=0
20698   fi
20699
20700 cat >>confdefs.h <<_ACEOF
20701 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20702 _ACEOF
20703
20704
20705
20706   case $gt_cv_func_printf_posix in
20707     *yes) HAVE_POSIX_PRINTF=1 ;;
20708     *) HAVE_POSIX_PRINTF=0 ;;
20709   esac
20710
20711   if test "$ac_cv_func_asprintf" = yes; then
20712     HAVE_ASPRINTF=1
20713   else
20714     HAVE_ASPRINTF=0
20715   fi
20716
20717   if test "$ac_cv_func_snprintf" = yes; then
20718     HAVE_SNPRINTF=1
20719   else
20720     HAVE_SNPRINTF=0
20721   fi
20722
20723   if test "$ac_cv_func_wprintf" = yes; then
20724     HAVE_WPRINTF=1
20725   else
20726     HAVE_WPRINTF=0
20727   fi
20728
20729
20730
20731
20732
20733
20734
20735           am_save_CPPFLAGS="$CPPFLAGS"
20736
20737   for element in $INCICONV; do
20738     haveit=
20739     for x in $CPPFLAGS; do
20740
20741   acl_save_prefix="$prefix"
20742   prefix="$acl_final_prefix"
20743   acl_save_exec_prefix="$exec_prefix"
20744   exec_prefix="$acl_final_exec_prefix"
20745   eval x=\"$x\"
20746   exec_prefix="$acl_save_exec_prefix"
20747   prefix="$acl_save_prefix"
20748
20749       if test "X$x" = "X$element"; then
20750         haveit=yes
20751         break
20752       fi
20753     done
20754     if test -z "$haveit"; then
20755       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20756     fi
20757   done
20758
20759
20760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20761 $as_echo_n "checking for iconv... " >&6; }
20762 if ${am_cv_func_iconv+:} false; then :
20763   $as_echo_n "(cached) " >&6
20764 else
20765
20766     am_cv_func_iconv="no, consider installing GNU libiconv"
20767     am_cv_lib_iconv=no
20768     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h.  */
20770 #include <stdlib.h>
20771 #include <iconv.h>
20772 int
20773 main ()
20774 {
20775 iconv_t cd = iconv_open("","");
20776        iconv(cd,NULL,NULL,NULL,NULL);
20777        iconv_close(cd);
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 if ac_fn_c_try_link "$LINENO"; then :
20783   am_cv_func_iconv=yes
20784 fi
20785 rm -f core conftest.err conftest.$ac_objext \
20786     conftest$ac_exeext conftest.$ac_ext
20787     if test "$am_cv_func_iconv" != yes; then
20788       am_save_LIBS="$LIBS"
20789       LIBS="$LIBS $LIBICONV"
20790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h.  */
20792 #include <stdlib.h>
20793 #include <iconv.h>
20794 int
20795 main ()
20796 {
20797 iconv_t cd = iconv_open("","");
20798          iconv(cd,NULL,NULL,NULL,NULL);
20799          iconv_close(cd);
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 if ac_fn_c_try_link "$LINENO"; then :
20805   am_cv_lib_iconv=yes
20806         am_cv_func_iconv=yes
20807 fi
20808 rm -f core conftest.err conftest.$ac_objext \
20809     conftest$ac_exeext conftest.$ac_ext
20810       LIBS="$am_save_LIBS"
20811     fi
20812
20813 fi
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20815 $as_echo "$am_cv_func_iconv" >&6; }
20816   if test "$am_cv_func_iconv" = yes; then
20817
20818 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20819
20820   fi
20821   if test "$am_cv_lib_iconv" = yes; then
20822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20823 $as_echo_n "checking how to link with libiconv... " >&6; }
20824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20825 $as_echo "$LIBICONV" >&6; }
20826   else
20827             CPPFLAGS="$am_save_CPPFLAGS"
20828     LIBICONV=
20829     LTLIBICONV=
20830   fi
20831
20832
20833
20834   if test "$am_cv_func_iconv" = yes; then
20835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20836 $as_echo_n "checking for iconv declaration... " >&6; }
20837     if ${am_cv_proto_iconv+:} false; then :
20838   $as_echo_n "(cached) " >&6
20839 else
20840
20841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h.  */
20843
20844 #include <stdlib.h>
20845 #include <iconv.h>
20846 extern
20847 #ifdef __cplusplus
20848 "C"
20849 #endif
20850 #if defined(__STDC__) || defined(__cplusplus)
20851 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20852 #else
20853 size_t iconv();
20854 #endif
20855
20856 int
20857 main ()
20858 {
20859
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 if ac_fn_c_try_compile "$LINENO"; then :
20865   am_cv_proto_iconv_arg1=""
20866 else
20867   am_cv_proto_iconv_arg1="const"
20868 fi
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870       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);"
20871 fi
20872
20873     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20875          }$am_cv_proto_iconv" >&5
20876 $as_echo "${ac_t:-
20877          }$am_cv_proto_iconv" >&6; }
20878
20879 cat >>confdefs.h <<_ACEOF
20880 #define ICONV_CONST $am_cv_proto_iconv_arg1
20881 _ACEOF
20882
20883   fi
20884
20885
20886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20887 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20888 if ${am_cv_langinfo_codeset+:} false; then :
20889   $as_echo_n "(cached) " >&6
20890 else
20891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h.  */
20893 #include <langinfo.h>
20894 int
20895 main ()
20896 {
20897 char* cs = nl_langinfo(CODESET);
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 if ac_fn_c_try_link "$LINENO"; then :
20903   am_cv_langinfo_codeset=yes
20904 else
20905   am_cv_langinfo_codeset=no
20906 fi
20907 rm -f core conftest.err conftest.$ac_objext \
20908     conftest$ac_exeext conftest.$ac_ext
20909
20910 fi
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20912 $as_echo "$am_cv_langinfo_codeset" >&6; }
20913   if test $am_cv_langinfo_codeset = yes; then
20914
20915 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20916
20917   fi
20918
20919   if test $ac_cv_header_locale_h = yes; then
20920
20921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20922 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20923 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20924   $as_echo_n "(cached) " >&6
20925 else
20926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20927 /* end confdefs.h.  */
20928 #include <locale.h>
20929 int
20930 main ()
20931 {
20932 return LC_MESSAGES
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 if ac_fn_c_try_link "$LINENO"; then :
20938   gt_cv_val_LC_MESSAGES=yes
20939 else
20940   gt_cv_val_LC_MESSAGES=no
20941 fi
20942 rm -f core conftest.err conftest.$ac_objext \
20943     conftest$ac_exeext conftest.$ac_ext
20944 fi
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20946 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20947   if test $gt_cv_val_LC_MESSAGES = yes; then
20948
20949 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20950
20951   fi
20952
20953   fi
20954
20955   if test -n "$INTL_MACOSX_LIBS"; then
20956     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20957   fi
20958
20959                       for ac_prog in bison
20960 do
20961   # Extract the first word of "$ac_prog", so it can be a program name with args.
20962 set dummy $ac_prog; ac_word=$2
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20964 $as_echo_n "checking for $ac_word... " >&6; }
20965 if ${ac_cv_prog_INTLBISON+:} false; then :
20966   $as_echo_n "(cached) " >&6
20967 else
20968   if test -n "$INTLBISON"; then
20969   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20970 else
20971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20972 for as_dir in $PATH
20973 do
20974   IFS=$as_save_IFS
20975   test -z "$as_dir" && as_dir=.
20976     for ac_exec_ext in '' $ac_executable_extensions; do
20977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20978     ac_cv_prog_INTLBISON="$ac_prog"
20979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20980     break 2
20981   fi
20982 done
20983   done
20984 IFS=$as_save_IFS
20985
20986 fi
20987 fi
20988 INTLBISON=$ac_cv_prog_INTLBISON
20989 if test -n "$INTLBISON"; then
20990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20991 $as_echo "$INTLBISON" >&6; }
20992 else
20993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20994 $as_echo "no" >&6; }
20995 fi
20996
20997
20998   test -n "$INTLBISON" && break
20999 done
21000
21001   if test -z "$INTLBISON"; then
21002     ac_verc_fail=yes
21003   else
21004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21005 $as_echo_n "checking version of bison... " >&6; }
21006     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21007     case $ac_prog_version in
21008       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21009       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21010          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21011       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21012     esac
21013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21014 $as_echo "$ac_prog_version" >&6; }
21015   fi
21016   if test $ac_verc_fail = yes; then
21017     INTLBISON=:
21018   fi
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21036 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21037 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21038   $as_echo_n "(cached) " >&6
21039 else
21040   gt_save_CPPFLAGS="$CPPFLAGS"
21041      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21042      gt_save_LIBS="$LIBS"
21043      LIBS="$LIBS -framework CoreFoundation"
21044      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h.  */
21046 #include <CFPreferences.h>
21047 int
21048 main ()
21049 {
21050 CFPreferencesCopyAppValue(NULL, NULL)
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 if ac_fn_c_try_link "$LINENO"; then :
21056   gt_cv_func_CFPreferencesCopyAppValue=yes
21057 else
21058   gt_cv_func_CFPreferencesCopyAppValue=no
21059 fi
21060 rm -f core conftest.err conftest.$ac_objext \
21061     conftest$ac_exeext conftest.$ac_ext
21062      CPPFLAGS="$gt_save_CPPFLAGS"
21063      LIBS="$gt_save_LIBS"
21064 fi
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21066 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21067   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21068
21069 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21070
21071   fi
21072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21073 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21074 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21075   $as_echo_n "(cached) " >&6
21076 else
21077   gt_save_CPPFLAGS="$CPPFLAGS"
21078      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21079      gt_save_LIBS="$LIBS"
21080      LIBS="$LIBS -framework CoreFoundation"
21081      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21082 /* end confdefs.h.  */
21083 #include <CFLocale.h>
21084 int
21085 main ()
21086 {
21087 CFLocaleCopyCurrent();
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 if ac_fn_c_try_link "$LINENO"; then :
21093   gt_cv_func_CFLocaleCopyCurrent=yes
21094 else
21095   gt_cv_func_CFLocaleCopyCurrent=no
21096 fi
21097 rm -f core conftest.err conftest.$ac_objext \
21098     conftest$ac_exeext conftest.$ac_ext
21099      CPPFLAGS="$gt_save_CPPFLAGS"
21100      LIBS="$gt_save_LIBS"
21101 fi
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21103 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21104   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21105
21106 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21107
21108   fi
21109   INTL_MACOSX_LIBS=
21110   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21111     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21112   fi
21113
21114
21115
21116
21117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21118 $as_echo_n "checking whether NLS is requested... " >&6; }
21119     # Check whether --enable-nls was given.
21120 if test "${enable_nls+set}" = set; then :
21121   enableval=$enable_nls; USE_NLS=$enableval
21122 else
21123   USE_NLS=yes
21124 fi
21125
21126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21127 $as_echo "$USE_NLS" >&6; }
21128
21129
21130
21131
21132     BUILD_INCLUDED_LIBINTL=no
21133     USE_INCLUDED_LIBINTL=no
21134
21135   LIBINTL=
21136   LTLIBINTL=
21137   POSUB=
21138
21139     if test "$USE_NLS" = "yes"; then
21140     gt_use_preinstalled_gnugettext=no
21141
21142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21143 $as_echo_n "checking whether included gettext is requested... " >&6; }
21144
21145 # Check whether --with-included-gettext was given.
21146 if test "${with_included_gettext+set}" = set; then :
21147   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21148 else
21149   nls_cv_force_use_gnu_gettext=no
21150 fi
21151
21152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21153 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21154
21155       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21156       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21157
21158
21159
21160
21161
21162
21163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21164 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21165 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21166   $as_echo_n "(cached) " >&6
21167 else
21168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h.  */
21170 #include <libintl.h>
21171 extern int _nl_msg_cat_cntr;
21172 extern int *_nl_domain_bindings;
21173 int
21174 main ()
21175 {
21176 bindtextdomain ("", "");
21177 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 if ac_fn_c_try_link "$LINENO"; then :
21183   gt_cv_func_gnugettext1_libc=yes
21184 else
21185   gt_cv_func_gnugettext1_libc=no
21186 fi
21187 rm -f core conftest.err conftest.$ac_objext \
21188     conftest$ac_exeext conftest.$ac_ext
21189 fi
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21191 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21192
21193         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21194
21195
21196
21197     use_additional=yes
21198
21199   acl_save_prefix="$prefix"
21200   prefix="$acl_final_prefix"
21201   acl_save_exec_prefix="$exec_prefix"
21202   exec_prefix="$acl_final_exec_prefix"
21203
21204     eval additional_includedir=\"$includedir\"
21205     eval additional_libdir=\"$libdir\"
21206
21207   exec_prefix="$acl_save_exec_prefix"
21208   prefix="$acl_save_prefix"
21209
21210
21211 # Check whether --with-libintl-prefix was given.
21212 if test "${with_libintl_prefix+set}" = set; then :
21213   withval=$with_libintl_prefix;
21214     if test "X$withval" = "Xno"; then
21215       use_additional=no
21216     else
21217       if test "X$withval" = "X"; then
21218
21219   acl_save_prefix="$prefix"
21220   prefix="$acl_final_prefix"
21221   acl_save_exec_prefix="$exec_prefix"
21222   exec_prefix="$acl_final_exec_prefix"
21223
21224           eval additional_includedir=\"$includedir\"
21225           eval additional_libdir=\"$libdir\"
21226
21227   exec_prefix="$acl_save_exec_prefix"
21228   prefix="$acl_save_prefix"
21229
21230       else
21231         additional_includedir="$withval/include"
21232         additional_libdir="$withval/lib"
21233       fi
21234     fi
21235
21236 fi
21237
21238       LIBINTL=
21239   LTLIBINTL=
21240   INCINTL=
21241   rpathdirs=
21242   ltrpathdirs=
21243   names_already_handled=
21244   names_next_round='intl '
21245   while test -n "$names_next_round"; do
21246     names_this_round="$names_next_round"
21247     names_next_round=
21248     for name in $names_this_round; do
21249       already_handled=
21250       for n in $names_already_handled; do
21251         if test "$n" = "$name"; then
21252           already_handled=yes
21253           break
21254         fi
21255       done
21256       if test -z "$already_handled"; then
21257         names_already_handled="$names_already_handled $name"
21258                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21259         eval value=\"\$HAVE_LIB$uppername\"
21260         if test -n "$value"; then
21261           if test "$value" = yes; then
21262             eval value=\"\$LIB$uppername\"
21263             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21264             eval value=\"\$LTLIB$uppername\"
21265             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21266           else
21267                                     :
21268           fi
21269         else
21270                               found_dir=
21271           found_la=
21272           found_so=
21273           found_a=
21274           if test $use_additional = yes; then
21275             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21276               found_dir="$additional_libdir"
21277               found_so="$additional_libdir/lib$name.$shlibext"
21278               if test -f "$additional_libdir/lib$name.la"; then
21279                 found_la="$additional_libdir/lib$name.la"
21280               fi
21281             else
21282               if test -f "$additional_libdir/lib$name.$libext"; then
21283                 found_dir="$additional_libdir"
21284                 found_a="$additional_libdir/lib$name.$libext"
21285                 if test -f "$additional_libdir/lib$name.la"; then
21286                   found_la="$additional_libdir/lib$name.la"
21287                 fi
21288               fi
21289             fi
21290           fi
21291           if test "X$found_dir" = "X"; then
21292             for x in $LDFLAGS $LTLIBINTL; do
21293
21294   acl_save_prefix="$prefix"
21295   prefix="$acl_final_prefix"
21296   acl_save_exec_prefix="$exec_prefix"
21297   exec_prefix="$acl_final_exec_prefix"
21298   eval x=\"$x\"
21299   exec_prefix="$acl_save_exec_prefix"
21300   prefix="$acl_save_prefix"
21301
21302               case "$x" in
21303                 -L*)
21304                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21305                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21306                     found_dir="$dir"
21307                     found_so="$dir/lib$name.$shlibext"
21308                     if test -f "$dir/lib$name.la"; then
21309                       found_la="$dir/lib$name.la"
21310                     fi
21311                   else
21312                     if test -f "$dir/lib$name.$libext"; then
21313                       found_dir="$dir"
21314                       found_a="$dir/lib$name.$libext"
21315                       if test -f "$dir/lib$name.la"; then
21316                         found_la="$dir/lib$name.la"
21317                       fi
21318                     fi
21319                   fi
21320                   ;;
21321               esac
21322               if test "X$found_dir" != "X"; then
21323                 break
21324               fi
21325             done
21326           fi
21327           if test "X$found_dir" != "X"; then
21328                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21329             if test "X$found_so" != "X"; then
21330                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21331                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21332               else
21333                                                                                 haveit=
21334                 for x in $ltrpathdirs; do
21335                   if test "X$x" = "X$found_dir"; then
21336                     haveit=yes
21337                     break
21338                   fi
21339                 done
21340                 if test -z "$haveit"; then
21341                   ltrpathdirs="$ltrpathdirs $found_dir"
21342                 fi
21343                                 if test "$hardcode_direct" = yes; then
21344                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21345                 else
21346                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21347                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21348                                                             haveit=
21349                     for x in $rpathdirs; do
21350                       if test "X$x" = "X$found_dir"; then
21351                         haveit=yes
21352                         break
21353                       fi
21354                     done
21355                     if test -z "$haveit"; then
21356                       rpathdirs="$rpathdirs $found_dir"
21357                     fi
21358                   else
21359                                                                                 haveit=
21360                     for x in $LDFLAGS $LIBINTL; do
21361
21362   acl_save_prefix="$prefix"
21363   prefix="$acl_final_prefix"
21364   acl_save_exec_prefix="$exec_prefix"
21365   exec_prefix="$acl_final_exec_prefix"
21366   eval x=\"$x\"
21367   exec_prefix="$acl_save_exec_prefix"
21368   prefix="$acl_save_prefix"
21369
21370                       if test "X$x" = "X-L$found_dir"; then
21371                         haveit=yes
21372                         break
21373                       fi
21374                     done
21375                     if test -z "$haveit"; then
21376                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21377                     fi
21378                     if test "$hardcode_minus_L" != no; then
21379                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21380                     else
21381                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21382                     fi
21383                   fi
21384                 fi
21385               fi
21386             else
21387               if test "X$found_a" != "X"; then
21388                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21389               else
21390                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21391               fi
21392             fi
21393                         additional_includedir=
21394             case "$found_dir" in
21395               */lib | */lib/)
21396                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21397                 additional_includedir="$basedir/include"
21398                 ;;
21399             esac
21400             if test "X$additional_includedir" != "X"; then
21401                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21402                 haveit=
21403                 if test "X$additional_includedir" = "X/usr/local/include"; then
21404                   if test -n "$GCC"; then
21405                     case $host_os in
21406                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21407                     esac
21408                   fi
21409                 fi
21410                 if test -z "$haveit"; then
21411                   for x in $CPPFLAGS $INCINTL; do
21412
21413   acl_save_prefix="$prefix"
21414   prefix="$acl_final_prefix"
21415   acl_save_exec_prefix="$exec_prefix"
21416   exec_prefix="$acl_final_exec_prefix"
21417   eval x=\"$x\"
21418   exec_prefix="$acl_save_exec_prefix"
21419   prefix="$acl_save_prefix"
21420
21421                     if test "X$x" = "X-I$additional_includedir"; then
21422                       haveit=yes
21423                       break
21424                     fi
21425                   done
21426                   if test -z "$haveit"; then
21427                     if test -d "$additional_includedir"; then
21428                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21429                     fi
21430                   fi
21431                 fi
21432               fi
21433             fi
21434                         if test -n "$found_la"; then
21435                                                         save_libdir="$libdir"
21436               case "$found_la" in
21437                 */* | *\\*) . "$found_la" ;;
21438                 *) . "./$found_la" ;;
21439               esac
21440               libdir="$save_libdir"
21441                             for dep in $dependency_libs; do
21442                 case "$dep" in
21443                   -L*)
21444                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21445                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21446                       haveit=
21447                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21448                         if test -n "$GCC"; then
21449                           case $host_os in
21450                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21451                           esac
21452                         fi
21453                       fi
21454                       if test -z "$haveit"; then
21455                         haveit=
21456                         for x in $LDFLAGS $LIBINTL; do
21457
21458   acl_save_prefix="$prefix"
21459   prefix="$acl_final_prefix"
21460   acl_save_exec_prefix="$exec_prefix"
21461   exec_prefix="$acl_final_exec_prefix"
21462   eval x=\"$x\"
21463   exec_prefix="$acl_save_exec_prefix"
21464   prefix="$acl_save_prefix"
21465
21466                           if test "X$x" = "X-L$additional_libdir"; then
21467                             haveit=yes
21468                             break
21469                           fi
21470                         done
21471                         if test -z "$haveit"; then
21472                           if test -d "$additional_libdir"; then
21473                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21474                           fi
21475                         fi
21476                         haveit=
21477                         for x in $LDFLAGS $LTLIBINTL; do
21478
21479   acl_save_prefix="$prefix"
21480   prefix="$acl_final_prefix"
21481   acl_save_exec_prefix="$exec_prefix"
21482   exec_prefix="$acl_final_exec_prefix"
21483   eval x=\"$x\"
21484   exec_prefix="$acl_save_exec_prefix"
21485   prefix="$acl_save_prefix"
21486
21487                           if test "X$x" = "X-L$additional_libdir"; then
21488                             haveit=yes
21489                             break
21490                           fi
21491                         done
21492                         if test -z "$haveit"; then
21493                           if test -d "$additional_libdir"; then
21494                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21495                           fi
21496                         fi
21497                       fi
21498                     fi
21499                     ;;
21500                   -R*)
21501                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21502                     if test "$enable_rpath" != no; then
21503                                                                   haveit=
21504                       for x in $rpathdirs; do
21505                         if test "X$x" = "X$dir"; then
21506                           haveit=yes
21507                           break
21508                         fi
21509                       done
21510                       if test -z "$haveit"; then
21511                         rpathdirs="$rpathdirs $dir"
21512                       fi
21513                                                                   haveit=
21514                       for x in $ltrpathdirs; do
21515                         if test "X$x" = "X$dir"; then
21516                           haveit=yes
21517                           break
21518                         fi
21519                       done
21520                       if test -z "$haveit"; then
21521                         ltrpathdirs="$ltrpathdirs $dir"
21522                       fi
21523                     fi
21524                     ;;
21525                   -l*)
21526                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21527                     ;;
21528                   *.la)
21529                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21530                     ;;
21531                   *)
21532                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21533                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21534                     ;;
21535                 esac
21536               done
21537             fi
21538           else
21539                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21540             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21541           fi
21542         fi
21543       fi
21544     done
21545   done
21546   if test "X$rpathdirs" != "X"; then
21547     if test -n "$hardcode_libdir_separator"; then
21548                         alldirs=
21549       for found_dir in $rpathdirs; do
21550         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21551       done
21552             acl_save_libdir="$libdir"
21553       libdir="$alldirs"
21554       eval flag=\"$hardcode_libdir_flag_spec\"
21555       libdir="$acl_save_libdir"
21556       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21557     else
21558             for found_dir in $rpathdirs; do
21559         acl_save_libdir="$libdir"
21560         libdir="$found_dir"
21561         eval flag=\"$hardcode_libdir_flag_spec\"
21562         libdir="$acl_save_libdir"
21563         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21564       done
21565     fi
21566   fi
21567   if test "X$ltrpathdirs" != "X"; then
21568             for found_dir in $ltrpathdirs; do
21569       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21570     done
21571   fi
21572
21573           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21574 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21575 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21576   $as_echo_n "(cached) " >&6
21577 else
21578   gt_save_CPPFLAGS="$CPPFLAGS"
21579             CPPFLAGS="$CPPFLAGS $INCINTL"
21580             gt_save_LIBS="$LIBS"
21581             LIBS="$LIBS $LIBINTL"
21582                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h.  */
21584 #include <libintl.h>
21585 extern int _nl_msg_cat_cntr;
21586 extern
21587 #ifdef __cplusplus
21588 "C"
21589 #endif
21590 const char *_nl_expand_alias (const char *);
21591 int
21592 main ()
21593 {
21594 bindtextdomain ("", "");
21595 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 if ac_fn_c_try_link "$LINENO"; then :
21601   gt_cv_func_gnugettext1_libintl=yes
21602 else
21603   gt_cv_func_gnugettext1_libintl=no
21604 fi
21605 rm -f core conftest.err conftest.$ac_objext \
21606     conftest$ac_exeext conftest.$ac_ext
21607                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21608               LIBS="$LIBS $LIBICONV"
21609               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h.  */
21611 #include <libintl.h>
21612 extern int _nl_msg_cat_cntr;
21613 extern
21614 #ifdef __cplusplus
21615 "C"
21616 #endif
21617 const char *_nl_expand_alias (const char *);
21618 int
21619 main ()
21620 {
21621 bindtextdomain ("", "");
21622 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21623   ;
21624   return 0;
21625 }
21626 _ACEOF
21627 if ac_fn_c_try_link "$LINENO"; then :
21628   LIBINTL="$LIBINTL $LIBICONV"
21629                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21630                 gt_cv_func_gnugettext1_libintl=yes
21631
21632 fi
21633 rm -f core conftest.err conftest.$ac_objext \
21634     conftest$ac_exeext conftest.$ac_ext
21635             fi
21636             CPPFLAGS="$gt_save_CPPFLAGS"
21637             LIBS="$gt_save_LIBS"
21638 fi
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21640 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21641         fi
21642
21643                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21644            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21645                 && test "$PACKAGE" != gettext-runtime \
21646                 && test "$PACKAGE" != gettext-tools; }; then
21647           gt_use_preinstalled_gnugettext=yes
21648         else
21649                     LIBINTL=
21650           LTLIBINTL=
21651           INCINTL=
21652         fi
21653
21654
21655         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21656                               nls_cv_use_gnu_gettext=yes
21657         fi
21658       fi
21659
21660       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21661                 BUILD_INCLUDED_LIBINTL=yes
21662         USE_INCLUDED_LIBINTL=yes
21663         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21664         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21665         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21666       fi
21667
21668       CATOBJEXT=
21669       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21670          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21671                 CATOBJEXT=.gmo
21672       fi
21673
21674
21675     if test -n "$INTL_MACOSX_LIBS"; then
21676       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21677          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21678                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21679         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21680       fi
21681     fi
21682
21683     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21684        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21685
21686 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21687
21688     else
21689       USE_NLS=no
21690     fi
21691   fi
21692
21693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21694 $as_echo_n "checking whether to use NLS... " >&6; }
21695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21696 $as_echo "$USE_NLS" >&6; }
21697   if test "$USE_NLS" = "yes"; then
21698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21699 $as_echo_n "checking where the gettext function comes from... " >&6; }
21700     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21701       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21702         gt_source="external libintl"
21703       else
21704         gt_source="libc"
21705       fi
21706     else
21707       gt_source="included intl directory"
21708     fi
21709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21710 $as_echo "$gt_source" >&6; }
21711   fi
21712
21713   if test "$USE_NLS" = "yes"; then
21714
21715     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21716       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21717         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21718 $as_echo_n "checking how to link with libintl... " >&6; }
21719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21720 $as_echo "$LIBINTL" >&6; }
21721
21722   for element in $INCINTL; do
21723     haveit=
21724     for x in $CPPFLAGS; do
21725
21726   acl_save_prefix="$prefix"
21727   prefix="$acl_final_prefix"
21728   acl_save_exec_prefix="$exec_prefix"
21729   exec_prefix="$acl_final_exec_prefix"
21730   eval x=\"$x\"
21731   exec_prefix="$acl_save_exec_prefix"
21732   prefix="$acl_save_prefix"
21733
21734       if test "X$x" = "X$element"; then
21735         haveit=yes
21736         break
21737       fi
21738     done
21739     if test -z "$haveit"; then
21740       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21741     fi
21742   done
21743
21744       fi
21745
21746
21747 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21748
21749
21750 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21751
21752     fi
21753
21754         POSUB=po
21755   fi
21756
21757
21758             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21759       BUILD_INCLUDED_LIBINTL=yes
21760     fi
21761
21762
21763
21764
21765
21766         nls_cv_header_intl=
21767     nls_cv_header_libgt=
21768
21769         DATADIRNAME=share
21770
21771
21772         INSTOBJEXT=.mo
21773
21774
21775         GENCAT=gencat
21776
21777
21778         INTLOBJS=
21779     if test "$USE_INCLUDED_LIBINTL" = yes; then
21780       INTLOBJS="\$(GETTOBJS)"
21781     fi
21782
21783
21784         INTL_LIBTOOL_SUFFIX_PREFIX=
21785
21786
21787
21788     INTLLIBS="$LIBINTL"
21789
21790
21791
21792
21793
21794
21795 fi
21796
21797 support_smartalloc=yes
21798 support_readline=yes
21799 support_lzo=yes
21800 support_conio=yes
21801 support_bat=no
21802 support_tls=no
21803 support_crypto=no
21804 support_static_tools=no
21805 support_static_fd=no
21806 support_static_sd=no
21807 support_static_dir=no
21808 support_static_cons=no
21809 build_client_only=no
21810 build_dird=yes
21811 build_stored=yes
21812 db_backends=""
21813 batch_insert_db_backends=""
21814 support_lockmgr=no
21815
21816
21817 # Check whether --enable-bat was given.
21818 if test "${enable_bat+set}" = set; then :
21819   enableval=$enable_bat;
21820        if test x$enableval = xyes; then
21821
21822 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21823
21824           support_bat=yes
21825        fi
21826
21827
21828 fi
21829
21830
21831 BAT_DIR=
21832 if test x$support_bat = xyes; then
21833    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21834    pkg=$?
21835    if test $pkg = 0; then
21836       BAT_DIR=src/qt-console
21837    else
21838       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21839    fi
21840 fi
21841
21842 got_qwt=no
21843 QWT_INC=
21844 QWT_LDFLAGS=
21845 QWT_LIB=
21846 QWT=
21847 no_qwt=no
21848
21849
21850
21851
21852
21853
21854
21855
21856 # Check whether --enable-smartalloc was given.
21857 if test "${enable_smartalloc+set}" = set; then :
21858   enableval=$enable_smartalloc;
21859        if test x$enableval = xno; then
21860           support_smartalloc=no
21861        fi
21862
21863
21864 fi
21865
21866
21867 if test x$support_smartalloc = xyes; then
21868
21869 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21870
21871 fi
21872
21873 # Check whether --enable-lockmgr was given.
21874 if test "${enable_lockmgr+set}" = set; then :
21875   enableval=$enable_lockmgr;
21876        if test x$enableval = xyes; then
21877           support_lockmgr=yes
21878        fi
21879
21880
21881 fi
21882
21883
21884 if test x$support_lockmgr = xyes; then
21885
21886 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21887
21888 fi
21889
21890
21891 # Check whether --enable-static-tools was given.
21892 if test "${enable_static_tools+set}" = set; then :
21893   enableval=$enable_static_tools;
21894        if test x$enableval = xyes; then
21895           if test x$use_libtool = xyes; then
21896              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21897   please rerun configure with --disable-libtool" "$LINENO" 5
21898           fi
21899           support_static_tools=yes
21900        fi
21901
21902
21903 fi
21904
21905
21906 TTOOL_LDFLAGS=
21907 if test x$support_static_tools = xyes; then
21908    TTOOL_LDFLAGS="-static"
21909 fi
21910
21911
21912 # Check whether --enable-static-fd was given.
21913 if test "${enable_static_fd+set}" = set; then :
21914   enableval=$enable_static_fd;
21915        if test x$enableval = xyes; then
21916           if test x$use_libtool = xyes; then
21917              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21918   please rerun configure with --disable-libtool" "$LINENO" 5
21919           fi
21920           support_static_fd=yes
21921        fi
21922
21923
21924 fi
21925
21926
21927 STATIC_FD=
21928 if test x$support_static_fd = xyes; then
21929    STATIC_FD="static-bacula-fd"
21930 fi
21931
21932
21933 # Check whether --enable-static-sd was given.
21934 if test "${enable_static_sd+set}" = set; then :
21935   enableval=$enable_static_sd;
21936        if test x$enableval = xyes; then
21937           if test x$use_libtool = xyes; then
21938              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21939   please rerun configure with --disable-libtool" "$LINENO" 5
21940           fi
21941           support_static_sd=yes
21942        fi
21943
21944
21945 fi
21946
21947
21948 STATIC_SD=
21949 if test x$support_static_sd = xyes; then
21950    STATIC_SD="static-bacula-sd"
21951 fi
21952
21953
21954 # Check whether --enable-static-dir was given.
21955 if test "${enable_static_dir+set}" = set; then :
21956   enableval=$enable_static_dir;
21957        if test x$enableval = xyes; then
21958           if test x$use_libtool = xyes; then
21959              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21960   please rerun configure with --disable-libtool" "$LINENO" 5
21961           fi
21962           support_static_dir=yes
21963        fi
21964
21965
21966 fi
21967
21968
21969 STATIC_DIR=
21970 if test x$support_static_dir = xyes; then
21971    STATIC_DIR="static-bacula-dir"
21972 fi
21973
21974
21975 # Check whether --enable-static-cons was given.
21976 if test "${enable_static_cons+set}" = set; then :
21977   enableval=$enable_static_cons;
21978        if test x$enableval = xyes; then
21979           if test x$use_libtool = xyes; then
21980              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21981   please rerun configure with --disable-libtool" "$LINENO" 5
21982           fi
21983           support_static_cons=yes
21984        fi
21985
21986
21987 fi
21988
21989
21990 STATIC_CONS=
21991 if test x$support_static_cons = xyes; then
21992    STATIC_CONS="static-bconsole"
21993 fi
21994
21995
21996 # Check whether --enable-client-only was given.
21997 if test "${enable_client_only+set}" = set; then :
21998   enableval=$enable_client_only;
21999        if test x$enableval = xyes; then
22000           build_client_only=yes
22001           db_backends="None"
22002           DB_BACKENDS="none"
22003        fi
22004
22005
22006 fi
22007
22008 if test x$build_client_only = xno; then
22009    ALL_DIRS="subdirs"
22010 else
22011    ALL_DIRS=""
22012 fi
22013
22014
22015 # Check whether --enable-build-dird was given.
22016 if test "${enable_build_dird+set}" = set; then :
22017   enableval=$enable_build_dird;
22018        if test x$enableval = xno; then
22019           build_dird=no
22020        fi
22021
22022
22023 fi
22024
22025
22026 DIRD_DIR="src/dird"
22027 DIR_TOOLS="DIRTOOLS"
22028
22029
22030
22031
22032 # Check whether --enable-build-stored was given.
22033 if test "${enable_build_stored+set}" = set; then :
22034   enableval=$enable_build_stored;
22035       if test x$enableval = xno; then
22036          build_stored=no
22037       fi
22038
22039
22040 fi
22041
22042 if test x$build_stored = xyes; then
22043    STORED_DIR="src/stored"
22044 else
22045    STORED_DIR=""
22046 fi
22047
22048
22049 # Check whether --enable-conio was given.
22050 if test "${enable_conio+set}" = set; then :
22051   enableval=$enable_conio;
22052        if test x$enableval = xno; then
22053           support_conio=no
22054        fi
22055
22056
22057 fi
22058
22059
22060
22061 support_ipv6=yes
22062 # Check whether --enable-ipv6 was given.
22063 if test "${enable_ipv6+set}" = set; then :
22064   enableval=$enable_ipv6;
22065        if test x$enableval = xno; then
22066           support_ipv6=no
22067        fi
22068
22069
22070 fi
22071
22072
22073 if test x$support_ipv6 = xyes; then
22074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h.  */
22076  #include <sys/types.h>
22077 #include <sys/socket.h>
22078 #include <netinet/in.h>
22079 int
22080 main ()
22081 {
22082 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22083   ;
22084   return 0;
22085 }
22086 _ACEOF
22087 if ac_fn_c_try_link "$LINENO"; then :
22088   support_in6addr_any=yes
22089 else
22090   support_in6addr_any=no
22091 fi
22092 rm -f core conftest.err conftest.$ac_objext \
22093     conftest$ac_exeext conftest.$ac_ext
22094
22095    if test x$support_in6addr_any = xno ; then
22096        in6addr_any="const struct in6_addr in6addr_any"
22097    else
22098        in6addr_any="1"
22099    fi
22100
22101    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h.  */
22103  #include <sys/types.h>
22104 #include <sys/socket.h>
22105 #include <netinet/in.h>
22106 int
22107 main ()
22108 {
22109 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22110   ;
22111   return 0;
22112 }
22113 _ACEOF
22114 if ac_fn_c_try_link "$LINENO"; then :
22115   support_ipv6=yes
22116 else
22117   support_ipv6=no
22118 fi
22119 rm -f core conftest.err conftest.$ac_objext \
22120     conftest$ac_exeext conftest.$ac_ext
22121 fi
22122
22123 if test x$support_ipv6 = xyes; then
22124
22125 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22126
22127
22128    if test x$support_in6addr_any = xno ; then
22129
22130 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22131
22132    fi
22133 fi
22134
22135 TERM_LIB=""
22136 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22137 if test "x$ac_cv_header_curses_h" = xyes; then :
22138
22139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22140 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22141 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22142   $as_echo_n "(cached) " >&6
22143 else
22144   ac_check_lib_save_LIBS=$LIBS
22145 LIBS="-ltinfo  $LIBS"
22146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22147 /* end confdefs.h.  */
22148
22149 /* Override any GCC internal prototype to avoid an error.
22150    Use char because int might match the return type of a GCC
22151    builtin and then its argument prototype would still apply.  */
22152 #ifdef __cplusplus
22153 extern "C"
22154 #endif
22155 char tgetent ();
22156 int
22157 main ()
22158 {
22159 return tgetent ();
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 if ac_fn_c_try_link "$LINENO"; then :
22165   ac_cv_lib_tinfo_tgetent=yes
22166 else
22167   ac_cv_lib_tinfo_tgetent=no
22168 fi
22169 rm -f core conftest.err conftest.$ac_objext \
22170     conftest$ac_exeext conftest.$ac_ext
22171 LIBS=$ac_check_lib_save_LIBS
22172 fi
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22174 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22175 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22176    TERM_LIB="-ltinfo"
22177 else
22178
22179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22180 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22181 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22182   $as_echo_n "(cached) " >&6
22183 else
22184   ac_check_lib_save_LIBS=$LIBS
22185 LIBS="-lncurses  $LIBS"
22186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h.  */
22188
22189 /* Override any GCC internal prototype to avoid an error.
22190    Use char because int might match the return type of a GCC
22191    builtin and then its argument prototype would still apply.  */
22192 #ifdef __cplusplus
22193 extern "C"
22194 #endif
22195 char tgetent ();
22196 int
22197 main ()
22198 {
22199 return tgetent ();
22200   ;
22201   return 0;
22202 }
22203 _ACEOF
22204 if ac_fn_c_try_link "$LINENO"; then :
22205   ac_cv_lib_ncurses_tgetent=yes
22206 else
22207   ac_cv_lib_ncurses_tgetent=no
22208 fi
22209 rm -f core conftest.err conftest.$ac_objext \
22210     conftest$ac_exeext conftest.$ac_ext
22211 LIBS=$ac_check_lib_save_LIBS
22212 fi
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22214 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22215 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22216    TERM_LIB="-lncurses"
22217 else
22218
22219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22220 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22221 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22222   $as_echo_n "(cached) " >&6
22223 else
22224   ac_check_lib_save_LIBS=$LIBS
22225 LIBS="-ltermcap  $LIBS"
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h.  */
22228
22229 /* Override any GCC internal prototype to avoid an error.
22230    Use char because int might match the return type of a GCC
22231    builtin and then its argument prototype would still apply.  */
22232 #ifdef __cplusplus
22233 extern "C"
22234 #endif
22235 char tgetent ();
22236 int
22237 main ()
22238 {
22239 return tgetent ();
22240   ;
22241   return 0;
22242 }
22243 _ACEOF
22244 if ac_fn_c_try_link "$LINENO"; then :
22245   ac_cv_lib_termcap_tgetent=yes
22246 else
22247   ac_cv_lib_termcap_tgetent=no
22248 fi
22249 rm -f core conftest.err conftest.$ac_objext \
22250     conftest$ac_exeext conftest.$ac_ext
22251 LIBS=$ac_check_lib_save_LIBS
22252 fi
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22254 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22255 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22256    TERM_LIB="-ltermcap"
22257 fi
22258
22259
22260 fi
22261
22262
22263 fi
22264
22265
22266 else
22267     for ac_header in curses.h
22268 do :
22269   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22270 if test "x$ac_cv_header_curses_h" = xyes; then :
22271   cat >>confdefs.h <<_ACEOF
22272 #define HAVE_CURSES_H 1
22273 _ACEOF
22274
22275 fi
22276
22277 done
22278
22279      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22280 if test "x$ac_cv_header_term_h" = xyes; then :
22281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22282 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22283 if ${ac_cv_lib_curses_tgetent+:} false; then :
22284   $as_echo_n "(cached) " >&6
22285 else
22286   ac_check_lib_save_LIBS=$LIBS
22287 LIBS="-lcurses  $LIBS"
22288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h.  */
22290
22291 /* Override any GCC internal prototype to avoid an error.
22292    Use char because int might match the return type of a GCC
22293    builtin and then its argument prototype would still apply.  */
22294 #ifdef __cplusplus
22295 extern "C"
22296 #endif
22297 char tgetent ();
22298 int
22299 main ()
22300 {
22301 return tgetent ();
22302   ;
22303   return 0;
22304 }
22305 _ACEOF
22306 if ac_fn_c_try_link "$LINENO"; then :
22307   ac_cv_lib_curses_tgetent=yes
22308 else
22309   ac_cv_lib_curses_tgetent=no
22310 fi
22311 rm -f core conftest.err conftest.$ac_objext \
22312     conftest$ac_exeext conftest.$ac_ext
22313 LIBS=$ac_check_lib_save_LIBS
22314 fi
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22316 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22317 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22318    TERM_LIB="-lcurses"
22319 fi
22320
22321
22322 fi
22323
22324
22325
22326 fi
22327
22328
22329
22330
22331 got_conio="no"
22332 if test x$support_conio = xyes; then
22333    if test x$TERM_LIB != x; then
22334       CONS_LIBS=$TERM_LIB
22335       CONS_OBJ="conio.o"
22336       CONS_SRC="conio.c"
22337       got_conio="yes"
22338       support_readline=no
22339
22340 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22341
22342    else
22343       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22344    fi
22345 fi
22346
22347
22348 # Check whether --enable-readline was given.
22349 if test "${enable_readline+set}" = set; then :
22350   enableval=$enable_readline;
22351        if test x$enableval = xno; then
22352           support_readline=no
22353        fi
22354
22355
22356 fi
22357
22358
22359 got_readline="no"
22360 READLINE_SRC=
22361 if test x$support_readline = xyes; then
22362
22363 # Check whether --with-readline was given.
22364 if test "${with_readline+set}" = set; then :
22365   withval=$with_readline;
22366           case "$with_readline" in
22367           no)
22368              :
22369              ;;
22370           yes|*)
22371              if test -f ${with_readline}/readline.h; then
22372                 CONS_INC="-I${with_readline}"
22373                 CONS_LDFLAGS="-L$with_readline"
22374              elif test -f ${with_readline}/include/readline/readline.h; then
22375                 CONS_INC="-I${with_readline}/include/readline"
22376                 CONS_LDFLAGS="-L${with_readline}/lib"
22377                 with_readline="${with_readline}/include/readline"
22378              else
22379                 with_readline="/usr/include/readline"
22380              fi
22381
22382              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22383 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22385
22386
22387 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22388
22389                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22390                     got_readline="yes"
22391
22392 else
22393
22394                     echo " "
22395                     echo "readline.h not found. readline turned off ..."
22396                     echo " "
22397
22398
22399 fi
22400
22401
22402              ;;
22403           esac
22404
22405 else
22406
22407                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22408 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22409
22410
22411 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22412
22413                 got_readline="yes"
22414                 CONS_INC="-I/usr/include/readline"
22415                 CONS_LIBS="-lreadline ${TERM_LIB}"
22416
22417 else
22418
22419                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22420 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22422
22423
22424 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22425
22426                         got_readline="yes"
22427                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22428                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22429                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22430                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22431
22432 else
22433
22434                         echo " "
22435                         echo "readline.h not found. readline turned off ..."
22436                         echo " "
22437
22438
22439 fi
22440
22441
22442
22443
22444 fi
22445
22446
22447
22448
22449 fi
22450
22451 fi
22452
22453
22454
22455
22456
22457
22458
22459
22460 MAKE_SHELL=/bin/sh
22461
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22463 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22464 if ${ac_cv_header_stat_broken+:} false; then :
22465   $as_echo_n "(cached) " >&6
22466 else
22467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468 /* end confdefs.h.  */
22469 #include <sys/types.h>
22470 #include <sys/stat.h>
22471
22472 #if defined S_ISBLK && defined S_IFDIR
22473 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22474 #endif
22475
22476 #if defined S_ISBLK && defined S_IFCHR
22477 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22478 #endif
22479
22480 #if defined S_ISLNK && defined S_IFREG
22481 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22482 #endif
22483
22484 #if defined S_ISSOCK && defined S_IFREG
22485 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22486 #endif
22487
22488 _ACEOF
22489 if ac_fn_c_try_compile "$LINENO"; then :
22490   ac_cv_header_stat_broken=no
22491 else
22492   ac_cv_header_stat_broken=yes
22493 fi
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 fi
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22497 $as_echo "$ac_cv_header_stat_broken" >&6; }
22498 if test $ac_cv_header_stat_broken = yes; then
22499
22500 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22501
22502 fi
22503
22504 ac_header_dirent=no
22505 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22506   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22508 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22509 if eval \${$as_ac_Header+:} false; then :
22510   $as_echo_n "(cached) " >&6
22511 else
22512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h.  */
22514 #include <sys/types.h>
22515 #include <$ac_hdr>
22516
22517 int
22518 main ()
22519 {
22520 if ((DIR *) 0)
22521 return 0;
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 if ac_fn_c_try_compile "$LINENO"; then :
22527   eval "$as_ac_Header=yes"
22528 else
22529   eval "$as_ac_Header=no"
22530 fi
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 fi
22533 eval ac_res=\$$as_ac_Header
22534                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22535 $as_echo "$ac_res" >&6; }
22536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22537   cat >>confdefs.h <<_ACEOF
22538 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22539 _ACEOF
22540
22541 ac_header_dirent=$ac_hdr; break
22542 fi
22543
22544 done
22545 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22546 if test $ac_header_dirent = dirent.h; then
22547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22548 $as_echo_n "checking for library containing opendir... " >&6; }
22549 if ${ac_cv_search_opendir+:} false; then :
22550   $as_echo_n "(cached) " >&6
22551 else
22552   ac_func_search_save_LIBS=$LIBS
22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22554 /* end confdefs.h.  */
22555
22556 /* Override any GCC internal prototype to avoid an error.
22557    Use char because int might match the return type of a GCC
22558    builtin and then its argument prototype would still apply.  */
22559 #ifdef __cplusplus
22560 extern "C"
22561 #endif
22562 char opendir ();
22563 int
22564 main ()
22565 {
22566 return opendir ();
22567   ;
22568   return 0;
22569 }
22570 _ACEOF
22571 for ac_lib in '' dir; do
22572   if test -z "$ac_lib"; then
22573     ac_res="none required"
22574   else
22575     ac_res=-l$ac_lib
22576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22577   fi
22578   if ac_fn_c_try_link "$LINENO"; then :
22579   ac_cv_search_opendir=$ac_res
22580 fi
22581 rm -f core conftest.err conftest.$ac_objext \
22582     conftest$ac_exeext
22583   if ${ac_cv_search_opendir+:} false; then :
22584   break
22585 fi
22586 done
22587 if ${ac_cv_search_opendir+:} false; then :
22588
22589 else
22590   ac_cv_search_opendir=no
22591 fi
22592 rm conftest.$ac_ext
22593 LIBS=$ac_func_search_save_LIBS
22594 fi
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22596 $as_echo "$ac_cv_search_opendir" >&6; }
22597 ac_res=$ac_cv_search_opendir
22598 if test "$ac_res" != no; then :
22599   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22600
22601 fi
22602
22603 else
22604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22605 $as_echo_n "checking for library containing opendir... " >&6; }
22606 if ${ac_cv_search_opendir+:} false; then :
22607   $as_echo_n "(cached) " >&6
22608 else
22609   ac_func_search_save_LIBS=$LIBS
22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h.  */
22612
22613 /* Override any GCC internal prototype to avoid an error.
22614    Use char because int might match the return type of a GCC
22615    builtin and then its argument prototype would still apply.  */
22616 #ifdef __cplusplus
22617 extern "C"
22618 #endif
22619 char opendir ();
22620 int
22621 main ()
22622 {
22623 return opendir ();
22624   ;
22625   return 0;
22626 }
22627 _ACEOF
22628 for ac_lib in '' x; do
22629   if test -z "$ac_lib"; then
22630     ac_res="none required"
22631   else
22632     ac_res=-l$ac_lib
22633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22634   fi
22635   if ac_fn_c_try_link "$LINENO"; then :
22636   ac_cv_search_opendir=$ac_res
22637 fi
22638 rm -f core conftest.err conftest.$ac_objext \
22639     conftest$ac_exeext
22640   if ${ac_cv_search_opendir+:} false; then :
22641   break
22642 fi
22643 done
22644 if ${ac_cv_search_opendir+:} false; then :
22645
22646 else
22647   ac_cv_search_opendir=no
22648 fi
22649 rm conftest.$ac_ext
22650 LIBS=$ac_func_search_save_LIBS
22651 fi
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22653 $as_echo "$ac_cv_search_opendir" >&6; }
22654 ac_res=$ac_cv_search_opendir
22655 if test "$ac_res" != no; then :
22656   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22657
22658 fi
22659
22660 fi
22661
22662 for ac_func in strcasecmp select setenv putenv tcgetattr
22663 do :
22664   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22667   cat >>confdefs.h <<_ACEOF
22668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22669 _ACEOF
22670
22671 fi
22672 done
22673
22674 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22675 do :
22676   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22679   cat >>confdefs.h <<_ACEOF
22680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22681 _ACEOF
22682
22683 fi
22684 done
22685
22686 for ac_func in nanosleep nl_langinfo
22687 do :
22688   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22690 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22691   cat >>confdefs.h <<_ACEOF
22692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22693 _ACEOF
22694
22695 fi
22696 done
22697
22698 for ac_func in be64toh htobe64
22699 do :
22700   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22702 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22703   cat >>confdefs.h <<_ACEOF
22704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22705 _ACEOF
22706
22707 fi
22708 done
22709
22710 for ac_header in varargs.h
22711 do :
22712   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22713 if test "x$ac_cv_header_varargs_h" = xyes; then :
22714   cat >>confdefs.h <<_ACEOF
22715 #define HAVE_VARARGS_H 1
22716 _ACEOF
22717
22718 fi
22719
22720 done
22721
22722
22723
22724 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22725 if test "x$ac_cv_func_socket" = xyes; then :
22726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22727 $as_echo "using libc's socket" >&6; }
22728 else
22729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22730 $as_echo_n "checking for socket in -lxnet... " >&6; }
22731 if ${ac_cv_lib_xnet_socket+:} false; then :
22732   $as_echo_n "(cached) " >&6
22733 else
22734   ac_check_lib_save_LIBS=$LIBS
22735 LIBS="-lxnet  $LIBS"
22736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737 /* end confdefs.h.  */
22738
22739 /* Override any GCC internal prototype to avoid an error.
22740    Use char because int might match the return type of a GCC
22741    builtin and then its argument prototype would still apply.  */
22742 #ifdef __cplusplus
22743 extern "C"
22744 #endif
22745 char socket ();
22746 int
22747 main ()
22748 {
22749 return socket ();
22750   ;
22751   return 0;
22752 }
22753 _ACEOF
22754 if ac_fn_c_try_link "$LINENO"; then :
22755   ac_cv_lib_xnet_socket=yes
22756 else
22757   ac_cv_lib_xnet_socket=no
22758 fi
22759 rm -f core conftest.err conftest.$ac_objext \
22760     conftest$ac_exeext conftest.$ac_ext
22761 LIBS=$ac_check_lib_save_LIBS
22762 fi
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22764 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22765 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22766   cat >>confdefs.h <<_ACEOF
22767 #define HAVE_LIBXNET 1
22768 _ACEOF
22769
22770   LIBS="-lxnet $LIBS"
22771
22772 fi
22773
22774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22775 $as_echo_n "checking for socket in -lsocket... " >&6; }
22776 if ${ac_cv_lib_socket_socket+:} false; then :
22777   $as_echo_n "(cached) " >&6
22778 else
22779   ac_check_lib_save_LIBS=$LIBS
22780 LIBS="-lsocket  $LIBS"
22781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782 /* end confdefs.h.  */
22783
22784 /* Override any GCC internal prototype to avoid an error.
22785    Use char because int might match the return type of a GCC
22786    builtin and then its argument prototype would still apply.  */
22787 #ifdef __cplusplus
22788 extern "C"
22789 #endif
22790 char socket ();
22791 int
22792 main ()
22793 {
22794 return socket ();
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 if ac_fn_c_try_link "$LINENO"; then :
22800   ac_cv_lib_socket_socket=yes
22801 else
22802   ac_cv_lib_socket_socket=no
22803 fi
22804 rm -f core conftest.err conftest.$ac_objext \
22805     conftest$ac_exeext conftest.$ac_ext
22806 LIBS=$ac_check_lib_save_LIBS
22807 fi
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22809 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22810 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22811   cat >>confdefs.h <<_ACEOF
22812 #define HAVE_LIBSOCKET 1
22813 _ACEOF
22814
22815   LIBS="-lsocket $LIBS"
22816
22817 fi
22818
22819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22820 $as_echo_n "checking for socket in -linet... " >&6; }
22821 if ${ac_cv_lib_inet_socket+:} false; then :
22822   $as_echo_n "(cached) " >&6
22823 else
22824   ac_check_lib_save_LIBS=$LIBS
22825 LIBS="-linet  $LIBS"
22826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22827 /* end confdefs.h.  */
22828
22829 /* Override any GCC internal prototype to avoid an error.
22830    Use char because int might match the return type of a GCC
22831    builtin and then its argument prototype would still apply.  */
22832 #ifdef __cplusplus
22833 extern "C"
22834 #endif
22835 char socket ();
22836 int
22837 main ()
22838 {
22839 return socket ();
22840   ;
22841   return 0;
22842 }
22843 _ACEOF
22844 if ac_fn_c_try_link "$LINENO"; then :
22845   ac_cv_lib_inet_socket=yes
22846 else
22847   ac_cv_lib_inet_socket=no
22848 fi
22849 rm -f core conftest.err conftest.$ac_objext \
22850     conftest$ac_exeext conftest.$ac_ext
22851 LIBS=$ac_check_lib_save_LIBS
22852 fi
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22854 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22855 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22856   cat >>confdefs.h <<_ACEOF
22857 #define HAVE_LIBINET 1
22858 _ACEOF
22859
22860   LIBS="-linet $LIBS"
22861
22862 fi
22863
22864 fi
22865
22866
22867 TCPW_MSG="no"
22868 WRAPLIBS=""
22869
22870 # Check whether --with-tcp-wrappers was given.
22871 if test "${with_tcp_wrappers+set}" = set; then :
22872   withval=$with_tcp_wrappers;
22873        if test "x$withval" != "xno" ; then
22874           saved_LIBS="$LIBS"
22875           LIBS="$saved_LIBS -lwrap"
22876           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22877 $as_echo_n "checking for library containing nanosleep... " >&6; }
22878 if ${ac_cv_search_nanosleep+:} false; then :
22879   $as_echo_n "(cached) " >&6
22880 else
22881   ac_func_search_save_LIBS=$LIBS
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h.  */
22884
22885 /* Override any GCC internal prototype to avoid an error.
22886    Use char because int might match the return type of a GCC
22887    builtin and then its argument prototype would still apply.  */
22888 #ifdef __cplusplus
22889 extern "C"
22890 #endif
22891 char nanosleep ();
22892 int
22893 main ()
22894 {
22895 return nanosleep ();
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 for ac_lib in '' rt; do
22901   if test -z "$ac_lib"; then
22902     ac_res="none required"
22903   else
22904     ac_res=-l$ac_lib
22905     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22906   fi
22907   if ac_fn_c_try_link "$LINENO"; then :
22908   ac_cv_search_nanosleep=$ac_res
22909 fi
22910 rm -f core conftest.err conftest.$ac_objext \
22911     conftest$ac_exeext
22912   if ${ac_cv_search_nanosleep+:} false; then :
22913   break
22914 fi
22915 done
22916 if ${ac_cv_search_nanosleep+:} false; then :
22917
22918 else
22919   ac_cv_search_nanosleep=no
22920 fi
22921 rm conftest.$ac_ext
22922 LIBS=$ac_func_search_save_LIBS
22923 fi
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22925 $as_echo "$ac_cv_search_nanosleep" >&6; }
22926 ac_res=$ac_cv_search_nanosleep
22927 if test "$ac_res" != no; then :
22928   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22929
22930 fi
22931
22932           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22933 $as_echo_n "checking for libwrap... " >&6; }
22934           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935 /* end confdefs.h.  */
22936
22937                #include <sys/types.h>
22938                #include <tcpd.h>
22939                int deny_severity = 0;
22940                int allow_severity = 0;
22941                struct request_info *req;
22942
22943 int
22944 main ()
22945 {
22946
22947                 hosts_access(req);
22948
22949   ;
22950   return 0;
22951 }
22952 _ACEOF
22953 if ac_fn_c_try_link "$LINENO"; then :
22954
22955                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22956 $as_echo "yes" >&6; }
22957
22958 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22959
22960                  TCPW_MSG="yes"
22961                  LIBS="$saved_LIBS"
22962                  WRAPLIBS="-lwrap"
22963
22964 else
22965
22966                  LIBS="$saved_LIBS -lwrap -lnsl"
22967                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22968                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22969 /* end confdefs.h.  */
22970
22971                        #include <sys/types.h>
22972                        #include <tcpd.h>
22973                        int deny_severity = 0;
22974                        int allow_severity = 0;
22975                        struct request_info *req;
22976
22977 int
22978 main ()
22979 {
22980
22981                        hosts_access(req);
22982
22983   ;
22984   return 0;
22985 }
22986 _ACEOF
22987 if ac_fn_c_try_link "$LINENO"; then :
22988
22989                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22990 $as_echo "yes" >&6; }
22991
22992 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22993
22994                       TCPW_MSG="yes"
22995                       LIBS="$saved_LIBS"
22996                       WRAPLIBS="-lwrap"
22997
22998 else
22999
23000                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
23001
23002
23003 fi
23004 rm -f core conftest.err conftest.$ac_objext \
23005     conftest$ac_exeext conftest.$ac_ext
23006
23007
23008 fi
23009 rm -f core conftest.err conftest.$ac_objext \
23010     conftest$ac_exeext conftest.$ac_ext
23011        fi
23012
23013
23014 fi
23015
23016
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23018 $as_echo_n "checking for OpenSSL... " >&6; }
23019
23020 # Check whether --with-openssl was given.
23021 if test "${with_openssl+set}" = set; then :
23022   withval=$with_openssl;
23023         with_openssl_directory=${withval}
23024
23025
23026 fi
23027
23028
23029 if test "x$with_openssl_directory" != "xno"; then
23030    OPENSSL_LIBS="-lssl -lcrypto"
23031    OPENSSL_INC=""
23032
23033    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23034       #
23035       # Make sure the $with_openssl_directory also makes sense
23036       #
23037       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23038          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23039          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23040       fi
23041    fi
23042
23043    saved_LIBS="${LIBS}"
23044    saved_CFLAGS="${CFLAGS}"
23045    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23046    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23047
23048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049 /* end confdefs.h.  */
23050
23051           #include <openssl/ssl.h>
23052
23053 int
23054 main ()
23055 {
23056
23057            CRYPTO_set_id_callback(NULL);
23058
23059   ;
23060   return 0;
23061 }
23062 _ACEOF
23063 if ac_fn_c_try_link "$LINENO"; then :
23064
23065           support_tls="yes"
23066           support_crypto="yes"
23067
23068 else
23069
23070           support_tls="no"
23071           support_crypto="no"
23072
23073
23074 fi
23075 rm -f core conftest.err conftest.$ac_objext \
23076     conftest$ac_exeext conftest.$ac_ext
23077
23078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23079 /* end confdefs.h.  */
23080
23081           #include <openssl/evp.h>
23082
23083 int
23084 main ()
23085 {
23086
23087           EVP_sha512();
23088
23089   ;
23090   return 0;
23091 }
23092 _ACEOF
23093 if ac_fn_c_try_link "$LINENO"; then :
23094
23095           ac_cv_openssl_sha2="yes"
23096
23097 else
23098
23099           ac_cv_openssl_sha2="no"
23100
23101
23102 fi
23103 rm -f core conftest.err conftest.$ac_objext \
23104     conftest$ac_exeext conftest.$ac_ext
23105
23106                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23107 /* end confdefs.h.  */
23108
23109           #include <openssl/evp.h>
23110
23111 int
23112 main ()
23113 {
23114
23115           EVP_aes_192_cbc();
23116
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 if ac_fn_c_try_link "$LINENO"; then :
23122
23123           ac_cv_openssl_export="no"
23124
23125 else
23126
23127           ac_cv_openssl_export="yes"
23128
23129
23130 fi
23131 rm -f core conftest.err conftest.$ac_objext \
23132     conftest$ac_exeext conftest.$ac_ext
23133
23134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23135 $as_echo "$support_tls" >&6; }
23136    if test "$support_tls" = "yes"; then
23137
23138 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23139
23140
23141 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23142
23143
23144 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23145
23146    fi
23147
23148    if test "$ac_cv_openssl_sha2" = "yes"; then
23149
23150 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23151
23152    fi
23153
23154    if test "$ac_cv_openssl_export" = "yes"; then
23155
23156 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23157
23158    fi
23159
23160    if test "$support_crypto" = "yes"; then
23161       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23162 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23163 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23164   $as_echo_n "(cached) " >&6
23165 else
23166   ac_check_lib_save_LIBS=$LIBS
23167 LIBS="-lcrypto  $LIBS"
23168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h.  */
23170
23171 /* Override any GCC internal prototype to avoid an error.
23172    Use char because int might match the return type of a GCC
23173    builtin and then its argument prototype would still apply.  */
23174 #ifdef __cplusplus
23175 extern "C"
23176 #endif
23177 char EVP_PKEY_encrypt_old ();
23178 int
23179 main ()
23180 {
23181 return EVP_PKEY_encrypt_old ();
23182   ;
23183   return 0;
23184 }
23185 _ACEOF
23186 if ac_fn_c_try_link "$LINENO"; then :
23187   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23188 else
23189   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23190 fi
23191 rm -f core conftest.err conftest.$ac_objext \
23192     conftest$ac_exeext conftest.$ac_ext
23193 LIBS=$ac_check_lib_save_LIBS
23194 fi
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23196 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23197 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23198
23199 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23200
23201 fi
23202
23203    fi
23204
23205    LIBS="${saved_LIBS}"
23206    CFLAGS="${saved_CFLAGS}"
23207 else
23208    support_tls="no"
23209    support_crypto="no"
23210    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23211 $as_echo "$support_tls" >&6; }
23212 fi
23213
23214 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23215    OPENSSL_LIBS=""
23216    OPENSSL_INC=""
23217 fi
23218
23219
23220
23221
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23223 $as_echo_n "checking for library containing dlopen... " >&6; }
23224 if ${ac_cv_search_dlopen+:} false; then :
23225   $as_echo_n "(cached) " >&6
23226 else
23227   ac_func_search_save_LIBS=$LIBS
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229 /* end confdefs.h.  */
23230
23231 /* Override any GCC internal prototype to avoid an error.
23232    Use char because int might match the return type of a GCC
23233    builtin and then its argument prototype would still apply.  */
23234 #ifdef __cplusplus
23235 extern "C"
23236 #endif
23237 char dlopen ();
23238 int
23239 main ()
23240 {
23241 return dlopen ();
23242   ;
23243   return 0;
23244 }
23245 _ACEOF
23246 for ac_lib in '' dl; do
23247   if test -z "$ac_lib"; then
23248     ac_res="none required"
23249   else
23250     ac_res=-l$ac_lib
23251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23252   fi
23253   if ac_fn_c_try_link "$LINENO"; then :
23254   ac_cv_search_dlopen=$ac_res
23255 fi
23256 rm -f core conftest.err conftest.$ac_objext \
23257     conftest$ac_exeext
23258   if ${ac_cv_search_dlopen+:} false; then :
23259   break
23260 fi
23261 done
23262 if ${ac_cv_search_dlopen+:} false; then :
23263
23264 else
23265   ac_cv_search_dlopen=no
23266 fi
23267 rm conftest.$ac_ext
23268 LIBS=$ac_func_search_save_LIBS
23269 fi
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23271 $as_echo "$ac_cv_search_dlopen" >&6; }
23272 ac_res=$ac_cv_search_dlopen
23273 if test "$ac_res" != no; then :
23274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23275
23276 fi
23277
23278
23279 working_dir=`eval echo /opt/bacula/working`
23280
23281 # Check whether --with-working-dir was given.
23282 if test "${with_working_dir+set}" = set; then :
23283   withval=$with_working_dir;
23284        if test "x$withval" != "xno" ; then
23285          working_dir=$withval
23286        fi
23287
23288
23289 fi
23290
23291
23292
23293
23294 archivedir=/tmp
23295
23296 # Check whether --with-archivedir was given.
23297 if test "${with_archivedir+set}" = set; then :
23298   withval=$with_archivedir;
23299        if test "x$withval" != "xno" ; then
23300           archivedir=$withval
23301        fi
23302
23303
23304 fi
23305
23306
23307
23308
23309 basename=`hostname`
23310
23311 # Check whether --with-basename was given.
23312 if test "${with_basename+set}" = set; then :
23313   withval=$with_basename;
23314        if test "x$withval" != "xno" ; then
23315           basename=$withval
23316        fi
23317
23318
23319 fi
23320
23321
23322
23323
23324 hostname=`uname -n | cut -d '.' -f 1`
23325 if test x${hostname} = x ; then
23326   hostname="localhost"
23327 fi
23328 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23329 if test ! $? = 0; then
23330   hostname="localhost"
23331 fi
23332
23333 # Check whether --with-hostname was given.
23334 if test "${with_hostname+set}" = set; then :
23335   withval=$with_hostname;
23336        if test "x$withval" != "xno" ; then
23337          hostname=$withval
23338        fi
23339
23340
23341 fi
23342
23343
23344
23345
23346
23347 scriptdir=`eval echo ${sysconfdir}`
23348
23349 # Check whether --with-scriptdir was given.
23350 if test "${with_scriptdir+set}" = set; then :
23351   withval=$with_scriptdir;
23352        if test "x$withval" != "xno" ; then
23353           scriptdir=$withval
23354        fi
23355
23356
23357 fi
23358
23359
23360
23361
23362
23363 bsrdir=`eval echo /opt/bacula/bsr`
23364
23365 # Check whether --with-bsrdir was given.
23366 if test "${with_bsrdir+set}" = set; then :
23367   withval=$with_bsrdir;
23368        if test "x$withval" != "xno" ; then
23369           bsrdir=$withval
23370        fi
23371
23372
23373 fi
23374
23375
23376
23377
23378 logdir=`eval echo /opt/bacula/log`
23379
23380 # Check whether --with-logdir was given.
23381 if test "${with_logdir+set}" = set; then :
23382   withval=$with_logdir;
23383        if test "x$withval" != "xno" ; then
23384           logdir=$withval
23385        fi
23386
23387
23388 fi
23389
23390
23391
23392
23393
23394 # ------------------------------------------
23395 # Where to place plugindir (plugin files)
23396 # ------------------------------------------
23397 plugindir=`eval echo ${libdir}`
23398
23399 # Check whether --with-plugindir was given.
23400 if test "${with_plugindir+set}" = set; then :
23401   withval=$with_plugindir;
23402        if test "x$withval" != "xno" ; then
23403           plugindir=$withval
23404        fi
23405
23406
23407 fi
23408
23409
23410
23411
23412
23413 dump_email=root@localhost
23414
23415 # Check whether --with-dump-email was given.
23416 if test "${with_dump_email+set}" = set; then :
23417   withval=$with_dump_email;
23418        if test "x$withval" != "xno" ; then
23419           dump_email=$withval
23420        fi
23421
23422
23423 fi
23424
23425
23426
23427
23428 job_email=root@localhost
23429
23430 # Check whether --with-job-email was given.
23431 if test "${with_job_email+set}" = set; then :
23432   withval=$with_job_email;
23433        if test "x$withval" != "xno" ; then
23434           job_email=$withval
23435        fi
23436
23437
23438 fi
23439
23440
23441
23442
23443 smtp_host=localhost
23444
23445 # Check whether --with-smtp_host was given.
23446 if test "${with_smtp_host+set}" = set; then :
23447   withval=$with_smtp_host;
23448        if test "x$withval" != "xno" ; then
23449           smtp_host=$withval
23450        fi
23451
23452
23453 fi
23454
23455
23456
23457
23458 piddir=/var/run
23459
23460 # Check whether --with-pid-dir was given.
23461 if test "${with_pid_dir+set}" = set; then :
23462   withval=$with_pid_dir;
23463        if test "x$withval" != "xno" ; then
23464           piddir=$withval
23465        fi
23466
23467
23468 fi
23469
23470
23471 cat >>confdefs.h <<_ACEOF
23472 #define _PATH_BACULA_PIDDIR "$piddir"
23473 _ACEOF
23474
23475
23476
23477 subsysdir=/var/run/subsys
23478 if test -d /var/run/subsys; then
23479    subsysdir=/var/run/subsys
23480 elif test -d /var/lock/subsys; then
23481    subsysdir=/var/lock/subsys
23482 else
23483    subsysdir=/var/run/subsys
23484 fi
23485
23486 # Check whether --with-subsys-dir was given.
23487 if test "${with_subsys_dir+set}" = set; then :
23488   withval=$with_subsys_dir;
23489        if test "x$withval" != "xno" ; then
23490           subsysdir=$withval
23491        fi
23492
23493
23494 fi
23495
23496
23497
23498
23499 baseport=9101
23500
23501 # Check whether --with-baseport was given.
23502 if test "${with_baseport+set}" = set; then :
23503   withval=$with_baseport;
23504        if test "x$withval" != "xno" ; then
23505           baseport=$withval
23506        fi
23507
23508
23509 fi
23510
23511
23512
23513 dir_port=`expr $baseport`
23514 fd_port=`expr $baseport + 1`
23515 sd_port=`expr $fd_port + 1`
23516
23517
23518
23519
23520
23521 dir_password=
23522
23523 # Check whether --with-dir-password was given.
23524 if test "${with_dir_password+set}" = set; then :
23525   withval=$with_dir_password;
23526        if test "x$withval" != "xno" ; then
23527           dir_password=$withval
23528        fi
23529
23530
23531 fi
23532
23533
23534 if test "x$dir_password" = "x" ; then
23535    if test "x$OPENSSL" = "xnone" ; then
23536       key=`autoconf/randpass 33`
23537    else
23538       key=`openssl rand -base64 33`
23539    fi
23540    dir_password=$key
23541 fi
23542
23543 fd_password=
23544
23545 # Check whether --with-fd-password was given.
23546 if test "${with_fd_password+set}" = set; then :
23547   withval=$with_fd_password;
23548        if test "x$withval" != "xno" ; then
23549           fd_password=$withval
23550        fi
23551
23552
23553 fi
23554
23555
23556 if test "x$fd_password" = "x" ; then
23557    if test "x$OPENSSL" = "xnone" ; then
23558       key=`autoconf/randpass 37`
23559    else
23560       key=`openssl rand -base64 33`
23561    fi
23562    fd_password=$key
23563 fi
23564
23565 sd_password=
23566
23567 # Check whether --with-sd-password was given.
23568 if test "${with_sd_password+set}" = set; then :
23569   withval=$with_sd_password;
23570        if test "x$withval" != "xno" ; then
23571           sd_password=$withval
23572        fi
23573
23574
23575 fi
23576
23577
23578 if test "x$sd_password" = "x" ; then
23579    if test "x$OPENSSL" = "xnone" ; then
23580       key=`autoconf/randpass 41`
23581    else
23582       key=`openssl rand -base64 33`
23583    fi
23584    sd_password=$key
23585 fi
23586
23587 mon_dir_password=
23588
23589 # Check whether --with-mon-dir-password was given.
23590 if test "${with_mon_dir_password+set}" = set; then :
23591   withval=$with_mon_dir_password;
23592        if test "x$withval" != "xno" ; then
23593           mon_dir_password=$withval
23594        fi
23595
23596
23597 fi
23598
23599
23600 if test "x$mon_dir_password" = "x" ; then
23601    if test "x$OPENSSL" = "xnone" ; then
23602       key=`autoconf/randpass 33`
23603    else
23604       key=`openssl rand -base64 33`
23605    fi
23606    mon_dir_password=$key
23607 fi
23608
23609 mon_fd_password=
23610
23611 # Check whether --with-mon-fd-password was given.
23612 if test "${with_mon_fd_password+set}" = set; then :
23613   withval=$with_mon_fd_password;
23614        if test "x$withval" != "xno" ; then
23615           mon_fd_password=$withval
23616        fi
23617
23618
23619 fi
23620
23621
23622 if test "x$mon_fd_password" = "x" ; then
23623    if test "x$OPENSSL" = "xnone" ; then
23624       key=`autoconf/randpass 37`
23625    else
23626       key=`openssl rand -base64 33`
23627    fi
23628    mon_fd_password=$key
23629 fi
23630
23631 mon_sd_password=
23632
23633 # Check whether --with-mon-sd-password was given.
23634 if test "${with_mon_sd_password+set}" = set; then :
23635   withval=$with_mon_sd_password;
23636        if test "x$withval" != "xno" ; then
23637           mon_sd_password=$withval
23638        fi
23639
23640
23641 fi
23642
23643
23644 if test "x$mon_sd_password" = "x" ; then
23645    if test "x$OPENSSL" = "xnone" ; then
23646       key=`autoconf/randpass 41`
23647    else
23648       key=`openssl rand -base64 33`
23649    fi
23650    mon_sd_password=$key
23651 fi
23652
23653
23654
23655
23656
23657
23658
23659
23660 db_name=bacula
23661
23662 # Check whether --with-db_name was given.
23663 if test "${with_db_name+set}" = set; then :
23664   withval=$with_db_name;
23665        if test "x$withval" != "x" ; then
23666           db_name=$withval
23667        fi
23668
23669
23670 fi
23671
23672
23673
23674 db_user=bacula
23675
23676 # Check whether --with-db_user was given.
23677 if test "${with_db_user+set}" = set; then :
23678   withval=$with_db_user;
23679        if test "x$withval" != "x" ; then
23680           db_user=$withval
23681        fi
23682
23683
23684 fi
23685
23686
23687
23688 db_password=
23689
23690 # Check whether --with-db_password was given.
23691 if test "${with_db_password+set}" = set; then :
23692   withval=$with_db_password;
23693        if test "x$withval" != "x" ; then
23694           db_password=$withval
23695        fi
23696
23697
23698 fi
23699
23700
23701
23702 db_port=" "
23703
23704 # Check whether --with-db_port was given.
23705 if test "${with_db_port+set}" = set; then :
23706   withval=$with_db_port;
23707        if test "x$withval" != "x" ; then
23708           db_port=$withval
23709        fi
23710
23711
23712 fi
23713
23714
23715
23716 db_ssl_options=
23717
23718 # Check whether --with-db_ssl_options was given.
23719 if test "${with_db_ssl_options+set}" = set; then :
23720   withval=$with_db_ssl_options;
23721        if test "x$withval" != "x" ; then
23722          db_ssl_options=$withval
23723        fi
23724
23725
23726 fi
23727
23728
23729
23730 #
23731 # Handle users and groups for each daemon
23732 #
23733 dir_user=
23734
23735 # Check whether --with-dir_user was given.
23736 if test "${with_dir_user+set}" = set; then :
23737   withval=$with_dir_user;
23738        if test "x$withval" != "x" ; then
23739            dir_user=$withval
23740        fi
23741
23742
23743 fi
23744
23745
23746 dir_group=
23747
23748 # Check whether --with-dir_group was given.
23749 if test "${with_dir_group+set}" = set; then :
23750   withval=$with_dir_group;
23751        if test "x$withval" != "x" ; then
23752           dir_group=$withval
23753        fi
23754
23755
23756 fi
23757
23758
23759 sd_user=
23760
23761 # Check whether --with-sd_user was given.
23762 if test "${with_sd_user+set}" = set; then :
23763   withval=$with_sd_user;
23764        if test "x$withval" != "x" ; then
23765           sd_user=$withval
23766        fi
23767
23768
23769 fi
23770
23771
23772 sd_group=
23773
23774 # Check whether --with-sd_group was given.
23775 if test "${with_sd_group+set}" = set; then :
23776   withval=$with_sd_group;
23777        if test "x$withval" != "x" ; then
23778           sd_group=$withval
23779        fi
23780
23781
23782 fi
23783
23784
23785 fd_user=
23786
23787 # Check whether --with-fd_user was given.
23788 if test "${with_fd_user+set}" = set; then :
23789   withval=$with_fd_user;
23790        if test "x$withval" != "x" ; then
23791           fd_user=$withval
23792        fi
23793
23794
23795 fi
23796
23797
23798 fd_group=
23799
23800 # Check whether --with-fd_group was given.
23801 if test "${with_fd_group+set}" = set; then :
23802   withval=$with_fd_group;
23803        if test "x$withval" != "x" ; then
23804           fd_group=$withval
23805        fi
23806
23807
23808 fi
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818 SBINPERM=0750
23819
23820 # Check whether --with-sbin-perm was given.
23821 if test "${with_sbin_perm+set}" = set; then :
23822   withval=$with_sbin_perm;
23823        if test "x$withval" != "x" ; then
23824           SBINPERM=$withval
23825        fi
23826
23827
23828 fi
23829
23830
23831
23832
23833 support_batch_insert=yes
23834 # Check whether --enable-batch-insert was given.
23835 if test "${enable_batch_insert+set}" = set; then :
23836   enableval=$enable_batch_insert;
23837        if test x$enableval = xno; then
23838           support_batch_insert=no
23839        fi
23840
23841
23842 fi
23843
23844
23845 if test x$support_batch_insert = xyes; then
23846
23847 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23848
23849 fi
23850
23851
23852 uncomment_dbi="#"
23853
23854
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23856 $as_echo_n "checking for PostgreSQL support... " >&6; }
23857
23858 # Check whether --with-postgresql was given.
23859 if test "${with_postgresql+set}" = set; then :
23860   withval=$with_postgresql;
23861   if test "$withval" != "no"; then
23862       if test "$withval" = "yes"; then
23863           PG_CONFIG=`which pg_config 2>/dev/null`
23864           if test -n "$PG_CONFIG"; then
23865               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23866               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23867               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23868           elif test -f /usr/local/include/libpq-fe.h; then
23869               POSTGRESQL_INCDIR=/usr/local/include
23870               if test -d /usr/local/lib64; then
23871                  POSTGRESQL_LIBDIR=/usr/local/lib64
23872               else
23873                  POSTGRESQL_LIBDIR=/usr/local/lib
23874               fi
23875               POSTGRESQL_BINDIR=/usr/local/bin
23876           elif test -f /usr/include/libpq-fe.h; then
23877               POSTGRESQL_INCDIR=/usr/include
23878               if test -d /usr/lib64; then
23879                  POSTGRESQL_LIBDIR=/usr/lib64
23880               else
23881                  POSTGRESQL_LIBDIR=/usr/lib
23882               fi
23883               POSTGRESQL_BINDIR=/usr/bin
23884           elif test -f /usr/include/pgsql/libpq-fe.h; then
23885               POSTGRESQL_INCDIR=/usr/include/pgsql
23886               if test -d /usr/lib64/pgsql; then
23887                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23888               else
23889                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23890               fi
23891               POSTGRESQL_BINDIR=/usr/bin
23892           elif test -f /usr/include/postgresql/libpq-fe.h; then
23893               POSTGRESQL_INCDIR=/usr/include/postgresql
23894               if test -d /usr/lib64/postgresql; then
23895                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23896               else
23897                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23898               fi
23899               POSTGRESQL_BINDIR=/usr/bin
23900           else
23901               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23902 $as_echo "no" >&6; }
23903               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23904           fi
23905       elif test -f $withval/include/libpq-fe.h; then
23906           POSTGRESQL_INCDIR=$withval/include
23907           POSTGRESQL_LIBDIR=$withval/lib
23908           POSTGRESQL_BINDIR=$withval/bin
23909       elif test -f $withval/include/postgresql/libpq-fe.h; then
23910           POSTGRESQL_INCDIR=$withval/include/postgresql
23911           if test -d $withval/lib64; then
23912               POSTGRESQL_LIBDIR=$withval/lib64
23913           else
23914               POSTGRESQL_LIBDIR=$withval/lib
23915           fi
23916           POSTGRESQL_BINDIR=$withval/bin
23917       else
23918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23919 $as_echo "no" >&6; }
23920           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23921       fi
23922
23923 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23924
23925      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23926 $as_echo "yes" >&6; }
23927
23928      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23929      if test x$use_libtool != xno; then
23930         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23931      else
23932         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23933      fi
23934      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23935 if test "x$ac_cv_func_crypt" = xyes; then :
23936
23937 else
23938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23939 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23940 if ${ac_cv_lib_crypt_crypt+:} false; then :
23941   $as_echo_n "(cached) " >&6
23942 else
23943   ac_check_lib_save_LIBS=$LIBS
23944 LIBS="-lcrypt  $LIBS"
23945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23946 /* end confdefs.h.  */
23947
23948 /* Override any GCC internal prototype to avoid an error.
23949    Use char because int might match the return type of a GCC
23950    builtin and then its argument prototype would still apply.  */
23951 #ifdef __cplusplus
23952 extern "C"
23953 #endif
23954 char crypt ();
23955 int
23956 main ()
23957 {
23958 return crypt ();
23959   ;
23960   return 0;
23961 }
23962 _ACEOF
23963 if ac_fn_c_try_link "$LINENO"; then :
23964   ac_cv_lib_crypt_crypt=yes
23965 else
23966   ac_cv_lib_crypt_crypt=no
23967 fi
23968 rm -f core conftest.err conftest.$ac_objext \
23969     conftest$ac_exeext conftest.$ac_ext
23970 LIBS=$ac_check_lib_save_LIBS
23971 fi
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23973 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23974 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23975   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23976 fi
23977
23978 fi
23979
23980      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23981      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23982
23983      if test -z "${db_backends}"; then
23984          db_backends="PostgreSQL"
23985      else
23986          db_backends="${db_backends} PostgreSQL"
23987      fi
23988      if test -z "${DB_BACKENDS}"; then
23989          DB_BACKENDS="postgresql"
23990      else
23991          DB_BACKENDS="${DB_BACKENDS} postgresql"
23992      fi
23993
23994                     if test "x$support_batch_insert" = "xyes"; then
23995                   saved_LDFLAGS="${LDFLAGS}"
23996          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23997          saved_LIBS="${LIBS}"
23998          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23999             LIBS="${saved_LIBS} -lcrypt"
24000          fi
24001
24002          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24003 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24004 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24005   $as_echo_n "(cached) " >&6
24006 else
24007   ac_check_lib_save_LIBS=$LIBS
24008 LIBS="-lpq  $LIBS"
24009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24010 /* end confdefs.h.  */
24011
24012 /* Override any GCC internal prototype to avoid an error.
24013    Use char because int might match the return type of a GCC
24014    builtin and then its argument prototype would still apply.  */
24015 #ifdef __cplusplus
24016 extern "C"
24017 #endif
24018 char PQisthreadsafe ();
24019 int
24020 main ()
24021 {
24022 return PQisthreadsafe ();
24023   ;
24024   return 0;
24025 }
24026 _ACEOF
24027 if ac_fn_c_try_link "$LINENO"; then :
24028   ac_cv_lib_pq_PQisthreadsafe=yes
24029 else
24030   ac_cv_lib_pq_PQisthreadsafe=no
24031 fi
24032 rm -f core conftest.err conftest.$ac_objext \
24033     conftest$ac_exeext conftest.$ac_ext
24034 LIBS=$ac_check_lib_save_LIBS
24035 fi
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24037 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24038 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24039
24040 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24041
24042 fi
24043
24044          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24045 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24046 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24047   $as_echo_n "(cached) " >&6
24048 else
24049   ac_check_lib_save_LIBS=$LIBS
24050 LIBS="-lpq  $LIBS"
24051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24052 /* end confdefs.h.  */
24053
24054 /* Override any GCC internal prototype to avoid an error.
24055    Use char because int might match the return type of a GCC
24056    builtin and then its argument prototype would still apply.  */
24057 #ifdef __cplusplus
24058 extern "C"
24059 #endif
24060 char PQputCopyData ();
24061 int
24062 main ()
24063 {
24064 return PQputCopyData ();
24065   ;
24066   return 0;
24067 }
24068 _ACEOF
24069 if ac_fn_c_try_link "$LINENO"; then :
24070   ac_cv_lib_pq_PQputCopyData=yes
24071 else
24072   ac_cv_lib_pq_PQputCopyData=no
24073 fi
24074 rm -f core conftest.err conftest.$ac_objext \
24075     conftest$ac_exeext conftest.$ac_ext
24076 LIBS=$ac_check_lib_save_LIBS
24077 fi
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24079 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24080 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24081
24082 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24083
24084 fi
24085
24086          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24087              if test $support_batch_insert = yes ; then
24088
24089 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24090
24091                  if test -z "${batch_insert_db_backends}"; then
24092                      batch_insert_db_backends="PostgreSQL"
24093                  else
24094                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24095                  fi
24096              fi
24097          fi
24098
24099          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24100          then
24101              echo "WARNING: Your PostgreSQL client library is too old to detect "
24102              echo "if it was compiled with --enable-thread-safety, consider to "
24103              echo "upgrade it in order to avoid problems with Batch insert mode"
24104          fi
24105
24106                   LDFLAGS="${saved_LDFLAGS}"
24107          LIBS="${saved_LIBS}"
24108      fi
24109   else
24110      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24111 $as_echo "no" >&6; }
24112   fi
24113
24114 else
24115
24116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117 $as_echo "no" >&6; }
24118
24119 fi
24120
24121
24122
24123
24124
24125
24126
24127
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24129 $as_echo_n "checking for MySQL support... " >&6; }
24130
24131 # Check whether --with-mysql was given.
24132 if test "${with_mysql+set}" = set; then :
24133   withval=$with_mysql;
24134   HAVE_LIBSR="no"
24135   if test "$withval" != "no"; then
24136      if test "$withval" = "yes"; then
24137         MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24138         if test "x${MYSQL_CONFIG}" != x; then
24139            MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24140            ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24141            if test $? = 0; then
24142               MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24143               MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24144               HAVE_LIBSR="yes"
24145            else
24146               ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24147               if test $? = 0 ; then
24148                  MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24149                  MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24150               fi
24151            fi
24152         fi
24153         # if something wrong fall back to old method
24154         if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24155            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24156               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24157               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24158                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24159                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24160               else
24161                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24162               fi
24163               MYSQL_BINDIR=/usr/local/mysql/bin
24164            elif test -f /usr/include/mysql/mysql.h; then
24165               MYSQL_INCDIR=/usr/include/mysql
24166               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24167                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24168                  MYSQL_LIBDIR=/usr/lib64/mysql
24169               elif test -f /usr/lib64/libmysqlclient_r.a \
24170                         -o -f /usr/lib64/libmysqlclient_r.so; then
24171                  MYSQL_LIBDIR=/usr/lib64
24172               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24173                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24174                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24175               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24176                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24177                  MYSQL_LIBDIR=/usr/lib/mysql
24178               else
24179                  MYSQL_LIBDIR=/usr/lib
24180               fi
24181               MYSQL_BINDIR=/usr/bin
24182            elif test -f /usr/include/mysql.h; then
24183               MYSQL_INCDIR=/usr/include
24184               if test -f /usr/lib64/libmysqlclient_r.a \
24185                       -o -f /usr/lib64/libmysqlclient_r.so; then
24186                  MYSQL_LIBDIR=/usr/lib64
24187               else
24188                  MYSQL_LIBDIR=/usr/lib
24189               fi
24190               MYSQL_BINDIR=/usr/bin
24191            elif test -f /usr/local/include/mysql/mysql.h; then
24192               MYSQL_INCDIR=/usr/local/include/mysql
24193               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24194                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24195                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24196               else
24197                  MYSQL_LIBDIR=/usr/local/lib/mysql
24198               fi
24199               MYSQL_BINDIR=/usr/local/bin
24200            elif test -f /usr/local/include/mysql.h; then
24201               MYSQL_INCDIR=/usr/local/include
24202               if test -f /usr/local/lib64/libmysqlclient_r.a \
24203                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24204                  MYSQL_LIBDIR=/usr/local/lib64
24205               else
24206                  MYSQL_LIBDIR=/usr/local/lib
24207               fi
24208               MYSQL_BINDIR=/usr/local/bin
24209            else
24210               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24211 $as_echo "no" >&6; }
24212               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24213            fi
24214         fi
24215      else
24216         if test -f $withval/include/mysql/mysql.h; then
24217            MYSQL_INCDIR=$withval/include/mysql
24218            if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24219                 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24220               MYSQL_LIBDIR=$withval/lib64/mysql
24221            elif test -f $withval/lib64/libmysqlclient_r.a \
24222                 -o -f $withval/lib64/libmysqlclient_r.so; then
24223               MYSQL_LIBDIR=$withval/lib64
24224            elif test -f $withval/lib/libmysqlclient_r.a \
24225                 -o -f $withval/lib/libmysqlclient_r.so; then
24226               MYSQL_LIBDIR=$withval/lib
24227            else
24228               MYSQL_LIBDIR=$withval/lib/mysql
24229            fi
24230            MYSQL_BINDIR=$withval/bin
24231         elif test -f $withval/include/mysql.h; then
24232            MYSQL_INCDIR=$withval/include
24233            if test -f $withval/lib64/libmysqlclient_r.a \
24234                 -o -f $withval/lib64/libmysqlclient_r.so; then
24235               MYSQL_LIBDIR=$withval/lib64
24236            else
24237               MYSQL_LIBDIR=$withval/lib
24238            fi
24239            MYSQL_BINDIR=$withval/bin
24240         elif test -f $withval/mysql.h; then
24241                       MYSQL_INCDIR=$withval
24242            { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24243 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24244            case $MYSQL_INCDIR in
24245               *mysql55*)
24246                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24247 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24248                                     if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24249                        -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24250                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24251 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24252                      MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24253                   fi
24254                   MYSQL_BINDIR=$prefix/lib/mysql55/bin
24255               ;;
24256               *mysql51*)
24257                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24258 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24259                                     if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24260                        -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24261                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24262 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24263                      MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24264                   fi
24265                   MYSQL_BINDIR=$prefix/lib/mysql51/bin
24266               ;;
24267            esac
24268            if test -z "${MYSQL_LIBDIR}" ; then
24269               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24270 $as_echo "no" >&6; }
24271               as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24272            fi
24273         else
24274            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24275 $as_echo "no" >&6; }
24276            as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24277         fi
24278      fi
24279      if test "x${MYSQL_LIBDIR}" != x; then
24280         MYSQL_INCLUDE=-I$MYSQL_INCDIR
24281         if test "x$HAVE_LIBSR" = "xyes"; then
24282            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24283            MYSQL_LIBS="$MYSQL_LIBDIR"
24284            MYSQL_INCLUDE="$MYSQL_INCDIR"
24285
24286 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24287
24288            if test -z "${batch_insert_db_backends}"; then
24289               batch_insert_db_backends="MySQL"
24290            else
24291               batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24292            fi
24293         elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24294                -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24295            if test x$use_libtool != xno; then
24296               MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24297            else
24298               MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24299            fi
24300            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24301         fi
24302         if test "x${MYSQL_LIBS}" = x; then
24303            MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24304         fi
24305
24306
24307 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24308
24309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24310 $as_echo "yes" >&6; }
24311
24312         if test -z "${db_backends}" ; then
24313             db_backends="MySQL"
24314         else
24315             db_backends="${db_backends} MySQL"
24316         fi
24317         if test -z "${DB_BACKENDS}" ; then
24318             DB_BACKENDS="mysql"
24319         else
24320             DB_BACKENDS="${DB_BACKENDS} mysql"
24321         fi
24322
24323                                 if test "x$HAVE_LIBSR" = "xno"; then
24324           if test "x$support_batch_insert" = "xyes"; then
24325                         saved_LDFLAGS="${LDFLAGS}"
24326             LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24327             saved_LIBS="${LIBS}"
24328             LIBS="${saved_LIBS} -lz"
24329
24330             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24331 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24332 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24333   $as_echo_n "(cached) " >&6
24334 else
24335   ac_check_lib_save_LIBS=$LIBS
24336 LIBS="-lmysqlclient_r  $LIBS"
24337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24338 /* end confdefs.h.  */
24339
24340 /* Override any GCC internal prototype to avoid an error.
24341    Use char because int might match the return type of a GCC
24342    builtin and then its argument prototype would still apply.  */
24343 #ifdef __cplusplus
24344 extern "C"
24345 #endif
24346 char mysql_thread_safe ();
24347 int
24348 main ()
24349 {
24350 return mysql_thread_safe ();
24351   ;
24352   return 0;
24353 }
24354 _ACEOF
24355 if ac_fn_c_try_link "$LINENO"; then :
24356   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24357 else
24358   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24359 fi
24360 rm -f core conftest.err conftest.$ac_objext \
24361     conftest$ac_exeext conftest.$ac_ext
24362 LIBS=$ac_check_lib_save_LIBS
24363 fi
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24365 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24366 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24367
24368 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24369
24370 fi
24371
24372             if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24373                 if test -z "${batch_insert_db_backends}"; then
24374                     batch_insert_db_backends="MySQL"
24375                 else
24376                     batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24377                 fi
24378             fi
24379
24380                         LDFLAGS="${saved_LDFLAGS}"
24381             LIBS="${saved_LIBS}"
24382           fi
24383         fi
24384      else
24385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24386 $as_echo "no" >&6; }
24387      fi
24388   fi
24389
24390 else
24391
24392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24393 $as_echo "no" >&6; }
24394
24395 fi
24396
24397
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24399 $as_echo_n "checking for MySQL embedded support... " >&6; }
24400
24401 # Check whether --with-embedded-mysql was given.
24402 if test "${with_embedded_mysql+set}" = set; then :
24403   withval=$with_embedded_mysql;
24404   if test "$withval" != "no"; then
24405         if test "$withval" = "yes"; then
24406                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24407                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24408                         if test -d /usr/local/mysql/lib64/mysql; then
24409                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24410                         else
24411                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24412                         fi
24413                         MYSQL_BINDIR=/usr/local/mysql/bin
24414                 elif test -f /usr/include/mysql/mysql.h; then
24415                         MYSQL_INCDIR=/usr/include/mysql
24416                         if test -d /usr/lib64/mysql; then
24417                                 MYSQL_LIBDIR=/usr/lib64/mysql
24418                         else
24419                                 MYSQL_LIBDIR=/usr/lib/mysql
24420                         fi
24421                         MYSQL_BINDIR=/usr/bin
24422                 elif test -f /usr/include/mysql.h; then
24423                         MYSQL_INCDIR=/usr/include
24424                         if test -d /usr/lib64; then
24425                                 MYSQL_LIBDIR=/usr/lib64
24426                         else
24427                                 MYSQL_LIBDIR=/usr/lib
24428                         fi
24429                         MYSQL_BINDIR=/usr/bin
24430                 elif test -f /usr/local/include/mysql/mysql.h; then
24431                         MYSQL_INCDIR=/usr/local/include/mysql
24432                         if test -d /usr/local/lib64/mysql; then
24433                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24434                         else
24435                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24436                         fi
24437                         MYSQL_BINDIR=/usr/local/bin
24438                 elif test -f /usr/local/include/mysql.h; then
24439                         MYSQL_INCDIR=/usr/local/include
24440                         if test -d /usr/local/lib64; then
24441                                 MYSQL_LIBDIR=/usr/local/lib64
24442                         else
24443                                 MYSQL_LIBDIR=/usr/local/lib
24444                         fi
24445                         MYSQL_BINDIR=/usr/local/bin
24446                 else
24447                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24448 $as_echo "no" >&6; }
24449                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24450                 fi
24451         else
24452                 if test -f $withval/include/mysql/mysql.h; then
24453                         MYSQL_INCDIR=$withval/include/mysql
24454                         if test -d $withval/lib64/mysql; then
24455                                 MYSQL_LIBDIR=$withval/lib64/mysql
24456                         else
24457                                 MYSQL_LIBDIR=$withval/lib/mysql
24458                         fi
24459                         MYSQL_BINDIR=$withval/bin
24460                 elif test -f $withval/include/mysql.h; then
24461                         MYSQL_INCDIR=$withval/include
24462                         if test -d $withval/lib64; then
24463                                 MYSQL_LIBDIR=$withval/lib64
24464                         else
24465                                 MYSQL_LIBDIR=$withval/lib
24466                         fi
24467                         MYSQL_BINDIR=$withval/bin
24468                 else
24469                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24470 $as_echo "no" >&6; }
24471                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24472                 fi
24473         fi
24474      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24475      if test x$use_libtool != xno; then
24476         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24477      else
24478         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24479      fi
24480      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24481      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24482
24483
24484 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24485
24486
24487 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24488
24489      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24490 $as_echo "yes" >&6; }
24491
24492      if test -z "${db_backends}"; then
24493          db_backends="MySQL"
24494      else
24495          db_backends="${db_backends} MySQL"
24496      fi
24497      if test -z "${DB_BACKENDS}"; then
24498          DB_BACKENDS="mysql"
24499      else
24500          DB_BACKENDS="${DB_BACKENDS} mysql"
24501      fi
24502
24503                     if test "x$support_batch_insert" = "xyes"; then
24504                   saved_LDFLAGS="${LDFLAGS}"
24505          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24506          saved_LIBS="${LIBS}"
24507          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24508
24509          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24510 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24511 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24512   $as_echo_n "(cached) " >&6
24513 else
24514   ac_check_lib_save_LIBS=$LIBS
24515 LIBS="-lmysqlclient_r  $LIBS"
24516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h.  */
24518
24519 /* Override any GCC internal prototype to avoid an error.
24520    Use char because int might match the return type of a GCC
24521    builtin and then its argument prototype would still apply.  */
24522 #ifdef __cplusplus
24523 extern "C"
24524 #endif
24525 char mysql_thread_safe ();
24526 int
24527 main ()
24528 {
24529 return mysql_thread_safe ();
24530   ;
24531   return 0;
24532 }
24533 _ACEOF
24534 if ac_fn_c_try_link "$LINENO"; then :
24535   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24536 else
24537   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24538 fi
24539 rm -f core conftest.err conftest.$ac_objext \
24540     conftest$ac_exeext conftest.$ac_ext
24541 LIBS=$ac_check_lib_save_LIBS
24542 fi
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24544 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24545 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24546
24547 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24548
24549 fi
24550
24551          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24552              if test -z "${batch_insert_db_backends}"; then
24553                  batch_insert_db_backends="MySQL"
24554              else
24555                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24556              fi
24557          fi
24558
24559                   LDFLAGS="${saved_LDFLAGS}"
24560          LIBS="${saved_LIBS}"
24561      fi
24562   else
24563      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24564 $as_echo "no" >&6; }
24565   fi
24566
24567 else
24568
24569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24570 $as_echo "no" >&6; }
24571
24572 fi
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24583 $as_echo_n "checking for SQLite3 support... " >&6; }
24584
24585 # Check whether --with-sqlite3 was given.
24586 if test "${with_sqlite3+set}" = set; then :
24587   withval=$with_sqlite3;
24588   if test "$withval" != "no"; then
24589      if test "$withval" = "yes"; then
24590         if test -f /usr/local/include/sqlite3.h; then
24591            SQLITE_INCDIR=/usr/local/include
24592            if test -d /usr/local/lib64; then
24593               SQLITE_LIBDIR=/usr/local/lib64
24594            else
24595               SQLITE_LIBDIR=/usr/local/lib
24596            fi
24597            SQLITE_BINDIR=/usr/local/bin
24598         elif test -f /usr/include/sqlite3.h; then
24599            SQLITE_INCDIR=/usr/include
24600            if test -d /usr/lib64; then
24601               SQLITE_LIBDIR=/usr/lib64
24602            else
24603               SQLITE_LIBDIR=/usr/lib
24604            fi
24605            SQLITE_BINDIR=/usr/bin
24606         elif test -f $prefix/include/sqlite3.h; then
24607            SQLITE_INCDIR=$prefix/include
24608            if test -d $prefix/lib64; then
24609               SQLITE_LIBDIR=$prefix/lib64
24610            else
24611               SQLITE_LIBDIR=$prefix/lib
24612            fi
24613            SQLITE_BINDIR=$prefix/bin
24614         else
24615            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24616 $as_echo "no" >&6; }
24617            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24618         fi
24619      else
24620         if test -f $withval/sqlite3.h; then
24621            SQLITE_INCDIR=$withval
24622            SQLITE_LIBDIR=$withval
24623            SQLITE_BINDIR=$withval
24624         elif test -f $withval/include/sqlite3.h; then
24625            SQLITE_INCDIR=$withval/include
24626            if test -d $withval/lib64; then
24627               SQLITE_LIBDIR=$withval/lib64
24628            else
24629               SQLITE_LIBDIR=$withval/lib
24630            fi
24631            SQLITE_BINDIR=$withval/bin
24632         else
24633            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24634 $as_echo "no" >&6; }
24635            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24636         fi
24637      fi
24638      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24639      if test x$use_libtool != xno; then
24640         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24641      else
24642         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24643      fi
24644      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24645      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24646
24647
24648 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24649
24650      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24651 $as_echo "yes" >&6; }
24652
24653      if test -z "${db_backends}"; then
24654          db_backends="SQLite3"
24655      else
24656          db_backends="${db_backends} SQLite3"
24657      fi
24658      if test -z "${DB_BACKENDS}"; then
24659          DB_BACKENDS="sqlite3"
24660      else
24661          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24662      fi
24663
24664                     if test "x$support_batch_insert" = "xyes"; then
24665                   saved_LDFLAGS="${LDFLAGS}"
24666          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24667
24668          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24669 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24670 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24671   $as_echo_n "(cached) " >&6
24672 else
24673   ac_check_lib_save_LIBS=$LIBS
24674 LIBS="-lsqlite3  $LIBS"
24675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24676 /* end confdefs.h.  */
24677
24678 /* Override any GCC internal prototype to avoid an error.
24679    Use char because int might match the return type of a GCC
24680    builtin and then its argument prototype would still apply.  */
24681 #ifdef __cplusplus
24682 extern "C"
24683 #endif
24684 char sqlite3_threadsafe ();
24685 int
24686 main ()
24687 {
24688 return sqlite3_threadsafe ();
24689   ;
24690   return 0;
24691 }
24692 _ACEOF
24693 if ac_fn_c_try_link "$LINENO"; then :
24694   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24695 else
24696   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24697 fi
24698 rm -f core conftest.err conftest.$ac_objext \
24699     conftest$ac_exeext conftest.$ac_ext
24700 LIBS=$ac_check_lib_save_LIBS
24701 fi
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24703 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24704 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24705
24706 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24707
24708 fi
24709
24710          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24711              if test -z "${batch_insert_db_backends}"; then
24712                  batch_insert_db_backends="SQLite3"
24713              else
24714                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24715              fi
24716          fi
24717
24718                   LDFLAGS="${saved_LDFLAGS}"
24719      fi
24720   else
24721      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24722 $as_echo "no" >&6; }
24723   fi
24724
24725 else
24726
24727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24728 $as_echo "no" >&6; }
24729
24730 fi
24731
24732
24733
24734
24735
24736
24737
24738 if test -z "${batch_insert_db_backends}"; then
24739    batch_insert_db_backends="None"
24740 fi
24741
24742 if test "x${db_backends}" = "x" ; then
24743    echo " "
24744    echo " "
24745    echo "You have not specified either --enable-client-only or one of the"
24746    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24747    echo "This is not permitted. Please reconfigure."
24748    echo " "
24749    echo "Aborting the configuration ..."
24750    echo " "
24751    echo " "
24752    exit 1
24753 fi
24754
24755 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24756    1)
24757       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24758       if test x$use_libtool = xno; then
24759          SHARED_CATALOG_TARGETS=""
24760       else
24761          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24762       fi
24763       ;;
24764    *)
24765                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24766
24767                         if test x$use_libtool = xno; then
24768          echo " "
24769          echo " "
24770          echo "You have specified two or more of the"
24771          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24772          echo "This is not permitted when not using libtool Please reconfigure."
24773          echo " "
24774          echo "Aborting the configuration ..."
24775          echo " "
24776          echo " "
24777          exit 1
24778       fi
24779
24780       SHARED_CATALOG_TARGETS=""
24781       for db_type in ${DB_BACKENDS}
24782       do
24783          if test -z "${SHARED_CATALOG_TARGETS}"; then
24784             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24785          else
24786             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24787          fi
24788       done
24789       ;;
24790 esac
24791
24792 if test x$use_libtool = xyes; then
24793    DB_LIBS=""
24794 fi
24795
24796
24797
24798
24799
24800
24801
24802 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24803
24804
24805 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24806    if test -z "$CCOPTS"; then
24807       CCOPTS='-g -O2 -Wall'
24808    fi
24809    CFLAGS="$CCOPTS"
24810 fi
24811
24812
24813
24814 largefile_support="no"
24815
24816    # Check whether --enable-largefile was given.
24817 if test "${enable_largefile+set}" = set; then :
24818   enableval=$enable_largefile;
24819 fi
24820
24821    if test "$enable_largefile" != no; then
24822      if test -n "$ac_tool_prefix"; then
24823   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24824 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24826 $as_echo_n "checking for $ac_word... " >&6; }
24827 if ${ac_cv_prog_GETCONF+:} false; then :
24828   $as_echo_n "(cached) " >&6
24829 else
24830   if test -n "$GETCONF"; then
24831   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24832 else
24833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24834 for as_dir in $PATH
24835 do
24836   IFS=$as_save_IFS
24837   test -z "$as_dir" && as_dir=.
24838     for ac_exec_ext in '' $ac_executable_extensions; do
24839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24840     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24842     break 2
24843   fi
24844 done
24845   done
24846 IFS=$as_save_IFS
24847
24848 fi
24849 fi
24850 GETCONF=$ac_cv_prog_GETCONF
24851 if test -n "$GETCONF"; then
24852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24853 $as_echo "$GETCONF" >&6; }
24854 else
24855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 $as_echo "no" >&6; }
24857 fi
24858
24859
24860 fi
24861 if test -z "$ac_cv_prog_GETCONF"; then
24862   ac_ct_GETCONF=$GETCONF
24863   # Extract the first word of "getconf", so it can be a program name with args.
24864 set dummy getconf; ac_word=$2
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24866 $as_echo_n "checking for $ac_word... " >&6; }
24867 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24868   $as_echo_n "(cached) " >&6
24869 else
24870   if test -n "$ac_ct_GETCONF"; then
24871   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24872 else
24873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24874 for as_dir in $PATH
24875 do
24876   IFS=$as_save_IFS
24877   test -z "$as_dir" && as_dir=.
24878     for ac_exec_ext in '' $ac_executable_extensions; do
24879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24880     ac_cv_prog_ac_ct_GETCONF="getconf"
24881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24882     break 2
24883   fi
24884 done
24885   done
24886 IFS=$as_save_IFS
24887
24888 fi
24889 fi
24890 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24891 if test -n "$ac_ct_GETCONF"; then
24892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24893 $as_echo "$ac_ct_GETCONF" >&6; }
24894 else
24895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24896 $as_echo "no" >&6; }
24897 fi
24898
24899   if test "x$ac_ct_GETCONF" = x; then
24900     GETCONF=""
24901   else
24902     case $cross_compiling:$ac_tool_warned in
24903 yes:)
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24906 ac_tool_warned=yes ;;
24907 esac
24908     GETCONF=$ac_ct_GETCONF
24909   fi
24910 else
24911   GETCONF="$ac_cv_prog_GETCONF"
24912 fi
24913
24914      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24915 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24916 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24917   $as_echo_n "(cached) " >&6
24918 else
24919   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24920         ac_cv_sys_largefile_CFLAGS=no
24921         case "$host_os" in
24922            # IRIX 6.2 and later require cc -n32.
24923            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24924              if test "$GCC" != yes; then
24925                ac_cv_sys_largefile_CFLAGS=-n32
24926              fi
24927              ac_save_CC="$CC"
24928              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24929              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24930 /* end confdefs.h.  */
24931
24932 int
24933 main ()
24934 {
24935
24936   ;
24937   return 0;
24938 }
24939 _ACEOF
24940 if ac_fn_c_try_link "$LINENO"; then :
24941
24942 else
24943   ac_cv_sys_largefile_CFLAGS=no
24944 fi
24945 rm -f core conftest.err conftest.$ac_objext \
24946     conftest$ac_exeext conftest.$ac_ext
24947              CC="$ac_save_CC"
24948            esac
24949       }
24950 fi
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24952 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24953      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24954 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24955 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24956   $as_echo_n "(cached) " >&6
24957 else
24958   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24959         ac_cv_sys_largefile_LDFLAGS=no
24960
24961       }
24962 fi
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24964 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24965      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24966 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24967 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24968   $as_echo_n "(cached) " >&6
24969 else
24970   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24971         ac_cv_sys_largefile_LIBS=no
24972
24973       }
24974 fi
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24976 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24977
24978      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24979        case "$ac_flag" in
24980        no) ;;
24981        -D_FILE_OFFSET_BITS=*) ;;
24982        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24983        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24984        -D?* | -I?*)
24985          case "$ac_flag" in
24986    no) ;;
24987    ?*)
24988      case "$CPPFLAGS" in
24989      '') CPPFLAGS="$ac_flag" ;;
24990      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24991      esac ;;
24992    esac ;;
24993        *)
24994          case "$ac_flag" in
24995    no) ;;
24996    ?*)
24997      case "$CFLAGS" in
24998      '') CFLAGS="$ac_flag" ;;
24999      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25000      esac ;;
25001    esac ;;
25002        esac
25003      done
25004      case "$ac_cv_sys_largefile_LDFLAGS" in
25005    no) ;;
25006    ?*)
25007      case "$LDFLAGS" in
25008      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25009      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25010      esac ;;
25011    esac
25012      case "$ac_cv_sys_largefile_LIBS" in
25013    no) ;;
25014    ?*)
25015      case "$LIBS" in
25016      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25017      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25018      esac ;;
25019    esac
25020      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25021 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25022 if ${ac_cv_sys_file_offset_bits+:} false; then :
25023   $as_echo_n "(cached) " >&6
25024 else
25025   ac_cv_sys_file_offset_bits=no
25026       ac_cv_sys_file_offset_bits=64
25027       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25028         case "$ac_flag" in
25029         -D_FILE_OFFSET_BITS)
25030           ac_cv_sys_file_offset_bits=1 ;;
25031         -D_FILE_OFFSET_BITS=*)
25032           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25033         esac
25034       done
25035
25036 fi
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25038 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25039    if test "$ac_cv_sys_file_offset_bits" != no; then
25040
25041 cat >>confdefs.h <<_ACEOF
25042 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25043 _ACEOF
25044
25045    fi
25046      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25047 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25048 if ${ac_cv_sys_largefile_source+:} false; then :
25049   $as_echo_n "(cached) " >&6
25050 else
25051   ac_cv_sys_largefile_source=no
25052       ac_cv_sys_largefile_source=1
25053       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25054         case "$ac_flag" in
25055         -D_LARGEFILE_SOURCE)
25056           ac_cv_sys_largefile_source=1 ;;
25057         -D_LARGEFILE_SOURCE=*)
25058           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25059         esac
25060       done
25061
25062 fi
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25064 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25065    if test "$ac_cv_sys_largefile_source" != no; then
25066
25067 cat >>confdefs.h <<_ACEOF
25068 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25069 _ACEOF
25070
25071    fi
25072      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25073 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25074 if ${ac_cv_sys_large_files+:} false; then :
25075   $as_echo_n "(cached) " >&6
25076 else
25077   ac_cv_sys_large_files=no
25078       ac_cv_sys_large_files=1
25079       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25080         case "$ac_flag" in
25081         -D_LARGE_FILES)
25082           ac_cv_sys_large_files=1 ;;
25083         -D_LARGE_FILES=*)
25084           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25085         esac
25086       done
25087
25088 fi
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25090 $as_echo "$ac_cv_sys_large_files" >&6; }
25091    if test "$ac_cv_sys_large_files" != no; then
25092
25093 cat >>confdefs.h <<_ACEOF
25094 #define _LARGE_FILES $ac_cv_sys_large_files
25095 _ACEOF
25096
25097    fi
25098    fi
25099
25100
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25102 $as_echo_n "checking for X... " >&6; }
25103
25104
25105 # Check whether --with-x was given.
25106 if test "${with_x+set}" = set; then :
25107   withval=$with_x;
25108 fi
25109
25110 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25111 if test "x$with_x" = xno; then
25112   # The user explicitly disabled X.
25113   have_x=disabled
25114 else
25115   case $x_includes,$x_libraries in #(
25116     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25117     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25118   $as_echo_n "(cached) " >&6
25119 else
25120   # One or both of the vars are not set, and there is no cached value.
25121 ac_x_includes=no ac_x_libraries=no
25122 rm -f -r conftest.dir
25123 if mkdir conftest.dir; then
25124   cd conftest.dir
25125   cat >Imakefile <<'_ACEOF'
25126 incroot:
25127         @echo incroot='${INCROOT}'
25128 usrlibdir:
25129         @echo usrlibdir='${USRLIBDIR}'
25130 libdir:
25131         @echo libdir='${LIBDIR}'
25132 _ACEOF
25133   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25134     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25135     for ac_var in incroot usrlibdir libdir; do
25136       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25137     done
25138     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25139     for ac_extension in a so sl dylib la dll; do
25140       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25141          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25142         ac_im_usrlibdir=$ac_im_libdir; break
25143       fi
25144     done
25145     # Screen out bogus values from the imake configuration.  They are
25146     # bogus both because they are the default anyway, and because
25147     # using them would break gcc on systems where it needs fixed includes.
25148     case $ac_im_incroot in
25149         /usr/include) ac_x_includes= ;;
25150         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25151     esac
25152     case $ac_im_usrlibdir in
25153         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25154         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25155     esac
25156   fi
25157   cd ..
25158   rm -f -r conftest.dir
25159 fi
25160
25161 # Standard set of common directories for X headers.
25162 # Check X11 before X11Rn because it is often a symlink to the current release.
25163 ac_x_header_dirs='
25164 /usr/X11/include
25165 /usr/X11R7/include
25166 /usr/X11R6/include
25167 /usr/X11R5/include
25168 /usr/X11R4/include
25169
25170 /usr/include/X11
25171 /usr/include/X11R7
25172 /usr/include/X11R6
25173 /usr/include/X11R5
25174 /usr/include/X11R4
25175
25176 /usr/local/X11/include
25177 /usr/local/X11R7/include
25178 /usr/local/X11R6/include
25179 /usr/local/X11R5/include
25180 /usr/local/X11R4/include
25181
25182 /usr/local/include/X11
25183 /usr/local/include/X11R7
25184 /usr/local/include/X11R6
25185 /usr/local/include/X11R5
25186 /usr/local/include/X11R4
25187
25188 /usr/X386/include
25189 /usr/x386/include
25190 /usr/XFree86/include/X11
25191
25192 /usr/include
25193 /usr/local/include
25194 /usr/unsupported/include
25195 /usr/athena/include
25196 /usr/local/x11r5/include
25197 /usr/lpp/Xamples/include
25198
25199 /usr/openwin/include
25200 /usr/openwin/share/include'
25201
25202 if test "$ac_x_includes" = no; then
25203   # Guess where to find include files, by looking for Xlib.h.
25204   # First, try using that file with no special directory specified.
25205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h.  */
25207 #include <X11/Xlib.h>
25208 _ACEOF
25209 if ac_fn_c_try_cpp "$LINENO"; then :
25210   # We can compile using X headers with no special include directory.
25211 ac_x_includes=
25212 else
25213   for ac_dir in $ac_x_header_dirs; do
25214   if test -r "$ac_dir/X11/Xlib.h"; then
25215     ac_x_includes=$ac_dir
25216     break
25217   fi
25218 done
25219 fi
25220 rm -f conftest.err conftest.i conftest.$ac_ext
25221 fi # $ac_x_includes = no
25222
25223 if test "$ac_x_libraries" = no; then
25224   # Check for the libraries.
25225   # See if we find them without any special options.
25226   # Don't add to $LIBS permanently.
25227   ac_save_LIBS=$LIBS
25228   LIBS="-lX11 $LIBS"
25229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25230 /* end confdefs.h.  */
25231 #include <X11/Xlib.h>
25232 int
25233 main ()
25234 {
25235 XrmInitialize ()
25236   ;
25237   return 0;
25238 }
25239 _ACEOF
25240 if ac_fn_c_try_link "$LINENO"; then :
25241   LIBS=$ac_save_LIBS
25242 # We can link X programs with no special library path.
25243 ac_x_libraries=
25244 else
25245   LIBS=$ac_save_LIBS
25246 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25247 do
25248   # Don't even attempt the hair of trying to link an X program!
25249   for ac_extension in a so sl dylib la dll; do
25250     if test -r "$ac_dir/libX11.$ac_extension"; then
25251       ac_x_libraries=$ac_dir
25252       break 2
25253     fi
25254   done
25255 done
25256 fi
25257 rm -f core conftest.err conftest.$ac_objext \
25258     conftest$ac_exeext conftest.$ac_ext
25259 fi # $ac_x_libraries = no
25260
25261 case $ac_x_includes,$ac_x_libraries in #(
25262   no,* | *,no | *\'*)
25263     # Didn't find X, or a directory has "'" in its name.
25264     ac_cv_have_x="have_x=no";; #(
25265   *)
25266     # Record where we found X for the cache.
25267     ac_cv_have_x="have_x=yes\
25268         ac_x_includes='$ac_x_includes'\
25269         ac_x_libraries='$ac_x_libraries'"
25270 esac
25271 fi
25272 ;; #(
25273     *) have_x=yes;;
25274   esac
25275   eval "$ac_cv_have_x"
25276 fi # $with_x != no
25277
25278 if test "$have_x" != yes; then
25279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25280 $as_echo "$have_x" >&6; }
25281   no_x=yes
25282 else
25283   # If each of the values was on the command line, it overrides each guess.
25284   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25285   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25286   # Update the cache value to reflect the command line values.
25287   ac_cv_have_x="have_x=yes\
25288         ac_x_includes='$x_includes'\
25289         ac_x_libraries='$x_libraries'"
25290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25291 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25292 fi
25293
25294 if test "$no_x" = yes; then
25295   # Not all programs may use this symbol, but it does not hurt to define it.
25296
25297 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25298
25299   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25300 else
25301   if test -n "$x_includes"; then
25302     X_CFLAGS="$X_CFLAGS -I$x_includes"
25303   fi
25304
25305   # It would also be nice to do this for all -L options, not just this one.
25306   if test -n "$x_libraries"; then
25307     X_LIBS="$X_LIBS -L$x_libraries"
25308     # For Solaris; some versions of Sun CC require a space after -R and
25309     # others require no space.  Words are not sufficient . . . .
25310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25311 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25312     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25313     ac_xsave_c_werror_flag=$ac_c_werror_flag
25314     ac_c_werror_flag=yes
25315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h.  */
25317
25318 int
25319 main ()
25320 {
25321
25322   ;
25323   return 0;
25324 }
25325 _ACEOF
25326 if ac_fn_c_try_link "$LINENO"; then :
25327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25328 $as_echo "no" >&6; }
25329        X_LIBS="$X_LIBS -R$x_libraries"
25330 else
25331   LIBS="$ac_xsave_LIBS -R $x_libraries"
25332        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h.  */
25334
25335 int
25336 main ()
25337 {
25338
25339   ;
25340   return 0;
25341 }
25342 _ACEOF
25343 if ac_fn_c_try_link "$LINENO"; then :
25344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25345 $as_echo "yes" >&6; }
25346           X_LIBS="$X_LIBS -R $x_libraries"
25347 else
25348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25349 $as_echo "neither works" >&6; }
25350 fi
25351 rm -f core conftest.err conftest.$ac_objext \
25352     conftest$ac_exeext conftest.$ac_ext
25353 fi
25354 rm -f core conftest.err conftest.$ac_objext \
25355     conftest$ac_exeext conftest.$ac_ext
25356     ac_c_werror_flag=$ac_xsave_c_werror_flag
25357     LIBS=$ac_xsave_LIBS
25358   fi
25359
25360   # Check for system-dependent libraries X programs must link with.
25361   # Do this before checking for the system-independent R6 libraries
25362   # (-lICE), since we may need -lsocket or whatever for X linking.
25363
25364   if test "$ISC" = yes; then
25365     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25366   else
25367     # Martyn Johnson says this is needed for Ultrix, if the X
25368     # libraries were built with DECnet support.  And Karl Berry says
25369     # the Alpha needs dnet_stub (dnet does not exist).
25370     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h.  */
25373
25374 /* Override any GCC internal prototype to avoid an error.
25375    Use char because int might match the return type of a GCC
25376    builtin and then its argument prototype would still apply.  */
25377 #ifdef __cplusplus
25378 extern "C"
25379 #endif
25380 char XOpenDisplay ();
25381 int
25382 main ()
25383 {
25384 return XOpenDisplay ();
25385   ;
25386   return 0;
25387 }
25388 _ACEOF
25389 if ac_fn_c_try_link "$LINENO"; then :
25390
25391 else
25392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25393 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25394 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25395   $as_echo_n "(cached) " >&6
25396 else
25397   ac_check_lib_save_LIBS=$LIBS
25398 LIBS="-ldnet  $LIBS"
25399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25400 /* end confdefs.h.  */
25401
25402 /* Override any GCC internal prototype to avoid an error.
25403    Use char because int might match the return type of a GCC
25404    builtin and then its argument prototype would still apply.  */
25405 #ifdef __cplusplus
25406 extern "C"
25407 #endif
25408 char dnet_ntoa ();
25409 int
25410 main ()
25411 {
25412 return dnet_ntoa ();
25413   ;
25414   return 0;
25415 }
25416 _ACEOF
25417 if ac_fn_c_try_link "$LINENO"; then :
25418   ac_cv_lib_dnet_dnet_ntoa=yes
25419 else
25420   ac_cv_lib_dnet_dnet_ntoa=no
25421 fi
25422 rm -f core conftest.err conftest.$ac_objext \
25423     conftest$ac_exeext conftest.$ac_ext
25424 LIBS=$ac_check_lib_save_LIBS
25425 fi
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25427 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25428 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25429   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25430 fi
25431
25432     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25433       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25434 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25435 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25436   $as_echo_n "(cached) " >&6
25437 else
25438   ac_check_lib_save_LIBS=$LIBS
25439 LIBS="-ldnet_stub  $LIBS"
25440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25441 /* end confdefs.h.  */
25442
25443 /* Override any GCC internal prototype to avoid an error.
25444    Use char because int might match the return type of a GCC
25445    builtin and then its argument prototype would still apply.  */
25446 #ifdef __cplusplus
25447 extern "C"
25448 #endif
25449 char dnet_ntoa ();
25450 int
25451 main ()
25452 {
25453 return dnet_ntoa ();
25454   ;
25455   return 0;
25456 }
25457 _ACEOF
25458 if ac_fn_c_try_link "$LINENO"; then :
25459   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25460 else
25461   ac_cv_lib_dnet_stub_dnet_ntoa=no
25462 fi
25463 rm -f core conftest.err conftest.$ac_objext \
25464     conftest$ac_exeext conftest.$ac_ext
25465 LIBS=$ac_check_lib_save_LIBS
25466 fi
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25468 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25469 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25470   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25471 fi
25472
25473     fi
25474 fi
25475 rm -f core conftest.err conftest.$ac_objext \
25476     conftest$ac_exeext conftest.$ac_ext
25477     LIBS="$ac_xsave_LIBS"
25478
25479     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25480     # to get the SysV transport functions.
25481     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25482     # needs -lnsl.
25483     # The nsl library prevents programs from opening the X display
25484     # on Irix 5.2, according to T.E. Dickey.
25485     # The functions gethostbyname, getservbyname, and inet_addr are
25486     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25487     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25488 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25489
25490 fi
25491
25492     if test $ac_cv_func_gethostbyname = no; then
25493       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25494 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25495 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25496   $as_echo_n "(cached) " >&6
25497 else
25498   ac_check_lib_save_LIBS=$LIBS
25499 LIBS="-lnsl  $LIBS"
25500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25501 /* end confdefs.h.  */
25502
25503 /* Override any GCC internal prototype to avoid an error.
25504    Use char because int might match the return type of a GCC
25505    builtin and then its argument prototype would still apply.  */
25506 #ifdef __cplusplus
25507 extern "C"
25508 #endif
25509 char gethostbyname ();
25510 int
25511 main ()
25512 {
25513 return gethostbyname ();
25514   ;
25515   return 0;
25516 }
25517 _ACEOF
25518 if ac_fn_c_try_link "$LINENO"; then :
25519   ac_cv_lib_nsl_gethostbyname=yes
25520 else
25521   ac_cv_lib_nsl_gethostbyname=no
25522 fi
25523 rm -f core conftest.err conftest.$ac_objext \
25524     conftest$ac_exeext conftest.$ac_ext
25525 LIBS=$ac_check_lib_save_LIBS
25526 fi
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25528 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25529 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25530   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25531 fi
25532
25533       if test $ac_cv_lib_nsl_gethostbyname = no; then
25534         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25535 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25536 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25537   $as_echo_n "(cached) " >&6
25538 else
25539   ac_check_lib_save_LIBS=$LIBS
25540 LIBS="-lbsd  $LIBS"
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h.  */
25543
25544 /* Override any GCC internal prototype to avoid an error.
25545    Use char because int might match the return type of a GCC
25546    builtin and then its argument prototype would still apply.  */
25547 #ifdef __cplusplus
25548 extern "C"
25549 #endif
25550 char gethostbyname ();
25551 int
25552 main ()
25553 {
25554 return gethostbyname ();
25555   ;
25556   return 0;
25557 }
25558 _ACEOF
25559 if ac_fn_c_try_link "$LINENO"; then :
25560   ac_cv_lib_bsd_gethostbyname=yes
25561 else
25562   ac_cv_lib_bsd_gethostbyname=no
25563 fi
25564 rm -f core conftest.err conftest.$ac_objext \
25565     conftest$ac_exeext conftest.$ac_ext
25566 LIBS=$ac_check_lib_save_LIBS
25567 fi
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25569 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25570 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25571   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25572 fi
25573
25574       fi
25575     fi
25576
25577     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25578     # socket/setsockopt and other routines are undefined under SCO ODT
25579     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25580     # on later versions), says Simon Leinen: it contains gethostby*
25581     # variants that don't use the name server (or something).  -lsocket
25582     # must be given before -lnsl if both are needed.  We assume that
25583     # if connect needs -lnsl, so does gethostbyname.
25584     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25585 if test "x$ac_cv_func_connect" = xyes; then :
25586
25587 fi
25588
25589     if test $ac_cv_func_connect = no; then
25590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25591 $as_echo_n "checking for connect in -lsocket... " >&6; }
25592 if ${ac_cv_lib_socket_connect+:} false; then :
25593   $as_echo_n "(cached) " >&6
25594 else
25595   ac_check_lib_save_LIBS=$LIBS
25596 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25598 /* end confdefs.h.  */
25599
25600 /* Override any GCC internal prototype to avoid an error.
25601    Use char because int might match the return type of a GCC
25602    builtin and then its argument prototype would still apply.  */
25603 #ifdef __cplusplus
25604 extern "C"
25605 #endif
25606 char connect ();
25607 int
25608 main ()
25609 {
25610 return connect ();
25611   ;
25612   return 0;
25613 }
25614 _ACEOF
25615 if ac_fn_c_try_link "$LINENO"; then :
25616   ac_cv_lib_socket_connect=yes
25617 else
25618   ac_cv_lib_socket_connect=no
25619 fi
25620 rm -f core conftest.err conftest.$ac_objext \
25621     conftest$ac_exeext conftest.$ac_ext
25622 LIBS=$ac_check_lib_save_LIBS
25623 fi
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25625 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25626 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25627   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25628 fi
25629
25630     fi
25631
25632     # Guillermo Gomez says -lposix is necessary on A/UX.
25633     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25634 if test "x$ac_cv_func_remove" = xyes; then :
25635
25636 fi
25637
25638     if test $ac_cv_func_remove = no; then
25639       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25640 $as_echo_n "checking for remove in -lposix... " >&6; }
25641 if ${ac_cv_lib_posix_remove+:} false; then :
25642   $as_echo_n "(cached) " >&6
25643 else
25644   ac_check_lib_save_LIBS=$LIBS
25645 LIBS="-lposix  $LIBS"
25646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25647 /* end confdefs.h.  */
25648
25649 /* Override any GCC internal prototype to avoid an error.
25650    Use char because int might match the return type of a GCC
25651    builtin and then its argument prototype would still apply.  */
25652 #ifdef __cplusplus
25653 extern "C"
25654 #endif
25655 char remove ();
25656 int
25657 main ()
25658 {
25659 return remove ();
25660   ;
25661   return 0;
25662 }
25663 _ACEOF
25664 if ac_fn_c_try_link "$LINENO"; then :
25665   ac_cv_lib_posix_remove=yes
25666 else
25667   ac_cv_lib_posix_remove=no
25668 fi
25669 rm -f core conftest.err conftest.$ac_objext \
25670     conftest$ac_exeext conftest.$ac_ext
25671 LIBS=$ac_check_lib_save_LIBS
25672 fi
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25674 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25675 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25676   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25677 fi
25678
25679     fi
25680
25681     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25682     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25683 if test "x$ac_cv_func_shmat" = xyes; then :
25684
25685 fi
25686
25687     if test $ac_cv_func_shmat = no; then
25688       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25689 $as_echo_n "checking for shmat in -lipc... " >&6; }
25690 if ${ac_cv_lib_ipc_shmat+:} false; then :
25691   $as_echo_n "(cached) " >&6
25692 else
25693   ac_check_lib_save_LIBS=$LIBS
25694 LIBS="-lipc  $LIBS"
25695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25696 /* end confdefs.h.  */
25697
25698 /* Override any GCC internal prototype to avoid an error.
25699    Use char because int might match the return type of a GCC
25700    builtin and then its argument prototype would still apply.  */
25701 #ifdef __cplusplus
25702 extern "C"
25703 #endif
25704 char shmat ();
25705 int
25706 main ()
25707 {
25708 return shmat ();
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 if ac_fn_c_try_link "$LINENO"; then :
25714   ac_cv_lib_ipc_shmat=yes
25715 else
25716   ac_cv_lib_ipc_shmat=no
25717 fi
25718 rm -f core conftest.err conftest.$ac_objext \
25719     conftest$ac_exeext conftest.$ac_ext
25720 LIBS=$ac_check_lib_save_LIBS
25721 fi
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25723 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25724 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25725   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25726 fi
25727
25728     fi
25729   fi
25730
25731   # Check for libraries that X11R6 Xt/Xaw programs need.
25732   ac_save_LDFLAGS=$LDFLAGS
25733   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25734   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25735   # check for ICE first), but we must link in the order -lSM -lICE or
25736   # we get undefined symbols.  So assume we have SM if we have ICE.
25737   # These have to be linked with before -lX11, unlike the other
25738   # libraries we check for below, so use a different variable.
25739   # John Interrante, Karl Berry
25740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25741 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25742 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25743   $as_echo_n "(cached) " >&6
25744 else
25745   ac_check_lib_save_LIBS=$LIBS
25746 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25748 /* end confdefs.h.  */
25749
25750 /* Override any GCC internal prototype to avoid an error.
25751    Use char because int might match the return type of a GCC
25752    builtin and then its argument prototype would still apply.  */
25753 #ifdef __cplusplus
25754 extern "C"
25755 #endif
25756 char IceConnectionNumber ();
25757 int
25758 main ()
25759 {
25760 return IceConnectionNumber ();
25761   ;
25762   return 0;
25763 }
25764 _ACEOF
25765 if ac_fn_c_try_link "$LINENO"; then :
25766   ac_cv_lib_ICE_IceConnectionNumber=yes
25767 else
25768   ac_cv_lib_ICE_IceConnectionNumber=no
25769 fi
25770 rm -f core conftest.err conftest.$ac_objext \
25771     conftest$ac_exeext conftest.$ac_ext
25772 LIBS=$ac_check_lib_save_LIBS
25773 fi
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25775 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25776 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25777   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25778 fi
25779
25780   LDFLAGS=$ac_save_LDFLAGS
25781
25782 fi
25783
25784
25785 for ac_header in \
25786    assert.h \
25787    fcntl.h \
25788    grp.h \
25789    pwd.h \
25790    libc.h \
25791    limits.h \
25792    stdarg.h \
25793    stdlib.h \
25794    stdint.h \
25795    inttypes.h \
25796    string.h \
25797    strings.h \
25798    termios.h \
25799    termcap.h \
25800    term.h \
25801    unistd.h \
25802    sys/bitypes.h \
25803    sys/byteorder.h \
25804    sys/ioctl.h \
25805    sys/select.h \
25806    sys/socket.h \
25807    sys/sockio.h \
25808    sys/stat.h \
25809    sys/time.h \
25810    sys/types.h \
25811    arpa/nameser.h \
25812    mtio.h \
25813    sys/mtio.h \
25814    sys/tape.h \
25815    regex.h \
25816
25817 do :
25818   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25819 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25821   cat >>confdefs.h <<_ACEOF
25822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25823 _ACEOF
25824
25825 fi
25826
25827 done
25828
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25830 $as_echo_n "checking for ANSI C header files... " >&6; }
25831 if ${ac_cv_header_stdc+:} false; then :
25832   $as_echo_n "(cached) " >&6
25833 else
25834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835 /* end confdefs.h.  */
25836 #include <stdlib.h>
25837 #include <stdarg.h>
25838 #include <string.h>
25839 #include <float.h>
25840
25841 int
25842 main ()
25843 {
25844
25845   ;
25846   return 0;
25847 }
25848 _ACEOF
25849 if ac_fn_c_try_compile "$LINENO"; then :
25850   ac_cv_header_stdc=yes
25851 else
25852   ac_cv_header_stdc=no
25853 fi
25854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25855
25856 if test $ac_cv_header_stdc = yes; then
25857   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25859 /* end confdefs.h.  */
25860 #include <string.h>
25861
25862 _ACEOF
25863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25864   $EGREP "memchr" >/dev/null 2>&1; then :
25865
25866 else
25867   ac_cv_header_stdc=no
25868 fi
25869 rm -f conftest*
25870
25871 fi
25872
25873 if test $ac_cv_header_stdc = yes; then
25874   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25876 /* end confdefs.h.  */
25877 #include <stdlib.h>
25878
25879 _ACEOF
25880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25881   $EGREP "free" >/dev/null 2>&1; then :
25882
25883 else
25884   ac_cv_header_stdc=no
25885 fi
25886 rm -f conftest*
25887
25888 fi
25889
25890 if test $ac_cv_header_stdc = yes; then
25891   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25892   if test "$cross_compiling" = yes; then :
25893   :
25894 else
25895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25896 /* end confdefs.h.  */
25897 #include <ctype.h>
25898 #include <stdlib.h>
25899 #if ((' ' & 0x0FF) == 0x020)
25900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25902 #else
25903 # define ISLOWER(c) \
25904                    (('a' <= (c) && (c) <= 'i') \
25905                      || ('j' <= (c) && (c) <= 'r') \
25906                      || ('s' <= (c) && (c) <= 'z'))
25907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25908 #endif
25909
25910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25911 int
25912 main ()
25913 {
25914   int i;
25915   for (i = 0; i < 256; i++)
25916     if (XOR (islower (i), ISLOWER (i))
25917         || toupper (i) != TOUPPER (i))
25918       return 2;
25919   return 0;
25920 }
25921 _ACEOF
25922 if ac_fn_c_try_run "$LINENO"; then :
25923
25924 else
25925   ac_cv_header_stdc=no
25926 fi
25927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25928   conftest.$ac_objext conftest.beam conftest.$ac_ext
25929 fi
25930
25931 fi
25932 fi
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25934 $as_echo "$ac_cv_header_stdc" >&6; }
25935 if test $ac_cv_header_stdc = yes; then
25936
25937 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25938
25939 fi
25940
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25942 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25943 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25944   $as_echo_n "(cached) " >&6
25945 else
25946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h.  */
25948 #include <sys/types.h>
25949 int
25950 main ()
25951 {
25952 return makedev(0, 0);
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 if ac_fn_c_try_link "$LINENO"; then :
25958   ac_cv_header_sys_types_h_makedev=yes
25959 else
25960   ac_cv_header_sys_types_h_makedev=no
25961 fi
25962 rm -f core conftest.err conftest.$ac_objext \
25963     conftest$ac_exeext conftest.$ac_ext
25964
25965 fi
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25967 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25968
25969 if test $ac_cv_header_sys_types_h_makedev = no; then
25970 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25971 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25972
25973 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25974
25975 fi
25976
25977
25978
25979   if test $ac_cv_header_sys_mkdev_h = no; then
25980     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25981 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25982
25983 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25984
25985 fi
25986
25987
25988   fi
25989 fi
25990
25991 ac_header_dirent=no
25992 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25993   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25995 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25996 if eval \${$as_ac_Header+:} false; then :
25997   $as_echo_n "(cached) " >&6
25998 else
25999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26000 /* end confdefs.h.  */
26001 #include <sys/types.h>
26002 #include <$ac_hdr>
26003
26004 int
26005 main ()
26006 {
26007 if ((DIR *) 0)
26008 return 0;
26009   ;
26010   return 0;
26011 }
26012 _ACEOF
26013 if ac_fn_c_try_compile "$LINENO"; then :
26014   eval "$as_ac_Header=yes"
26015 else
26016   eval "$as_ac_Header=no"
26017 fi
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019 fi
26020 eval ac_res=\$$as_ac_Header
26021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26022 $as_echo "$ac_res" >&6; }
26023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26024   cat >>confdefs.h <<_ACEOF
26025 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26026 _ACEOF
26027
26028 ac_header_dirent=$ac_hdr; break
26029 fi
26030
26031 done
26032 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26033 if test $ac_header_dirent = dirent.h; then
26034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26035 $as_echo_n "checking for library containing opendir... " >&6; }
26036 if ${ac_cv_search_opendir+:} false; then :
26037   $as_echo_n "(cached) " >&6
26038 else
26039   ac_func_search_save_LIBS=$LIBS
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h.  */
26042
26043 /* Override any GCC internal prototype to avoid an error.
26044    Use char because int might match the return type of a GCC
26045    builtin and then its argument prototype would still apply.  */
26046 #ifdef __cplusplus
26047 extern "C"
26048 #endif
26049 char opendir ();
26050 int
26051 main ()
26052 {
26053 return opendir ();
26054   ;
26055   return 0;
26056 }
26057 _ACEOF
26058 for ac_lib in '' dir; do
26059   if test -z "$ac_lib"; then
26060     ac_res="none required"
26061   else
26062     ac_res=-l$ac_lib
26063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26064   fi
26065   if ac_fn_c_try_link "$LINENO"; then :
26066   ac_cv_search_opendir=$ac_res
26067 fi
26068 rm -f core conftest.err conftest.$ac_objext \
26069     conftest$ac_exeext
26070   if ${ac_cv_search_opendir+:} false; then :
26071   break
26072 fi
26073 done
26074 if ${ac_cv_search_opendir+:} false; then :
26075
26076 else
26077   ac_cv_search_opendir=no
26078 fi
26079 rm conftest.$ac_ext
26080 LIBS=$ac_func_search_save_LIBS
26081 fi
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26083 $as_echo "$ac_cv_search_opendir" >&6; }
26084 ac_res=$ac_cv_search_opendir
26085 if test "$ac_res" != no; then :
26086   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26087
26088 fi
26089
26090 else
26091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26092 $as_echo_n "checking for library containing opendir... " >&6; }
26093 if ${ac_cv_search_opendir+:} false; then :
26094   $as_echo_n "(cached) " >&6
26095 else
26096   ac_func_search_save_LIBS=$LIBS
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h.  */
26099
26100 /* Override any GCC internal prototype to avoid an error.
26101    Use char because int might match the return type of a GCC
26102    builtin and then its argument prototype would still apply.  */
26103 #ifdef __cplusplus
26104 extern "C"
26105 #endif
26106 char opendir ();
26107 int
26108 main ()
26109 {
26110 return opendir ();
26111   ;
26112   return 0;
26113 }
26114 _ACEOF
26115 for ac_lib in '' x; do
26116   if test -z "$ac_lib"; then
26117     ac_res="none required"
26118   else
26119     ac_res=-l$ac_lib
26120     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26121   fi
26122   if ac_fn_c_try_link "$LINENO"; then :
26123   ac_cv_search_opendir=$ac_res
26124 fi
26125 rm -f core conftest.err conftest.$ac_objext \
26126     conftest$ac_exeext
26127   if ${ac_cv_search_opendir+:} false; then :
26128   break
26129 fi
26130 done
26131 if ${ac_cv_search_opendir+:} false; then :
26132
26133 else
26134   ac_cv_search_opendir=no
26135 fi
26136 rm conftest.$ac_ext
26137 LIBS=$ac_func_search_save_LIBS
26138 fi
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26140 $as_echo "$ac_cv_search_opendir" >&6; }
26141 ac_res=$ac_cv_search_opendir
26142 if test "$ac_res" != no; then :
26143   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26144
26145 fi
26146
26147 fi
26148
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26150 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26151 if ${ac_cv_header_stat_broken+:} false; then :
26152   $as_echo_n "(cached) " >&6
26153 else
26154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26155 /* end confdefs.h.  */
26156 #include <sys/types.h>
26157 #include <sys/stat.h>
26158
26159 #if defined S_ISBLK && defined S_IFDIR
26160 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26161 #endif
26162
26163 #if defined S_ISBLK && defined S_IFCHR
26164 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26165 #endif
26166
26167 #if defined S_ISLNK && defined S_IFREG
26168 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26169 #endif
26170
26171 #if defined S_ISSOCK && defined S_IFREG
26172 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26173 #endif
26174
26175 _ACEOF
26176 if ac_fn_c_try_compile "$LINENO"; then :
26177   ac_cv_header_stat_broken=no
26178 else
26179   ac_cv_header_stat_broken=yes
26180 fi
26181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26182 fi
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26184 $as_echo "$ac_cv_header_stat_broken" >&6; }
26185 if test $ac_cv_header_stat_broken = yes; then
26186
26187 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26188
26189 fi
26190
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26192 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26193 if ${ac_cv_header_sys_wait_h+:} false; then :
26194   $as_echo_n "(cached) " >&6
26195 else
26196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26197 /* end confdefs.h.  */
26198 #include <sys/types.h>
26199 #include <sys/wait.h>
26200 #ifndef WEXITSTATUS
26201 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26202 #endif
26203 #ifndef WIFEXITED
26204 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26205 #endif
26206
26207 int
26208 main ()
26209 {
26210   int s;
26211   wait (&s);
26212   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26213   ;
26214   return 0;
26215 }
26216 _ACEOF
26217 if ac_fn_c_try_compile "$LINENO"; then :
26218   ac_cv_header_sys_wait_h=yes
26219 else
26220   ac_cv_header_sys_wait_h=no
26221 fi
26222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26223 fi
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26225 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26226 if test $ac_cv_header_sys_wait_h = yes; then
26227
26228 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26229
26230 fi
26231
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26233 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26234 if ${ac_cv_header_time+:} false; then :
26235   $as_echo_n "(cached) " >&6
26236 else
26237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26238 /* end confdefs.h.  */
26239 #include <sys/types.h>
26240 #include <sys/time.h>
26241 #include <time.h>
26242
26243 int
26244 main ()
26245 {
26246 if ((struct tm *) 0)
26247 return 0;
26248   ;
26249   return 0;
26250 }
26251 _ACEOF
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253   ac_cv_header_time=yes
26254 else
26255   ac_cv_header_time=no
26256 fi
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 fi
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26260 $as_echo "$ac_cv_header_time" >&6; }
26261 if test $ac_cv_header_time = yes; then
26262
26263 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26264
26265 fi
26266
26267 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26268 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26269
26270 cat >>confdefs.h <<_ACEOF
26271 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26272 _ACEOF
26273
26274
26275 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26276
26277 fi
26278
26279
26280 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26281 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26282
26283 cat >>confdefs.h <<_ACEOF
26284 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26285 _ACEOF
26286
26287
26288 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26289
26290 else
26291   case " $LIBOBJS " in
26292   *" fileblocks.$ac_objext "* ) ;;
26293   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26294  ;;
26295 esac
26296
26297 fi
26298
26299
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26301 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26302 if ${ac_cv_struct_tm+:} false; then :
26303   $as_echo_n "(cached) " >&6
26304 else
26305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306 /* end confdefs.h.  */
26307 #include <sys/types.h>
26308 #include <time.h>
26309
26310 int
26311 main ()
26312 {
26313 struct tm tm;
26314                                      int *p = &tm.tm_sec;
26315                                      return !p;
26316   ;
26317   return 0;
26318 }
26319 _ACEOF
26320 if ac_fn_c_try_compile "$LINENO"; then :
26321   ac_cv_struct_tm=time.h
26322 else
26323   ac_cv_struct_tm=sys/time.h
26324 fi
26325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326 fi
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26328 $as_echo "$ac_cv_struct_tm" >&6; }
26329 if test $ac_cv_struct_tm = sys/time.h; then
26330
26331 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26332
26333 fi
26334
26335 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26336 #include <$ac_cv_struct_tm>
26337
26338 "
26339 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26340
26341 cat >>confdefs.h <<_ACEOF
26342 #define HAVE_STRUCT_TM_TM_ZONE 1
26343 _ACEOF
26344
26345
26346 fi
26347
26348 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26349
26350 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26351
26352 else
26353   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26354 "
26355 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26356   ac_have_decl=1
26357 else
26358   ac_have_decl=0
26359 fi
26360
26361 cat >>confdefs.h <<_ACEOF
26362 #define HAVE_DECL_TZNAME $ac_have_decl
26363 _ACEOF
26364
26365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26366 $as_echo_n "checking for tzname... " >&6; }
26367 if ${ac_cv_var_tzname+:} false; then :
26368   $as_echo_n "(cached) " >&6
26369 else
26370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26371 /* end confdefs.h.  */
26372 #include <time.h>
26373 #if !HAVE_DECL_TZNAME
26374 extern char *tzname[];
26375 #endif
26376
26377 int
26378 main ()
26379 {
26380 return tzname[0][0];
26381   ;
26382   return 0;
26383 }
26384 _ACEOF
26385 if ac_fn_c_try_link "$LINENO"; then :
26386   ac_cv_var_tzname=yes
26387 else
26388   ac_cv_var_tzname=no
26389 fi
26390 rm -f core conftest.err conftest.$ac_objext \
26391     conftest$ac_exeext conftest.$ac_ext
26392 fi
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26394 $as_echo "$ac_cv_var_tzname" >&6; }
26395   if test $ac_cv_var_tzname = yes; then
26396
26397 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26398
26399   fi
26400 fi
26401
26402
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26404 $as_echo_n "checking for utime.h... " >&6; }
26405 if ${ba_cv_header_utime_h+:} false; then :
26406   $as_echo_n "(cached) " >&6
26407 else
26408
26409        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410 /* end confdefs.h.  */
26411
26412               #include <sys/types.h>
26413               #include <utime.h>
26414
26415 int
26416 main ()
26417 {
26418
26419               struct utimbuf foo
26420
26421   ;
26422   return 0;
26423 }
26424 _ACEOF
26425 if ac_fn_c_try_compile "$LINENO"; then :
26426
26427               ba_cv_header_utime_h=yes
26428
26429 else
26430
26431               ba_cv_header_utime_h=no
26432
26433
26434 fi
26435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436
26437
26438 fi
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26440 $as_echo "$ba_cv_header_utime_h" >&6; }
26441 test $ba_cv_header_utime_h = yes &&
26442 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26443
26444
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26446 $as_echo_n "checking for socklen_t... " >&6; }
26447 if ${ba_cv_header_socklen_t+:} false; then :
26448   $as_echo_n "(cached) " >&6
26449 else
26450
26451        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26452 /* end confdefs.h.  */
26453
26454               #include <sys/types.h>
26455               #include <sys/socket.h>
26456
26457 int
26458 main ()
26459 {
26460
26461               socklen_t x
26462
26463   ;
26464   return 0;
26465 }
26466 _ACEOF
26467 if ac_fn_c_try_compile "$LINENO"; then :
26468
26469              ba_cv_header_socklen_t=yes
26470
26471 else
26472
26473              ba_cv_header_socklen_t=no
26474
26475
26476 fi
26477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26478
26479
26480 fi
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26482 $as_echo "$ba_cv_header_socklen_t" >&6; }
26483 test $ba_cv_header_socklen_t = yes &&
26484 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26485
26486
26487 ac_ext=cpp
26488 ac_cpp='$CXXCPP $CPPFLAGS'
26489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26492
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26494 $as_echo_n "checking for ioctl_req_t... " >&6; }
26495 if ${ba_cv_header_ioctl_req_t+:} false; then :
26496   $as_echo_n "(cached) " >&6
26497 else
26498
26499        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26500 /* end confdefs.h.  */
26501
26502               #include <unistd.h>
26503               #include <sys/types.h>
26504               #include <sys/ioctl.h>
26505
26506 int
26507 main ()
26508 {
26509
26510               int (*d_ioctl)(int fd, unsigned long int request, ...);
26511               d_ioctl = ::ioctl;
26512
26513   ;
26514   return 0;
26515 }
26516 _ACEOF
26517 if ac_fn_cxx_try_compile "$LINENO"; then :
26518
26519              ba_cv_header_ioctl_req_t=yes
26520
26521 else
26522
26523              ba_cv_header_ioctl_req_t=no
26524
26525
26526 fi
26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528
26529
26530 fi
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26532 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26533 test $ba_cv_header_ioctl_req_t = yes &&
26534 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26535
26536
26537 ac_ext=c
26538 ac_cpp='$CPP $CPPFLAGS'
26539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26542
26543
26544 ac_ext=cpp
26545 ac_cpp='$CXXCPP $CPPFLAGS'
26546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26549
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26551 $as_echo_n "checking for typeof... " >&6; }
26552 if ${ba_cv_have_typeof+:} false; then :
26553   $as_echo_n "(cached) " >&6
26554 else
26555
26556        if test "$cross_compiling" = yes; then :
26557
26558               ba_cv_have_typeof=no
26559
26560
26561 else
26562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26563 /* end confdefs.h.  */
26564
26565               main(){char *a = 0; a = (typeof a)a;}
26566
26567 _ACEOF
26568 if ac_fn_cxx_try_run "$LINENO"; then :
26569
26570               ba_cv_have_typeof=yes
26571
26572 else
26573
26574               ba_cv_have_typeof=no
26575
26576 fi
26577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26578   conftest.$ac_objext conftest.beam conftest.$ac_ext
26579 fi
26580
26581
26582
26583 fi
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26585 $as_echo "$ba_cv_have_typeof" >&6; }
26586 test $ba_cv_have_typeof = yes &&
26587 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26588
26589 ac_ext=c
26590 ac_cpp='$CPP $CPPFLAGS'
26591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26594
26595
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26597 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26598 if ${ac_cv_c_const+:} false; then :
26599   $as_echo_n "(cached) " >&6
26600 else
26601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26602 /* end confdefs.h.  */
26603
26604 int
26605 main ()
26606 {
26607
26608 #ifndef __cplusplus
26609   /* Ultrix mips cc rejects this sort of thing.  */
26610   typedef int charset[2];
26611   const charset cs = { 0, 0 };
26612   /* SunOS 4.1.1 cc rejects this.  */
26613   char const *const *pcpcc;
26614   char **ppc;
26615   /* NEC SVR4.0.2 mips cc rejects this.  */
26616   struct point {int x, y;};
26617   static struct point const zero = {0,0};
26618   /* AIX XL C 1.02.0.0 rejects this.
26619      It does not let you subtract one const X* pointer from another in
26620      an arm of an if-expression whose if-part is not a constant
26621      expression */
26622   const char *g = "string";
26623   pcpcc = &g + (g ? g-g : 0);
26624   /* HPUX 7.0 cc rejects these. */
26625   ++pcpcc;
26626   ppc = (char**) pcpcc;
26627   pcpcc = (char const *const *) ppc;
26628   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26629     char tx;
26630     char *t = &tx;
26631     char const *s = 0 ? (char *) 0 : (char const *) 0;
26632
26633     *t++ = 0;
26634     if (s) return 0;
26635   }
26636   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26637     int x[] = {25, 17};
26638     const int *foo = &x[0];
26639     ++foo;
26640   }
26641   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26642     typedef const int *iptr;
26643     iptr p = 0;
26644     ++p;
26645   }
26646   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26647        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26648     struct s { int j; const int *ap[3]; } bx;
26649     struct s *b = &bx; b->j = 5;
26650   }
26651   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26652     const int foo = 10;
26653     if (!foo) return 0;
26654   }
26655   return !cs[0] && !zero.x;
26656 #endif
26657
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 if ac_fn_c_try_compile "$LINENO"; then :
26663   ac_cv_c_const=yes
26664 else
26665   ac_cv_c_const=no
26666 fi
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668 fi
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26670 $as_echo "$ac_cv_c_const" >&6; }
26671 if test $ac_cv_c_const = no; then
26672
26673 $as_echo "#define const /**/" >>confdefs.h
26674
26675 fi
26676
26677
26678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26679 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26680 if ${ac_cv_c_bigendian+:} false; then :
26681   $as_echo_n "(cached) " >&6
26682 else
26683   ac_cv_c_bigendian=unknown
26684     # See if we're dealing with a universal compiler.
26685     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26686 /* end confdefs.h.  */
26687 #ifndef __APPLE_CC__
26688                not a universal capable compiler
26689              #endif
26690              typedef int dummy;
26691
26692 _ACEOF
26693 if ac_fn_c_try_compile "$LINENO"; then :
26694
26695         # Check for potential -arch flags.  It is not universal unless
26696         # there are at least two -arch flags with different values.
26697         ac_arch=
26698         ac_prev=
26699         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26700          if test -n "$ac_prev"; then
26701            case $ac_word in
26702              i?86 | x86_64 | ppc | ppc64)
26703                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26704                  ac_arch=$ac_word
26705                else
26706                  ac_cv_c_bigendian=universal
26707                  break
26708                fi
26709                ;;
26710            esac
26711            ac_prev=
26712          elif test "x$ac_word" = "x-arch"; then
26713            ac_prev=arch
26714          fi
26715        done
26716 fi
26717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26718     if test $ac_cv_c_bigendian = unknown; then
26719       # See if sys/param.h defines the BYTE_ORDER macro.
26720       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26721 /* end confdefs.h.  */
26722 #include <sys/types.h>
26723              #include <sys/param.h>
26724
26725 int
26726 main ()
26727 {
26728 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26729                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26730                      && LITTLE_ENDIAN)
26731               bogus endian macros
26732              #endif
26733
26734   ;
26735   return 0;
26736 }
26737 _ACEOF
26738 if ac_fn_c_try_compile "$LINENO"; then :
26739   # It does; now see whether it defined to BIG_ENDIAN or not.
26740          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26741 /* end confdefs.h.  */
26742 #include <sys/types.h>
26743                 #include <sys/param.h>
26744
26745 int
26746 main ()
26747 {
26748 #if BYTE_ORDER != BIG_ENDIAN
26749                  not big endian
26750                 #endif
26751
26752   ;
26753   return 0;
26754 }
26755 _ACEOF
26756 if ac_fn_c_try_compile "$LINENO"; then :
26757   ac_cv_c_bigendian=yes
26758 else
26759   ac_cv_c_bigendian=no
26760 fi
26761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762 fi
26763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26764     fi
26765     if test $ac_cv_c_bigendian = unknown; then
26766       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h.  */
26769 #include <limits.h>
26770
26771 int
26772 main ()
26773 {
26774 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26775               bogus endian macros
26776              #endif
26777
26778   ;
26779   return 0;
26780 }
26781 _ACEOF
26782 if ac_fn_c_try_compile "$LINENO"; then :
26783   # It does; now see whether it defined to _BIG_ENDIAN or not.
26784          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26785 /* end confdefs.h.  */
26786 #include <limits.h>
26787
26788 int
26789 main ()
26790 {
26791 #ifndef _BIG_ENDIAN
26792                  not big endian
26793                 #endif
26794
26795   ;
26796   return 0;
26797 }
26798 _ACEOF
26799 if ac_fn_c_try_compile "$LINENO"; then :
26800   ac_cv_c_bigendian=yes
26801 else
26802   ac_cv_c_bigendian=no
26803 fi
26804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26805 fi
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807     fi
26808     if test $ac_cv_c_bigendian = unknown; then
26809       # Compile a test program.
26810       if test "$cross_compiling" = yes; then :
26811   # Try to guess by grepping values from an object file.
26812          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26813 /* end confdefs.h.  */
26814 short int ascii_mm[] =
26815                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26816                 short int ascii_ii[] =
26817                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26818                 int use_ascii (int i) {
26819                   return ascii_mm[i] + ascii_ii[i];
26820                 }
26821                 short int ebcdic_ii[] =
26822                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26823                 short int ebcdic_mm[] =
26824                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26825                 int use_ebcdic (int i) {
26826                   return ebcdic_mm[i] + ebcdic_ii[i];
26827                 }
26828                 extern int foo;
26829
26830 int
26831 main ()
26832 {
26833 return use_ascii (foo) == use_ebcdic (foo);
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 if ac_fn_c_try_compile "$LINENO"; then :
26839   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26840               ac_cv_c_bigendian=yes
26841             fi
26842             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26843               if test "$ac_cv_c_bigendian" = unknown; then
26844                 ac_cv_c_bigendian=no
26845               else
26846                 # finding both strings is unlikely to happen, but who knows?
26847                 ac_cv_c_bigendian=unknown
26848               fi
26849             fi
26850 fi
26851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26852 else
26853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26854 /* end confdefs.h.  */
26855 $ac_includes_default
26856 int
26857 main ()
26858 {
26859
26860              /* Are we little or big endian?  From Harbison&Steele.  */
26861              union
26862              {
26863                long int l;
26864                char c[sizeof (long int)];
26865              } u;
26866              u.l = 1;
26867              return u.c[sizeof (long int) - 1] == 1;
26868
26869   ;
26870   return 0;
26871 }
26872 _ACEOF
26873 if ac_fn_c_try_run "$LINENO"; then :
26874   ac_cv_c_bigendian=no
26875 else
26876   ac_cv_c_bigendian=yes
26877 fi
26878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26879   conftest.$ac_objext conftest.beam conftest.$ac_ext
26880 fi
26881
26882     fi
26883 fi
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26885 $as_echo "$ac_cv_c_bigendian" >&6; }
26886  case $ac_cv_c_bigendian in #(
26887    yes)
26888
26889 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26890 ;; #(
26891    no)
26892
26893 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26894  ;; #(
26895    universal)
26896
26897 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26898
26899      ;; #(
26900    *)
26901      as_fn_error $? "unknown endianness
26902  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26903  esac
26904
26905
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26907 $as_echo_n "checking how to get filesystem type... " >&6; }
26908 fstype=no
26909 # The order of these tests is important.
26910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26911 /* end confdefs.h.  */
26912
26913        #include <sys/statvfs.h>
26914        #include <sys/fstyp.h>
26915
26916 _ACEOF
26917 if ac_fn_c_try_cpp "$LINENO"; then :
26918   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26919  fstype=SVR4
26920
26921 fi
26922 rm -f conftest.err conftest.i conftest.$ac_ext
26923 if test $fstype = no; then
26924    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26925 /* end confdefs.h.  */
26926
26927           #include <sys/statfs.h>
26928           #include <sys/fstyp.h>
26929
26930 _ACEOF
26931 if ac_fn_c_try_cpp "$LINENO"; then :
26932   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26933  fstype=SVR3
26934
26935 fi
26936 rm -f conftest.err conftest.i conftest.$ac_ext
26937 fi
26938 if test $fstype = no; then
26939    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26940 /* end confdefs.h.  */
26941
26942           #include <sys/statfs.h>
26943           #include <sys/vmount.h>
26944
26945 _ACEOF
26946 if ac_fn_c_try_cpp "$LINENO"; then :
26947   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26948  fstype=AIX
26949
26950 fi
26951 rm -f conftest.err conftest.i conftest.$ac_ext
26952 fi
26953 if test $fstype = no; then
26954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26955 /* end confdefs.h.  */
26956
26957           #include <mntent.h>
26958
26959 _ACEOF
26960 if ac_fn_c_try_cpp "$LINENO"; then :
26961   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26962  fstype=4.3BSD
26963
26964 fi
26965 rm -f conftest.err conftest.i conftest.$ac_ext
26966 fi
26967 if test $fstype = no; then
26968    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26969 /* end confdefs.h.  */
26970 #include <sys/mount.h>
26971
26972 _ACEOF
26973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26974   $EGREP "f_type;" >/dev/null 2>&1; then :
26975   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26976  fstype=4.4BSD/OSF1
26977 fi
26978 rm -f conftest*
26979
26980 fi
26981 if test $fstype = no; then
26982    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26983 /* end confdefs.h.  */
26984
26985           #include <sys/mount.h>
26986           #include <sys/fs_types.h>
26987
26988 _ACEOF
26989 if ac_fn_c_try_cpp "$LINENO"; then :
26990   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26991  fstype=Ultrix
26992
26993 fi
26994 rm -f conftest.err conftest.i conftest.$ac_ext
26995 fi
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26997 $as_echo "$fstype" >&6; }
26998
26999 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27000 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27001
27002 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27003
27004 fi
27005
27006
27007
27008 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
27009 #ifdef HAVE_FCNTL_H
27010 # include <fcntl.h>
27011 #endif
27012
27013 "
27014 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
27015   ac_have_decl=1
27016 else
27017   ac_have_decl=0
27018 fi
27019
27020 cat >>confdefs.h <<_ACEOF
27021 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
27022 _ACEOF
27023 if test $ac_have_decl = 1; then :
27024
27025 else
27026
27027 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
27028
27029 fi
27030
27031
27032 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
27033 #ifdef HAVE_FCNTL_H
27034 # include <fcntl.h>
27035 #endif
27036
27037 "
27038 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
27039   ac_have_decl=1
27040 else
27041   ac_have_decl=0
27042 fi
27043
27044 cat >>confdefs.h <<_ACEOF
27045 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
27046 _ACEOF
27047 if test $ac_have_decl = 1; then :
27048
27049 else
27050
27051 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
27052
27053 fi
27054
27055
27056 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
27057 #ifdef HAVE_SYS_SOCKET_H
27058 # include <sys/socket.h>
27059 #endif
27060
27061 "
27062 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
27063   ac_have_decl=1
27064 else
27065   ac_have_decl=0
27066 fi
27067
27068 cat >>confdefs.h <<_ACEOF
27069 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
27070 _ACEOF
27071 if test $ac_have_decl = 1; then :
27072
27073 else
27074
27075 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
27076
27077 fi
27078
27079
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
27081 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
27082 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
27083   $as_echo_n "(cached) " >&6
27084 else
27085   if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
27086         if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
27087             ac_cv_feature_stream_cloexec_flag="e"
27088         fi
27089     fi
27090 fi
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
27092 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
27093
27094 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
27095
27096 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
27097
27098 fi
27099
27100
27101 cat >>confdefs.h <<_ACEOF
27102 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
27103 _ACEOF
27104
27105
27106 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
27107 if test "x$ac_cv_func_accept4" = xyes; then :
27108
27109 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27110
27111 fi
27112
27113
27114 S3_INC=
27115 S3_LIBS=
27116 S3_LDFLAGS=
27117 have_libs3=no
27118
27119 if test x$support_s3 = xyes; then
27120
27121 # Check whether --with-s3 was given.
27122 if test "${with_s3+set}" = set; then :
27123   withval=$with_s3;
27124           case "$with_s3" in
27125           no)
27126              :
27127              ;;
27128           yes|*)
27129              if test -f ${with_s3}/include/libs3.h; then
27130                 S3_INC="-I${with_s3}/include"
27131                 S3_LDFLAGS="-L${with_s3}/lib"
27132                 with_s3="${with_s3}/include"
27133              else
27134                 with_s3="/usr/include"
27135              fi
27136
27137              as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
27138 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
27139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27140
27141
27142 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27143
27144                     S3_LIBS="${S3_LDFLAGS} -ls3"
27145                     have_libs3="yes"
27146
27147 else
27148
27149                     echo " "
27150                     echo "libs3.h not found. s3 turned off ..."
27151                     echo " "
27152
27153
27154 fi
27155
27156
27157              ;;
27158           esac
27159
27160 else
27161
27162          ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27163 if test "x$ac_cv_header_libs3_h" = xyes; then :
27164
27165             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27166 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27167 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27168   $as_echo_n "(cached) " >&6
27169 else
27170   ac_check_lib_save_LIBS=$LIBS
27171 LIBS="-ls3  $LIBS"
27172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173 /* end confdefs.h.  */
27174
27175 /* Override any GCC internal prototype to avoid an error.
27176    Use char because int might match the return type of a GCC
27177    builtin and then its argument prototype would still apply.  */
27178 #ifdef __cplusplus
27179 extern "C"
27180 #endif
27181 char S3_initialize ();
27182 int
27183 main ()
27184 {
27185 return S3_initialize ();
27186   ;
27187   return 0;
27188 }
27189 _ACEOF
27190 if ac_fn_c_try_link "$LINENO"; then :
27191   ac_cv_lib_s3_S3_initialize=yes
27192 else
27193   ac_cv_lib_s3_S3_initialize=no
27194 fi
27195 rm -f core conftest.err conftest.$ac_objext \
27196     conftest$ac_exeext conftest.$ac_ext
27197 LIBS=$ac_check_lib_save_LIBS
27198 fi
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27200 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27201 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27202
27203               S3_LIBS="-ls3"
27204
27205 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27206
27207               have_libs3=yes
27208
27209 fi
27210
27211
27212 fi
27213
27214
27215
27216 fi
27217
27218 fi
27219
27220
27221
27222
27223 ac_ext=cpp
27224 ac_cpp='$CXXCPP $CPPFLAGS'
27225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27228
27229 for ac_func in backtrace
27230 do :
27231   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27232 if test "x$ac_cv_func_backtrace" = xyes; then :
27233   cat >>confdefs.h <<_ACEOF
27234 #define HAVE_BACKTRACE 1
27235 _ACEOF
27236
27237 fi
27238 done
27239
27240 ac_ext=c
27241 ac_cpp='$CPP $CPPFLAGS'
27242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27245
27246
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27248 $as_echo_n "checking return type of signal handlers... " >&6; }
27249 if ${ac_cv_type_signal+:} false; then :
27250   $as_echo_n "(cached) " >&6
27251 else
27252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27253 /* end confdefs.h.  */
27254 #include <sys/types.h>
27255 #include <signal.h>
27256
27257 int
27258 main ()
27259 {
27260 return *(signal (0, 0)) (0) == 1;
27261   ;
27262   return 0;
27263 }
27264 _ACEOF
27265 if ac_fn_c_try_compile "$LINENO"; then :
27266   ac_cv_type_signal=int
27267 else
27268   ac_cv_type_signal=void
27269 fi
27270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27271 fi
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27273 $as_echo "$ac_cv_type_signal" >&6; }
27274
27275 cat >>confdefs.h <<_ACEOF
27276 #define RETSIGTYPE $ac_cv_type_signal
27277 _ACEOF
27278
27279
27280
27281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27282 $as_echo_n "checking for type of signal functions... " >&6; }
27283   if ${bash_cv_signal_vintage+:} false; then :
27284   $as_echo_n "(cached) " >&6
27285 else
27286
27287     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27288 /* end confdefs.h.  */
27289 #include <signal.h>
27290 int
27291 main ()
27292 {
27293
27294       sigset_t ss;
27295       struct sigaction sa;
27296       sigemptyset(&ss); sigsuspend(&ss);
27297       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27298       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27299
27300   ;
27301   return 0;
27302 }
27303 _ACEOF
27304 if ac_fn_c_try_link "$LINENO"; then :
27305   bash_cv_signal_vintage="posix"
27306 else
27307
27308       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27309 /* end confdefs.h.  */
27310 #include <signal.h>
27311 int
27312 main ()
27313 {
27314
27315           int mask = sigmask(SIGINT);
27316           sigsetmask(mask); sigblock(mask); sigpause(mask);
27317
27318   ;
27319   return 0;
27320 }
27321 _ACEOF
27322 if ac_fn_c_try_link "$LINENO"; then :
27323   bash_cv_signal_vintage="4.2bsd"
27324 else
27325
27326         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327 /* end confdefs.h.  */
27328
27329           #include <signal.h>
27330           RETSIGTYPE foo() { }
27331 int
27332 main ()
27333 {
27334
27335                   int mask = sigmask(SIGINT);
27336                   sigset(SIGINT, foo); sigrelse(SIGINT);
27337                   sighold(SIGINT); sigpause(SIGINT);
27338
27339   ;
27340   return 0;
27341 }
27342 _ACEOF
27343 if ac_fn_c_try_link "$LINENO"; then :
27344   bash_cv_signal_vintage="svr3"
27345 else
27346   bash_cv_signal_vintage="v7"
27347
27348 fi
27349 rm -f core conftest.err conftest.$ac_objext \
27350     conftest$ac_exeext conftest.$ac_ext
27351
27352 fi
27353 rm -f core conftest.err conftest.$ac_objext \
27354     conftest$ac_exeext conftest.$ac_ext
27355
27356 fi
27357 rm -f core conftest.err conftest.$ac_objext \
27358     conftest$ac_exeext conftest.$ac_ext
27359
27360 fi
27361
27362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27363 $as_echo "$bash_cv_signal_vintage" >&6; }
27364   if test "$bash_cv_signal_vintage" = "posix"; then
27365     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27366
27367   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27368     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27369
27370   elif test "$bash_cv_signal_vintage" = "svr3"; then
27371     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27372
27373   fi
27374
27375 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27376 if test "x$ac_cv_type_mode_t" = xyes; then :
27377
27378 else
27379
27380 cat >>confdefs.h <<_ACEOF
27381 #define mode_t int
27382 _ACEOF
27383
27384 fi
27385
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27387 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27388 if ${ac_cv_type_uid_t+:} false; then :
27389   $as_echo_n "(cached) " >&6
27390 else
27391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27392 /* end confdefs.h.  */
27393 #include <sys/types.h>
27394
27395 _ACEOF
27396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27397   $EGREP "uid_t" >/dev/null 2>&1; then :
27398   ac_cv_type_uid_t=yes
27399 else
27400   ac_cv_type_uid_t=no
27401 fi
27402 rm -f conftest*
27403
27404 fi
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27406 $as_echo "$ac_cv_type_uid_t" >&6; }
27407 if test $ac_cv_type_uid_t = no; then
27408
27409 $as_echo "#define uid_t int" >>confdefs.h
27410
27411
27412 $as_echo "#define gid_t int" >>confdefs.h
27413
27414 fi
27415
27416 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27417 if test "x$ac_cv_type_size_t" = xyes; then :
27418
27419 else
27420
27421 cat >>confdefs.h <<_ACEOF
27422 #define size_t unsigned int
27423 _ACEOF
27424
27425 fi
27426
27427 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27428 if test "x$ac_cv_type_pid_t" = xyes; then :
27429
27430 else
27431
27432 cat >>confdefs.h <<_ACEOF
27433 #define pid_t int
27434 _ACEOF
27435
27436 fi
27437
27438 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27439 if test "x$ac_cv_type_off_t" = xyes; then :
27440
27441 else
27442
27443 cat >>confdefs.h <<_ACEOF
27444 #define off_t long int
27445 _ACEOF
27446
27447 fi
27448
27449
27450   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27451 if test "x$ac_cv_type_intptr_t" = xyes; then :
27452
27453 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27454
27455 else
27456   for ac_type in 'int' 'long int' 'long long int'; do
27457        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h.  */
27459 $ac_includes_default
27460 int
27461 main ()
27462 {
27463 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27464 test_array [0] = 0;
27465 return test_array [0];
27466
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 if ac_fn_c_try_compile "$LINENO"; then :
27472
27473 cat >>confdefs.h <<_ACEOF
27474 #define intptr_t $ac_type
27475 _ACEOF
27476
27477           ac_type=
27478 fi
27479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27480        test -z "$ac_type" && break
27481      done
27482 fi
27483
27484
27485
27486   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27487 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27488
27489 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27490
27491 else
27492   for ac_type in 'unsigned int' 'unsigned long int' \
27493         'unsigned long long int'; do
27494        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27495 /* end confdefs.h.  */
27496 $ac_includes_default
27497 int
27498 main ()
27499 {
27500 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27501 test_array [0] = 0;
27502 return test_array [0];
27503
27504   ;
27505   return 0;
27506 }
27507 _ACEOF
27508 if ac_fn_c_try_compile "$LINENO"; then :
27509
27510 cat >>confdefs.h <<_ACEOF
27511 #define uintptr_t $ac_type
27512 _ACEOF
27513
27514           ac_type=
27515 fi
27516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27517        test -z "$ac_type" && break
27518      done
27519 fi
27520
27521
27522 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27523 if test "x$ac_cv_type_ino_t" = xyes; then :
27524
27525 else
27526
27527 cat >>confdefs.h <<_ACEOF
27528 #define ino_t unsigned long
27529 _ACEOF
27530
27531 fi
27532
27533 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27534 if test "x$ac_cv_type_dev_t" = xyes; then :
27535
27536 else
27537
27538 cat >>confdefs.h <<_ACEOF
27539 #define dev_t unsigned long
27540 _ACEOF
27541
27542 fi
27543
27544 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27545 if test "x$ac_cv_type_daddr_t" = xyes; then :
27546
27547 else
27548
27549 cat >>confdefs.h <<_ACEOF
27550 #define daddr_t long
27551 _ACEOF
27552
27553 fi
27554
27555 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27556 if test "x$ac_cv_type_major_t" = xyes; then :
27557
27558 else
27559
27560 cat >>confdefs.h <<_ACEOF
27561 #define major_t int
27562 _ACEOF
27563
27564 fi
27565
27566 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27567 if test "x$ac_cv_type_minor_t" = xyes; then :
27568
27569 else
27570
27571 cat >>confdefs.h <<_ACEOF
27572 #define minor_t int
27573 _ACEOF
27574
27575 fi
27576
27577 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27578 if test "x$ac_cv_type_ssize_t" = xyes; then :
27579
27580 else
27581
27582 cat >>confdefs.h <<_ACEOF
27583 #define ssize_t int
27584 _ACEOF
27585
27586 fi
27587
27588 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27589 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27590
27591 cat >>confdefs.h <<_ACEOF
27592 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27593 _ACEOF
27594
27595
27596 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27597
27598 else
27599   case " $LIBOBJS " in
27600   *" fileblocks.$ac_objext "* ) ;;
27601   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27602  ;;
27603 esac
27604
27605 fi
27606
27607
27608 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27609 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27610
27611 cat >>confdefs.h <<_ACEOF
27612 #define HAVE_STRUCT_STAT_ST_RDEV 1
27613 _ACEOF
27614
27615
27616 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27617
27618 fi
27619
27620
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27622 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27623 if ${ac_cv_struct_tm+:} false; then :
27624   $as_echo_n "(cached) " >&6
27625 else
27626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27627 /* end confdefs.h.  */
27628 #include <sys/types.h>
27629 #include <time.h>
27630
27631 int
27632 main ()
27633 {
27634 struct tm tm;
27635                                      int *p = &tm.tm_sec;
27636                                      return !p;
27637   ;
27638   return 0;
27639 }
27640 _ACEOF
27641 if ac_fn_c_try_compile "$LINENO"; then :
27642   ac_cv_struct_tm=time.h
27643 else
27644   ac_cv_struct_tm=sys/time.h
27645 fi
27646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27647 fi
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27649 $as_echo "$ac_cv_struct_tm" >&6; }
27650 if test $ac_cv_struct_tm = sys/time.h; then
27651
27652 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27653
27654 fi
27655
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27657 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27658 if ${ac_cv_c_const+:} false; then :
27659   $as_echo_n "(cached) " >&6
27660 else
27661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27662 /* end confdefs.h.  */
27663
27664 int
27665 main ()
27666 {
27667
27668 #ifndef __cplusplus
27669   /* Ultrix mips cc rejects this sort of thing.  */
27670   typedef int charset[2];
27671   const charset cs = { 0, 0 };
27672   /* SunOS 4.1.1 cc rejects this.  */
27673   char const *const *pcpcc;
27674   char **ppc;
27675   /* NEC SVR4.0.2 mips cc rejects this.  */
27676   struct point {int x, y;};
27677   static struct point const zero = {0,0};
27678   /* AIX XL C 1.02.0.0 rejects this.
27679      It does not let you subtract one const X* pointer from another in
27680      an arm of an if-expression whose if-part is not a constant
27681      expression */
27682   const char *g = "string";
27683   pcpcc = &g + (g ? g-g : 0);
27684   /* HPUX 7.0 cc rejects these. */
27685   ++pcpcc;
27686   ppc = (char**) pcpcc;
27687   pcpcc = (char const *const *) ppc;
27688   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27689     char tx;
27690     char *t = &tx;
27691     char const *s = 0 ? (char *) 0 : (char const *) 0;
27692
27693     *t++ = 0;
27694     if (s) return 0;
27695   }
27696   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27697     int x[] = {25, 17};
27698     const int *foo = &x[0];
27699     ++foo;
27700   }
27701   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27702     typedef const int *iptr;
27703     iptr p = 0;
27704     ++p;
27705   }
27706   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27707        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27708     struct s { int j; const int *ap[3]; } bx;
27709     struct s *b = &bx; b->j = 5;
27710   }
27711   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27712     const int foo = 10;
27713     if (!foo) return 0;
27714   }
27715   return !cs[0] && !zero.x;
27716 #endif
27717
27718   ;
27719   return 0;
27720 }
27721 _ACEOF
27722 if ac_fn_c_try_compile "$LINENO"; then :
27723   ac_cv_c_const=yes
27724 else
27725   ac_cv_c_const=no
27726 fi
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27728 fi
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27730 $as_echo "$ac_cv_c_const" >&6; }
27731 if test $ac_cv_c_const = no; then
27732
27733 $as_echo "#define const /**/" >>confdefs.h
27734
27735 fi
27736
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27738 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27739 if ${ac_cv_c_restrict+:} false; then :
27740   $as_echo_n "(cached) " >&6
27741 else
27742   ac_cv_c_restrict=no
27743    # The order here caters to the fact that C++ does not require restrict.
27744    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27745      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27746 /* end confdefs.h.  */
27747 typedef int * int_ptr;
27748         int foo (int_ptr $ac_kw ip) {
27749         return ip[0];
27750        }
27751 int
27752 main ()
27753 {
27754 int s[1];
27755         int * $ac_kw t = s;
27756         t[0] = 0;
27757         return foo(t)
27758   ;
27759   return 0;
27760 }
27761 _ACEOF
27762 if ac_fn_c_try_compile "$LINENO"; then :
27763   ac_cv_c_restrict=$ac_kw
27764 fi
27765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27766      test "$ac_cv_c_restrict" != no && break
27767    done
27768
27769 fi
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27771 $as_echo "$ac_cv_c_restrict" >&6; }
27772
27773  case $ac_cv_c_restrict in
27774    restrict) ;;
27775    no) $as_echo "#define restrict /**/" >>confdefs.h
27776  ;;
27777    *)  cat >>confdefs.h <<_ACEOF
27778 #define restrict $ac_cv_c_restrict
27779 _ACEOF
27780  ;;
27781  esac
27782
27783
27784 # The cast to long int works around a bug in the HP C Compiler
27785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27787 # This bug is HP SR number 8606223364.
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27789 $as_echo_n "checking size of char... " >&6; }
27790 if ${ac_cv_sizeof_char+:} false; then :
27791   $as_echo_n "(cached) " >&6
27792 else
27793   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27794
27795 else
27796   if test "$ac_cv_type_char" = yes; then
27797      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27799 as_fn_error 77 "cannot compute sizeof (char)
27800 See \`config.log' for more details" "$LINENO" 5; }
27801    else
27802      ac_cv_sizeof_char=0
27803    fi
27804 fi
27805
27806 fi
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27808 $as_echo "$ac_cv_sizeof_char" >&6; }
27809
27810
27811
27812 cat >>confdefs.h <<_ACEOF
27813 #define SIZEOF_CHAR $ac_cv_sizeof_char
27814 _ACEOF
27815
27816
27817 # The cast to long int works around a bug in the HP C Compiler
27818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27820 # This bug is HP SR number 8606223364.
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27822 $as_echo_n "checking size of short int... " >&6; }
27823 if ${ac_cv_sizeof_short_int+:} false; then :
27824   $as_echo_n "(cached) " >&6
27825 else
27826   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27827
27828 else
27829   if test "$ac_cv_type_short_int" = yes; then
27830      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27832 as_fn_error 77 "cannot compute sizeof (short int)
27833 See \`config.log' for more details" "$LINENO" 5; }
27834    else
27835      ac_cv_sizeof_short_int=0
27836    fi
27837 fi
27838
27839 fi
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27841 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27842
27843
27844
27845 cat >>confdefs.h <<_ACEOF
27846 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27847 _ACEOF
27848
27849
27850 # The cast to long int works around a bug in the HP C Compiler
27851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27853 # This bug is HP SR number 8606223364.
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27855 $as_echo_n "checking size of int... " >&6; }
27856 if ${ac_cv_sizeof_int+:} false; then :
27857   $as_echo_n "(cached) " >&6
27858 else
27859   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27860
27861 else
27862   if test "$ac_cv_type_int" = yes; then
27863      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27865 as_fn_error 77 "cannot compute sizeof (int)
27866 See \`config.log' for more details" "$LINENO" 5; }
27867    else
27868      ac_cv_sizeof_int=0
27869    fi
27870 fi
27871
27872 fi
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27874 $as_echo "$ac_cv_sizeof_int" >&6; }
27875
27876
27877
27878 cat >>confdefs.h <<_ACEOF
27879 #define SIZEOF_INT $ac_cv_sizeof_int
27880 _ACEOF
27881
27882
27883 # The cast to long int works around a bug in the HP C Compiler
27884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27886 # This bug is HP SR number 8606223364.
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27888 $as_echo_n "checking size of long int... " >&6; }
27889 if ${ac_cv_sizeof_long_int+:} false; then :
27890   $as_echo_n "(cached) " >&6
27891 else
27892   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27893
27894 else
27895   if test "$ac_cv_type_long_int" = yes; then
27896      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27898 as_fn_error 77 "cannot compute sizeof (long int)
27899 See \`config.log' for more details" "$LINENO" 5; }
27900    else
27901      ac_cv_sizeof_long_int=0
27902    fi
27903 fi
27904
27905 fi
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27907 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27908
27909
27910
27911 cat >>confdefs.h <<_ACEOF
27912 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27913 _ACEOF
27914
27915
27916 # The cast to long int works around a bug in the HP C Compiler
27917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27919 # This bug is HP SR number 8606223364.
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27921 $as_echo_n "checking size of long long int... " >&6; }
27922 if ${ac_cv_sizeof_long_long_int+:} false; then :
27923   $as_echo_n "(cached) " >&6
27924 else
27925   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27926
27927 else
27928   if test "$ac_cv_type_long_long_int" = yes; then
27929      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27931 as_fn_error 77 "cannot compute sizeof (long long int)
27932 See \`config.log' for more details" "$LINENO" 5; }
27933    else
27934      ac_cv_sizeof_long_long_int=0
27935    fi
27936 fi
27937
27938 fi
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27940 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27941
27942
27943
27944 cat >>confdefs.h <<_ACEOF
27945 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27946 _ACEOF
27947
27948
27949 # The cast to long int works around a bug in the HP C Compiler
27950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27952 # This bug is HP SR number 8606223364.
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27954 $as_echo_n "checking size of int *... " >&6; }
27955 if ${ac_cv_sizeof_int_p+:} false; then :
27956   $as_echo_n "(cached) " >&6
27957 else
27958   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27959
27960 else
27961   if test "$ac_cv_type_int_p" = yes; then
27962      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27964 as_fn_error 77 "cannot compute sizeof (int *)
27965 See \`config.log' for more details" "$LINENO" 5; }
27966    else
27967      ac_cv_sizeof_int_p=0
27968    fi
27969 fi
27970
27971 fi
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27973 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27974
27975
27976
27977 cat >>confdefs.h <<_ACEOF
27978 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27979 _ACEOF
27980
27981
27982
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27984 $as_echo_n "checking for u_int type... " >&6; }
27985 if ${ac_cv_have_u_int+:} false; then :
27986   $as_echo_n "(cached) " >&6
27987 else
27988
27989        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27990 /* end confdefs.h.  */
27991
27992               #include <sys/types.h>
27993
27994 int
27995 main ()
27996 {
27997
27998               u_int a; a = 1;
27999
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 if ac_fn_c_try_compile "$LINENO"; then :
28005
28006               ac_cv_have_u_int="yes"
28007
28008 else
28009
28010               ac_cv_have_u_int="no"
28011
28012
28013 fi
28014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28015
28016
28017 fi
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
28019 $as_echo "$ac_cv_have_u_int" >&6; }
28020 if test "x$ac_cv_have_u_int" = "xyes" ; then
28021    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
28022
28023    have_u_int=1
28024 fi
28025
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
28027 $as_echo_n "checking for intmax_t type... " >&6; }
28028 if ${ac_cv_have_intmax_t+:} false; then :
28029   $as_echo_n "(cached) " >&6
28030 else
28031
28032        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28033 /* end confdefs.h.  */
28034
28035               #include <sys/types.h>
28036
28037 int
28038 main ()
28039 {
28040
28041               intmax_t a; a = 1;
28042
28043   ;
28044   return 0;
28045 }
28046 _ACEOF
28047 if ac_fn_c_try_compile "$LINENO"; then :
28048
28049               ac_cv_have_intmax_t="yes"
28050
28051 else
28052
28053               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28054 /* end confdefs.h.  */
28055
28056                      #include <stdint.h>
28057
28058 int
28059 main ()
28060 {
28061
28062                      intmax_t a; a = 1;
28063
28064   ;
28065   return 0;
28066 }
28067 _ACEOF
28068 if ac_fn_c_try_compile "$LINENO"; then :
28069
28070                      ac_cv_have_intmax_t="yes"
28071
28072 else
28073
28074                      ac_cv_have_intmax_t="no"
28075
28076
28077 fi
28078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28079
28080
28081 fi
28082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28083
28084
28085 fi
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
28087 $as_echo "$ac_cv_have_intmax_t" >&6; }
28088 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28089    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28090
28091    have_intmax_t=1
28092 fi
28093
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
28095 $as_echo_n "checking for u_intmax_t type... " >&6; }
28096 if ${ac_cv_have_u_intmax_t+:} false; then :
28097   $as_echo_n "(cached) " >&6
28098 else
28099
28100        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28101 /* end confdefs.h.  */
28102
28103               #include <sys/types.h>
28104
28105 int
28106 main ()
28107 {
28108
28109               u_intmax_t a; a = 1;
28110
28111   ;
28112   return 0;
28113 }
28114 _ACEOF
28115 if ac_fn_c_try_compile "$LINENO"; then :
28116
28117               ac_cv_have_u_intmax_t="yes"
28118
28119 else
28120
28121               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28122 /* end confdefs.h.  */
28123
28124                      #include <stdint.h>
28125
28126 int
28127 main ()
28128 {
28129
28130                     u_intmax_t a; a = 1;
28131
28132   ;
28133   return 0;
28134 }
28135 _ACEOF
28136 if ac_fn_c_try_compile "$LINENO"; then :
28137
28138                     ac_cv_have_u_intmax_t="yes"
28139
28140 else
28141
28142                     ac_cv_have_u_intmax_t="no"
28143
28144
28145 fi
28146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28147
28148
28149 fi
28150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28151
28152
28153 fi
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28155 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28156 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28157    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28158
28159    have_u_intmax_t=1
28160 fi
28161
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28163 $as_echo_n "checking for intXX_t types... " >&6; }
28164 if ${ac_cv_have_intxx_t+:} false; then :
28165   $as_echo_n "(cached) " >&6
28166 else
28167
28168        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28169 /* end confdefs.h.  */
28170
28171               #include <sys/types.h>
28172
28173 int
28174 main ()
28175 {
28176
28177               int8_t a; int16_t b; int32_t c; a = b = c = 1;
28178
28179   ;
28180   return 0;
28181 }
28182 _ACEOF
28183 if ac_fn_c_try_compile "$LINENO"; then :
28184
28185               ac_cv_have_intxx_t="yes"
28186
28187 else
28188
28189               ac_cv_have_intxx_t="no"
28190
28191
28192 fi
28193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28194
28195
28196 fi
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28198 $as_echo "$ac_cv_have_intxx_t" >&6; }
28199 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28200    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28201
28202    have_intxx_t=1
28203 fi
28204
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28206 $as_echo_n "checking for int64_t type... " >&6; }
28207 if ${ac_cv_have_int64_t+:} false; then :
28208   $as_echo_n "(cached) " >&6
28209 else
28210
28211        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28212 /* end confdefs.h.  */
28213
28214               #include <sys/types.h>
28215
28216 int
28217 main ()
28218 {
28219
28220               int64_t a; a = 1;
28221
28222   ;
28223   return 0;
28224 }
28225 _ACEOF
28226 if ac_fn_c_try_compile "$LINENO"; then :
28227
28228               ac_cv_have_int64_t="yes"
28229
28230 else
28231
28232               ac_cv_have_int64_t="no"
28233
28234
28235 fi
28236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28237
28238
28239 fi
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28241 $as_echo "$ac_cv_have_int64_t" >&6; }
28242 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28243    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28244
28245    have_int64_t=1
28246 fi
28247
28248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28249 $as_echo_n "checking for u_intXX_t types... " >&6; }
28250 if ${ac_cv_have_u_intxx_t+:} false; then :
28251   $as_echo_n "(cached) " >&6
28252 else
28253
28254        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28255 /* end confdefs.h.  */
28256
28257               #include <sys/types.h>
28258
28259 int
28260 main ()
28261 {
28262
28263               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28264
28265   ;
28266   return 0;
28267 }
28268 _ACEOF
28269 if ac_fn_c_try_compile "$LINENO"; then :
28270
28271              ac_cv_have_u_intxx_t="yes"
28272
28273 else
28274
28275              ac_cv_have_u_intxx_t="no"
28276
28277
28278 fi
28279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28280
28281
28282 fi
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28284 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28285 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28286    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28287
28288    have_u_intxx_t=1
28289 fi
28290
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28292 $as_echo_n "checking for u_int64_t types... " >&6; }
28293 if ${ac_cv_have_u_int64_t+:} false; then :
28294   $as_echo_n "(cached) " >&6
28295 else
28296
28297        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28298 /* end confdefs.h.  */
28299
28300               #include <sys/types.h>
28301
28302 int
28303 main ()
28304 {
28305
28306               u_int64_t a; a = 1;
28307
28308   ;
28309   return 0;
28310 }
28311 _ACEOF
28312 if ac_fn_c_try_compile "$LINENO"; then :
28313
28314              ac_cv_have_u_int64_t="yes"
28315
28316 else
28317
28318              ac_cv_have_u_int64_t="no"
28319
28320
28321 fi
28322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28323
28324
28325 fi
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28327 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28328 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28329    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28330
28331    have_u_int64_t=1
28332 fi
28333
28334 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28335     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28336 then
28337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28338 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28339    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28340 /* end confdefs.h.  */
28341
28342           #include <sys/bitypes.h>
28343
28344 int
28345 main ()
28346 {
28347
28348           int8_t a; int16_t b; int32_t c;
28349           u_int8_t e; u_int16_t f; u_int32_t g;
28350           a = b = c = e = f = g = 1;
28351
28352   ;
28353   return 0;
28354 }
28355 _ACEOF
28356 if ac_fn_c_try_compile "$LINENO"; then :
28357
28358           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28359
28360           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28361
28362           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28363
28364           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28365 $as_echo "yes" >&6; }
28366
28367 else
28368
28369           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28370 $as_echo "no" >&6; }
28371
28372
28373 fi
28374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28375 fi
28376
28377 if test -z "$have_u_intxx_t" ; then
28378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28379 $as_echo_n "checking for uintXX_t types... " >&6; }
28380 if ${ac_cv_have_uintxx_t+:} false; then :
28381   $as_echo_n "(cached) " >&6
28382 else
28383
28384           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28385 /* end confdefs.h.  */
28386
28387                  #include <sys/types.h>
28388
28389 int
28390 main ()
28391 {
28392
28393                  uint8_t a; uint16_t b;
28394                  uint32_t c; a = b = c = 1;
28395
28396   ;
28397   return 0;
28398 }
28399 _ACEOF
28400 if ac_fn_c_try_compile "$LINENO"; then :
28401
28402                 ac_cv_have_uintxx_t="yes"
28403
28404 else
28405
28406                 ac_cv_have_uintxx_t="no"
28407
28408
28409 fi
28410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28411
28412
28413 fi
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28415 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28416    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28417       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28418
28419    fi
28420 fi
28421
28422 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28423     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28424 then
28425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28426 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28427    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28428 /* end confdefs.h.  */
28429
28430           #include <sys/bitypes.h>
28431
28432 int
28433 main ()
28434 {
28435
28436           int64_t a; u_int64_t b;
28437           a = b = 1;
28438
28439   ;
28440   return 0;
28441 }
28442 _ACEOF
28443 if ac_fn_c_try_compile "$LINENO"; then :
28444
28445           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28446
28447           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28448
28449           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28450 $as_echo "yes" >&6; }
28451
28452 else
28453
28454           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28455 $as_echo "no" >&6; }
28456
28457
28458 fi
28459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28460 fi
28461
28462 if (test -z "$have_uintxx_t" && \
28463     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28464 then
28465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28466 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28467    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28468 /* end confdefs.h.  */
28469
28470           #include <sys/bitypes.h>
28471
28472 int
28473 main ()
28474 {
28475
28476           uint8_t a; uint16_t b;
28477           uint32_t c; a = b = c = 1;
28478
28479   ;
28480   return 0;
28481 }
28482 _ACEOF
28483 if ac_fn_c_try_compile "$LINENO"; then :
28484
28485           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28486
28487           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28488 $as_echo "yes" >&6; }
28489
28490 else
28491
28492           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28493 $as_echo "no" >&6; }
28494
28495
28496 fi
28497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28498 fi
28499
28500 for ac_func in \
28501    fork \
28502    getcwd \
28503    gethostname \
28504    getpid \
28505    gettimeofday \
28506    setpgid \
28507    setpgrp \
28508    setsid \
28509    signal \
28510    strerror \
28511    strncmp \
28512    strncpy \
28513    vfprintf \
28514
28515 do :
28516   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28517 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28518 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28519   cat >>confdefs.h <<_ACEOF
28520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28521 _ACEOF
28522
28523 else
28524   echo 'configure: cannot find needed function.'; exit 1
28525
28526 fi
28527 done
28528
28529
28530 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28531
28532 "
28533 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28534
28535 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28536
28537 fi
28538
28539
28540 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28541
28542 "
28543 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28544
28545 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28546
28547 fi
28548
28549
28550 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28551 if test "x$ac_cv_func_closefrom" = xyes; then :
28552
28553 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28554
28555 fi
28556
28557 for ac_func in getpagesize
28558 do :
28559   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28560 if test "x$ac_cv_func_getpagesize" = xyes; then :
28561   cat >>confdefs.h <<_ACEOF
28562 #define HAVE_GETPAGESIZE 1
28563 _ACEOF
28564
28565 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28566
28567 fi
28568 done
28569
28570 for ac_func in malloc_trim
28571 do :
28572   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28573 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28574   cat >>confdefs.h <<_ACEOF
28575 #define HAVE_MALLOC_TRIM 1
28576 _ACEOF
28577
28578 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28579
28580 fi
28581 done
28582
28583
28584 for ac_func in fchdir
28585 do :
28586   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28587 if test "x$ac_cv_func_fchdir" = xyes; then :
28588   cat >>confdefs.h <<_ACEOF
28589 #define HAVE_FCHDIR 1
28590 _ACEOF
28591  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28592
28593 fi
28594 done
28595
28596 for ac_func in strtoll
28597 do :
28598   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28599 if test "x$ac_cv_func_strtoll" = xyes; then :
28600   cat >>confdefs.h <<_ACEOF
28601 #define HAVE_STRTOLL 1
28602 _ACEOF
28603  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28604
28605 fi
28606 done
28607
28608 for ac_func in posix_fadvise
28609 do :
28610   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28611 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28612   cat >>confdefs.h <<_ACEOF
28613 #define HAVE_POSIX_FADVISE 1
28614 _ACEOF
28615
28616 fi
28617 done
28618
28619 for ac_func in posix_fallocate
28620 do :
28621   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28622 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28623   cat >>confdefs.h <<_ACEOF
28624 #define HAVE_POSIX_FALLOCATE 1
28625 _ACEOF
28626
28627 fi
28628 done
28629
28630 for ac_func in fdatasync
28631 do :
28632   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28633 if test "x$ac_cv_func_fdatasync" = xyes; then :
28634   cat >>confdefs.h <<_ACEOF
28635 #define HAVE_FDATASYNC 1
28636 _ACEOF
28637
28638 fi
28639 done
28640
28641
28642 for ac_func in chflags
28643 do :
28644   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28645 if test "x$ac_cv_func_chflags" = xyes; then :
28646   cat >>confdefs.h <<_ACEOF
28647 #define HAVE_CHFLAGS 1
28648 _ACEOF
28649
28650 fi
28651 done
28652
28653
28654 for ac_func in snprintf vsnprintf gethostid fseeko
28655 do :
28656   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28659   cat >>confdefs.h <<_ACEOF
28660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28661 _ACEOF
28662
28663 fi
28664 done
28665
28666
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28668 $as_echo_n "checking for va_copy... " >&6; }
28669 if ${ba_cv_va_copy+:} false; then :
28670   $as_echo_n "(cached) " >&6
28671 else
28672
28673        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28674 /* end confdefs.h.  */
28675
28676               #include <stdarg.h>
28677               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28678               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28679
28680 int
28681 main ()
28682 {
28683
28684               call_use_va_copy(1,2,3)
28685
28686   ;
28687   return 0;
28688 }
28689 _ACEOF
28690 if ac_fn_c_try_link "$LINENO"; then :
28691
28692               ba_cv_va_copy=yes
28693
28694 else
28695
28696               ba_cv_va_copy=no
28697
28698
28699 fi
28700 rm -f core conftest.err conftest.$ac_objext \
28701     conftest$ac_exeext conftest.$ac_ext
28702
28703
28704 fi
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28706 $as_echo "$ba_cv_va_copy" >&6; }
28707 test $ba_cv_va_copy = yes &&
28708 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28709
28710
28711 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28712 do :
28713   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28714 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28715 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28716   cat >>confdefs.h <<_ACEOF
28717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28718 _ACEOF
28719
28720 fi
28721 done
28722
28723
28724 # If resolver functions are not in libc check for -lnsl or -lresolv.
28725 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28726 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28728 $as_echo "using libc's resolver" >&6; }
28729 else
28730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28731 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28732 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28733   $as_echo_n "(cached) " >&6
28734 else
28735   ac_check_lib_save_LIBS=$LIBS
28736 LIBS="-lnsl  $LIBS"
28737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28738 /* end confdefs.h.  */
28739
28740 /* Override any GCC internal prototype to avoid an error.
28741    Use char because int might match the return type of a GCC
28742    builtin and then its argument prototype would still apply.  */
28743 #ifdef __cplusplus
28744 extern "C"
28745 #endif
28746 char gethostbyname_r ();
28747 int
28748 main ()
28749 {
28750 return gethostbyname_r ();
28751   ;
28752   return 0;
28753 }
28754 _ACEOF
28755 if ac_fn_c_try_link "$LINENO"; then :
28756   ac_cv_lib_nsl_gethostbyname_r=yes
28757 else
28758   ac_cv_lib_nsl_gethostbyname_r=no
28759 fi
28760 rm -f core conftest.err conftest.$ac_objext \
28761     conftest$ac_exeext conftest.$ac_ext
28762 LIBS=$ac_check_lib_save_LIBS
28763 fi
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28765 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28766 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28767   cat >>confdefs.h <<_ACEOF
28768 #define HAVE_LIBNSL 1
28769 _ACEOF
28770
28771   LIBS="-lnsl $LIBS"
28772
28773 fi
28774
28775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28776 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28777 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28778   $as_echo_n "(cached) " >&6
28779 else
28780   ac_check_lib_save_LIBS=$LIBS
28781 LIBS="-lresolv  $LIBS"
28782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28783 /* end confdefs.h.  */
28784
28785 /* Override any GCC internal prototype to avoid an error.
28786    Use char because int might match the return type of a GCC
28787    builtin and then its argument prototype would still apply.  */
28788 #ifdef __cplusplus
28789 extern "C"
28790 #endif
28791 char gethostbyname_r ();
28792 int
28793 main ()
28794 {
28795 return gethostbyname_r ();
28796   ;
28797   return 0;
28798 }
28799 _ACEOF
28800 if ac_fn_c_try_link "$LINENO"; then :
28801   ac_cv_lib_resolv_gethostbyname_r=yes
28802 else
28803   ac_cv_lib_resolv_gethostbyname_r=no
28804 fi
28805 rm -f core conftest.err conftest.$ac_objext \
28806     conftest$ac_exeext conftest.$ac_ext
28807 LIBS=$ac_check_lib_save_LIBS
28808 fi
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28810 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28811 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28812   cat >>confdefs.h <<_ACEOF
28813 #define HAVE_LIBRESOLV 1
28814 _ACEOF
28815
28816   LIBS="-lresolv $LIBS"
28817
28818 fi
28819
28820 fi
28821
28822
28823 for ac_func in inet_pton
28824 do :
28825   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28826 if test "x$ac_cv_func_inet_pton" = xyes; then :
28827   cat >>confdefs.h <<_ACEOF
28828 #define HAVE_INET_PTON 1
28829 _ACEOF
28830  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28831
28832 fi
28833 done
28834
28835 for ac_func in inet_ntop
28836 do :
28837   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28838 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28839   cat >>confdefs.h <<_ACEOF
28840 #define HAVE_INET_NTOP 1
28841 _ACEOF
28842  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28843
28844 fi
28845 done
28846
28847 for ac_func in gethostbyname2
28848 do :
28849   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28850 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28851   cat >>confdefs.h <<_ACEOF
28852 #define HAVE_GETHOSTBYNAME2 1
28853 _ACEOF
28854  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28855
28856 fi
28857 done
28858
28859 for ac_func in getnameinfo
28860 do :
28861   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28862 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28863   cat >>confdefs.h <<_ACEOF
28864 #define HAVE_GETNAMEINFO 1
28865 _ACEOF
28866  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28867
28868 fi
28869 done
28870
28871
28872
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28874 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28875 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28876   $as_echo_n "(cached) " >&6
28877 else
28878
28879        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h.  */
28881
28882               #include <sys/socket.h>
28883
28884 int
28885 main ()
28886 {
28887
28888               struct sockaddr s; s.sa_len;
28889
28890   ;
28891   return 0;
28892 }
28893 _ACEOF
28894 if ac_fn_c_try_compile "$LINENO"; then :
28895
28896              ac_cv_struct_sockaddr_sa_len=yes
28897
28898 else
28899   ac_cv_struct_sockaddr_sa_len=no
28900
28901
28902 fi
28903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28904
28905
28906 fi
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28908 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28909
28910 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28911
28912 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28913
28914 fi
28915
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28917 $as_echo_n "checking for working getaddrinfo... " >&6; }
28918 if ${ac_cv_working_getaddrinfo+:} false; then :
28919   $as_echo_n "(cached) " >&6
28920 else
28921
28922        if test "$cross_compiling" = yes; then :
28923
28924               ac_cv_working_getaddrinfo="yes"
28925
28926
28927 else
28928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28929 /* end confdefs.h.  */
28930
28931               #include <netdb.h>
28932               #include <string.h>
28933               #include <sys/types.h>
28934               #include <sys/socket.h>
28935
28936               void main(void) {
28937                   struct addrinfo hints, *ai;
28938                   int error;
28939
28940                   memset(&hints, 0, sizeof(hints));
28941                   hints.ai_family = AF_UNSPEC;
28942                   hints.ai_socktype = SOCK_STREAM;
28943                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28944                   if (error) {
28945                       exit(1);
28946                   }
28947                   if (ai->ai_addr->sa_family != AF_INET) {
28948                       exit(1);
28949                   }
28950                   exit(0);
28951               }
28952
28953 _ACEOF
28954 if ac_fn_c_try_run "$LINENO"; then :
28955
28956               ac_cv_working_getaddrinfo="yes"
28957
28958 else
28959
28960               ac_cv_working_getaddrinfo="no"
28961
28962 fi
28963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28964   conftest.$ac_objext conftest.beam conftest.$ac_ext
28965 fi
28966
28967
28968
28969 fi
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28971 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28972 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28973 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28974
28975 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28976
28977 fi
28978
28979
28980 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28981   if test "$ac_cv_func_gai_strerror" != "yes"; then
28982     ac_cv_working_getaddrinfo="no"
28983   else
28984
28985 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28986
28987   fi
28988 fi
28989
28990 for ac_func in strftime
28991 do :
28992   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28993 if test "x$ac_cv_func_strftime" = xyes; then :
28994   cat >>confdefs.h <<_ACEOF
28995 #define HAVE_STRFTIME 1
28996 _ACEOF
28997
28998 else
28999   # strftime is in -lintl on SCO UNIX.
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
29001 $as_echo_n "checking for strftime in -lintl... " >&6; }
29002 if ${ac_cv_lib_intl_strftime+:} false; then :
29003   $as_echo_n "(cached) " >&6
29004 else
29005   ac_check_lib_save_LIBS=$LIBS
29006 LIBS="-lintl  $LIBS"
29007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29008 /* end confdefs.h.  */
29009
29010 /* Override any GCC internal prototype to avoid an error.
29011    Use char because int might match the return type of a GCC
29012    builtin and then its argument prototype would still apply.  */
29013 #ifdef __cplusplus
29014 extern "C"
29015 #endif
29016 char strftime ();
29017 int
29018 main ()
29019 {
29020 return strftime ();
29021   ;
29022   return 0;
29023 }
29024 _ACEOF
29025 if ac_fn_c_try_link "$LINENO"; then :
29026   ac_cv_lib_intl_strftime=yes
29027 else
29028   ac_cv_lib_intl_strftime=no
29029 fi
29030 rm -f core conftest.err conftest.$ac_objext \
29031     conftest$ac_exeext conftest.$ac_ext
29032 LIBS=$ac_check_lib_save_LIBS
29033 fi
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
29035 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
29036 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
29037   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
29038
29039 LIBS="-lintl $LIBS"
29040 fi
29041
29042 fi
29043 done
29044
29045 for ac_func in vprintf
29046 do :
29047   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
29048 if test "x$ac_cv_func_vprintf" = xyes; then :
29049   cat >>confdefs.h <<_ACEOF
29050 #define HAVE_VPRINTF 1
29051 _ACEOF
29052
29053 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
29054 if test "x$ac_cv_func__doprnt" = xyes; then :
29055
29056 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
29057
29058 fi
29059
29060 fi
29061 done
29062
29063
29064 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29065 # for constant arguments.  Useless!
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
29067 $as_echo_n "checking for working alloca.h... " >&6; }
29068 if ${ac_cv_working_alloca_h+:} false; then :
29069   $as_echo_n "(cached) " >&6
29070 else
29071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072 /* end confdefs.h.  */
29073 #include <alloca.h>
29074 int
29075 main ()
29076 {
29077 char *p = (char *) alloca (2 * sizeof (int));
29078                           if (p) return 0;
29079   ;
29080   return 0;
29081 }
29082 _ACEOF
29083 if ac_fn_c_try_link "$LINENO"; then :
29084   ac_cv_working_alloca_h=yes
29085 else
29086   ac_cv_working_alloca_h=no
29087 fi
29088 rm -f core conftest.err conftest.$ac_objext \
29089     conftest$ac_exeext conftest.$ac_ext
29090 fi
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
29092 $as_echo "$ac_cv_working_alloca_h" >&6; }
29093 if test $ac_cv_working_alloca_h = yes; then
29094
29095 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
29096
29097 fi
29098
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
29100 $as_echo_n "checking for alloca... " >&6; }
29101 if ${ac_cv_func_alloca_works+:} false; then :
29102   $as_echo_n "(cached) " >&6
29103 else
29104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29105 /* end confdefs.h.  */
29106 #ifdef __GNUC__
29107 # define alloca __builtin_alloca
29108 #else
29109 # ifdef _MSC_VER
29110 #  include <malloc.h>
29111 #  define alloca _alloca
29112 # else
29113 #  ifdef HAVE_ALLOCA_H
29114 #   include <alloca.h>
29115 #  else
29116 #   ifdef _AIX
29117  #pragma alloca
29118 #   else
29119 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29120 void *alloca (size_t);
29121 #    endif
29122 #   endif
29123 #  endif
29124 # endif
29125 #endif
29126
29127 int
29128 main ()
29129 {
29130 char *p = (char *) alloca (1);
29131                                     if (p) return 0;
29132   ;
29133   return 0;
29134 }
29135 _ACEOF
29136 if ac_fn_c_try_link "$LINENO"; then :
29137   ac_cv_func_alloca_works=yes
29138 else
29139   ac_cv_func_alloca_works=no
29140 fi
29141 rm -f core conftest.err conftest.$ac_objext \
29142     conftest$ac_exeext conftest.$ac_ext
29143 fi
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
29145 $as_echo "$ac_cv_func_alloca_works" >&6; }
29146
29147 if test $ac_cv_func_alloca_works = yes; then
29148
29149 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29150
29151 else
29152   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29153 # that cause trouble.  Some versions do not even contain alloca or
29154 # contain a buggy version.  If you still want to use their alloca,
29155 # use ar to extract alloca.o from them instead of compiling alloca.c.
29156
29157 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29158
29159 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29160
29161
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29163 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29164 if ${ac_cv_os_cray+:} false; then :
29165   $as_echo_n "(cached) " >&6
29166 else
29167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29168 /* end confdefs.h.  */
29169 #if defined CRAY && ! defined CRAY2
29170 webecray
29171 #else
29172 wenotbecray
29173 #endif
29174
29175 _ACEOF
29176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29177   $EGREP "webecray" >/dev/null 2>&1; then :
29178   ac_cv_os_cray=yes
29179 else
29180   ac_cv_os_cray=no
29181 fi
29182 rm -f conftest*
29183
29184 fi
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29186 $as_echo "$ac_cv_os_cray" >&6; }
29187 if test $ac_cv_os_cray = yes; then
29188   for ac_func in _getb67 GETB67 getb67; do
29189     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29191 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29192
29193 cat >>confdefs.h <<_ACEOF
29194 #define CRAY_STACKSEG_END $ac_func
29195 _ACEOF
29196
29197     break
29198 fi
29199
29200   done
29201 fi
29202
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29204 $as_echo_n "checking stack direction for C alloca... " >&6; }
29205 if ${ac_cv_c_stack_direction+:} false; then :
29206   $as_echo_n "(cached) " >&6
29207 else
29208   if test "$cross_compiling" = yes; then :
29209   ac_cv_c_stack_direction=0
29210 else
29211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29212 /* end confdefs.h.  */
29213 $ac_includes_default
29214 int
29215 find_stack_direction (int *addr, int depth)
29216 {
29217   int dir, dummy = 0;
29218   if (! addr)
29219     addr = &dummy;
29220   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29221   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29222   return dir + dummy;
29223 }
29224
29225 int
29226 main (int argc, char **argv)
29227 {
29228   return find_stack_direction (0, argc + !argv + 20) < 0;
29229 }
29230 _ACEOF
29231 if ac_fn_c_try_run "$LINENO"; then :
29232   ac_cv_c_stack_direction=1
29233 else
29234   ac_cv_c_stack_direction=-1
29235 fi
29236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29237   conftest.$ac_objext conftest.beam conftest.$ac_ext
29238 fi
29239
29240 fi
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29242 $as_echo "$ac_cv_c_stack_direction" >&6; }
29243 cat >>confdefs.h <<_ACEOF
29244 #define STACK_DIRECTION $ac_cv_c_stack_direction
29245 _ACEOF
29246
29247
29248 fi
29249
29250 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29251 # -lseq on Dynix/PTX, -lgen on Unixware.
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29253 $as_echo_n "checking for library containing getmntent... " >&6; }
29254 if ${ac_cv_search_getmntent+:} false; then :
29255   $as_echo_n "(cached) " >&6
29256 else
29257   ac_func_search_save_LIBS=$LIBS
29258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29259 /* end confdefs.h.  */
29260
29261 /* Override any GCC internal prototype to avoid an error.
29262    Use char because int might match the return type of a GCC
29263    builtin and then its argument prototype would still apply.  */
29264 #ifdef __cplusplus
29265 extern "C"
29266 #endif
29267 char getmntent ();
29268 int
29269 main ()
29270 {
29271 return getmntent ();
29272   ;
29273   return 0;
29274 }
29275 _ACEOF
29276 for ac_lib in '' sun seq gen; do
29277   if test -z "$ac_lib"; then
29278     ac_res="none required"
29279   else
29280     ac_res=-l$ac_lib
29281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29282   fi
29283   if ac_fn_c_try_link "$LINENO"; then :
29284   ac_cv_search_getmntent=$ac_res
29285 fi
29286 rm -f core conftest.err conftest.$ac_objext \
29287     conftest$ac_exeext
29288   if ${ac_cv_search_getmntent+:} false; then :
29289   break
29290 fi
29291 done
29292 if ${ac_cv_search_getmntent+:} false; then :
29293
29294 else
29295   ac_cv_search_getmntent=no
29296 fi
29297 rm conftest.$ac_ext
29298 LIBS=$ac_func_search_save_LIBS
29299 fi
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29301 $as_echo "$ac_cv_search_getmntent" >&6; }
29302 ac_res=$ac_cv_search_getmntent
29303 if test "$ac_res" != no; then :
29304   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29305   ac_cv_func_getmntent=yes
29306
29307 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29308
29309 else
29310   ac_cv_func_getmntent=no
29311 fi
29312
29313
29314 for ac_func in getmntinfo
29315 do :
29316   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29317 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29318   cat >>confdefs.h <<_ACEOF
29319 #define HAVE_GETMNTINFO 1
29320 _ACEOF
29321  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29322
29323 fi
29324 done
29325
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29327 $as_echo_n "checking whether closedir returns void... " >&6; }
29328 if ${ac_cv_func_closedir_void+:} false; then :
29329   $as_echo_n "(cached) " >&6
29330 else
29331   if test "$cross_compiling" = yes; then :
29332   ac_cv_func_closedir_void=yes
29333 else
29334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29335 /* end confdefs.h.  */
29336 $ac_includes_default
29337 #include <$ac_header_dirent>
29338 #ifndef __cplusplus
29339 int closedir ();
29340 #endif
29341
29342 int
29343 main ()
29344 {
29345 return closedir (opendir (".")) != 0;
29346   ;
29347   return 0;
29348 }
29349 _ACEOF
29350 if ac_fn_c_try_run "$LINENO"; then :
29351   ac_cv_func_closedir_void=no
29352 else
29353   ac_cv_func_closedir_void=yes
29354 fi
29355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29356   conftest.$ac_objext conftest.beam conftest.$ac_ext
29357 fi
29358
29359 fi
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29361 $as_echo "$ac_cv_func_closedir_void" >&6; }
29362 if test $ac_cv_func_closedir_void = yes; then
29363
29364 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29365
29366 fi
29367
29368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29369 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29370 if ${ac_cv_func_setpgrp_void+:} false; then :
29371   $as_echo_n "(cached) " >&6
29372 else
29373   if test "$cross_compiling" = yes; then :
29374   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29375 else
29376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29377 /* end confdefs.h.  */
29378 $ac_includes_default
29379 int
29380 main ()
29381 {
29382 /* If this system has a BSD-style setpgrp which takes arguments,
29383   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29384   exit successfully. */
29385   return setpgrp (1,1) != -1;
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 if ac_fn_c_try_run "$LINENO"; then :
29391   ac_cv_func_setpgrp_void=no
29392 else
29393   ac_cv_func_setpgrp_void=yes
29394 fi
29395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29396   conftest.$ac_objext conftest.beam conftest.$ac_ext
29397 fi
29398
29399 fi
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29401 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29402 if test $ac_cv_func_setpgrp_void = yes; then
29403
29404 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29405
29406 fi
29407             # AC_FUNC_FNMATCH    dnl use local version
29408
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29410 $as_echo_n "checking for gettext in -lintl... " >&6; }
29411 if ${ac_cv_lib_intl_gettext+:} false; then :
29412   $as_echo_n "(cached) " >&6
29413 else
29414   ac_check_lib_save_LIBS=$LIBS
29415 LIBS="-lintl  $LIBS"
29416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29417 /* end confdefs.h.  */
29418
29419 /* Override any GCC internal prototype to avoid an error.
29420    Use char because int might match the return type of a GCC
29421    builtin and then its argument prototype would still apply.  */
29422 #ifdef __cplusplus
29423 extern "C"
29424 #endif
29425 char gettext ();
29426 int
29427 main ()
29428 {
29429 return gettext ();
29430   ;
29431   return 0;
29432 }
29433 _ACEOF
29434 if ac_fn_c_try_link "$LINENO"; then :
29435   ac_cv_lib_intl_gettext=yes
29436 else
29437   ac_cv_lib_intl_gettext=no
29438 fi
29439 rm -f core conftest.err conftest.$ac_objext \
29440     conftest$ac_exeext conftest.$ac_ext
29441 LIBS=$ac_check_lib_save_LIBS
29442 fi
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29444 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29445 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29446   LIBS="$LIBS -lintl"
29447 fi
29448
29449
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29451 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29452 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29453   $as_echo_n "(cached) " >&6
29454 else
29455   ac_check_lib_save_LIBS=$LIBS
29456 LIBS="-lsun  $LIBS"
29457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29458 /* end confdefs.h.  */
29459
29460 /* Override any GCC internal prototype to avoid an error.
29461    Use char because int might match the return type of a GCC
29462    builtin and then its argument prototype would still apply.  */
29463 #ifdef __cplusplus
29464 extern "C"
29465 #endif
29466 char getpwnam ();
29467 int
29468 main ()
29469 {
29470 return getpwnam ();
29471   ;
29472   return 0;
29473 }
29474 _ACEOF
29475 if ac_fn_c_try_link "$LINENO"; then :
29476   ac_cv_lib_sun_getpwnam=yes
29477 else
29478   ac_cv_lib_sun_getpwnam=no
29479 fi
29480 rm -f core conftest.err conftest.$ac_objext \
29481     conftest$ac_exeext conftest.$ac_ext
29482 LIBS=$ac_check_lib_save_LIBS
29483 fi
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29485 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29486 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29487   cat >>confdefs.h <<_ACEOF
29488 #define HAVE_LIBSUN 1
29489 _ACEOF
29490
29491   LIBS="-lsun $LIBS"
29492
29493 fi
29494
29495
29496 for ac_header in zlib.h
29497 do :
29498   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29499 if test "x$ac_cv_header_zlib_h" = xyes; then :
29500   cat >>confdefs.h <<_ACEOF
29501 #define HAVE_ZLIB_H 1
29502 _ACEOF
29503
29504 fi
29505
29506 done
29507
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29509 $as_echo_n "checking for deflate in -lz... " >&6; }
29510 if ${ac_cv_lib_z_deflate+:} false; then :
29511   $as_echo_n "(cached) " >&6
29512 else
29513   ac_check_lib_save_LIBS=$LIBS
29514 LIBS="-lz  $LIBS"
29515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29516 /* end confdefs.h.  */
29517
29518 /* Override any GCC internal prototype to avoid an error.
29519    Use char because int might match the return type of a GCC
29520    builtin and then its argument prototype would still apply.  */
29521 #ifdef __cplusplus
29522 extern "C"
29523 #endif
29524 char deflate ();
29525 int
29526 main ()
29527 {
29528 return deflate ();
29529   ;
29530   return 0;
29531 }
29532 _ACEOF
29533 if ac_fn_c_try_link "$LINENO"; then :
29534   ac_cv_lib_z_deflate=yes
29535 else
29536   ac_cv_lib_z_deflate=no
29537 fi
29538 rm -f core conftest.err conftest.$ac_objext \
29539     conftest$ac_exeext conftest.$ac_ext
29540 LIBS=$ac_check_lib_save_LIBS
29541 fi
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29543 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29544 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29545   ZLIBS="-lz"
29546 fi
29547
29548 have_zlib=no
29549 if test x$ZLIBS = x-lz; then
29550    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29551
29552    have_zlib=yes
29553 fi
29554
29555
29556 AFS_CFLAGS=""
29557 AFS_LIBS=""
29558 support_afs=auto
29559 # Check whether --enable-afs was given.
29560 if test "${enable_afs+set}" = set; then :
29561   enableval=$enable_afs;
29562        if test x$enableval = xyes; then
29563           support_afs=yes
29564        elif test x$enableval = xno; then
29565           support_afs=no
29566        fi
29567
29568
29569 fi
29570
29571
29572 have_afs=no
29573 if test x$support_afs = xyes -o x$support_afs = xauto; then
29574
29575 # Check whether --with-afsdir was given.
29576 if test "${with_afsdir+set}" = set; then :
29577   withval=$with_afsdir; with_afsdir=$withval
29578
29579 fi
29580
29581
29582             if test x$with_afsdir = x; then
29583       for root in /usr /usr/local; do
29584          if test -d ${root}/include/afs/ ; then
29585             with_afsdir=${root}
29586             break
29587          fi
29588          if test -d ${root}/include/openafs/afs/ ; then
29589             with_afsdir=${root}
29590             break
29591          fi
29592       done
29593    fi
29594
29595    if test -d ${with_afsdir}/include/afs/ ; then
29596       AFS_CFLAGS="-I${with_afsdir}/include"
29597    else
29598       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29599          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29600       fi
29601    fi
29602
29603    saved_CFLAGS="${CFLAGS}"
29604    saved_CPPFLAGS="${CPPFLAGS}"
29605    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29606    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29607
29608    for ac_header in afs/afsint.h
29609 do :
29610   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29611 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29612   cat >>confdefs.h <<_ACEOF
29613 #define HAVE_AFS_AFSINT_H 1
29614 _ACEOF
29615
29616 fi
29617
29618 done
29619
29620    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29621 /* end confdefs.h.  */
29622
29623           #include <afs/afsint.h>
29624           #include <afs/venus.h>
29625
29626 _ACEOF
29627 if ac_fn_c_try_cpp "$LINENO"; then :
29628
29629 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29630
29631
29632 fi
29633 rm -f conftest.err conftest.i conftest.$ac_ext
29634
29635    CFLAGS="${saved_CFLAGS}"
29636    CPPFLAGS="${saved_CPPFLAGS}"
29637
29638             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29639 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29640    for dir in ${with_afsdir}/lib \
29641               ${with_afsdir}/lib/afs \
29642               ${with_afsdir}/lib/openafs \
29643               ${with_afsdir}/lib64 \
29644               ${with_afsdir}/lib64/afs \
29645               ${with_afsdir}/lib64/openafs
29646    do
29647       for arch_type in .a .so
29648       do
29649          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29650          pkg=$?
29651          if test $pkg = 0; then
29652             have_afs=yes
29653             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29654             break
29655          fi
29656       done
29657    done
29658
29659    if test $have_afs = yes; then
29660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29661 $as_echo "yes" >&6; }
29662    else
29663       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29664 $as_echo "no" >&6; }
29665    fi
29666
29667    if test x$support_afs = xyes -a $have_afs != yes; then
29668       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29669   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29670    else
29671       if test $have_afs = yes; then
29672
29673 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29674
29675
29676 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29677
29678       fi
29679    fi
29680 fi
29681
29682
29683
29684
29685 # Check whether --enable-lzo was given.
29686 if test "${enable_lzo+set}" = set; then :
29687   enableval=$enable_lzo;
29688        if test x$enableval = xno; then
29689           support_lzo=no
29690        fi
29691
29692
29693 fi
29694
29695
29696 LZO_INC=
29697 LZO_LIBS=
29698 LZO_LDFLAGS=
29699
29700 have_lzo="no"
29701 if test x$support_lzo = xyes; then
29702
29703 # Check whether --with-lzo was given.
29704 if test "${with_lzo+set}" = set; then :
29705   withval=$with_lzo;
29706           case "$with_lzo" in
29707           no)
29708              :
29709              ;;
29710           yes|*)
29711              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29712                 LZO_INC="-I${with_lzo}/include"
29713                 LZO_LDFLAGS="-L${with_lzo}/lib"
29714                 with_lzo="${with_lzo}/include"
29715              else
29716                 with_lzo="/usr/include"
29717              fi
29718
29719              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29720 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29722
29723
29724 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29725
29726                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29727                     have_lzo="yes"
29728
29729 else
29730
29731                     echo " "
29732                     echo "lzoconf.h not found. lzo turned off ..."
29733                     echo " "
29734
29735
29736 fi
29737
29738
29739              ;;
29740           esac
29741
29742 else
29743
29744          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29745 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29746
29747             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29748 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29749
29750                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29751 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29752 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29753   $as_echo_n "(cached) " >&6
29754 else
29755   ac_check_lib_save_LIBS=$LIBS
29756 LIBS="-llzo2  $LIBS"
29757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29758 /* end confdefs.h.  */
29759
29760 /* Override any GCC internal prototype to avoid an error.
29761    Use char because int might match the return type of a GCC
29762    builtin and then its argument prototype would still apply.  */
29763 #ifdef __cplusplus
29764 extern "C"
29765 #endif
29766 char lzo1x_1_compress ();
29767 int
29768 main ()
29769 {
29770 return lzo1x_1_compress ();
29771   ;
29772   return 0;
29773 }
29774 _ACEOF
29775 if ac_fn_c_try_link "$LINENO"; then :
29776   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29777 else
29778   ac_cv_lib_lzo2_lzo1x_1_compress=no
29779 fi
29780 rm -f core conftest.err conftest.$ac_objext \
29781     conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29783 fi
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29785 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29786 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29787
29788                  LZO_LIBS="-llzo2"
29789
29790 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29791
29792                  have_lzo=yes
29793
29794 fi
29795
29796
29797 fi
29798
29799
29800
29801 fi
29802
29803
29804
29805 fi
29806
29807 fi
29808
29809
29810
29811
29812
29813 support_acl=auto
29814 # Check whether --enable-acl was given.
29815 if test "${enable_acl+set}" = set; then :
29816   enableval=$enable_acl;
29817        if test x$enableval = xyes; then
29818           support_acl=yes
29819        elif test x$enableval = xno; then
29820           support_acl=no
29821        fi
29822
29823
29824 fi
29825
29826
29827 have_acl=no
29828 have_extended_acl=no
29829 if test x$support_acl = xyes -o x$support_acl = xauto; then
29830    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29831 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29832
29833 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29834
29835 fi
29836
29837
29838
29839             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29840 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29841
29842           have_acl=yes
29843
29844
29845 fi
29846
29847
29848             if test $have_acl = no; then
29849       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29850 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29851 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29852   $as_echo_n "(cached) " >&6
29853 else
29854   ac_check_lib_save_LIBS=$LIBS
29855 LIBS="-lacl  $LIBS"
29856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29857 /* end confdefs.h.  */
29858
29859 /* Override any GCC internal prototype to avoid an error.
29860    Use char because int might match the return type of a GCC
29861    builtin and then its argument prototype would still apply.  */
29862 #ifdef __cplusplus
29863 extern "C"
29864 #endif
29865 char acl_get_file ();
29866 int
29867 main ()
29868 {
29869 return acl_get_file ();
29870   ;
29871   return 0;
29872 }
29873 _ACEOF
29874 if ac_fn_c_try_link "$LINENO"; then :
29875   ac_cv_lib_acl_acl_get_file=yes
29876 else
29877   ac_cv_lib_acl_acl_get_file=no
29878 fi
29879 rm -f core conftest.err conftest.$ac_objext \
29880     conftest$ac_exeext conftest.$ac_ext
29881 LIBS=$ac_check_lib_save_LIBS
29882 fi
29883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29884 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29885 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29886
29887              have_acl=yes
29888              if test $have_afs = yes; then
29889                                                                 if test -d /usr/lib64/; then
29890                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29891                 else
29892                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29893                 fi
29894              else
29895                 FDLIBS="-lacl $FDLIBS"
29896              fi
29897
29898
29899 fi
29900
29901    fi
29902
29903                if test $have_acl = no -a \
29904            x${HAVE_OSF1_OS_TRUE} = x; then
29905       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29906 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29907 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29908   $as_echo_n "(cached) " >&6
29909 else
29910   ac_check_lib_save_LIBS=$LIBS
29911 LIBS="-lpacl  $LIBS"
29912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29913 /* end confdefs.h.  */
29914
29915 /* Override any GCC internal prototype to avoid an error.
29916    Use char because int might match the return type of a GCC
29917    builtin and then its argument prototype would still apply.  */
29918 #ifdef __cplusplus
29919 extern "C"
29920 #endif
29921 char acl_get_file ();
29922 int
29923 main ()
29924 {
29925 return acl_get_file ();
29926   ;
29927   return 0;
29928 }
29929 _ACEOF
29930 if ac_fn_c_try_link "$LINENO"; then :
29931   ac_cv_lib_pacl_acl_get_file=yes
29932 else
29933   ac_cv_lib_pacl_acl_get_file=no
29934 fi
29935 rm -f core conftest.err conftest.$ac_objext \
29936     conftest$ac_exeext conftest.$ac_ext
29937 LIBS=$ac_check_lib_save_LIBS
29938 fi
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29940 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29941 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29942
29943              have_acl=yes
29944              FDLIBS="-lpacl $FDLIBS"
29945
29946
29947 fi
29948
29949
29950       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29951 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29952       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29953       if test $? = 0; then
29954
29955 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29956
29957          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29958 $as_echo "yes" >&6; }
29959       else
29960          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29961 $as_echo "no" >&6; }
29962       fi
29963    fi
29964
29965             if test $have_acl = yes -a \
29966            x${HAVE_DARWIN_OS_TRUE} = x; then
29967       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29968 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29969       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29970       if test $? = 0; then
29971
29972 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29973
29974          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29975 $as_echo "yes" >&6; }
29976       else
29977          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29978 $as_echo "no" >&6; }
29979       fi
29980    fi
29981
29982             if test $have_acl = yes -a \
29983            x${HAVE_FREEBSD_OS_TRUE} = x; then
29984       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29985 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29986       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29987       if test $? = 0; then
29988
29989 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29990
29991          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29992 $as_echo "yes" >&6; }
29993       else
29994          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29995 $as_echo "no" >&6; }
29996       fi
29997    fi
29998
29999             if test $have_acl = no -a \
30000            x${HAVE_SUN_OS_TRUE} = x; then
30001       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
30002 $as_echo_n "checking for acltotext in -lsec... " >&6; }
30003 if ${ac_cv_lib_sec_acltotext+:} false; then :
30004   $as_echo_n "(cached) " >&6
30005 else
30006   ac_check_lib_save_LIBS=$LIBS
30007 LIBS="-lsec  $LIBS"
30008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30009 /* end confdefs.h.  */
30010
30011 /* Override any GCC internal prototype to avoid an error.
30012    Use char because int might match the return type of a GCC
30013    builtin and then its argument prototype would still apply.  */
30014 #ifdef __cplusplus
30015 extern "C"
30016 #endif
30017 char acltotext ();
30018 int
30019 main ()
30020 {
30021 return acltotext ();
30022   ;
30023   return 0;
30024 }
30025 _ACEOF
30026 if ac_fn_c_try_link "$LINENO"; then :
30027   ac_cv_lib_sec_acltotext=yes
30028 else
30029   ac_cv_lib_sec_acltotext=no
30030 fi
30031 rm -f core conftest.err conftest.$ac_objext \
30032     conftest$ac_exeext conftest.$ac_ext
30033 LIBS=$ac_check_lib_save_LIBS
30034 fi
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
30036 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
30037 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
30038
30039              have_acl=yes
30040              FDLIBS="-lsec $FDLIBS"
30041
30042              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
30043 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
30044 if ${ac_cv_lib_sec_acl_totext+:} false; then :
30045   $as_echo_n "(cached) " >&6
30046 else
30047   ac_check_lib_save_LIBS=$LIBS
30048 LIBS="-lsec  $LIBS"
30049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30050 /* end confdefs.h.  */
30051
30052 /* Override any GCC internal prototype to avoid an error.
30053    Use char because int might match the return type of a GCC
30054    builtin and then its argument prototype would still apply.  */
30055 #ifdef __cplusplus
30056 extern "C"
30057 #endif
30058 char acl_totext ();
30059 int
30060 main ()
30061 {
30062 return acl_totext ();
30063   ;
30064   return 0;
30065 }
30066 _ACEOF
30067 if ac_fn_c_try_link "$LINENO"; then :
30068   ac_cv_lib_sec_acl_totext=yes
30069 else
30070   ac_cv_lib_sec_acl_totext=no
30071 fi
30072 rm -f core conftest.err conftest.$ac_objext \
30073     conftest$ac_exeext conftest.$ac_ext
30074 LIBS=$ac_check_lib_save_LIBS
30075 fi
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
30077 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
30078 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
30079
30080                     have_extended_acl=yes
30081
30082
30083 fi
30084
30085
30086
30087 fi
30088
30089    fi
30090
30091             if test $have_acl = no -a \
30092            x${HAVE_AIX_OS_TRUE} = x; then
30093       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
30094 if test "x$ac_cv_func_acl_get" = xyes; then :
30095
30096              have_acl=yes
30097
30098              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30099 if test "x$ac_cv_func_aclx_get" = xyes; then :
30100
30101                     have_extended_acl=yes
30102
30103
30104 fi
30105
30106
30107
30108 fi
30109
30110    fi
30111
30112    if test x$support_acl = xyes -a $have_acl != yes; then
30113       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
30114   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
30115    else
30116       if test $have_acl = yes; then
30117
30118 $as_echo "#define HAVE_ACL 1" >>confdefs.h
30119
30120       fi
30121
30122       if test $have_extended_acl = yes; then
30123
30124 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
30125
30126       fi
30127    fi
30128 fi
30129
30130 support_xattr=auto
30131 # Check whether --enable-xattr was given.
30132 if test "${enable_xattr+set}" = set; then :
30133   enableval=$enable_xattr;
30134        if test x$enableval = xyes; then
30135           support_xattr=yes
30136        elif test x$enableval = xno; then
30137           support_xattr=no
30138        fi
30139
30140
30141 fi
30142
30143
30144 have_xattr=no
30145 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
30146                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
30147            x${HAVE_NETBSD_OS_TRUE} = x -o \
30148            x${HAVE_OPENBSD_OS_TRUE} = x; then
30149       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
30150 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
30151
30152 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
30153
30154 fi
30155
30156
30157       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
30158 if test "x$ac_cv_header_libutil_h" = xyes; then :
30159
30160 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30161
30162 fi
30163
30164
30165       for ac_func in extattr_get_link extattr_set_link extattr_list_link
30166 do :
30167   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30169 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30170   cat >>confdefs.h <<_ACEOF
30171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30172 _ACEOF
30173
30174              have_xattr=yes
30175
30176 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30177
30178
30179 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30180
30181
30182 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30183
30184
30185
30186 fi
30187 done
30188
30189
30190       if test $have_xattr = no; then
30191          for ac_func in extattr_get_file extattr_set_file extattr_list_file
30192 do :
30193   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30194 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30195 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30196   cat >>confdefs.h <<_ACEOF
30197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30198 _ACEOF
30199
30200                 have_xattr=yes
30201
30202 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30203
30204
30205 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30206
30207
30208 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30209
30210
30211
30212 fi
30213 done
30214
30215       fi
30216
30217       if test $have_xattr = yes; then
30218          have_extattr_string_in_libc=no
30219          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30220 do :
30221   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30223 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30224   cat >>confdefs.h <<_ACEOF
30225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30226 _ACEOF
30227
30228                 have_extattr_string_in_libc=yes
30229
30230 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30231
30232
30233 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30234
30235
30236
30237 fi
30238 done
30239
30240
30241                                  if test $have_extattr_string_in_libc = no; then
30242             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30243 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30244 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30245   $as_echo_n "(cached) " >&6
30246 else
30247   ac_check_lib_save_LIBS=$LIBS
30248 LIBS="-lutil  $LIBS"
30249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30250 /* end confdefs.h.  */
30251
30252 /* Override any GCC internal prototype to avoid an error.
30253    Use char because int might match the return type of a GCC
30254    builtin and then its argument prototype would still apply.  */
30255 #ifdef __cplusplus
30256 extern "C"
30257 #endif
30258 char extattr_namespace_to_string extattr_string_to_namespace ();
30259 int
30260 main ()
30261 {
30262 return extattr_namespace_to_string extattr_string_to_namespace ();
30263   ;
30264   return 0;
30265 }
30266 _ACEOF
30267 if ac_fn_c_try_link "$LINENO"; then :
30268   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30269 else
30270   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30271 fi
30272 rm -f core conftest.err conftest.$ac_objext \
30273     conftest$ac_exeext conftest.$ac_ext
30274 LIBS=$ac_check_lib_save_LIBS
30275 fi
30276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30277 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30278 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30279
30280
30281 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30282
30283
30284 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30285
30286                    FDLIBS="-lutil $FDLIBS"
30287
30288
30289 fi
30290
30291          fi
30292       fi
30293    fi
30294
30295                if test $have_xattr = no -a \
30296            x${HAVE_AIX_OS_TRUE} = x; then
30297       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30298 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30299
30300 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30301
30302 fi
30303
30304
30305       for ac_func in llistea lgetea lsetea
30306 do :
30307   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30309 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30310   cat >>confdefs.h <<_ACEOF
30311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30312 _ACEOF
30313
30314              have_xattr=yes
30315
30316 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30317
30318
30319 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30320
30321
30322 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30323
30324
30325
30326 fi
30327 done
30328
30329
30330       if test $have_xattr = no; then
30331          for ac_func in listea getea setea
30332 do :
30333   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30334 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30335 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30336   cat >>confdefs.h <<_ACEOF
30337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30338 _ACEOF
30339
30340                 have_xattr=yes
30341
30342 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30343
30344
30345 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30346
30347
30348 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30349
30350
30351
30352 fi
30353 done
30354
30355       fi
30356    fi
30357
30358                if test $have_xattr = no -a \
30359            x${HAVE_OSF1_OS_TRUE} = x; then
30360       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30361 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30362
30363 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30364
30365 fi
30366
30367
30368       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30369 do :
30370   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30372 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30373   cat >>confdefs.h <<_ACEOF
30374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30375 _ACEOF
30376
30377              have_xattr=yes
30378
30379 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30380
30381
30382 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30383
30384
30385 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30386
30387
30388 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30389
30390
30391 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30392
30393
30394
30395 fi
30396 done
30397
30398    fi
30399
30400                if test $have_xattr = no -a \
30401            x${HAVE_SUN_OS_TRUE} = x; then
30402       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30403 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30404
30405 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30406
30407 fi
30408
30409
30410       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30411 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30412
30413 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30414
30415 fi
30416
30417
30418       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30419 if test "x$ac_cv_header_attr_h" = xyes; then :
30420
30421 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30422
30423 fi
30424
30425
30426
30427       for ac_func in openat fstatat unlinkat fchownat futimesat
30428 do :
30429   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30432   cat >>confdefs.h <<_ACEOF
30433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30434 _ACEOF
30435
30436              have_xattr=yes
30437
30438 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30439
30440
30441 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30442
30443
30444 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30445
30446
30447 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30448
30449
30450 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30451
30452
30453
30454 fi
30455 done
30456
30457
30458       if test $have_xattr = yes; then
30459          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30460 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30461 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30462   $as_echo_n "(cached) " >&6
30463 else
30464   ac_check_lib_save_LIBS=$LIBS
30465 LIBS="-lnvpair  $LIBS"
30466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30467 /* end confdefs.h.  */
30468
30469 /* Override any GCC internal prototype to avoid an error.
30470    Use char because int might match the return type of a GCC
30471    builtin and then its argument prototype would still apply.  */
30472 #ifdef __cplusplus
30473 extern "C"
30474 #endif
30475 char nvlist_next_nvpair ();
30476 int
30477 main ()
30478 {
30479 return nvlist_next_nvpair ();
30480   ;
30481   return 0;
30482 }
30483 _ACEOF
30484 if ac_fn_c_try_link "$LINENO"; then :
30485   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30486 else
30487   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30488 fi
30489 rm -f core conftest.err conftest.$ac_objext \
30490     conftest$ac_exeext conftest.$ac_ext
30491 LIBS=$ac_check_lib_save_LIBS
30492 fi
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30494 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30495 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30496
30497
30498 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30499
30500                 FDLIBS="-lnvpair $FDLIBS"
30501
30502
30503 fi
30504
30505       fi
30506    fi
30507
30508             if test $have_xattr = no; then
30509       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30510 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30511
30512 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30513
30514 fi
30515
30516
30517       for ac_func in llistxattr lgetxattr lsetxattr
30518 do :
30519   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30522   cat >>confdefs.h <<_ACEOF
30523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30524 _ACEOF
30525
30526              have_xattr=yes
30527
30528 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30529
30530
30531 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30532
30533
30534 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30535
30536
30537
30538 fi
30539 done
30540
30541
30542       if test $have_xattr = no; then
30543          for ac_func in listxattr getxattr setxattr
30544 do :
30545   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30547 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30548   cat >>confdefs.h <<_ACEOF
30549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30550 _ACEOF
30551
30552                 have_xattr=yes
30553
30554 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30555
30556
30557 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30558
30559
30560 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30561
30562
30563
30564 fi
30565 done
30566
30567       fi
30568    fi
30569
30570    if test x$support_xattr = xyes -a $have_xattr != yes; then
30571       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30572   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30573    else
30574       if test $have_xattr = yes; then
30575
30576 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30577
30578       fi
30579    fi
30580 fi
30581
30582 PTHREAD_LIB=""
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30584 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30585 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30586   $as_echo_n "(cached) " >&6
30587 else
30588   ac_check_lib_save_LIBS=$LIBS
30589 LIBS="-lpthread  $LIBS"
30590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30591 /* end confdefs.h.  */
30592
30593 /* Override any GCC internal prototype to avoid an error.
30594    Use char because int might match the return type of a GCC
30595    builtin and then its argument prototype would still apply.  */
30596 #ifdef __cplusplus
30597 extern "C"
30598 #endif
30599 char pthread_create ();
30600 int
30601 main ()
30602 {
30603 return pthread_create ();
30604   ;
30605   return 0;
30606 }
30607 _ACEOF
30608 if ac_fn_c_try_link "$LINENO"; then :
30609   ac_cv_lib_pthread_pthread_create=yes
30610 else
30611   ac_cv_lib_pthread_pthread_create=no
30612 fi
30613 rm -f core conftest.err conftest.$ac_objext \
30614     conftest$ac_exeext conftest.$ac_ext
30615 LIBS=$ac_check_lib_save_LIBS
30616 fi
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30618 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30619 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30620   PTHREAD_LIB="-lpthread"
30621 else
30622
30623        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30624 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30625 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30626   $as_echo_n "(cached) " >&6
30627 else
30628   ac_check_lib_save_LIBS=$LIBS
30629 LIBS="-lpthreads  $LIBS"
30630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30631 /* end confdefs.h.  */
30632
30633 /* Override any GCC internal prototype to avoid an error.
30634    Use char because int might match the return type of a GCC
30635    builtin and then its argument prototype would still apply.  */
30636 #ifdef __cplusplus
30637 extern "C"
30638 #endif
30639 char pthread_create ();
30640 int
30641 main ()
30642 {
30643 return pthread_create ();
30644   ;
30645   return 0;
30646 }
30647 _ACEOF
30648 if ac_fn_c_try_link "$LINENO"; then :
30649   ac_cv_lib_pthreads_pthread_create=yes
30650 else
30651   ac_cv_lib_pthreads_pthread_create=no
30652 fi
30653 rm -f core conftest.err conftest.$ac_objext \
30654     conftest$ac_exeext conftest.$ac_ext
30655 LIBS=$ac_check_lib_save_LIBS
30656 fi
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30658 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30659 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30660   PTHREAD_LIB="-lpthreads"
30661 else
30662
30663               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30664 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30665 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30666   $as_echo_n "(cached) " >&6
30667 else
30668   ac_check_lib_save_LIBS=$LIBS
30669 LIBS="-lc_r  $LIBS"
30670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30671 /* end confdefs.h.  */
30672
30673 /* Override any GCC internal prototype to avoid an error.
30674    Use char because int might match the return type of a GCC
30675    builtin and then its argument prototype would still apply.  */
30676 #ifdef __cplusplus
30677 extern "C"
30678 #endif
30679 char pthread_create ();
30680 int
30681 main ()
30682 {
30683 return pthread_create ();
30684   ;
30685   return 0;
30686 }
30687 _ACEOF
30688 if ac_fn_c_try_link "$LINENO"; then :
30689   ac_cv_lib_c_r_pthread_create=yes
30690 else
30691   ac_cv_lib_c_r_pthread_create=no
30692 fi
30693 rm -f core conftest.err conftest.$ac_objext \
30694     conftest$ac_exeext conftest.$ac_ext
30695 LIBS=$ac_check_lib_save_LIBS
30696 fi
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30698 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30699 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30700   PTHREAD_LIB="-lc_r"
30701 else
30702
30703                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30704 if test "x$ac_cv_func_pthread_create" = xyes; then :
30705
30706 fi
30707
30708
30709
30710 fi
30711
30712
30713
30714 fi
30715
30716
30717
30718 fi
30719
30720
30721 for ac_header in sys/prctl.h sys/capability.h
30722 do :
30723   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30724 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30726   cat >>confdefs.h <<_ACEOF
30727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30728 _ACEOF
30729
30730 fi
30731
30732 done
30733
30734 for ac_func in prctl setreuid
30735 do :
30736   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30737 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30738 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30739   cat >>confdefs.h <<_ACEOF
30740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30741 _ACEOF
30742
30743 fi
30744 done
30745
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30747 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30748 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30749   $as_echo_n "(cached) " >&6
30750 else
30751   ac_check_lib_save_LIBS=$LIBS
30752 LIBS="-lcap  $LIBS"
30753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30754 /* end confdefs.h.  */
30755
30756 /* Override any GCC internal prototype to avoid an error.
30757    Use char because int might match the return type of a GCC
30758    builtin and then its argument prototype would still apply.  */
30759 #ifdef __cplusplus
30760 extern "C"
30761 #endif
30762 char cap_set_proc ();
30763 int
30764 main ()
30765 {
30766 return cap_set_proc ();
30767   ;
30768   return 0;
30769 }
30770 _ACEOF
30771 if ac_fn_c_try_link "$LINENO"; then :
30772   ac_cv_lib_cap_cap_set_proc=yes
30773 else
30774   ac_cv_lib_cap_cap_set_proc=no
30775 fi
30776 rm -f core conftest.err conftest.$ac_objext \
30777     conftest$ac_exeext conftest.$ac_ext
30778 LIBS=$ac_check_lib_save_LIBS
30779 fi
30780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30781 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30782 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30783   CAP_LIBS="-lcap"
30784 else
30785   CAP_LIBS=
30786 fi
30787
30788 if test x$CAP_LIBS = x-lcap; then
30789
30790 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30791
30792 fi
30793
30794
30795
30796 $as_echo "#define FDLIBS 1" >>confdefs.h
30797
30798
30799 CFLAGS=${CFLAGS--O}
30800
30801 if test x$have_gcc = xyes ; then
30802    CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30803    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30804 fi
30805 LDFLAGS=${LDFLAGS--O}
30806 CPPFLAGS="$CPPFLAGS"
30807 CFLAGS="$CFLAGS"
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823 OBJLIST=
30824
30825
30826 lld="lld"
30827 llu="llu"
30828
30829 WCFLAGS=
30830 WLDFLAGS=
30831
30832 PSCMD="ps -e"
30833 WIN32=
30834 MACOSX=
30835 COMPRESS_MANPAGES=yes
30836
30837 case "$DISTNAME" in
30838 aix)
30839    DISTVER=`uname -r`
30840    PSCMD="ps -e -o pid,comm"
30841    PFILES="${PFILES} platforms/aix/Makefile"
30842    TAPEDRIVE="/dev/rmt0.1"
30843   ;;
30844 alpha)
30845    DISTVER=`uname -r`
30846    PTHREAD_LIB="-lpthread -lexc"
30847    if test "${CC}" = "gcc" ; then
30848       lld="lld"
30849       llu="llu"
30850    else
30851       lld="ld"
30852       llu="lu"
30853    fi
30854    TAPEDRIVE="/dev/nrmt0"
30855   ;;
30856 bsdi)
30857    DISTVER=`uname -a |awk '{print $3}'`
30858    TAPEDRIVE="/dev/nrmt0"
30859    PTHREAD_LIB="-pthread"
30860    CFLAGS="${CFLAGS} -pthread"
30861    PSCMD="ps -ax -o pid,command"
30862    lld="qd"
30863    llu="qu"
30864    PFILES="${PFILES} \
30865        platforms/bsdi/Makefile \
30866        platforms/bsdi/bacula-fd \
30867        platforms/bsdi/bacula-sd \
30868        platforms/bsdi/bacula-dir"
30869    largefile_support="yes"
30870   ;;
30871 cygwin)
30872    DISTVER=`uname -a |awk '{print $3}'`
30873    TAPEDRIVE="/dev/nrst0"
30874    WIN32=win32
30875    WCFLAGS="-mwindows"
30876    WLDFLAGS="-mwindows"
30877   ;;
30878 darwin)
30879    DISTVER=`uname -r`
30880    TAPEDRIVE="/dev/nst0"
30881    PSCMD="ps -e -o pid,command"
30882    MACOSX=macosx
30883    PFILES="${PFILES} \
30884       platforms/darwin/Makefile"
30885   ;;
30886 osx)
30887    DISTVER=`uname -r`
30888    TAPEDRIVE="/dev/nst0"
30889    PSCMD="ps -e -o pid,command"
30890    MACOSX=macosx
30891    PFILES="${PFILES} \
30892       platforms/osx/Makefile"
30893   ;;
30894 debian)
30895    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30896       DISTNAME="ubuntu"
30897    fi
30898    DISTVER=`cat /etc/debian_version`
30899    if test -f /etc/lsb-release ; then
30900       . /etc/lsb-release
30901       if test "x$DISTRIB_ID" != "x" ; then
30902          DISTNAME=$DISTRIB_ID
30903       fi
30904       if test "x$DISTRIB_RELEASE" != "x" ; then
30905          DISTVER=$DISTRIB_RELEASE
30906       fi
30907    fi
30908    if test "$DISTNAME" = "Ubuntu" ; then
30909       DISTNAME="ubuntu"
30910    fi
30911    TAPEDRIVE="/dev/nst0"
30912    PSCMD="ps -e -o pid,command"
30913    if test "$DISTNAME" = "ubuntu" ; then
30914       PFILES="${PFILES} \
30915          platforms/ubuntu/Makefile \
30916          platforms/ubuntu/bacula-fd \
30917          platforms/ubuntu/bacula-sd \
30918          platforms/ubuntu/bacula-dir"
30919    else
30920       PFILES="${PFILES} \
30921          platforms/debian/Makefile \
30922          platforms/debian/bacula-fd \
30923          platforms/debian/bacula-sd \
30924          platforms/debian/bacula-dir"
30925    fi
30926   ;;
30927 freebsd)
30928    DISTVER=`uname -a |awk '{print $3}'`
30929    VER=`echo $DISTVER | cut -c 1`
30930    if test x$VER = x4 ; then
30931       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30932       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30933    fi
30934    lld="qd"
30935    llu="qu"
30936    TAPEDRIVE="/dev/nrsa0"
30937    PSCMD="ps -ax -o pid,command"
30938    PFILES="${PFILES} \
30939        platforms/freebsd/Makefile \
30940        platforms/freebsd/bacula-fd \
30941        platforms/freebsd/bacula-sd \
30942        platforms/freebsd/bacula-dir"
30943    largefile_support="yes"
30944   ;;
30945 hurd)
30946    DISTVER=`uname -r`
30947    TAPEDRIVE="/dev/nst0"
30948    PSCMD="ps -e -o pid,command"
30949    PFILES="${PFILES} \
30950        platforms/hurd/Makefile \
30951        platforms/hurd/bacula-fd \
30952        platforms/hurd/bacula-sd \
30953        platforms/hurd/bacula-dir"
30954   ;;
30955 hpux)
30956    PSCMD="UNIX95=1; ps -e -o pid,comm"
30957    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30958    DISTVER=`uname -r`
30959    TAPEDRIVE="/dev/rmt/0hnb"
30960    PTHREAD_LIB="-lpthread"
30961    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30962
30963   ;;
30964 irix)
30965    DISTVER=`uname -r`
30966    TAPEDRIVE="/dev/rmt/0cbn"
30967    PSCMD="ps -e -o pid,comm"
30968    PFILES="${PFILES} \
30969        platforms/irix/Makefile \
30970        platforms/irix/bacula-fd \
30971        platforms/irix/bacula-sd \
30972        platforms/irix/bacula-dir"
30973   ;;
30974 netbsd)
30975    DISTVER=`uname -a |awk '{print $3}'`
30976    lld="qd"
30977    llu="qu"
30978    TAPEDRIVE="/dev/nrst0"
30979    PSCMD="ps -ax -o pid,command"
30980    PTHREAD_LIB="-pthread"
30981    CFLAGS="${CFLAGS} -pthread"
30982   ;;
30983 openbsd)
30984    DISTVER=`uname -a |awk '{print $3}'`
30985    lld="qd"
30986    llu="qu"
30987    TAPEDRIVE="/dev/nrst0"
30988    PSCMD="ps -ax -o pid,command"
30989    PTHREAD_LIB="-pthread"
30990    CFLAGS="${CFLAGS} -pthread"
30991    PFILES="${PFILES} \
30992        platforms/openbsd/Makefile \
30993        platforms/openbsd/bacula-fd \
30994        platforms/openbsd/bacula-sd \
30995        platforms/openbsd/bacula-dir"
30996   ;;
30997 redhat)
30998    if test -f /etc/whitebox-release ; then
30999       f=/etc/whitebox-release
31000    else
31001       f=/etc/redhat-release
31002    fi
31003    if test `cat $f | grep release |\
31004          cut -f 3 -d ' '`x = "Enterprise"x ; then
31005       DISTVER="Enterprise "`cat $f | grep release |\
31006           cut -f 6 -d ' '`
31007    else
31008        DISTVER=`cat /etc/redhat-release | grep release |\
31009            cut -f 5 -d ' '`
31010    fi
31011    TAPEDRIVE="/dev/nst0"
31012    PSCMD="ps -e -o pid,command"
31013    PFILES="${PFILES} \
31014        platforms/redhat/Makefile \
31015        platforms/redhat/bacula-fd \
31016        platforms/redhat/bacula-sd \
31017        platforms/redhat/bacula-dir
31018        "
31019   ;;
31020 mandrake)
31021    DISTVER=`cat /etc/mandrake-release | grep release |\
31022       cut -f 5 -d ' '`
31023    TAPEDRIVE="/dev/nst0"
31024    PSCMD="ps -e -o pid,command"
31025    PFILES="${PFILES} \
31026        platforms/mandrake/Makefile \
31027        platforms/mandrake/bacula-fd \
31028        platforms/mandrake/bacula-sd \
31029        platforms/mandrake/bacula-dir \
31030        "
31031   ;;
31032 gentoo)
31033    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
31034    TAPEDRIVE="/dev/nst0"
31035    PSCMD="ps -e -o pid,command"
31036    PFILES="${PFILES} \
31037        platforms/gentoo/Makefile \
31038     platforms/gentoo/bacula-init \
31039        platforms/gentoo/bacula-fd \
31040        platforms/gentoo/bacula-sd \
31041        platforms/gentoo/bacula-dir"
31042   ;;
31043 slackware)
31044    DISTVER=`cat /etc/slackware-version`
31045    TAPEDRIVE="/dev/nst0"
31046    PSCMD="ps -e -o pid,command"
31047    PFILES="${PFILES} \
31048        platforms/slackware/Makefile \
31049        platforms/slackware/rc.bacula-fd \
31050        platforms/slackware/rc.bacula-sd \
31051        platforms/slackware/rc.bacula-dir\
31052        platforms/slackware/functions.bacula"
31053   ;;
31054 solaris)
31055    DISTVER=`uname -r`
31056    TAPEDRIVE="/dev/rmt/0cbn"
31057    PSCMD="ps -e -o pid,comm"
31058    PFILES="${PFILES} \
31059        platforms/solaris/Makefile \
31060        platforms/solaris/bacula-fd \
31061        platforms/solaris/bacula-sd \
31062        platforms/solaris/bacula-dir"
31063    COMPRESS_MANPAGES=
31064    case ${DISTVER} in
31065    5.5|5.6)
31066       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
31067
31068       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31069
31070       ;;
31071    5.7|5.8)
31072       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31073
31074       ;;
31075    5.10)
31076
31077 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
31078
31079       ;;
31080    *)
31081       ;;
31082    esac
31083    LIBS="$LIBS -lresolv -lrt"
31084   ;;
31085 suse)
31086    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
31087        cut -f 3 -d ' '`
31088    TAPEDRIVE="/dev/nst0"
31089    PSCMD="ps -e -o pid,command"
31090    PFILES="${PFILES} \
31091        platforms/suse/Makefile \
31092        platforms/suse/bacula-fd \
31093        platforms/suse/bacula-sd \
31094        platforms/suse/bacula-dir \
31095        platforms/suse/bacula"
31096   ;;
31097 suse5)
31098    DISTNAME=suse
31099    DISTVER=5.x
31100    TAPEDRIVE="/dev/nst0"
31101    PSCMD="ps -e -o pid,command"
31102    PFILES="${PFILES} \
31103        platforms/suse/Makefile \
31104        platforms/suse/bacula-fd \
31105        platforms/suse/bacula-sd \
31106        platforms/suse/bacula-dir"
31107   ;;
31108 unknown)
31109    DISTVER=unknown
31110    TAPEDRIVE="/dev/nst0"
31111   ;;
31112 *)
31113   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
31114   ;;
31115 esac
31116
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
31118 $as_echo_n "checking for systemd support... " >&6; }
31119
31120 # Check whether --with-systemd was given.
31121 if test "${with_systemd+set}" = set; then :
31122   withval=$with_systemd;
31123        if test "$withval" != "no"; then
31124            if test "$withval" = "yes"; then
31125                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
31126            else
31127                SYSTEMD_UNITDIR="${withval}"
31128            fi
31129
31130            PFILES="${PFILES} \
31131                    platforms/systemd/Makefile \
31132                    platforms/systemd/bacula.conf \
31133                    platforms/systemd/bacula-dir.service \
31134                    platforms/systemd/bacula-fd.service \
31135                    platforms/systemd/bacula-sd.service"
31136
31137 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
31138
31139            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31140 $as_echo "yes" >&6; }
31141            support_systemd="yes"
31142        else
31143            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31144 $as_echo "no" >&6; }
31145            support_systemd="no"
31146        fi
31147
31148 else
31149
31150        support_systemd="no"
31151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31152 $as_echo "no" >&6; }
31153
31154
31155 fi
31156
31157
31158
31159
31160
31161 LIBS="$PTHREAD_LIB $LIBS"
31162
31163 cat >>confdefs.h <<_ACEOF
31164 #define lld "$lld"
31165 _ACEOF
31166
31167 cat >>confdefs.h <<_ACEOF
31168 #define llu "$llu"
31169 _ACEOF
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179 MCOMMON=./autoconf/Make.common
31180
31181
31182 if test "x${subsysdir}" = "x${sbindir}" ; then
31183    echo " "
31184    echo " "
31185    echo "You have set both --sbindir and --with-subsys-dir"
31186    echo "  equal to: ${subsysdir} "
31187    echo "This is not permitted. Please reconfigure."
31188    echo " "
31189    echo "Aborting configuration ..."
31190    echo " "
31191    echo " "
31192    exit 1
31193 fi
31194
31195
31196 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/baculabackupreport 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 scripts/bacula-tray-monitor.desktop 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/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 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 updatedb/update_sqlite3_tables updatedb/update_postgresql_tables 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"
31197
31198 ac_config_commands="$ac_config_commands default"
31199
31200 cat >confcache <<\_ACEOF
31201 # This file is a shell script that caches the results of configure
31202 # tests run on this system so they can be shared between configure
31203 # scripts and configure runs, see configure's option --config-cache.
31204 # It is not useful on other systems.  If it contains results you don't
31205 # want to keep, you may remove or edit it.
31206 #
31207 # config.status only pays attention to the cache file if you give it
31208 # the --recheck option to rerun configure.
31209 #
31210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31212 # following values.
31213
31214 _ACEOF
31215
31216 # The following way of writing the cache mishandles newlines in values,
31217 # but we know of no workaround that is simple, portable, and efficient.
31218 # So, we kill variables containing newlines.
31219 # Ultrix sh set writes to stderr and can't be redirected directly,
31220 # and sets the high bit in the cache file unless we assign to the vars.
31221 (
31222   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31223     eval ac_val=\$$ac_var
31224     case $ac_val in #(
31225     *${as_nl}*)
31226       case $ac_var in #(
31227       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31229       esac
31230       case $ac_var in #(
31231       _ | IFS | as_nl) ;; #(
31232       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31233       *) { eval $ac_var=; unset $ac_var;} ;;
31234       esac ;;
31235     esac
31236   done
31237
31238   (set) 2>&1 |
31239     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31240     *${as_nl}ac_space=\ *)
31241       # `set' does not quote correctly, so add quotes: double-quote
31242       # substitution turns \\\\ into \\, and sed turns \\ into \.
31243       sed -n \
31244         "s/'/'\\\\''/g;
31245           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31246       ;; #(
31247     *)
31248       # `set' quotes correctly as required by POSIX, so do not add quotes.
31249       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31250       ;;
31251     esac |
31252     sort
31253 ) |
31254   sed '
31255      /^ac_cv_env_/b end
31256      t clear
31257      :clear
31258      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31259      t end
31260      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31261      :end' >>confcache
31262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31263   if test -w "$cache_file"; then
31264     if test "x$cache_file" != "x/dev/null"; then
31265       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31266 $as_echo "$as_me: updating cache $cache_file" >&6;}
31267       if test ! -f "$cache_file" || test -h "$cache_file"; then
31268         cat confcache >"$cache_file"
31269       else
31270         case $cache_file in #(
31271         */* | ?:*)
31272           mv -f confcache "$cache_file"$$ &&
31273           mv -f "$cache_file"$$ "$cache_file" ;; #(
31274         *)
31275           mv -f confcache "$cache_file" ;;
31276         esac
31277       fi
31278     fi
31279   else
31280     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31282   fi
31283 fi
31284 rm -f confcache
31285
31286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31287 # Let make expand exec_prefix.
31288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31289
31290 DEFS=-DHAVE_CONFIG_H
31291
31292 ac_libobjs=
31293 ac_ltlibobjs=
31294 U=
31295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31296   # 1. Remove the extension, and $U if already installed.
31297   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31298   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31299   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31300   #    will be set to the directory where LIBOBJS objects are built.
31301   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31302   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31303 done
31304 LIBOBJS=$ac_libobjs
31305
31306 LTLIBOBJS=$ac_ltlibobjs
31307
31308
31309
31310
31311 : "${CONFIG_STATUS=./config.status}"
31312 ac_write_fail=0
31313 ac_clean_files_save=$ac_clean_files
31314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31316 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31317 as_write_fail=0
31318 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31319 #! $SHELL
31320 # Generated by $as_me.
31321 # Run this file to recreate the current configuration.
31322 # Compiler output produced by configure, useful for debugging
31323 # configure, is in config.log if it exists.
31324
31325 debug=false
31326 ac_cs_recheck=false
31327 ac_cs_silent=false
31328
31329 SHELL=\${CONFIG_SHELL-$SHELL}
31330 export SHELL
31331 _ASEOF
31332 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31333 ## -------------------- ##
31334 ## M4sh Initialization. ##
31335 ## -------------------- ##
31336
31337 # Be more Bourne compatible
31338 DUALCASE=1; export DUALCASE # for MKS sh
31339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31340   emulate sh
31341   NULLCMD=:
31342   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31343   # is contrary to our usage.  Disable this feature.
31344   alias -g '${1+"$@"}'='"$@"'
31345   setopt NO_GLOB_SUBST
31346 else
31347   case `(set -o) 2>/dev/null` in #(
31348   *posix*) :
31349     set -o posix ;; #(
31350   *) :
31351      ;;
31352 esac
31353 fi
31354
31355
31356 as_nl='
31357 '
31358 export as_nl
31359 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31360 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31363 # Prefer a ksh shell builtin over an external printf program on Solaris,
31364 # but without wasting forks for bash or zsh.
31365 if test -z "$BASH_VERSION$ZSH_VERSION" \
31366     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31367   as_echo='print -r --'
31368   as_echo_n='print -rn --'
31369 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31370   as_echo='printf %s\n'
31371   as_echo_n='printf %s'
31372 else
31373   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31374     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31375     as_echo_n='/usr/ucb/echo -n'
31376   else
31377     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31378     as_echo_n_body='eval
31379       arg=$1;
31380       case $arg in #(
31381       *"$as_nl"*)
31382         expr "X$arg" : "X\\(.*\\)$as_nl";
31383         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31384       esac;
31385       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31386     '
31387     export as_echo_n_body
31388     as_echo_n='sh -c $as_echo_n_body as_echo'
31389   fi
31390   export as_echo_body
31391   as_echo='sh -c $as_echo_body as_echo'
31392 fi
31393
31394 # The user is always right.
31395 if test "${PATH_SEPARATOR+set}" != set; then
31396   PATH_SEPARATOR=:
31397   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31398     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31399       PATH_SEPARATOR=';'
31400   }
31401 fi
31402
31403
31404 # IFS
31405 # We need space, tab and new line, in precisely that order.  Quoting is
31406 # there to prevent editors from complaining about space-tab.
31407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31408 # splitting by setting IFS to empty value.)
31409 IFS=" ""        $as_nl"
31410
31411 # Find who we are.  Look in the path if we contain no directory separator.
31412 as_myself=
31413 case $0 in #((
31414   *[\\/]* ) as_myself=$0 ;;
31415   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31416 for as_dir in $PATH
31417 do
31418   IFS=$as_save_IFS
31419   test -z "$as_dir" && as_dir=.
31420     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31421   done
31422 IFS=$as_save_IFS
31423
31424      ;;
31425 esac
31426 # We did not find ourselves, most probably we were run as `sh COMMAND'
31427 # in which case we are not to be found in the path.
31428 if test "x$as_myself" = x; then
31429   as_myself=$0
31430 fi
31431 if test ! -f "$as_myself"; then
31432   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31433   exit 1
31434 fi
31435
31436 # Unset variables that we do not need and which cause bugs (e.g. in
31437 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31438 # suppresses any "Segmentation fault" message there.  '((' could
31439 # trigger a bug in pdksh 5.2.14.
31440 for as_var in BASH_ENV ENV MAIL MAILPATH
31441 do eval test x\${$as_var+set} = xset \
31442   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31443 done
31444 PS1='$ '
31445 PS2='> '
31446 PS4='+ '
31447
31448 # NLS nuisances.
31449 LC_ALL=C
31450 export LC_ALL
31451 LANGUAGE=C
31452 export LANGUAGE
31453
31454 # CDPATH.
31455 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31456
31457
31458 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31459 # ----------------------------------------
31460 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31461 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31462 # script with STATUS, using 1 if that was 0.
31463 as_fn_error ()
31464 {
31465   as_status=$1; test $as_status -eq 0 && as_status=1
31466   if test "$4"; then
31467     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31468     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31469   fi
31470   $as_echo "$as_me: error: $2" >&2
31471   as_fn_exit $as_status
31472 } # as_fn_error
31473
31474
31475 # as_fn_set_status STATUS
31476 # -----------------------
31477 # Set $? to STATUS, without forking.
31478 as_fn_set_status ()
31479 {
31480   return $1
31481 } # as_fn_set_status
31482
31483 # as_fn_exit STATUS
31484 # -----------------
31485 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31486 as_fn_exit ()
31487 {
31488   set +e
31489   as_fn_set_status $1
31490   exit $1
31491 } # as_fn_exit
31492
31493 # as_fn_unset VAR
31494 # ---------------
31495 # Portably unset VAR.
31496 as_fn_unset ()
31497 {
31498   { eval $1=; unset $1;}
31499 }
31500 as_unset=as_fn_unset
31501 # as_fn_append VAR VALUE
31502 # ----------------------
31503 # Append the text in VALUE to the end of the definition contained in VAR. Take
31504 # advantage of any shell optimizations that allow amortized linear growth over
31505 # repeated appends, instead of the typical quadratic growth present in naive
31506 # implementations.
31507 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31508   eval 'as_fn_append ()
31509   {
31510     eval $1+=\$2
31511   }'
31512 else
31513   as_fn_append ()
31514   {
31515     eval $1=\$$1\$2
31516   }
31517 fi # as_fn_append
31518
31519 # as_fn_arith ARG...
31520 # ------------------
31521 # Perform arithmetic evaluation on the ARGs, and store the result in the
31522 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31523 # must be portable across $(()) and expr.
31524 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31525   eval 'as_fn_arith ()
31526   {
31527     as_val=$(( $* ))
31528   }'
31529 else
31530   as_fn_arith ()
31531   {
31532     as_val=`expr "$@" || test $? -eq 1`
31533   }
31534 fi # as_fn_arith
31535
31536
31537 if expr a : '\(a\)' >/dev/null 2>&1 &&
31538    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31539   as_expr=expr
31540 else
31541   as_expr=false
31542 fi
31543
31544 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31545   as_basename=basename
31546 else
31547   as_basename=false
31548 fi
31549
31550 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31551   as_dirname=dirname
31552 else
31553   as_dirname=false
31554 fi
31555
31556 as_me=`$as_basename -- "$0" ||
31557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31558          X"$0" : 'X\(//\)$' \| \
31559          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31560 $as_echo X/"$0" |
31561     sed '/^.*\/\([^/][^/]*\)\/*$/{
31562             s//\1/
31563             q
31564           }
31565           /^X\/\(\/\/\)$/{
31566             s//\1/
31567             q
31568           }
31569           /^X\/\(\/\).*/{
31570             s//\1/
31571             q
31572           }
31573           s/.*/./; q'`
31574
31575 # Avoid depending upon Character Ranges.
31576 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31577 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31578 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31579 as_cr_digits='0123456789'
31580 as_cr_alnum=$as_cr_Letters$as_cr_digits
31581
31582 ECHO_C= ECHO_N= ECHO_T=
31583 case `echo -n x` in #(((((
31584 -n*)
31585   case `echo 'xy\c'` in
31586   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31587   xy)  ECHO_C='\c';;
31588   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31589        ECHO_T=' ';;
31590   esac;;
31591 *)
31592   ECHO_N='-n';;
31593 esac
31594
31595 rm -f conf$$ conf$$.exe conf$$.file
31596 if test -d conf$$.dir; then
31597   rm -f conf$$.dir/conf$$.file
31598 else
31599   rm -f conf$$.dir
31600   mkdir conf$$.dir 2>/dev/null
31601 fi
31602 if (echo >conf$$.file) 2>/dev/null; then
31603   if ln -s conf$$.file conf$$ 2>/dev/null; then
31604     as_ln_s='ln -s'
31605     # ... but there are two gotchas:
31606     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31607     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31608     # In both cases, we have to default to `cp -pR'.
31609     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31610       as_ln_s='cp -pR'
31611   elif ln conf$$.file conf$$ 2>/dev/null; then
31612     as_ln_s=ln
31613   else
31614     as_ln_s='cp -pR'
31615   fi
31616 else
31617   as_ln_s='cp -pR'
31618 fi
31619 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31620 rmdir conf$$.dir 2>/dev/null
31621
31622
31623 # as_fn_mkdir_p
31624 # -------------
31625 # Create "$as_dir" as a directory, including parents if necessary.
31626 as_fn_mkdir_p ()
31627 {
31628
31629   case $as_dir in #(
31630   -*) as_dir=./$as_dir;;
31631   esac
31632   test -d "$as_dir" || eval $as_mkdir_p || {
31633     as_dirs=
31634     while :; do
31635       case $as_dir in #(
31636       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31637       *) as_qdir=$as_dir;;
31638       esac
31639       as_dirs="'$as_qdir' $as_dirs"
31640       as_dir=`$as_dirname -- "$as_dir" ||
31641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31642          X"$as_dir" : 'X\(//\)[^/]' \| \
31643          X"$as_dir" : 'X\(//\)$' \| \
31644          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31645 $as_echo X"$as_dir" |
31646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31647             s//\1/
31648             q
31649           }
31650           /^X\(\/\/\)[^/].*/{
31651             s//\1/
31652             q
31653           }
31654           /^X\(\/\/\)$/{
31655             s//\1/
31656             q
31657           }
31658           /^X\(\/\).*/{
31659             s//\1/
31660             q
31661           }
31662           s/.*/./; q'`
31663       test -d "$as_dir" && break
31664     done
31665     test -z "$as_dirs" || eval "mkdir $as_dirs"
31666   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31667
31668
31669 } # as_fn_mkdir_p
31670 if mkdir -p . 2>/dev/null; then
31671   as_mkdir_p='mkdir -p "$as_dir"'
31672 else
31673   test -d ./-p && rmdir ./-p
31674   as_mkdir_p=false
31675 fi
31676
31677
31678 # as_fn_executable_p FILE
31679 # -----------------------
31680 # Test if FILE is an executable regular file.
31681 as_fn_executable_p ()
31682 {
31683   test -f "$1" && test -x "$1"
31684 } # as_fn_executable_p
31685 as_test_x='test -x'
31686 as_executable_p=as_fn_executable_p
31687
31688 # Sed expression to map a string onto a valid CPP name.
31689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31690
31691 # Sed expression to map a string onto a valid variable name.
31692 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31693
31694
31695 exec 6>&1
31696 ## ----------------------------------- ##
31697 ## Main body of $CONFIG_STATUS script. ##
31698 ## ----------------------------------- ##
31699 _ASEOF
31700 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31701
31702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31703 # Save the log message, to keep $0 and so on meaningful, and to
31704 # report actual input values of CONFIG_FILES etc. instead of their
31705 # values after options handling.
31706 ac_log="
31707 This file was extended by bacula $as_me 9.0.3, which was
31708 generated by GNU Autoconf 2.69.  Invocation command line was
31709
31710   CONFIG_FILES    = $CONFIG_FILES
31711   CONFIG_HEADERS  = $CONFIG_HEADERS
31712   CONFIG_LINKS    = $CONFIG_LINKS
31713   CONFIG_COMMANDS = $CONFIG_COMMANDS
31714   $ $0 $@
31715
31716 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31717 "
31718
31719 _ACEOF
31720
31721 case $ac_config_files in *"
31722 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31723 esac
31724
31725 case $ac_config_headers in *"
31726 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31727 esac
31728
31729
31730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31731 # Files that config.status was made for.
31732 config_files="$ac_config_files"
31733 config_headers="$ac_config_headers"
31734 config_commands="$ac_config_commands"
31735
31736 _ACEOF
31737
31738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31739 ac_cs_usage="\
31740 \`$as_me' instantiates files and other configuration actions
31741 from templates according to the current configuration.  Unless the files
31742 and actions are specified as TAGs, all are instantiated by default.
31743
31744 Usage: $0 [OPTION]... [TAG]...
31745
31746   -h, --help       print this help, then exit
31747   -V, --version    print version number and configuration settings, then exit
31748       --config     print configuration, then exit
31749   -q, --quiet, --silent
31750                    do not print progress messages
31751   -d, --debug      don't remove temporary files
31752       --recheck    update $as_me by reconfiguring in the same conditions
31753       --file=FILE[:TEMPLATE]
31754                    instantiate the configuration file FILE
31755       --header=FILE[:TEMPLATE]
31756                    instantiate the configuration header FILE
31757
31758 Configuration files:
31759 $config_files
31760
31761 Configuration headers:
31762 $config_headers
31763
31764 Configuration commands:
31765 $config_commands
31766
31767 Report bugs to the package provider."
31768
31769 _ACEOF
31770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31771 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31772 ac_cs_version="\\
31773 bacula config.status 9.0.3
31774 configured by $0, generated by GNU Autoconf 2.69,
31775   with options \\"\$ac_cs_config\\"
31776
31777 Copyright (C) 2012 Free Software Foundation, Inc.
31778 This config.status script is free software; the Free Software Foundation
31779 gives unlimited permission to copy, distribute and modify it."
31780
31781 ac_pwd='$ac_pwd'
31782 srcdir='$srcdir'
31783 INSTALL='$INSTALL'
31784 AWK='$AWK'
31785 test -n "\$AWK" || AWK=awk
31786 _ACEOF
31787
31788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31789 # The default lists apply if the user does not specify any file.
31790 ac_need_defaults=:
31791 while test $# != 0
31792 do
31793   case $1 in
31794   --*=?*)
31795     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31796     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31797     ac_shift=:
31798     ;;
31799   --*=)
31800     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31801     ac_optarg=
31802     ac_shift=:
31803     ;;
31804   *)
31805     ac_option=$1
31806     ac_optarg=$2
31807     ac_shift=shift
31808     ;;
31809   esac
31810
31811   case $ac_option in
31812   # Handling of the options.
31813   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31814     ac_cs_recheck=: ;;
31815   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31816     $as_echo "$ac_cs_version"; exit ;;
31817   --config | --confi | --conf | --con | --co | --c )
31818     $as_echo "$ac_cs_config"; exit ;;
31819   --debug | --debu | --deb | --de | --d | -d )
31820     debug=: ;;
31821   --file | --fil | --fi | --f )
31822     $ac_shift
31823     case $ac_optarg in
31824     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31825     '') as_fn_error $? "missing file argument" ;;
31826     esac
31827     as_fn_append CONFIG_FILES " '$ac_optarg'"
31828     ac_need_defaults=false;;
31829   --header | --heade | --head | --hea )
31830     $ac_shift
31831     case $ac_optarg in
31832     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31833     esac
31834     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31835     ac_need_defaults=false;;
31836   --he | --h)
31837     # Conflict between --help and --header
31838     as_fn_error $? "ambiguous option: \`$1'
31839 Try \`$0 --help' for more information.";;
31840   --help | --hel | -h )
31841     $as_echo "$ac_cs_usage"; exit ;;
31842   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31843   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31844     ac_cs_silent=: ;;
31845
31846   # This is an error.
31847   -*) as_fn_error $? "unrecognized option: \`$1'
31848 Try \`$0 --help' for more information." ;;
31849
31850   *) as_fn_append ac_config_targets " $1"
31851      ac_need_defaults=false ;;
31852
31853   esac
31854   shift
31855 done
31856
31857 ac_configure_extra_args=
31858
31859 if $ac_cs_silent; then
31860   exec 6>/dev/null
31861   ac_configure_extra_args="$ac_configure_extra_args --silent"
31862 fi
31863
31864 _ACEOF
31865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31866 if \$ac_cs_recheck; then
31867   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31868   shift
31869   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31870   CONFIG_SHELL='$SHELL'
31871   export CONFIG_SHELL
31872   exec "\$@"
31873 fi
31874
31875 _ACEOF
31876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31877 exec 5>>config.log
31878 {
31879   echo
31880   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31881 ## Running $as_me. ##
31882 _ASBOX
31883   $as_echo "$ac_log"
31884 } >&5
31885
31886 _ACEOF
31887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31888 #
31889 # INIT-COMMANDS
31890 #
31891
31892
31893 # The HP-UX ksh and POSIX shell print the target directory to stdout
31894 # if CDPATH is set.
31895 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31896
31897 sed_quote_subst='$sed_quote_subst'
31898 double_quote_subst='$double_quote_subst'
31899 delay_variable_subst='$delay_variable_subst'
31900 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31901 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31902 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31903 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31904 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31905 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31906 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31907 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31908 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31909 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31910 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31911 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31912 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31913 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31914 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31915 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31916 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31917 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31918 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31919 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31920 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31921 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31922 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31923 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31924 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31925 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31926 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31927 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31928 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31929 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31930 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31931 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31932 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31933 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31934 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31935 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31936 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31937 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31938 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31939 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31940 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31941 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31942 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31943 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31944 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31945 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31946 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31947 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31948 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31949 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31950 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31951 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31952 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31953 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31954 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31955 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31956 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"`'
31957 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31958 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31959 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31960 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31961 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31962 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31963 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31964 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31965 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31966 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31967 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31968 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31969 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31970 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31971 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31972 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31973 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31974 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31975 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31976 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31977 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31978 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31979 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31980 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31981 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31982 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31983 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31984 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31985 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31986 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31987 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31988 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31989 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31990 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31991 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31992 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31993 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31994 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31995 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31996 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31997 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31998 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31999 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32000 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32001 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32002 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32003 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32004 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32005 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32006 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32007 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32008 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32009 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32010 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32011 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32012 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32013 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32014 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32015 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32016 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32017 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32018 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32019 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32020 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32021 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32022 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32023 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32024 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32025 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32026 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32027 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32028 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32029 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32030 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32031 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32032 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32033 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32034 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32035 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32036 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32037 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32038 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32039 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32040 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32041 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32042 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32043 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32044 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32045 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32046 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32047 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32048 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32049 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32050 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32051 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32052 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32053 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32054 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32055 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32056 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32057 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32058 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32059 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32060 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32061 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32062 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32063 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32064 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32065 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32066 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32067 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32068 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32069 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32070 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32071 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32072 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32073 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32074 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32075 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32076 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32077 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32078 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32079 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32080 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32081 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32082 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32083 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32084
32085 LTCC='$LTCC'
32086 LTCFLAGS='$LTCFLAGS'
32087 compiler='$compiler_DEFAULT'
32088
32089 # A function that is used when there is no print builtin or printf.
32090 func_fallback_echo ()
32091 {
32092   eval 'cat <<_LTECHO_EOF
32093 \$1
32094 _LTECHO_EOF'
32095 }
32096
32097 # Quote evaled strings.
32098 for var in SHELL \
32099 ECHO \
32100 PATH_SEPARATOR \
32101 SED \
32102 GREP \
32103 EGREP \
32104 FGREP \
32105 LD \
32106 NM \
32107 LN_S \
32108 lt_SP2NL \
32109 lt_NL2SP \
32110 reload_flag \
32111 OBJDUMP \
32112 deplibs_check_method \
32113 file_magic_cmd \
32114 file_magic_glob \
32115 want_nocaseglob \
32116 DLLTOOL \
32117 sharedlib_from_linklib_cmd \
32118 AR \
32119 AR_FLAGS \
32120 archiver_list_spec \
32121 STRIP \
32122 RANLIB \
32123 CC \
32124 CFLAGS \
32125 compiler \
32126 lt_cv_sys_global_symbol_pipe \
32127 lt_cv_sys_global_symbol_to_cdecl \
32128 lt_cv_sys_global_symbol_to_c_name_address \
32129 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32130 nm_file_list_spec \
32131 lt_prog_compiler_no_builtin_flag \
32132 lt_prog_compiler_pic \
32133 lt_prog_compiler_wl \
32134 lt_prog_compiler_static \
32135 lt_cv_prog_compiler_c_o \
32136 need_locks \
32137 MANIFEST_TOOL \
32138 DSYMUTIL \
32139 NMEDIT \
32140 LIPO \
32141 OTOOL \
32142 OTOOL64 \
32143 shrext_cmds \
32144 export_dynamic_flag_spec \
32145 whole_archive_flag_spec \
32146 compiler_needs_object \
32147 with_gnu_ld \
32148 allow_undefined_flag \
32149 no_undefined_flag \
32150 hardcode_libdir_flag_spec \
32151 hardcode_libdir_separator \
32152 exclude_expsyms \
32153 include_expsyms \
32154 file_list_spec \
32155 variables_saved_for_relink \
32156 libname_spec \
32157 library_names_spec \
32158 soname_spec \
32159 install_override_mode \
32160 finish_eval \
32161 old_striplib \
32162 striplib \
32163 compiler_lib_search_dirs \
32164 predep_objects \
32165 postdep_objects \
32166 predeps \
32167 postdeps \
32168 compiler_lib_search_path \
32169 LD_CXX \
32170 reload_flag_CXX \
32171 compiler_CXX \
32172 lt_prog_compiler_no_builtin_flag_CXX \
32173 lt_prog_compiler_pic_CXX \
32174 lt_prog_compiler_wl_CXX \
32175 lt_prog_compiler_static_CXX \
32176 lt_cv_prog_compiler_c_o_CXX \
32177 export_dynamic_flag_spec_CXX \
32178 whole_archive_flag_spec_CXX \
32179 compiler_needs_object_CXX \
32180 with_gnu_ld_CXX \
32181 allow_undefined_flag_CXX \
32182 no_undefined_flag_CXX \
32183 hardcode_libdir_flag_spec_CXX \
32184 hardcode_libdir_separator_CXX \
32185 exclude_expsyms_CXX \
32186 include_expsyms_CXX \
32187 file_list_spec_CXX \
32188 compiler_lib_search_dirs_CXX \
32189 predep_objects_CXX \
32190 postdep_objects_CXX \
32191 predeps_CXX \
32192 postdeps_CXX \
32193 compiler_lib_search_path_CXX; do
32194     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32195     *[\\\\\\\`\\"\\\$]*)
32196       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32197       ;;
32198     *)
32199       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32200       ;;
32201     esac
32202 done
32203
32204 # Double-quote double-evaled strings.
32205 for var in reload_cmds \
32206 old_postinstall_cmds \
32207 old_postuninstall_cmds \
32208 old_archive_cmds \
32209 extract_expsyms_cmds \
32210 old_archive_from_new_cmds \
32211 old_archive_from_expsyms_cmds \
32212 archive_cmds \
32213 archive_expsym_cmds \
32214 module_cmds \
32215 module_expsym_cmds \
32216 export_symbols_cmds \
32217 prelink_cmds \
32218 postlink_cmds \
32219 postinstall_cmds \
32220 postuninstall_cmds \
32221 finish_cmds \
32222 sys_lib_search_path_spec \
32223 sys_lib_dlsearch_path_spec \
32224 reload_cmds_CXX \
32225 old_archive_cmds_CXX \
32226 old_archive_from_new_cmds_CXX \
32227 old_archive_from_expsyms_cmds_CXX \
32228 archive_cmds_CXX \
32229 archive_expsym_cmds_CXX \
32230 module_cmds_CXX \
32231 module_expsym_cmds_CXX \
32232 export_symbols_cmds_CXX \
32233 prelink_cmds_CXX \
32234 postlink_cmds_CXX; do
32235     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32236     *[\\\\\\\`\\"\\\$]*)
32237       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32238       ;;
32239     *)
32240       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32241       ;;
32242     esac
32243 done
32244
32245 ac_aux_dir='$ac_aux_dir'
32246 xsi_shell='$xsi_shell'
32247 lt_shell_append='$lt_shell_append'
32248
32249 # See if we are running on zsh, and set the options which allow our
32250 # commands through without removal of \ escapes INIT.
32251 if test -n "\${ZSH_VERSION+set}" ; then
32252    setopt NO_GLOB_SUBST
32253 fi
32254
32255
32256     PACKAGE='$PACKAGE'
32257     VERSION='$VERSION'
32258     TIMESTAMP='$TIMESTAMP'
32259     RM='$RM'
32260     ofile='$ofile'
32261
32262
32263
32264
32265
32266 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32267     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32268     # from automake.
32269     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32270     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32271     LINGUAS="${LINGUAS-%UNSET%}"
32272
32273
32274 _ACEOF
32275
32276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32277
32278 # Handling of arguments.
32279 for ac_config_target in $ac_config_targets
32280 do
32281   case $ac_config_target in
32282     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32283     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32284     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32285     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32286     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32287     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32288     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32289     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32290     "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32291     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32292     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32293     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32294     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32295     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32296     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32297     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32298     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32299     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32300     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32301     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32302     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32303     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32304     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32305     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32306     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32307     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32308     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32309     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32310     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32311     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32312     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32313     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32314     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32315     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32316     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32317     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32318     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32319     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32320     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32321     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32322     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32323     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32324     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32325     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32326     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32327     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32328     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32329     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32330     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32331     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32332     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32333     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32334     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32335     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32336     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32337     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32338     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32339     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32340     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32341     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32342     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32343     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32344     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32345     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32346     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32347     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32348     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32349     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32350     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32351     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32352     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32353     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32354     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32355     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32356     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32357     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32358     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32359     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32360     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32361     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32362     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32363     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32364     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32365     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32366     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32367     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32368     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32369     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32370     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32371     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32372     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32373     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32374     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32375     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32376     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32377     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32378     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32379     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32380     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32381     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32382     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32383     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32384     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32385     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32386     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32387     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32388     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32389
32390   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32391   esac
32392 done
32393
32394
32395 # If the user did not use the arguments to specify the items to instantiate,
32396 # then the envvar interface is used.  Set only those that are not.
32397 # We use the long form for the default assignment because of an extremely
32398 # bizarre bug on SunOS 4.1.3.
32399 if $ac_need_defaults; then
32400   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32401   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32402   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32403 fi
32404
32405 # Have a temporary directory for convenience.  Make it in the build tree
32406 # simply because there is no reason against having it here, and in addition,
32407 # creating and moving files from /tmp can sometimes cause problems.
32408 # Hook for its removal unless debugging.
32409 # Note that there is a small window in which the directory will not be cleaned:
32410 # after its creation but before its name has been assigned to `$tmp'.
32411 $debug ||
32412 {
32413   tmp= ac_tmp=
32414   trap 'exit_status=$?
32415   : "${ac_tmp:=$tmp}"
32416   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32417 ' 0
32418   trap 'as_fn_exit 1' 1 2 13 15
32419 }
32420 # Create a (secure) tmp directory for tmp files.
32421
32422 {
32423   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32424   test -d "$tmp"
32425 }  ||
32426 {
32427   tmp=./conf$$-$RANDOM
32428   (umask 077 && mkdir "$tmp")
32429 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32430 ac_tmp=$tmp
32431
32432 # Set up the scripts for CONFIG_FILES section.
32433 # No need to generate them if there are no CONFIG_FILES.
32434 # This happens for instance with `./config.status config.h'.
32435 if test -n "$CONFIG_FILES"; then
32436
32437 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32438   ac_cs_awk_getline=:
32439   ac_cs_awk_pipe_init=
32440   ac_cs_awk_read_file='
32441       while ((getline aline < (F[key])) > 0)
32442         print(aline)
32443       close(F[key])'
32444   ac_cs_awk_pipe_fini=
32445 else
32446   ac_cs_awk_getline=false
32447   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32448   ac_cs_awk_read_file='
32449       print "|#_!!_#|"
32450       print "cat " F[key] " &&"
32451       '$ac_cs_awk_pipe_init
32452   # The final `:' finishes the AND list.
32453   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32454 fi
32455 ac_cr=`echo X | tr X '\015'`
32456 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32457 # But we know of no other shell where ac_cr would be empty at this
32458 # point, so we can use a bashism as a fallback.
32459 if test "x$ac_cr" = x; then
32460   eval ac_cr=\$\'\\r\'
32461 fi
32462 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32463 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32464   ac_cs_awk_cr='\\r'
32465 else
32466   ac_cs_awk_cr=$ac_cr
32467 fi
32468
32469 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32470 _ACEOF
32471
32472 # Create commands to substitute file output variables.
32473 {
32474   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32475   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32476   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32477   echo "_ACAWK" &&
32478   echo "_ACEOF"
32479 } >conf$$files.sh &&
32480 . ./conf$$files.sh ||
32481   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32482 rm -f conf$$files.sh
32483
32484 {
32485   echo "cat >conf$$subs.awk <<_ACEOF" &&
32486   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32487   echo "_ACEOF"
32488 } >conf$$subs.sh ||
32489   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32490 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32491 ac_delim='%!_!# '
32492 for ac_last_try in false false false false false :; do
32493   . ./conf$$subs.sh ||
32494     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32495
32496   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32497   if test $ac_delim_n = $ac_delim_num; then
32498     break
32499   elif $ac_last_try; then
32500     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32501   else
32502     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32503   fi
32504 done
32505 rm -f conf$$subs.sh
32506
32507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32508 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32509 _ACEOF
32510 sed -n '
32511 h
32512 s/^/S["/; s/!.*/"]=/
32513 p
32514 g
32515 s/^[^!]*!//
32516 :repl
32517 t repl
32518 s/'"$ac_delim"'$//
32519 t delim
32520 :nl
32521 h
32522 s/\(.\{148\}\)..*/\1/
32523 t more1
32524 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32525 p
32526 n
32527 b repl
32528 :more1
32529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32530 p
32531 g
32532 s/.\{148\}//
32533 t nl
32534 :delim
32535 h
32536 s/\(.\{148\}\)..*/\1/
32537 t more2
32538 s/["\\]/\\&/g; s/^/"/; s/$/"/
32539 p
32540 b
32541 :more2
32542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32543 p
32544 g
32545 s/.\{148\}//
32546 t delim
32547 ' <conf$$subs.awk | sed '
32548 /^[^""]/{
32549   N
32550   s/\n//
32551 }
32552 ' >>$CONFIG_STATUS || ac_write_fail=1
32553 rm -f conf$$subs.awk
32554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32555 _ACAWK
32556 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32557   for (key in S) S_is_set[key] = 1
32558   FS = "\a"
32559   \$ac_cs_awk_pipe_init
32560 }
32561 {
32562   line = $ 0
32563   nfields = split(line, field, "@")
32564   substed = 0
32565   len = length(field[1])
32566   for (i = 2; i < nfields; i++) {
32567     key = field[i]
32568     keylen = length(key)
32569     if (S_is_set[key]) {
32570       value = S[key]
32571       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32572       len += length(value) + length(field[++i])
32573       substed = 1
32574     } else
32575       len += 1 + keylen
32576   }
32577   if (nfields == 3 && !substed) {
32578     key = field[2]
32579     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32580       \$ac_cs_awk_read_file
32581       next
32582     }
32583   }
32584   print line
32585 }
32586 \$ac_cs_awk_pipe_fini
32587 _ACAWK
32588 _ACEOF
32589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32590 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32591   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32592 else
32593   cat
32594 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32595   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32596 _ACEOF
32597
32598 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32599 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32600 # trailing colons and then remove the whole line if VPATH becomes empty
32601 # (actually we leave an empty line to preserve line numbers).
32602 if test "x$srcdir" = x.; then
32603   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32604 h
32605 s///
32606 s/^/:/
32607 s/[      ]*$/:/
32608 s/:\$(srcdir):/:/g
32609 s/:\${srcdir}:/:/g
32610 s/:@srcdir@:/:/g
32611 s/^:*//
32612 s/:*$//
32613 x
32614 s/\(=[   ]*\).*/\1/
32615 G
32616 s/\n//
32617 s/^[^=]*=[       ]*$//
32618 }'
32619 fi
32620
32621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32622 fi # test -n "$CONFIG_FILES"
32623
32624 # Set up the scripts for CONFIG_HEADERS section.
32625 # No need to generate them if there are no CONFIG_HEADERS.
32626 # This happens for instance with `./config.status Makefile'.
32627 if test -n "$CONFIG_HEADERS"; then
32628 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32629 BEGIN {
32630 _ACEOF
32631
32632 # Transform confdefs.h into an awk script `defines.awk', embedded as
32633 # here-document in config.status, that substitutes the proper values into
32634 # config.h.in to produce config.h.
32635
32636 # Create a delimiter string that does not exist in confdefs.h, to ease
32637 # handling of long lines.
32638 ac_delim='%!_!# '
32639 for ac_last_try in false false :; do
32640   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32641   if test -z "$ac_tt"; then
32642     break
32643   elif $ac_last_try; then
32644     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32645   else
32646     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32647   fi
32648 done
32649
32650 # For the awk script, D is an array of macro values keyed by name,
32651 # likewise P contains macro parameters if any.  Preserve backslash
32652 # newline sequences.
32653
32654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32655 sed -n '
32656 s/.\{148\}/&'"$ac_delim"'/g
32657 t rset
32658 :rset
32659 s/^[     ]*#[    ]*define[       ][      ]*/ /
32660 t def
32661 d
32662 :def
32663 s/\\$//
32664 t bsnl
32665 s/["\\]/\\&/g
32666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32667 D["\1"]=" \3"/p
32668 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32669 d
32670 :bsnl
32671 s/["\\]/\\&/g
32672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32673 D["\1"]=" \3\\\\\\n"\\/p
32674 t cont
32675 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32676 t cont
32677 d
32678 :cont
32679 n
32680 s/.\{148\}/&'"$ac_delim"'/g
32681 t clear
32682 :clear
32683 s/\\$//
32684 t bsnlc
32685 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32686 d
32687 :bsnlc
32688 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32689 b cont
32690 ' <confdefs.h | sed '
32691 s/'"$ac_delim"'/"\\\
32692 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32693
32694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32695   for (key in D) D_is_set[key] = 1
32696   FS = "\a"
32697 }
32698 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32699   line = \$ 0
32700   split(line, arg, " ")
32701   if (arg[1] == "#") {
32702     defundef = arg[2]
32703     mac1 = arg[3]
32704   } else {
32705     defundef = substr(arg[1], 2)
32706     mac1 = arg[2]
32707   }
32708   split(mac1, mac2, "(") #)
32709   macro = mac2[1]
32710   prefix = substr(line, 1, index(line, defundef) - 1)
32711   if (D_is_set[macro]) {
32712     # Preserve the white space surrounding the "#".
32713     print prefix "define", macro P[macro] D[macro]
32714     next
32715   } else {
32716     # Replace #undef with comments.  This is necessary, for example,
32717     # in the case of _POSIX_SOURCE, which is predefined and required
32718     # on some systems where configure will not decide to define it.
32719     if (defundef == "undef") {
32720       print "/*", prefix defundef, macro, "*/"
32721       next
32722     }
32723   }
32724 }
32725 { print }
32726 _ACAWK
32727 _ACEOF
32728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32729   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32730 fi # test -n "$CONFIG_HEADERS"
32731
32732
32733 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32734 shift
32735 for ac_tag
32736 do
32737   case $ac_tag in
32738   :[FHLC]) ac_mode=$ac_tag; continue;;
32739   esac
32740   case $ac_mode$ac_tag in
32741   :[FHL]*:*);;
32742   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32743   :[FH]-) ac_tag=-:-;;
32744   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32745   esac
32746   ac_save_IFS=$IFS
32747   IFS=:
32748   set x $ac_tag
32749   IFS=$ac_save_IFS
32750   shift
32751   ac_file=$1
32752   shift
32753
32754   case $ac_mode in
32755   :L) ac_source=$1;;
32756   :[FH])
32757     ac_file_inputs=
32758     for ac_f
32759     do
32760       case $ac_f in
32761       -) ac_f="$ac_tmp/stdin";;
32762       *) # Look for the file first in the build tree, then in the source tree
32763          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32764          # because $ac_f cannot contain `:'.
32765          test -f "$ac_f" ||
32766            case $ac_f in
32767            [\\/$]*) false;;
32768            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32769            esac ||
32770            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32771       esac
32772       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32773       as_fn_append ac_file_inputs " '$ac_f'"
32774     done
32775
32776     # Let's still pretend it is `configure' which instantiates (i.e., don't
32777     # use $as_me), people would be surprised to read:
32778     #    /* config.h.  Generated by config.status.  */
32779     configure_input='Generated from '`
32780           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32781         `' by configure.'
32782     if test x"$ac_file" != x-; then
32783       configure_input="$ac_file.  $configure_input"
32784       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32785 $as_echo "$as_me: creating $ac_file" >&6;}
32786     fi
32787     # Neutralize special characters interpreted by sed in replacement strings.
32788     case $configure_input in #(
32789     *\&* | *\|* | *\\* )
32790        ac_sed_conf_input=`$as_echo "$configure_input" |
32791        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32792     *) ac_sed_conf_input=$configure_input;;
32793     esac
32794
32795     case $ac_tag in
32796     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32797       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32798     esac
32799     ;;
32800   esac
32801
32802   ac_dir=`$as_dirname -- "$ac_file" ||
32803 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32804          X"$ac_file" : 'X\(//\)[^/]' \| \
32805          X"$ac_file" : 'X\(//\)$' \| \
32806          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32807 $as_echo X"$ac_file" |
32808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32809             s//\1/
32810             q
32811           }
32812           /^X\(\/\/\)[^/].*/{
32813             s//\1/
32814             q
32815           }
32816           /^X\(\/\/\)$/{
32817             s//\1/
32818             q
32819           }
32820           /^X\(\/\).*/{
32821             s//\1/
32822             q
32823           }
32824           s/.*/./; q'`
32825   as_dir="$ac_dir"; as_fn_mkdir_p
32826   ac_builddir=.
32827
32828 case "$ac_dir" in
32829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32830 *)
32831   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32832   # A ".." for each directory in $ac_dir_suffix.
32833   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32834   case $ac_top_builddir_sub in
32835   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32836   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32837   esac ;;
32838 esac
32839 ac_abs_top_builddir=$ac_pwd
32840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32841 # for backward compatibility:
32842 ac_top_builddir=$ac_top_build_prefix
32843
32844 case $srcdir in
32845   .)  # We are building in place.
32846     ac_srcdir=.
32847     ac_top_srcdir=$ac_top_builddir_sub
32848     ac_abs_top_srcdir=$ac_pwd ;;
32849   [\\/]* | ?:[\\/]* )  # Absolute name.
32850     ac_srcdir=$srcdir$ac_dir_suffix;
32851     ac_top_srcdir=$srcdir
32852     ac_abs_top_srcdir=$srcdir ;;
32853   *) # Relative name.
32854     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32855     ac_top_srcdir=$ac_top_build_prefix$srcdir
32856     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32857 esac
32858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32859
32860
32861   case $ac_mode in
32862   :F)
32863   #
32864   # CONFIG_FILE
32865   #
32866
32867   case $INSTALL in
32868   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32869   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32870   esac
32871 _ACEOF
32872
32873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32874 # If the template does not know about datarootdir, expand it.
32875 # FIXME: This hack should be removed a few years after 2.60.
32876 ac_datarootdir_hack=; ac_datarootdir_seen=
32877 ac_sed_dataroot='
32878 /datarootdir/ {
32879   p
32880   q
32881 }
32882 /@datadir@/p
32883 /@docdir@/p
32884 /@infodir@/p
32885 /@localedir@/p
32886 /@mandir@/p'
32887 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32888 *datarootdir*) ac_datarootdir_seen=yes;;
32889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32890   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32891 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32892 _ACEOF
32893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32894   ac_datarootdir_hack='
32895   s&@datadir@&$datadir&g
32896   s&@docdir@&$docdir&g
32897   s&@infodir@&$infodir&g
32898   s&@localedir@&$localedir&g
32899   s&@mandir@&$mandir&g
32900   s&\\\${datarootdir}&$datarootdir&g' ;;
32901 esac
32902 _ACEOF
32903
32904 # Neutralize VPATH when `$srcdir' = `.'.
32905 # Shell code in configure.ac might set extrasub.
32906 # FIXME: do we really want to maintain this feature?
32907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32908 ac_sed_extra="$ac_vpsub
32909 $extrasub
32910 _ACEOF
32911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32912 :t
32913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32914 s|@configure_input@|$ac_sed_conf_input|;t t
32915 s&@top_builddir@&$ac_top_builddir_sub&;t t
32916 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32917 s&@srcdir@&$ac_srcdir&;t t
32918 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32919 s&@top_srcdir@&$ac_top_srcdir&;t t
32920 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32921 s&@builddir@&$ac_builddir&;t t
32922 s&@abs_builddir@&$ac_abs_builddir&;t t
32923 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32924 s&@INSTALL@&$ac_INSTALL&;t t
32925 $ac_datarootdir_hack
32926 "
32927 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32928 if $ac_cs_awk_getline; then
32929   $AWK -f "$ac_tmp/subs.awk"
32930 else
32931   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32932 fi \
32933   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32934
32935 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32936   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32937   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32938       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32939   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32940 which seems to be undefined.  Please make sure it is defined" >&5
32941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32942 which seems to be undefined.  Please make sure it is defined" >&2;}
32943
32944   rm -f "$ac_tmp/stdin"
32945   case $ac_file in
32946   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32947   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32948   esac \
32949   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32950  ;;
32951   :H)
32952   #
32953   # CONFIG_HEADER
32954   #
32955   if test x"$ac_file" != x-; then
32956     {
32957       $as_echo "/* $configure_input  */" \
32958       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32959     } >"$ac_tmp/config.h" \
32960       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32961     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32962       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32963 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32964     else
32965       rm -f "$ac_file"
32966       mv "$ac_tmp/config.h" "$ac_file" \
32967         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32968     fi
32969   else
32970     $as_echo "/* $configure_input  */" \
32971       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32972       || as_fn_error $? "could not create -" "$LINENO" 5
32973   fi
32974  ;;
32975
32976   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32977 $as_echo "$as_me: executing $ac_file commands" >&6;}
32978  ;;
32979   esac
32980
32981
32982   case $ac_file$ac_mode in
32983     "libtool":C)
32984
32985     # See if we are running on zsh, and set the options which allow our
32986     # commands through without removal of \ escapes.
32987     if test -n "${ZSH_VERSION+set}" ; then
32988       setopt NO_GLOB_SUBST
32989     fi
32990
32991     cfgfile="${ofile}T"
32992     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32993     $RM "$cfgfile"
32994
32995     cat <<_LT_EOF >> "$cfgfile"
32996 #! $SHELL
32997
32998 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32999 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33001 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33002 #
33003 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33004 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
33005 #                 Foundation, Inc.
33006 #   Written by Gordon Matzigkeit, 1996
33007 #
33008 #   This file is part of GNU Libtool.
33009 #
33010 # GNU Libtool is free software; you can redistribute it and/or
33011 # modify it under the terms of the GNU General Public License as
33012 # published by the Free Software Foundation; either version 2 of
33013 # the License, or (at your option) any later version.
33014 #
33015 # As a special exception to the GNU General Public License,
33016 # if you distribute this file as part of a program or library that
33017 # is built using GNU Libtool, you may include this file under the
33018 # same distribution terms that you use for the rest of that program.
33019 #
33020 # GNU Libtool is distributed in the hope that it will be useful,
33021 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33022 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33023 # GNU General Public License for more details.
33024 #
33025 # You should have received a copy of the GNU General Public License
33026 # along with GNU Libtool; see the file COPYING.  If not, a copy
33027 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33028 # obtained by writing to the Free Software Foundation, Inc.,
33029 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33030
33031
33032 # The names of the tagged configurations supported by this script.
33033 available_tags="CXX "
33034
33035 # ### BEGIN LIBTOOL CONFIG
33036
33037 # Which release of libtool.m4 was used?
33038 macro_version=$macro_version
33039 macro_revision=$macro_revision
33040
33041 # Whether or not to build shared libraries.
33042 build_libtool_libs=$enable_shared
33043
33044 # Whether or not to build static libraries.
33045 build_old_libs=$enable_static
33046
33047 # What type of objects to build.
33048 pic_mode=$pic_mode
33049
33050 # Whether or not to optimize for fast installation.
33051 fast_install=$enable_fast_install
33052
33053 # Shell to use when invoking shell scripts.
33054 SHELL=$lt_SHELL
33055
33056 # An echo program that protects backslashes.
33057 ECHO=$lt_ECHO
33058
33059 # The PATH separator for the build system.
33060 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33061
33062 # The host system.
33063 host_alias=$host_alias
33064 host=$host
33065 host_os=$host_os
33066
33067 # The build system.
33068 build_alias=$build_alias
33069 build=$build
33070 build_os=$build_os
33071
33072 # A sed program that does not truncate output.
33073 SED=$lt_SED
33074
33075 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33076 Xsed="\$SED -e 1s/^X//"
33077
33078 # A grep program that handles long lines.
33079 GREP=$lt_GREP
33080
33081 # An ERE matcher.
33082 EGREP=$lt_EGREP
33083
33084 # A literal string matcher.
33085 FGREP=$lt_FGREP
33086
33087 # A BSD- or MS-compatible name lister.
33088 NM=$lt_NM
33089
33090 # Whether we need soft or hard links.
33091 LN_S=$lt_LN_S
33092
33093 # What is the maximum length of a command?
33094 max_cmd_len=$max_cmd_len
33095
33096 # Object file suffix (normally "o").
33097 objext=$ac_objext
33098
33099 # Executable file suffix (normally "").
33100 exeext=$exeext
33101
33102 # whether the shell understands "unset".
33103 lt_unset=$lt_unset
33104
33105 # turn spaces into newlines.
33106 SP2NL=$lt_lt_SP2NL
33107
33108 # turn newlines into spaces.
33109 NL2SP=$lt_lt_NL2SP
33110
33111 # convert \$build file names to \$host format.
33112 to_host_file_cmd=$lt_cv_to_host_file_cmd
33113
33114 # convert \$build files to toolchain format.
33115 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33116
33117 # An object symbol dumper.
33118 OBJDUMP=$lt_OBJDUMP
33119
33120 # Method to check whether dependent libraries are shared objects.
33121 deplibs_check_method=$lt_deplibs_check_method
33122
33123 # Command to use when deplibs_check_method = "file_magic".
33124 file_magic_cmd=$lt_file_magic_cmd
33125
33126 # How to find potential files when deplibs_check_method = "file_magic".
33127 file_magic_glob=$lt_file_magic_glob
33128
33129 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33130 want_nocaseglob=$lt_want_nocaseglob
33131
33132 # DLL creation program.
33133 DLLTOOL=$lt_DLLTOOL
33134
33135 # Command to associate shared and link libraries.
33136 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33137
33138 # The archiver.
33139 AR=$lt_AR
33140
33141 # Flags to create an archive.
33142 AR_FLAGS=$lt_AR_FLAGS
33143
33144 # How to feed a file listing to the archiver.
33145 archiver_list_spec=$lt_archiver_list_spec
33146
33147 # A symbol stripping program.
33148 STRIP=$lt_STRIP
33149
33150 # Commands used to install an old-style archive.
33151 RANLIB=$lt_RANLIB
33152 old_postinstall_cmds=$lt_old_postinstall_cmds
33153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33154
33155 # Whether to use a lock for old archive extraction.
33156 lock_old_archive_extraction=$lock_old_archive_extraction
33157
33158 # A C compiler.
33159 LTCC=$lt_CC
33160
33161 # LTCC compiler flags.
33162 LTCFLAGS=$lt_CFLAGS
33163
33164 # Take the output of nm and produce a listing of raw symbols and C names.
33165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33166
33167 # Transform the output of nm in a proper C declaration.
33168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33169
33170 # Transform the output of nm in a C name address pair.
33171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33172
33173 # Transform the output of nm in a C name address pair when lib prefix is needed.
33174 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33175
33176 # Specify filename containing input files for \$NM.
33177 nm_file_list_spec=$lt_nm_file_list_spec
33178
33179 # The root where to search for dependent libraries,and in which our libraries should be installed.
33180 lt_sysroot=$lt_sysroot
33181
33182 # The name of the directory that contains temporary libtool files.
33183 objdir=$objdir
33184
33185 # Used to examine libraries when file_magic_cmd begins with "file".
33186 MAGIC_CMD=$MAGIC_CMD
33187
33188 # Must we lock files when doing compilation?
33189 need_locks=$lt_need_locks
33190
33191 # Manifest tool.
33192 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33193
33194 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33195 DSYMUTIL=$lt_DSYMUTIL
33196
33197 # Tool to change global to local symbols on Mac OS X.
33198 NMEDIT=$lt_NMEDIT
33199
33200 # Tool to manipulate fat objects and archives on Mac OS X.
33201 LIPO=$lt_LIPO
33202
33203 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33204 OTOOL=$lt_OTOOL
33205
33206 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33207 OTOOL64=$lt_OTOOL64
33208
33209 # Old archive suffix (normally "a").
33210 libext=$libext
33211
33212 # Shared library suffix (normally ".so").
33213 shrext_cmds=$lt_shrext_cmds
33214
33215 # The commands to extract the exported symbol list from a shared archive.
33216 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33217
33218 # Variables whose values should be saved in libtool wrapper scripts and
33219 # restored at link time.
33220 variables_saved_for_relink=$lt_variables_saved_for_relink
33221
33222 # Do we need the "lib" prefix for modules?
33223 need_lib_prefix=$need_lib_prefix
33224
33225 # Do we need a version for libraries?
33226 need_version=$need_version
33227
33228 # Library versioning type.
33229 version_type=$version_type
33230
33231 # Shared library runtime path variable.
33232 runpath_var=$runpath_var
33233
33234 # Shared library path variable.
33235 shlibpath_var=$shlibpath_var
33236
33237 # Is shlibpath searched before the hard-coded library search path?
33238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33239
33240 # Format of library name prefix.
33241 libname_spec=$lt_libname_spec
33242
33243 # List of archive names.  First name is the real one, the rest are links.
33244 # The last name is the one that the linker finds with -lNAME
33245 library_names_spec=$lt_library_names_spec
33246
33247 # The coded name of the library, if different from the real name.
33248 soname_spec=$lt_soname_spec
33249
33250 # Permission mode override for installation of shared libraries.
33251 install_override_mode=$lt_install_override_mode
33252
33253 # Command to use after installation of a shared archive.
33254 postinstall_cmds=$lt_postinstall_cmds
33255
33256 # Command to use after uninstallation of a shared archive.
33257 postuninstall_cmds=$lt_postuninstall_cmds
33258
33259 # Commands used to finish a libtool library installation in a directory.
33260 finish_cmds=$lt_finish_cmds
33261
33262 # As "finish_cmds", except a single script fragment to be evaled but
33263 # not shown.
33264 finish_eval=$lt_finish_eval
33265
33266 # Whether we should hardcode library paths into libraries.
33267 hardcode_into_libs=$hardcode_into_libs
33268
33269 # Compile-time system search path for libraries.
33270 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33271
33272 # Run-time system search path for libraries.
33273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33274
33275 # Whether dlopen is supported.
33276 dlopen_support=$enable_dlopen
33277
33278 # Whether dlopen of programs is supported.
33279 dlopen_self=$enable_dlopen_self
33280
33281 # Whether dlopen of statically linked programs is supported.
33282 dlopen_self_static=$enable_dlopen_self_static
33283
33284 # Commands to strip libraries.
33285 old_striplib=$lt_old_striplib
33286 striplib=$lt_striplib
33287
33288
33289 # The linker used to build libraries.
33290 LD=$lt_LD
33291
33292 # How to create reloadable object files.
33293 reload_flag=$lt_reload_flag
33294 reload_cmds=$lt_reload_cmds
33295
33296 # Commands used to build an old-style archive.
33297 old_archive_cmds=$lt_old_archive_cmds
33298
33299 # A language specific compiler.
33300 CC=$lt_compiler
33301
33302 # Is the compiler the GNU compiler?
33303 with_gcc=$GCC
33304
33305 # Compiler flag to turn off builtin functions.
33306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33307
33308 # Additional compiler flags for building library objects.
33309 pic_flag=$lt_lt_prog_compiler_pic
33310
33311 # How to pass a linker flag through the compiler.
33312 wl=$lt_lt_prog_compiler_wl
33313
33314 # Compiler flag to prevent dynamic linking.
33315 link_static_flag=$lt_lt_prog_compiler_static
33316
33317 # Does compiler simultaneously support -c and -o options?
33318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33319
33320 # Whether or not to add -lc for building shared libraries.
33321 build_libtool_need_lc=$archive_cmds_need_lc
33322
33323 # Whether or not to disallow shared libs when runtime libs are static.
33324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33325
33326 # Compiler flag to allow reflexive dlopens.
33327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33328
33329 # Compiler flag to generate shared objects directly from archives.
33330 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33331
33332 # Whether the compiler copes with passing no objects directly.
33333 compiler_needs_object=$lt_compiler_needs_object
33334
33335 # Create an old-style archive from a shared archive.
33336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33337
33338 # Create a temporary old-style archive to link instead of a shared archive.
33339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33340
33341 # Commands used to build a shared archive.
33342 archive_cmds=$lt_archive_cmds
33343 archive_expsym_cmds=$lt_archive_expsym_cmds
33344
33345 # Commands used to build a loadable module if different from building
33346 # a shared archive.
33347 module_cmds=$lt_module_cmds
33348 module_expsym_cmds=$lt_module_expsym_cmds
33349
33350 # Whether we are building with GNU ld or not.
33351 with_gnu_ld=$lt_with_gnu_ld
33352
33353 # Flag that allows shared libraries with undefined symbols to be built.
33354 allow_undefined_flag=$lt_allow_undefined_flag
33355
33356 # Flag that enforces no undefined symbols.
33357 no_undefined_flag=$lt_no_undefined_flag
33358
33359 # Flag to hardcode \$libdir into a binary during linking.
33360 # This must work even if \$libdir does not exist
33361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33362
33363 # Whether we need a single "-rpath" flag with a separated argument.
33364 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33365
33366 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33367 # DIR into the resulting binary.
33368 hardcode_direct=$hardcode_direct
33369
33370 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33371 # DIR into the resulting binary and the resulting library dependency is
33372 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33373 # library is relocated.
33374 hardcode_direct_absolute=$hardcode_direct_absolute
33375
33376 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33377 # into the resulting binary.
33378 hardcode_minus_L=$hardcode_minus_L
33379
33380 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33381 # into the resulting binary.
33382 hardcode_shlibpath_var=$hardcode_shlibpath_var
33383
33384 # Set to "yes" if building a shared library automatically hardcodes DIR
33385 # into the library and all subsequent libraries and executables linked
33386 # against it.
33387 hardcode_automatic=$hardcode_automatic
33388
33389 # Set to yes if linker adds runtime paths of dependent libraries
33390 # to runtime path list.
33391 inherit_rpath=$inherit_rpath
33392
33393 # Whether libtool must link a program against all its dependency libraries.
33394 link_all_deplibs=$link_all_deplibs
33395
33396 # Set to "yes" if exported symbols are required.
33397 always_export_symbols=$always_export_symbols
33398
33399 # The commands to list exported symbols.
33400 export_symbols_cmds=$lt_export_symbols_cmds
33401
33402 # Symbols that should not be listed in the preloaded symbols.
33403 exclude_expsyms=$lt_exclude_expsyms
33404
33405 # Symbols that must always be exported.
33406 include_expsyms=$lt_include_expsyms
33407
33408 # Commands necessary for linking programs (against libraries) with templates.
33409 prelink_cmds=$lt_prelink_cmds
33410
33411 # Commands necessary for finishing linking programs.
33412 postlink_cmds=$lt_postlink_cmds
33413
33414 # Specify filename containing input files.
33415 file_list_spec=$lt_file_list_spec
33416
33417 # How to hardcode a shared library path into an executable.
33418 hardcode_action=$hardcode_action
33419
33420 # The directories searched by this compiler when creating a shared library.
33421 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33422
33423 # Dependencies to place before and after the objects being linked to
33424 # create a shared library.
33425 predep_objects=$lt_predep_objects
33426 postdep_objects=$lt_postdep_objects
33427 predeps=$lt_predeps
33428 postdeps=$lt_postdeps
33429
33430 # The library search path used internally by the compiler when linking
33431 # a shared library.
33432 compiler_lib_search_path=$lt_compiler_lib_search_path
33433
33434 # ### END LIBTOOL CONFIG
33435
33436 _LT_EOF
33437
33438   case $host_os in
33439   aix3*)
33440     cat <<\_LT_EOF >> "$cfgfile"
33441 # AIX sometimes has problems with the GCC collect2 program.  For some
33442 # reason, if we set the COLLECT_NAMES environment variable, the problems
33443 # vanish in a puff of smoke.
33444 if test "X${COLLECT_NAMES+set}" != Xset; then
33445   COLLECT_NAMES=
33446   export COLLECT_NAMES
33447 fi
33448 _LT_EOF
33449     ;;
33450   esac
33451
33452
33453 ltmain="$ac_aux_dir/ltmain.sh"
33454
33455
33456   # We use sed instead of cat because bash on DJGPP gets confused if
33457   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33458   # text mode, it properly converts lines to CR/LF.  This bash problem
33459   # is reportedly fixed, but why not run on old versions too?
33460   sed '$q' "$ltmain" >> "$cfgfile" \
33461      || (rm -f "$cfgfile"; exit 1)
33462
33463   if test x"$xsi_shell" = xyes; then
33464   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33465 func_dirname ()\
33466 {\
33467 \    case ${1} in\
33468 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33469 \      *  ) func_dirname_result="${3}" ;;\
33470 \    esac\
33471 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33472   && mv -f "$cfgfile.tmp" "$cfgfile" \
33473     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33474 test 0 -eq $? || _lt_function_replace_fail=:
33475
33476
33477   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33478 func_basename ()\
33479 {\
33480 \    func_basename_result="${1##*/}"\
33481 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33482   && mv -f "$cfgfile.tmp" "$cfgfile" \
33483     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33484 test 0 -eq $? || _lt_function_replace_fail=:
33485
33486
33487   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33488 func_dirname_and_basename ()\
33489 {\
33490 \    case ${1} in\
33491 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33492 \      *  ) func_dirname_result="${3}" ;;\
33493 \    esac\
33494 \    func_basename_result="${1##*/}"\
33495 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33496   && mv -f "$cfgfile.tmp" "$cfgfile" \
33497     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33498 test 0 -eq $? || _lt_function_replace_fail=:
33499
33500
33501   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33502 func_stripname ()\
33503 {\
33504 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33505 \    # positional parameters, so assign one to ordinary parameter first.\
33506 \    func_stripname_result=${3}\
33507 \    func_stripname_result=${func_stripname_result#"${1}"}\
33508 \    func_stripname_result=${func_stripname_result%"${2}"}\
33509 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33510   && mv -f "$cfgfile.tmp" "$cfgfile" \
33511     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33512 test 0 -eq $? || _lt_function_replace_fail=:
33513
33514
33515   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33516 func_split_long_opt ()\
33517 {\
33518 \    func_split_long_opt_name=${1%%=*}\
33519 \    func_split_long_opt_arg=${1#*=}\
33520 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33521   && mv -f "$cfgfile.tmp" "$cfgfile" \
33522     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33523 test 0 -eq $? || _lt_function_replace_fail=:
33524
33525
33526   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33527 func_split_short_opt ()\
33528 {\
33529 \    func_split_short_opt_arg=${1#??}\
33530 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33531 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33532   && mv -f "$cfgfile.tmp" "$cfgfile" \
33533     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33534 test 0 -eq $? || _lt_function_replace_fail=:
33535
33536
33537   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33538 func_lo2o ()\
33539 {\
33540 \    case ${1} in\
33541 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33542 \      *)    func_lo2o_result=${1} ;;\
33543 \    esac\
33544 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33545   && mv -f "$cfgfile.tmp" "$cfgfile" \
33546     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33547 test 0 -eq $? || _lt_function_replace_fail=:
33548
33549
33550   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33551 func_xform ()\
33552 {\
33553     func_xform_result=${1%.*}.lo\
33554 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33555   && mv -f "$cfgfile.tmp" "$cfgfile" \
33556     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33557 test 0 -eq $? || _lt_function_replace_fail=:
33558
33559
33560   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33561 func_arith ()\
33562 {\
33563     func_arith_result=$(( $* ))\
33564 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33565   && mv -f "$cfgfile.tmp" "$cfgfile" \
33566     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33567 test 0 -eq $? || _lt_function_replace_fail=:
33568
33569
33570   sed -e '/^func_len ()$/,/^} # func_len /c\
33571 func_len ()\
33572 {\
33573     func_len_result=${#1}\
33574 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33575   && mv -f "$cfgfile.tmp" "$cfgfile" \
33576     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33577 test 0 -eq $? || _lt_function_replace_fail=:
33578
33579 fi
33580
33581 if test x"$lt_shell_append" = xyes; then
33582   sed -e '/^func_append ()$/,/^} # func_append /c\
33583 func_append ()\
33584 {\
33585     eval "${1}+=\\${2}"\
33586 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33587   && mv -f "$cfgfile.tmp" "$cfgfile" \
33588     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33589 test 0 -eq $? || _lt_function_replace_fail=:
33590
33591
33592   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33593 func_append_quoted ()\
33594 {\
33595 \    func_quote_for_eval "${2}"\
33596 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33597 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33598   && mv -f "$cfgfile.tmp" "$cfgfile" \
33599     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33600 test 0 -eq $? || _lt_function_replace_fail=:
33601
33602
33603   # Save a `func_append' function call where possible by direct use of '+='
33604   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33605     && mv -f "$cfgfile.tmp" "$cfgfile" \
33606       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33607   test 0 -eq $? || _lt_function_replace_fail=:
33608 else
33609   # Save a `func_append' function call even when '+=' is not available
33610   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33611     && mv -f "$cfgfile.tmp" "$cfgfile" \
33612       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33613   test 0 -eq $? || _lt_function_replace_fail=:
33614 fi
33615
33616 if test x"$_lt_function_replace_fail" = x":"; then
33617   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33618 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33619 fi
33620
33621
33622    mv -f "$cfgfile" "$ofile" ||
33623     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33624   chmod +x "$ofile"
33625
33626
33627     cat <<_LT_EOF >> "$ofile"
33628
33629 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33630
33631 # The linker used to build libraries.
33632 LD=$lt_LD_CXX
33633
33634 # How to create reloadable object files.
33635 reload_flag=$lt_reload_flag_CXX
33636 reload_cmds=$lt_reload_cmds_CXX
33637
33638 # Commands used to build an old-style archive.
33639 old_archive_cmds=$lt_old_archive_cmds_CXX
33640
33641 # A language specific compiler.
33642 CC=$lt_compiler_CXX
33643
33644 # Is the compiler the GNU compiler?
33645 with_gcc=$GCC_CXX
33646
33647 # Compiler flag to turn off builtin functions.
33648 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33649
33650 # Additional compiler flags for building library objects.
33651 pic_flag=$lt_lt_prog_compiler_pic_CXX
33652
33653 # How to pass a linker flag through the compiler.
33654 wl=$lt_lt_prog_compiler_wl_CXX
33655
33656 # Compiler flag to prevent dynamic linking.
33657 link_static_flag=$lt_lt_prog_compiler_static_CXX
33658
33659 # Does compiler simultaneously support -c and -o options?
33660 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33661
33662 # Whether or not to add -lc for building shared libraries.
33663 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33664
33665 # Whether or not to disallow shared libs when runtime libs are static.
33666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33667
33668 # Compiler flag to allow reflexive dlopens.
33669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33670
33671 # Compiler flag to generate shared objects directly from archives.
33672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33673
33674 # Whether the compiler copes with passing no objects directly.
33675 compiler_needs_object=$lt_compiler_needs_object_CXX
33676
33677 # Create an old-style archive from a shared archive.
33678 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33679
33680 # Create a temporary old-style archive to link instead of a shared archive.
33681 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33682
33683 # Commands used to build a shared archive.
33684 archive_cmds=$lt_archive_cmds_CXX
33685 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33686
33687 # Commands used to build a loadable module if different from building
33688 # a shared archive.
33689 module_cmds=$lt_module_cmds_CXX
33690 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33691
33692 # Whether we are building with GNU ld or not.
33693 with_gnu_ld=$lt_with_gnu_ld_CXX
33694
33695 # Flag that allows shared libraries with undefined symbols to be built.
33696 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33697
33698 # Flag that enforces no undefined symbols.
33699 no_undefined_flag=$lt_no_undefined_flag_CXX
33700
33701 # Flag to hardcode \$libdir into a binary during linking.
33702 # This must work even if \$libdir does not exist
33703 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33704
33705 # Whether we need a single "-rpath" flag with a separated argument.
33706 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33707
33708 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33709 # DIR into the resulting binary.
33710 hardcode_direct=$hardcode_direct_CXX
33711
33712 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33713 # DIR into the resulting binary and the resulting library dependency is
33714 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33715 # library is relocated.
33716 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33717
33718 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33719 # into the resulting binary.
33720 hardcode_minus_L=$hardcode_minus_L_CXX
33721
33722 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33723 # into the resulting binary.
33724 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33725
33726 # Set to "yes" if building a shared library automatically hardcodes DIR
33727 # into the library and all subsequent libraries and executables linked
33728 # against it.
33729 hardcode_automatic=$hardcode_automatic_CXX
33730
33731 # Set to yes if linker adds runtime paths of dependent libraries
33732 # to runtime path list.
33733 inherit_rpath=$inherit_rpath_CXX
33734
33735 # Whether libtool must link a program against all its dependency libraries.
33736 link_all_deplibs=$link_all_deplibs_CXX
33737
33738 # Set to "yes" if exported symbols are required.
33739 always_export_symbols=$always_export_symbols_CXX
33740
33741 # The commands to list exported symbols.
33742 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33743
33744 # Symbols that should not be listed in the preloaded symbols.
33745 exclude_expsyms=$lt_exclude_expsyms_CXX
33746
33747 # Symbols that must always be exported.
33748 include_expsyms=$lt_include_expsyms_CXX
33749
33750 # Commands necessary for linking programs (against libraries) with templates.
33751 prelink_cmds=$lt_prelink_cmds_CXX
33752
33753 # Commands necessary for finishing linking programs.
33754 postlink_cmds=$lt_postlink_cmds_CXX
33755
33756 # Specify filename containing input files.
33757 file_list_spec=$lt_file_list_spec_CXX
33758
33759 # How to hardcode a shared library path into an executable.
33760 hardcode_action=$hardcode_action_CXX
33761
33762 # The directories searched by this compiler when creating a shared library.
33763 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33764
33765 # Dependencies to place before and after the objects being linked to
33766 # create a shared library.
33767 predep_objects=$lt_predep_objects_CXX
33768 postdep_objects=$lt_postdep_objects_CXX
33769 predeps=$lt_predeps_CXX
33770 postdeps=$lt_postdeps_CXX
33771
33772 # The library search path used internally by the compiler when linking
33773 # a shared library.
33774 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33775
33776 # ### END LIBTOOL TAG CONFIG: CXX
33777 _LT_EOF
33778
33779  ;;
33780     "default-1":C)
33781     for ac_file in $CONFIG_FILES; do
33782       # Support "outfile[:infile[:infile...]]"
33783       case "$ac_file" in
33784         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33785       esac
33786       # PO directories have a Makefile.in generated from Makefile.in.in.
33787       case "$ac_file" in */Makefile.in)
33788         # Adjust a relative srcdir.
33789         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33790         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33791         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33792         # In autoconf-2.13 it is called $ac_given_srcdir.
33793         # In autoconf-2.50 it is called $srcdir.
33794         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33795         case "$ac_given_srcdir" in
33796           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33797           /*) top_srcdir="$ac_given_srcdir" ;;
33798           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33799         esac
33800         # Treat a directory as a PO directory if and only if it has a
33801         # POTFILES.in file. This allows packages to have multiple PO
33802         # directories under different names or in different locations.
33803         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33804           rm -f "$ac_dir/POTFILES"
33805           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33806           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33807           POMAKEFILEDEPS="POTFILES.in"
33808           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33809           # on $ac_dir but don't depend on user-specified configuration
33810           # parameters.
33811           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33812             # The LINGUAS file contains the set of available languages.
33813             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33814               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33815             fi
33816             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33817             # Hide the ALL_LINGUAS assigment from automake.
33818             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33819             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33820           else
33821             # The set of available languages was given in configure.in.
33822             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33823           fi
33824           # Compute POFILES
33825           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33826           # Compute UPDATEPOFILES
33827           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33828           # Compute DUMMYPOFILES
33829           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33830           # Compute GMOFILES
33831           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33832           case "$ac_given_srcdir" in
33833             .) srcdirpre= ;;
33834             *) srcdirpre='$(srcdir)/' ;;
33835           esac
33836           POFILES=
33837           UPDATEPOFILES=
33838           DUMMYPOFILES=
33839           GMOFILES=
33840           for lang in $ALL_LINGUAS; do
33841             POFILES="$POFILES $srcdirpre$lang.po"
33842             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33843             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33844             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33845           done
33846           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33847           # environment variable.
33848           INST_LINGUAS=
33849           if test -n "$ALL_LINGUAS"; then
33850             for presentlang in $ALL_LINGUAS; do
33851               useit=no
33852               if test "%UNSET%" != "$LINGUAS"; then
33853                 desiredlanguages="$LINGUAS"
33854               else
33855                 desiredlanguages="$ALL_LINGUAS"
33856               fi
33857               for desiredlang in $desiredlanguages; do
33858                 # Use the presentlang catalog if desiredlang is
33859                 #   a. equal to presentlang, or
33860                 #   b. a variant of presentlang (because in this case,
33861                 #      presentlang can be used as a fallback for messages
33862                 #      which are not translated in the desiredlang catalog).
33863                 case "$desiredlang" in
33864                   "$presentlang"*) useit=yes;;
33865                 esac
33866               done
33867               if test $useit = yes; then
33868                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33869               fi
33870             done
33871           fi
33872           CATALOGS=
33873           if test -n "$INST_LINGUAS"; then
33874             for lang in $INST_LINGUAS; do
33875               CATALOGS="$CATALOGS $lang.gmo"
33876             done
33877           fi
33878           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33879           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"
33880           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33881             if test -f "$f"; then
33882               case "$f" in
33883                 *.orig | *.bak | *~) ;;
33884                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33885               esac
33886             fi
33887           done
33888         fi
33889         ;;
33890       esac
33891     done ;;
33892     "default":C)
33893  ;;
33894
33895   esac
33896 done # for ac_tag
33897
33898
33899 as_fn_exit 0
33900 _ACEOF
33901 ac_clean_files=$ac_clean_files_save
33902
33903 test $ac_write_fail = 0 ||
33904   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33905
33906
33907 # configure is writing to config.log, and then calls config.status.
33908 # config.status does its own redirection, appending to config.log.
33909 # Unfortunately, on DOS this fails, as config.log is still kept open
33910 # by configure, so config.status won't be able to write to it; its
33911 # output is simply discarded.  So we exec the FD to /dev/null,
33912 # effectively closing config.log, so it can be properly (re)opened and
33913 # appended to by config.status.  When coming back to configure, we
33914 # need to make the FD available again.
33915 if test "$no_create" != yes; then
33916   ac_cs_success=:
33917   ac_config_status_args=
33918   test "$silent" = yes &&
33919     ac_config_status_args="$ac_config_status_args --quiet"
33920   exec 5>/dev/null
33921   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33922   exec 5>>config.log
33923   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33924   # would make configure fail if this is the last instruction.
33925   $ac_cs_success || as_fn_exit 1
33926 fi
33927 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33928   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33929 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33930 fi
33931
33932
33933 if test "${support_bat}" = "yes" ; then
33934    if test "x$QMAKE" = "xnone"; then
33935       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33936    fi
33937
33938    cd src/qt-console
33939    echo "Creating bat Makefile"
33940    touch bat
33941    chmod 755 bat
33942    rm -f Makefile
33943    rm -rf moc32 obj32
33944    $QMAKE
33945    ${MAKE:-make} clean
33946    cd ${BUILD_DIR}
33947 fi
33948
33949 if test X"$GCC" = "Xyes" ; then
33950   echo "Doing make of dependencies"
33951   ${MAKE:-make} depend
33952 fi
33953
33954 cd src/qt-console
33955 chmod 755 install_conf_file build-depkgs-qt-console
33956 cd ${BUILD_DIR}
33957
33958 cd scripts
33959 chmod 755 bacula btraceback mtx-changer
33960 chmod 755 dvd-handler dvd-simulator
33961 chmod 755 bconsole disk-changer devel_bacula logrotate
33962 cd ..
33963
33964 c=updatedb
33965 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33966 chmod 755 $c/update_postgresql_tables_10_to_11
33967 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33968 chmod 755 $c/update_postgresql_tables_11_to_12
33969
33970
33971 c=src/cats
33972
33973 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33974 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33975
33976 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33977 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33978
33979 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33980 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33981
33982 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33983 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33984
33985 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33986 chmod 755 $c/sqlite
33987 chmod 755 $c/mysql
33988
33989 chmod 755 $c/install-default-backend
33990
33991 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33992    largefile_support="yes"
33993 fi
33994
33995 if test X"$GCC" = "Xyes" ; then
33996                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33997    if test "x${CCVERSION}" = "x" ; then
33998       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33999    fi
34000    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
34001    if test x"${CXXVERSION}" = x ; then
34002       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
34003    fi
34004 fi
34005
34006 # clean up any old junk
34007 echo " "
34008 echo "Cleaning up"
34009 echo " "
34010 ${MAKE:-make} clean
34011
34012 echo "
34013 Configuration on `date`:
34014
34015    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
34016    Bacula version:           ${BACULA} ${VERSION} (${DATE})
34017    Source code location:     ${srcdir}
34018    Install binaries:         ${sbindir}
34019    Install libraries:        ${libdir}
34020    Install config files:     ${sysconfdir}
34021    Scripts directory:        ${scriptdir}
34022    Archive directory:        ${archivedir}
34023    Working directory:        ${working_dir}
34024    PID directory:            ${piddir}
34025    Subsys directory:         ${subsysdir}
34026    Man directory:            ${mandir}
34027    Data directory:           ${datarootdir}
34028    Plugin directory:         ${plugindir}
34029    C Compiler:               ${CC} ${CCVERSION}
34030    C++ Compiler:             ${CXX} ${CXXVERSION}
34031    Compiler flags:           ${WCFLAGS} ${CFLAGS}
34032    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
34033    Libraries:                ${LIBS}
34034    Statically Linked Tools:  ${support_static_tools}
34035    Statically Linked FD:     ${support_static_fd}
34036    Statically Linked SD:     ${support_static_sd}
34037    Statically Linked DIR:    ${support_static_dir}
34038    Statically Linked CONS:   ${support_static_cons}
34039    Database backends:        ${db_backends}
34040    Database port:            ${db_port}
34041    Database name:            ${db_name}
34042    Database user:            ${db_user}
34043    Database SSL options:     ${db_ssl_options}
34044
34045    Job Output Email:         ${job_email}
34046    Traceback Email:          ${dump_email}
34047    SMTP Host Address:        ${smtp_host}
34048
34049    Director Port:            ${dir_port}
34050    File daemon Port:         ${fd_port}
34051    Storage daemon Port:      ${sd_port}
34052
34053    Director User:            ${dir_user}
34054    Director Group:           ${dir_group}
34055    Storage Daemon User:      ${sd_user}
34056    Storage DaemonGroup:      ${sd_group}
34057    File Daemon User:         ${fd_user}
34058    File Daemon Group:        ${fd_group}
34059
34060    Large file support:       $largefile_support
34061    Bacula conio support:     ${got_conio} ${CONS_LIBS}
34062    readline support:         ${got_readline} ${PRTREADLINE_SRC}
34063    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
34064    TLS support:              ${support_tls}
34065    Encryption support:       ${support_crypto}
34066    ZLIB support:             ${have_zlib}
34067    LZO support:              ${have_lzo}
34068    enable-smartalloc:        ${support_smartalloc}
34069    enable-lockmgr:           ${support_lockmgr}
34070    bat support:              ${support_bat}
34071    client-only:              ${build_client_only}
34072    build-dird:               ${build_dird}
34073    build-stored:             ${build_stored}
34074    Plugin support:           ${have_plugins}
34075    AFS support:              ${have_afs}
34076    ACL support:              ${have_acl}
34077    XATTR support:            ${have_xattr}
34078    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
34079    Batch insert enabled:     ${batch_insert_db_backends}
34080
34081   " > config.out
34082
34083 # create a small shell script useful for support with
34084 # configure options and config.out info
34085 cat > scripts/bacula_config << EOF
34086 #!/bin/sh
34087 cat << __EOC__
34088 $ $0 $ac_configure_args
34089 EOF
34090 cat config.out >> scripts/bacula_config
34091 echo __EOC__ >> scripts/bacula_config
34092 chmod 755 scripts/bacula_config
34093
34094 cat config.out