]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak recompile configure.in
[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 7.4.4.
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='7.4.4'
591 PACKAGE_STRING='bacula 7.4.4'
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 LIBOBJS
657 X_EXTRA_LIBS
658 X_LIBS
659 X_PRE_LIBS
660 X_CFLAGS
661 XMKMF
662 GETCONF
663 SHARED_CATALOG_TARGETS
664 DEFAULT_DB_TYPE
665 DB_LIBS
666 DB_BACKENDS
667 uncomment_dbi
668 SQLITE_BINDIR
669 SQLITE_INCLUDE
670 SQLITE_LIBS
671 MYSQL_BINDIR
672 MYSQL_INCLUDE
673 MYSQL_LIBS
674 POSTGRESQL_BINDIR
675 POSTGRESQL_INCLUDE
676 POSTGRESQL_LIBS
677 SBINPERM
678 fd_group
679 fd_user
680 sd_group
681 sd_user
682 dir_group
683 dir_user
684 db_ssl_options
685 db_port
686 db_password
687 db_user
688 db_name
689 mon_sd_password
690 mon_fd_password
691 mon_dir_password
692 sd_password
693 fd_password
694 dir_password
695 sd_port
696 fd_port
697 dir_port
698 baseport
699 subsysdir
700 piddir
701 smtp_host
702 job_email
703 dump_email
704 plugindir
705 logdir
706 bsrdir
707 scriptdir
708 hostname
709 basename
710 archivedir
711 working_dir
712 OPENSSL_INC
713 OPENSSL_LIBS
714 READLINE_SRC
715 CONS_LDFLAGS
716 CONS_LIBS
717 CONS_SRC
718 CONS_OBJ
719 CONS_INC
720 STORED_DIR
721 DIR_TOOLS
722 DIRD_DIR
723 ALL_DIRS
724 STATIC_CONS
725 STATIC_DIR
726 STATIC_SD
727 STATIC_FD
728 TTOOL_LDFLAGS
729 QWT
730 QWT_LIB
731 QWT_LDFLAGS
732 QWT_INC
733 BAT_DIR
734 INTL_LIBTOOL_SUFFIX_PREFIX
735 INTLOBJS
736 GENCAT
737 INSTOBJEXT
738 DATADIRNAME
739 CATOBJEXT
740 USE_INCLUDED_LIBINTL
741 BUILD_INCLUDED_LIBINTL
742 INTLBISON
743 HAVE_WPRINTF
744 HAVE_SNPRINTF
745 HAVE_ASPRINTF
746 HAVE_POSIX_PRINTF
747 GLIBC21
748 ALLOCA
749 GLIBC2
750 POSUB
751 LTLIBINTL
752 LIBINTL
753 INTLLIBS
754 LTLIBICONV
755 LIBICONV
756 INTL_MACOSX_LIBS
757 MSGMERGE
758 XGETTEXT
759 GMSGFMT
760 MSGFMT
761 USE_NLS
762 MKINSTALLDIRS
763 SET_MAKE
764 HAVE_KFREEBSD_OS_FALSE
765 HAVE_KFREEBSD_OS_TRUE
766 HAVE_DARWIN_OS_FALSE
767 HAVE_DARWIN_OS_TRUE
768 HAVE_IRIX_OS_FALSE
769 HAVE_IRIX_OS_TRUE
770 HAVE_SGI_OS_FALSE
771 HAVE_SGI_OS_TRUE
772 HAVE_BSDI_OS_FALSE
773 HAVE_BSDI_OS_TRUE
774 HAVE_OPENBSD_OS_FALSE
775 HAVE_OPENBSD_OS_TRUE
776 HAVE_NETBSD_OS_FALSE
777 HAVE_NETBSD_OS_TRUE
778 HAVE_FREEBSD_OS_FALSE
779 HAVE_FREEBSD_OS_TRUE
780 HAVE_LINUX_OS_FALSE
781 HAVE_LINUX_OS_TRUE
782 HAVE_HPUX_OS_FALSE
783 HAVE_HPUX_OS_TRUE
784 HAVE_AIX_OS_FALSE
785 HAVE_AIX_OS_TRUE
786 HAVE_OSF1_OS_FALSE
787 HAVE_OSF1_OS_TRUE
788 HAVE_HURD_OS_FALSE
789 HAVE_HURD_OS_TRUE
790 HAVE_SUN_OS_FALSE
791 HAVE_SUN_OS_TRUE
792 INCLUDE_UNINSTALL_TARGET
793 INCLUDE_INSTALL_TARGET
794 FD_PLUGIN_DIR
795 QMAKE_LIBTOOL
796 LIBTOOL_CLEAN_TARGET
797 LIBTOOL_UNINSTALL_TARGET
798 LIBTOOL_INSTALL_TARGET
799 DEFAULT_SHARED_OBJECT_TYPE
800 DEFAULT_ARCHIVE_TYPE
801 DEFAULT_OBJECT_TYPE
802 LIBADD_DL
803 LT_DLPREOPEN
804 LIBADD_DLD_LINK
805 LIBADD_SHL_LOAD
806 LIBADD_DLOPEN
807 LT_DLLOADERS
808 CXXCPP
809 OTOOL64
810 OTOOL
811 LIPO
812 NMEDIT
813 DSYMUTIL
814 MANIFEST_TOOL
815 RANLIB
816 STRIP
817 ac_ct_AR
818 DLLTOOL
819 OBJDUMP
820 LN_S
821 NM
822 ac_ct_DUMPBIN
823 DUMPBIN
824 LD
825 FGREP
826 host_os
827 host_vendor
828 host_cpu
829 host
830 build_os
831 build_vendor
832 build_cpu
833 build
834 LIBTOOL
835 LOCAL_DEFS
836 LOCAL_LDFLAGS
837 LOCAL_CFLAGS
838 LOCAL_LIBS
839 MAKE_SHELL
840 ARFLAGS
841 AWK
842 PIDOF
843 GMAKE
844 QMAKE
845 PKGCONFIG
846 DVDRWFORMAT
847 DVDRWMEDIAINFO
848 GROWISOFS
849 PYTHON
850 MKISOFS
851 DD
852 MTX
853 OPENSSL
854 AR
855 TBL
856 CMP
857 ECHO
858 SED
859 CP
860 REMOVE
861 MV
862 INSTALL_DATA
863 INSTALL_SCRIPT
864 INSTALL_PROGRAM
865 EGREP
866 GREP
867 CPP
868 ac_ct_CXX
869 CXXFLAGS
870 CXX
871 OBJEXT
872 EXEEXT
873 ac_ct_CC
874 CPPFLAGS
875 LDFLAGS
876 CFLAGS
877 CC
878 LIBBACFIND_LT_RELEASE
879 LIBBACCATS_LT_RELEASE
880 LIBBACSQL_LT_RELEASE
881 LIBBACCFG_LT_RELEASE
882 LIBBAC_LT_RELEASE
883 BQT4_VERSION
884 DEPKGS_VERSION
885 DEPKGS_QT_VERSION
886 BDB_VERSION
887 post_host
888 BACULA
889 LSMDATE
890 DATE
891 VERSION
892 FALSEPRG
893 TRUEPRG
894 TOP_DIR
895 BUILD_DIR
896 target_alias
897 host_alias
898 build_alias
899 LIBS
900 ECHO_T
901 ECHO_N
902 ECHO_C
903 DEFS
904 mandir
905 localedir
906 libdir
907 psdir
908 pdfdir
909 dvidir
910 htmldir
911 infodir
912 docdir
913 oldincludedir
914 includedir
915 localstatedir
916 sharedstatedir
917 sysconfdir
918 datadir
919 datarootdir
920 libexecdir
921 sbindir
922 bindir
923 program_transform_name
924 prefix
925 exec_prefix
926 PACKAGE_URL
927 PACKAGE_BUGREPORT
928 PACKAGE_STRING
929 PACKAGE_VERSION
930 PACKAGE_TARNAME
931 PACKAGE_NAME
932 PATH_SEPARATOR
933 SHELL'
934 ac_subst_files='MCOMMON'
935 ac_user_opts='
936 enable_option_checking
937 enable_libtool
938 enable_shared
939 enable_static
940 with_pic
941 enable_fast_install
942 with_gnu_ld
943 with_sysroot
944 enable_libtool_lock
945 enable_includes
946 enable_nls
947 enable_rpath
948 with_libiconv_prefix
949 with_libintl_prefix
950 with_included_gettext
951 enable_bat
952 enable_smartalloc
953 enable_lockmgr
954 enable_static_tools
955 enable_static_fd
956 enable_static_sd
957 enable_static_dir
958 enable_static_cons
959 enable_client_only
960 enable_build_dird
961 enable_build_stored
962 enable_conio
963 enable_ipv6
964 enable_readline
965 with_readline
966 with_tcp_wrappers
967 with_openssl
968 with_working_dir
969 with_archivedir
970 with_basename
971 with_hostname
972 with_scriptdir
973 with_bsrdir
974 with_logdir
975 with_plugindir
976 with_dump_email
977 with_job_email
978 with_smtp_host
979 with_pid_dir
980 with_subsys_dir
981 with_baseport
982 with_dir_password
983 with_fd_password
984 with_sd_password
985 with_mon_dir_password
986 with_mon_fd_password
987 with_mon_sd_password
988 with_db_name
989 with_db_user
990 with_db_password
991 with_db_port
992 with_db_ssl_options
993 with_dir_user
994 with_dir_group
995 with_sd_user
996 with_sd_group
997 with_fd_user
998 with_fd_group
999 with_sbin_perm
1000 enable_batch_insert
1001 with_postgresql
1002 with_mysql
1003 with_embedded_mysql
1004 with_sqlite3
1005 enable_largefile
1006 with_x
1007 enable_afs
1008 with_afsdir
1009 enable_lzo
1010 with_lzo
1011 enable_acl
1012 enable_xattr
1013 with_systemd
1014 '
1015       ac_precious_vars='build_alias
1016 host_alias
1017 target_alias
1018 CC
1019 CFLAGS
1020 LDFLAGS
1021 LIBS
1022 CPPFLAGS
1023 CXX
1024 CXXFLAGS
1025 CCC
1026 CPP
1027 CXXCPP
1028 XMKMF'
1029
1030
1031 # Initialize some variables set by options.
1032 ac_init_help=
1033 ac_init_version=false
1034 ac_unrecognized_opts=
1035 ac_unrecognized_sep=
1036 # The variables have the same names as the options, with
1037 # dashes changed to underlines.
1038 cache_file=/dev/null
1039 exec_prefix=NONE
1040 no_create=
1041 no_recursion=
1042 prefix=NONE
1043 program_prefix=NONE
1044 program_suffix=NONE
1045 program_transform_name=s,x,x,
1046 silent=
1047 site=
1048 srcdir=
1049 verbose=
1050 x_includes=NONE
1051 x_libraries=NONE
1052
1053 # Installation directory options.
1054 # These are left unexpanded so users can "make install exec_prefix=/foo"
1055 # and all the variables that are supposed to be based on exec_prefix
1056 # by default will actually change.
1057 # Use braces instead of parens because sh, perl, etc. also accept them.
1058 # (The list follows the same order as the GNU Coding Standards.)
1059 bindir='${exec_prefix}/bin'
1060 sbindir='${exec_prefix}/sbin'
1061 libexecdir='${exec_prefix}/libexec'
1062 datarootdir='${prefix}/share'
1063 datadir='${datarootdir}'
1064 sysconfdir='${prefix}/etc'
1065 sharedstatedir='${prefix}/com'
1066 localstatedir='${prefix}/var'
1067 includedir='${prefix}/include'
1068 oldincludedir='/usr/include'
1069 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1070 infodir='${datarootdir}/info'
1071 htmldir='${docdir}'
1072 dvidir='${docdir}'
1073 pdfdir='${docdir}'
1074 psdir='${docdir}'
1075 libdir='${exec_prefix}/lib'
1076 localedir='${datarootdir}/locale'
1077 mandir='${datarootdir}/man'
1078
1079 ac_prev=
1080 ac_dashdash=
1081 for ac_option
1082 do
1083   # If the previous option needs an argument, assign it.
1084   if test -n "$ac_prev"; then
1085     eval $ac_prev=\$ac_option
1086     ac_prev=
1087     continue
1088   fi
1089
1090   case $ac_option in
1091   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1092   *=)   ac_optarg= ;;
1093   *)    ac_optarg=yes ;;
1094   esac
1095
1096   # Accept the important Cygnus configure options, so we can diagnose typos.
1097
1098   case $ac_dashdash$ac_option in
1099   --)
1100     ac_dashdash=yes ;;
1101
1102   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1103     ac_prev=bindir ;;
1104   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1105     bindir=$ac_optarg ;;
1106
1107   -build | --build | --buil | --bui | --bu)
1108     ac_prev=build_alias ;;
1109   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1110     build_alias=$ac_optarg ;;
1111
1112   -cache-file | --cache-file | --cache-fil | --cache-fi \
1113   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1114     ac_prev=cache_file ;;
1115   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1116   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1117     cache_file=$ac_optarg ;;
1118
1119   --config-cache | -C)
1120     cache_file=config.cache ;;
1121
1122   -datadir | --datadir | --datadi | --datad)
1123     ac_prev=datadir ;;
1124   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1125     datadir=$ac_optarg ;;
1126
1127   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1128   | --dataroo | --dataro | --datar)
1129     ac_prev=datarootdir ;;
1130   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1131   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1132     datarootdir=$ac_optarg ;;
1133
1134   -disable-* | --disable-*)
1135     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138       as_fn_error $? "invalid feature name: $ac_useropt"
1139     ac_useropt_orig=$ac_useropt
1140     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141     case $ac_user_opts in
1142       *"
1143 "enable_$ac_useropt"
1144 "*) ;;
1145       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1146          ac_unrecognized_sep=', ';;
1147     esac
1148     eval enable_$ac_useropt=no ;;
1149
1150   -docdir | --docdir | --docdi | --doc | --do)
1151     ac_prev=docdir ;;
1152   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1153     docdir=$ac_optarg ;;
1154
1155   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1156     ac_prev=dvidir ;;
1157   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1158     dvidir=$ac_optarg ;;
1159
1160   -enable-* | --enable-*)
1161     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1162     # Reject names that are not valid shell variable names.
1163     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164       as_fn_error $? "invalid feature name: $ac_useropt"
1165     ac_useropt_orig=$ac_useropt
1166     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167     case $ac_user_opts in
1168       *"
1169 "enable_$ac_useropt"
1170 "*) ;;
1171       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1172          ac_unrecognized_sep=', ';;
1173     esac
1174     eval enable_$ac_useropt=\$ac_optarg ;;
1175
1176   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1177   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1178   | --exec | --exe | --ex)
1179     ac_prev=exec_prefix ;;
1180   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1181   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1182   | --exec=* | --exe=* | --ex=*)
1183     exec_prefix=$ac_optarg ;;
1184
1185   -gas | --gas | --ga | --g)
1186     # Obsolete; use --with-gas.
1187     with_gas=yes ;;
1188
1189   -help | --help | --hel | --he | -h)
1190     ac_init_help=long ;;
1191   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1192     ac_init_help=recursive ;;
1193   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1194     ac_init_help=short ;;
1195
1196   -host | --host | --hos | --ho)
1197     ac_prev=host_alias ;;
1198   -host=* | --host=* | --hos=* | --ho=*)
1199     host_alias=$ac_optarg ;;
1200
1201   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1202     ac_prev=htmldir ;;
1203   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1204   | --ht=*)
1205     htmldir=$ac_optarg ;;
1206
1207   -includedir | --includedir | --includedi | --included | --include \
1208   | --includ | --inclu | --incl | --inc)
1209     ac_prev=includedir ;;
1210   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1211   | --includ=* | --inclu=* | --incl=* | --inc=*)
1212     includedir=$ac_optarg ;;
1213
1214   -infodir | --infodir | --infodi | --infod | --info | --inf)
1215     ac_prev=infodir ;;
1216   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1217     infodir=$ac_optarg ;;
1218
1219   -libdir | --libdir | --libdi | --libd)
1220     ac_prev=libdir ;;
1221   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1222     libdir=$ac_optarg ;;
1223
1224   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1225   | --libexe | --libex | --libe)
1226     ac_prev=libexecdir ;;
1227   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1228   | --libexe=* | --libex=* | --libe=*)
1229     libexecdir=$ac_optarg ;;
1230
1231   -localedir | --localedir | --localedi | --localed | --locale)
1232     ac_prev=localedir ;;
1233   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1234     localedir=$ac_optarg ;;
1235
1236   -localstatedir | --localstatedir | --localstatedi | --localstated \
1237   | --localstate | --localstat | --localsta | --localst | --locals)
1238     ac_prev=localstatedir ;;
1239   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1240   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1241     localstatedir=$ac_optarg ;;
1242
1243   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1244     ac_prev=mandir ;;
1245   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1246     mandir=$ac_optarg ;;
1247
1248   -nfp | --nfp | --nf)
1249     # Obsolete; use --without-fp.
1250     with_fp=no ;;
1251
1252   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1253   | --no-cr | --no-c | -n)
1254     no_create=yes ;;
1255
1256   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1257   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1258     no_recursion=yes ;;
1259
1260   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1261   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1262   | --oldin | --oldi | --old | --ol | --o)
1263     ac_prev=oldincludedir ;;
1264   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1265   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1266   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1267     oldincludedir=$ac_optarg ;;
1268
1269   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1270     ac_prev=prefix ;;
1271   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1272     prefix=$ac_optarg ;;
1273
1274   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1275   | --program-pre | --program-pr | --program-p)
1276     ac_prev=program_prefix ;;
1277   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1278   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1279     program_prefix=$ac_optarg ;;
1280
1281   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1282   | --program-suf | --program-su | --program-s)
1283     ac_prev=program_suffix ;;
1284   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1285   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1286     program_suffix=$ac_optarg ;;
1287
1288   -program-transform-name | --program-transform-name \
1289   | --program-transform-nam | --program-transform-na \
1290   | --program-transform-n | --program-transform- \
1291   | --program-transform | --program-transfor \
1292   | --program-transfo | --program-transf \
1293   | --program-trans | --program-tran \
1294   | --progr-tra | --program-tr | --program-t)
1295     ac_prev=program_transform_name ;;
1296   -program-transform-name=* | --program-transform-name=* \
1297   | --program-transform-nam=* | --program-transform-na=* \
1298   | --program-transform-n=* | --program-transform-=* \
1299   | --program-transform=* | --program-transfor=* \
1300   | --program-transfo=* | --program-transf=* \
1301   | --program-trans=* | --program-tran=* \
1302   | --progr-tra=* | --program-tr=* | --program-t=*)
1303     program_transform_name=$ac_optarg ;;
1304
1305   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1306     ac_prev=pdfdir ;;
1307   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1308     pdfdir=$ac_optarg ;;
1309
1310   -psdir | --psdir | --psdi | --psd | --ps)
1311     ac_prev=psdir ;;
1312   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1313     psdir=$ac_optarg ;;
1314
1315   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316   | -silent | --silent | --silen | --sile | --sil)
1317     silent=yes ;;
1318
1319   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1320     ac_prev=sbindir ;;
1321   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1322   | --sbi=* | --sb=*)
1323     sbindir=$ac_optarg ;;
1324
1325   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1326   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1327   | --sharedst | --shareds | --shared | --share | --shar \
1328   | --sha | --sh)
1329     ac_prev=sharedstatedir ;;
1330   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1331   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1332   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1333   | --sha=* | --sh=*)
1334     sharedstatedir=$ac_optarg ;;
1335
1336   -site | --site | --sit)
1337     ac_prev=site ;;
1338   -site=* | --site=* | --sit=*)
1339     site=$ac_optarg ;;
1340
1341   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1342     ac_prev=srcdir ;;
1343   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1344     srcdir=$ac_optarg ;;
1345
1346   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1347   | --syscon | --sysco | --sysc | --sys | --sy)
1348     ac_prev=sysconfdir ;;
1349   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1350   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1351     sysconfdir=$ac_optarg ;;
1352
1353   -target | --target | --targe | --targ | --tar | --ta | --t)
1354     ac_prev=target_alias ;;
1355   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1356     target_alias=$ac_optarg ;;
1357
1358   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1359     verbose=yes ;;
1360
1361   -version | --version | --versio | --versi | --vers | -V)
1362     ac_init_version=: ;;
1363
1364   -with-* | --with-*)
1365     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1366     # Reject names that are not valid shell variable names.
1367     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368       as_fn_error $? "invalid package name: $ac_useropt"
1369     ac_useropt_orig=$ac_useropt
1370     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371     case $ac_user_opts in
1372       *"
1373 "with_$ac_useropt"
1374 "*) ;;
1375       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1376          ac_unrecognized_sep=', ';;
1377     esac
1378     eval with_$ac_useropt=\$ac_optarg ;;
1379
1380   -without-* | --without-*)
1381     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1384       as_fn_error $? "invalid package name: $ac_useropt"
1385     ac_useropt_orig=$ac_useropt
1386     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387     case $ac_user_opts in
1388       *"
1389 "with_$ac_useropt"
1390 "*) ;;
1391       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1392          ac_unrecognized_sep=', ';;
1393     esac
1394     eval with_$ac_useropt=no ;;
1395
1396   --x)
1397     # Obsolete; use --with-x.
1398     with_x=yes ;;
1399
1400   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401   | --x-incl | --x-inc | --x-in | --x-i)
1402     ac_prev=x_includes ;;
1403   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405     x_includes=$ac_optarg ;;
1406
1407   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409     ac_prev=x_libraries ;;
1410   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412     x_libraries=$ac_optarg ;;
1413
1414   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1415 Try \`$0 --help' for more information"
1416     ;;
1417
1418   *=*)
1419     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1420     # Reject names that are not valid shell variable names.
1421     case $ac_envvar in #(
1422       '' | [0-9]* | *[!_$as_cr_alnum]* )
1423       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1424     esac
1425     eval $ac_envvar=\$ac_optarg
1426     export $ac_envvar ;;
1427
1428   *)
1429     # FIXME: should be removed in autoconf 3.0.
1430     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1434     ;;
1435
1436   esac
1437 done
1438
1439 if test -n "$ac_prev"; then
1440   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441   as_fn_error $? "missing argument to $ac_option"
1442 fi
1443
1444 if test -n "$ac_unrecognized_opts"; then
1445   case $enable_option_checking in
1446     no) ;;
1447     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1448     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1449   esac
1450 fi
1451
1452 # Check all directory arguments for consistency.
1453 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1454                 datadir sysconfdir sharedstatedir localstatedir includedir \
1455                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1456                 libdir localedir mandir
1457 do
1458   eval ac_val=\$$ac_var
1459   # Remove trailing slashes.
1460   case $ac_val in
1461     */ )
1462       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1463       eval $ac_var=\$ac_val;;
1464   esac
1465   # Be sure to have absolute directory names.
1466   case $ac_val in
1467     [\\/$]* | ?:[\\/]* )  continue;;
1468     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469   esac
1470   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1471 done
1472
1473 # There might be people who depend on the old broken behavior: `$host'
1474 # used to hold the argument of --host etc.
1475 # FIXME: To remove some day.
1476 build=$build_alias
1477 host=$host_alias
1478 target=$target_alias
1479
1480 # FIXME: To remove some day.
1481 if test "x$host_alias" != x; then
1482   if test "x$build_alias" = x; then
1483     cross_compiling=maybe
1484   elif test "x$build_alias" != "x$host_alias"; then
1485     cross_compiling=yes
1486   fi
1487 fi
1488
1489 ac_tool_prefix=
1490 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1491
1492 test "$silent" = yes && exec 6>/dev/null
1493
1494
1495 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1496 ac_ls_di=`ls -di .` &&
1497 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1498   as_fn_error $? "working directory cannot be determined"
1499 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1500   as_fn_error $? "pwd does not report name of working directory"
1501
1502
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505   ac_srcdir_defaulted=yes
1506   # Try the directory containing this script, then the parent directory.
1507   ac_confdir=`$as_dirname -- "$as_myself" ||
1508 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509          X"$as_myself" : 'X\(//\)[^/]' \| \
1510          X"$as_myself" : 'X\(//\)$' \| \
1511          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1512 $as_echo X"$as_myself" |
1513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)[^/].*/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\/\)$/{
1522             s//\1/
1523             q
1524           }
1525           /^X\(\/\).*/{
1526             s//\1/
1527             q
1528           }
1529           s/.*/./; q'`
1530   srcdir=$ac_confdir
1531   if test ! -r "$srcdir/$ac_unique_file"; then
1532     srcdir=..
1533   fi
1534 else
1535   ac_srcdir_defaulted=no
1536 fi
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1540 fi
1541 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1542 ac_abs_confdir=`(
1543         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1544         pwd)`
1545 # When building in place, set srcdir=.
1546 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547   srcdir=.
1548 fi
1549 # Remove unnecessary trailing slashes from srcdir.
1550 # Double slashes in file names in object file debugging info
1551 # mess up M-x gdb in Emacs.
1552 case $srcdir in
1553 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1554 esac
1555 for ac_var in $ac_precious_vars; do
1556   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_env_${ac_var}_value=\$${ac_var}
1558   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1559   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1560 done
1561
1562 #
1563 # Report the --help message.
1564 #
1565 if test "$ac_init_help" = "long"; then
1566   # Omit some internal or obsolete options to make the list less imposing.
1567   # This message is too long to be a string in the A/UX 3.1 sh.
1568   cat <<_ACEOF
1569 \`configure' configures bacula 7.4.4 to adapt to many kinds of systems.
1570
1571 Usage: $0 [OPTION]... [VAR=VALUE]...
1572
1573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1574 VAR=VALUE.  See below for descriptions of some of the useful variables.
1575
1576 Defaults for the options are specified in brackets.
1577
1578 Configuration:
1579   -h, --help              display this help and exit
1580       --help=short        display options specific to this package
1581       --help=recursive    display the short help of all the included packages
1582   -V, --version           display version information and exit
1583   -q, --quiet, --silent   do not print \`checking ...' messages
1584       --cache-file=FILE   cache test results in FILE [disabled]
1585   -C, --config-cache      alias for \`--cache-file=config.cache'
1586   -n, --no-create         do not create output files
1587       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1588
1589 Installation directories:
1590   --prefix=PREFIX         install architecture-independent files in PREFIX
1591                           [$ac_default_prefix]
1592   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1593                           [PREFIX]
1594
1595 By default, \`make install' will install all the files in
1596 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1597 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1598 for instance \`--prefix=\$HOME'.
1599
1600 For better control, use the options below.
1601
1602 Fine tuning of the installation directories:
1603   --bindir=DIR            user executables [EPREFIX/bin]
1604   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1605   --libexecdir=DIR        program executables [EPREFIX/libexec]
1606   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1607   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1608   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1609   --libdir=DIR            object code libraries [EPREFIX/lib]
1610   --includedir=DIR        C header files [PREFIX/include]
1611   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1612   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1613   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1614   --infodir=DIR           info documentation [DATAROOTDIR/info]
1615   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1616   --mandir=DIR            man documentation [DATAROOTDIR/man]
1617   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1618   --htmldir=DIR           html documentation [DOCDIR]
1619   --dvidir=DIR            dvi documentation [DOCDIR]
1620   --pdfdir=DIR            pdf documentation [DOCDIR]
1621   --psdir=DIR             ps documentation [DOCDIR]
1622 _ACEOF
1623
1624   cat <<\_ACEOF
1625
1626 X features:
1627   --x-includes=DIR    X include files are in DIR
1628   --x-libraries=DIR   X library files are in DIR
1629
1630 System types:
1631   --build=BUILD     configure for building on BUILD [guessed]
1632   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1633 _ACEOF
1634 fi
1635
1636 if test -n "$ac_init_help"; then
1637   case $ac_init_help in
1638      short | recursive ) echo "Configuration of bacula 7.4.4:";;
1639    esac
1640   cat <<\_ACEOF
1641
1642 Optional Features:
1643   --disable-option-checking  ignore unrecognized --enable/--with options
1644   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1645   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1646   --enable-libtool        enable building using GNU libtool [default=yes]
1647   --enable-shared[=PKGS]  build shared libraries [default=yes]
1648   --enable-static[=PKGS]  build static libraries [default=no]
1649   --enable-fast-install[=PKGS]
1650                           optimize for fast installation [default=yes]
1651   --disable-libtool-lock  avoid locking (might break parallel builds)
1652   --enable-includes       enable installing of include files [default=no]
1653   --disable-nls           do not use Native Language Support
1654   --disable-rpath         do not hardcode runtime library paths
1655   --enable-bat            enable build of bat Qt4 GUI [default=no]
1656   --enable-smartalloc     enable smartalloc debugging support [default=no]
1657   --enable-lockmgr        enable lock manager support [default=no]
1658   --enable-static-tools   enable static tape tools [default=no]
1659   --enable-static-fd      enable static File daemon [default=no]
1660   --enable-static-sd      enable static Storage daemon [default=no]
1661   --enable-static-dir     enable static Director [default=no]
1662   --enable-static-cons    enable static Console [default=no]
1663   --enable-client-only    build client (File daemon) only [default=no]
1664   --enable-build-dird     enable building of dird (Director) [default=yes]
1665   --enable-build-stored   enable building of stored (Storage daemon)
1666                           [default=yes]
1667   --disable-conio         disable conio support [default=no]
1668   --enable-ipv6           enable ipv6 support [default=yes]
1669   --disable-readline      disable readline support [default=yes]
1670   --enable-batch-insert   enable the DB batch insert code [default=yes]
1671   --disable-largefile     omit support for large files
1672   --disable-afs           disable afs support [default=auto]
1673   --disable-lzo           disable lzo support [default=yes]
1674   --disable-acl           disable acl support [default=auto]
1675   --disable-xattr         disable xattr support [default=auto]
1676
1677 Optional Packages:
1678   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1679   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1680   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1681                           both]
1682   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1683   --with-sysroot=DIR Search for dependent libraries within DIR
1684                         (or the compiler's sysroot if not specified).
1685   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1686   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1687   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1688   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1689   --without-libintl-prefix     don't search for libintl in includedir and libdir
1690   --with-included-gettext use the GNU gettext library included here
1691   --with-readline[=DIR]   specify readline library directory
1692   --with-tcp-wrappers[=DIR]
1693                           enable tcpwrappers support
1694   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1695   --with-working-dir=PATH specify path of Bacula working directory
1696   --with-archivedir=PATH  specify path of SD archive directory
1697   --with-basename=RESNAME specify base resource name for daemons
1698   --with-hostname=RESNAME specify host name for daemons
1699   --with-scriptdir=PATH   specify path of Bacula scripts directory
1700   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1701   --with-logdir=PATH      specify path of Bacula logs directory
1702   --with-plugindir=PATH   specify path of Bacula plugins directory
1703   --with-dump-email=EMAIL dump email address
1704   --with-job-email=EMAIL  job output email address
1705   --with-smtp-host=HOST   SMTP mail host address
1706   --with-pid-dir=PATH     specify location of Bacula pid files
1707   --with-subsys-dir=PATH  specify location of Bacula subsys file
1708   --with-baseport=PORT    specify base port address for daemons
1709   --with-dir-password=PASSWORD
1710                           specify Director's password
1711   --with-fd-password=PASSWORD
1712                           specify Client's password
1713   --with-sd-password=PASSWORD
1714                           specify Storage daemon's password
1715   --with-mon-dir-password=PASSWORD
1716                           specify Director's password used by the monitor
1717   --with-mon-fd-password=PASSWORD
1718                           specify Client's password used by the monitor
1719   --with-mon-sd-password=PASSWORD
1720                           specify Storage daemon's password used by the
1721                           monitor
1722   --with-db-name=DBNAME   specify database name [default=bacula]
1723   --with-db-user=UNAME    specify database user [default=bacula]
1724   --with-db-password=PWD  specify database password [default=*none*]
1725   --with-db-port=DBPORT   specify a database port [default=null]
1726   --with-db-ssl-options=DBSSLOPTIONS
1727                           specify SSL options for database user connection
1728                           [default=null]
1729   --with-dir-user=USER    specify user for Director daemon
1730   --with-dir-group=GROUP  specify group for Director daemon
1731   --with-sd-user=USER     specify user for Storage daemon
1732   --with-sd-group=GROUP   specify group for Storage daemon
1733   --with-fd-user=USER     specify user for File daemon
1734   --with-fd-group=GROUP   specify group for File daemon
1735   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1736   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1737                           base install directory, [default=/usr/local/pgsql]
1738   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-embedded-mysql[=DIR]
1742                           Include MySQL support. DIR is the MySQL base install
1743                           directory, default is to search through a number of
1744                           common places for the MySQL files.
1745   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1746                           install directory, default is to search through a
1747                           number of common places for the SQLite3 files.
1748   --with-x                use the X Window System
1749   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1750   --with-lzo[=DIR]        specify lzo library directory
1751   --with-systemd[=UNITDIR]
1752                           Include systemd support. UNITDIR is where systemd
1753                           system .service files are located, default is to ask
1754                           systemctl.
1755
1756 Some influential environment variables:
1757   CC          C compiler command
1758   CFLAGS      C compiler flags
1759   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1760               nonstandard directory <lib dir>
1761   LIBS        libraries to pass to the linker, e.g. -l<library>
1762   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1763               you have headers in a nonstandard directory <include dir>
1764   CXX         C++ compiler command
1765   CXXFLAGS    C++ compiler flags
1766   CPP         C preprocessor
1767   CXXCPP      C++ preprocessor
1768   XMKMF       Path to xmkmf, Makefile generator for X Window System
1769
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1772
1773 Report bugs to the package provider.
1774 _ACEOF
1775 ac_status=$?
1776 fi
1777
1778 if test "$ac_init_help" = "recursive"; then
1779   # If there are subdirs, report their specific --help.
1780   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781     test -d "$ac_dir" ||
1782       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1783       continue
1784     ac_builddir=.
1785
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *)
1789   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790   # A ".." for each directory in $ac_dir_suffix.
1791   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792   case $ac_top_builddir_sub in
1793   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795   esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1801
1802 case $srcdir in
1803   .)  # We are building in place.
1804     ac_srcdir=.
1805     ac_top_srcdir=$ac_top_builddir_sub
1806     ac_abs_top_srcdir=$ac_pwd ;;
1807   [\\/]* | ?:[\\/]* )  # Absolute name.
1808     ac_srcdir=$srcdir$ac_dir_suffix;
1809     ac_top_srcdir=$srcdir
1810     ac_abs_top_srcdir=$srcdir ;;
1811   *) # Relative name.
1812     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813     ac_top_srcdir=$ac_top_build_prefix$srcdir
1814     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818     cd "$ac_dir" || { ac_status=$?; continue; }
1819     # Check for guested configure.
1820     if test -f "$ac_srcdir/configure.gnu"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823     elif test -f "$ac_srcdir/configure"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure" --help=recursive
1826     else
1827       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828     fi || ac_status=$?
1829     cd "$ac_pwd" || { ac_status=$?; break; }
1830   done
1831 fi
1832
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835   cat <<\_ACEOF
1836 bacula configure 7.4.4
1837 generated by GNU Autoconf 2.69
1838
1839 Copyright (C) 2012 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1842 _ACEOF
1843   exit
1844 fi
1845
1846 ## ------------------------ ##
1847 ## Autoconf initialization. ##
1848 ## ------------------------ ##
1849
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   rm -f conftest.$ac_objext
1857   if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_compile") 2>conftest.err
1865   ac_status=$?
1866   if test -s conftest.err; then
1867     grep -v '^ *+' conftest.err >conftest.er1
1868     cat conftest.er1 >&5
1869     mv -f conftest.er1 conftest.err
1870   fi
1871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872   test $ac_status = 0; } && {
1873          test -z "$ac_c_werror_flag" ||
1874          test ! -s conftest.err
1875        } && test -s conftest.$ac_objext; then :
1876   ac_retval=0
1877 else
1878   $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881         ac_retval=1
1882 fi
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884   as_fn_set_status $ac_retval
1885
1886 } # ac_fn_c_try_compile
1887
1888 # ac_fn_cxx_try_compile LINENO
1889 # ----------------------------
1890 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_compile ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   rm -f conftest.$ac_objext
1895   if { { ac_try="$ac_compile"
1896 case "(($ac_try" in
1897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898   *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902   (eval "$ac_compile") 2>conftest.err
1903   ac_status=$?
1904   if test -s conftest.err; then
1905     grep -v '^ *+' conftest.err >conftest.er1
1906     cat conftest.er1 >&5
1907     mv -f conftest.er1 conftest.err
1908   fi
1909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910   test $ac_status = 0; } && {
1911          test -z "$ac_cxx_werror_flag" ||
1912          test ! -s conftest.err
1913        } && test -s conftest.$ac_objext; then :
1914   ac_retval=0
1915 else
1916   $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919         ac_retval=1
1920 fi
1921   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922   as_fn_set_status $ac_retval
1923
1924 } # ac_fn_cxx_try_compile
1925
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_cpp ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935   *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940   ac_status=$?
1941   if test -s conftest.err; then
1942     grep -v '^ *+' conftest.err >conftest.er1
1943     cat conftest.er1 >&5
1944     mv -f conftest.er1 conftest.err
1945   fi
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } > conftest.i && {
1948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949          test ! -s conftest.err
1950        }; then :
1951   ac_retval=0
1952 else
1953   $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956     ac_retval=1
1957 fi
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959   as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_cpp
1962
1963 # ac_fn_c_try_link LINENO
1964 # -----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_link ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   rm -f conftest.$ac_objext conftest$ac_exeext
1970   if { { ac_try="$ac_link"
1971 case "(($ac_try" in
1972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973   *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977   (eval "$ac_link") 2>conftest.err
1978   ac_status=$?
1979   if test -s conftest.err; then
1980     grep -v '^ *+' conftest.err >conftest.er1
1981     cat conftest.er1 >&5
1982     mv -f conftest.er1 conftest.err
1983   fi
1984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985   test $ac_status = 0; } && {
1986          test -z "$ac_c_werror_flag" ||
1987          test ! -s conftest.err
1988        } && test -s conftest$ac_exeext && {
1989          test "$cross_compiling" = yes ||
1990          test -x conftest$ac_exeext
1991        }; then :
1992   ac_retval=0
1993 else
1994   $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997         ac_retval=1
1998 fi
1999   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001   # interfere with the next link command; also delete a directory that is
2002   # left behind by Apple's compiler.  We do this before executing the actions.
2003   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005   as_fn_set_status $ac_retval
2006
2007 } # ac_fn_c_try_link
2008
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2014 {
2015   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   eval "$3=yes"
2028 else
2029   eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 eval ac_res=\$$3
2034                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_c_check_header_compile
2039
2040 # ac_fn_c_try_run LINENO
2041 # ----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_c_try_run ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050   *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054   (eval "$ac_link") 2>&5
2055   ac_status=$?
2056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058   { { case "(($ac_try" in
2059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060   *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064   (eval "$ac_try") 2>&5
2065   ac_status=$?
2066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067   test $ac_status = 0; }; }; then :
2068   ac_retval=0
2069 else
2070   $as_echo "$as_me: program exited with status $ac_status" >&5
2071        $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074        ac_retval=$ac_status
2075 fi
2076   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078   as_fn_set_status $ac_retval
2079
2080 } # ac_fn_c_try_run
2081
2082 # ac_fn_c_check_func LINENO FUNC VAR
2083 # ----------------------------------
2084 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2085 ac_fn_c_check_func ()
2086 {
2087   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091   $as_echo_n "(cached) " >&6
2092 else
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2097 #define $2 innocuous_$2
2098
2099 /* System header to define __stub macros and hopefully few prototypes,
2100     which can conflict with char $2 (); below.
2101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2102     <limits.h> exists even on freestanding compilers.  */
2103
2104 #ifdef __STDC__
2105 # include <limits.h>
2106 #else
2107 # include <assert.h>
2108 #endif
2109
2110 #undef $2
2111
2112 /* Override any GCC internal prototype to avoid an error.
2113    Use char because int might match the return type of a GCC
2114    builtin and then its argument prototype would still apply.  */
2115 #ifdef __cplusplus
2116 extern "C"
2117 #endif
2118 char $2 ();
2119 /* The GNU C library defines this for functions which it implements
2120     to always fail with ENOSYS.  Some functions are actually named
2121     something starting with __ and the normal name is an alias.  */
2122 #if defined __stub_$2 || defined __stub___$2
2123 choke me
2124 #endif
2125
2126 int
2127 main ()
2128 {
2129 return $2 ();
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_link "$LINENO"; then :
2135   eval "$3=yes"
2136 else
2137   eval "$3=no"
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext \
2140     conftest$ac_exeext conftest.$ac_ext
2141 fi
2142 eval ac_res=\$$3
2143                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146
2147 } # ac_fn_c_check_func
2148
2149 # ac_fn_cxx_try_cpp LINENO
2150 # ------------------------
2151 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_cpp ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   if { { ac_try="$ac_cpp conftest.$ac_ext"
2156 case "(($ac_try" in
2157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158   *) ac_try_echo=$ac_try;;
2159 esac
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2163   ac_status=$?
2164   if test -s conftest.err; then
2165     grep -v '^ *+' conftest.err >conftest.er1
2166     cat conftest.er1 >&5
2167     mv -f conftest.er1 conftest.err
2168   fi
2169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170   test $ac_status = 0; } > conftest.i && {
2171          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2172          test ! -s conftest.err
2173        }; then :
2174   ac_retval=0
2175 else
2176   $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179     ac_retval=1
2180 fi
2181   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182   as_fn_set_status $ac_retval
2183
2184 } # ac_fn_cxx_try_cpp
2185
2186 # ac_fn_cxx_try_link LINENO
2187 # -------------------------
2188 # Try to link conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_cxx_try_link ()
2190 {
2191   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192   rm -f conftest.$ac_objext conftest$ac_exeext
2193   if { { ac_try="$ac_link"
2194 case "(($ac_try" in
2195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196   *) ac_try_echo=$ac_try;;
2197 esac
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200   (eval "$ac_link") 2>conftest.err
2201   ac_status=$?
2202   if test -s conftest.err; then
2203     grep -v '^ *+' conftest.err >conftest.er1
2204     cat conftest.er1 >&5
2205     mv -f conftest.er1 conftest.err
2206   fi
2207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208   test $ac_status = 0; } && {
2209          test -z "$ac_cxx_werror_flag" ||
2210          test ! -s conftest.err
2211        } && test -s conftest$ac_exeext && {
2212          test "$cross_compiling" = yes ||
2213          test -x conftest$ac_exeext
2214        }; then :
2215   ac_retval=0
2216 else
2217   $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220         ac_retval=1
2221 fi
2222   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224   # interfere with the next link command; also delete a directory that is
2225   # left behind by Apple's compiler.  We do this before executing the actions.
2226   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228   as_fn_set_status $ac_retval
2229
2230 } # ac_fn_cxx_try_link
2231
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2233 # ---------------------------------------------
2234 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2235 # accordingly.
2236 ac_fn_c_check_decl ()
2237 {
2238   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239   as_decl_name=`echo $2|sed 's/ *(.*//'`
2240   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2242 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2243 if eval \${$3+:} false; then :
2244   $as_echo_n "(cached) " >&6
2245 else
2246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main ()
2251 {
2252 #ifndef $as_decl_name
2253 #ifdef __cplusplus
2254   (void) $as_decl_use;
2255 #else
2256   (void) $as_decl_name;
2257 #endif
2258 #endif
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265   eval "$3=yes"
2266 else
2267   eval "$3=no"
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275
2276 } # ac_fn_c_check_decl
2277
2278 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2279 # -------------------------------------------
2280 # Tests whether TYPE exists after having included INCLUDES, setting cache
2281 # variable VAR accordingly.
2282 ac_fn_c_check_type ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval \${$3+:} false; then :
2288   $as_echo_n "(cached) " >&6
2289 else
2290   eval "$3=no"
2291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h.  */
2293 $4
2294 int
2295 main ()
2296 {
2297 if (sizeof ($2))
2298          return 0;
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int
2308 main ()
2309 {
2310 if (sizeof (($2)))
2311             return 0;
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317
2318 else
2319   eval "$3=yes"
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 fi
2325 eval ac_res=\$$3
2326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329
2330 } # ac_fn_c_check_type
2331
2332 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2333 # -------------------------------------------------------
2334 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2335 # the include files in INCLUDES and setting the cache variable VAR
2336 # accordingly.
2337 ac_fn_c_check_header_mongrel ()
2338 {
2339   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340   if eval \${$3+:} false; then :
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344   $as_echo_n "(cached) " >&6
2345 fi
2346 eval ac_res=\$$3
2347                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 else
2350   # Is the header compilable?
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2352 $as_echo_n "checking $2 usability... " >&6; }
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h.  */
2355 $4
2356 #include <$2>
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   ac_header_compiler=yes
2360 else
2361   ac_header_compiler=no
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2365 $as_echo "$ac_header_compiler" >&6; }
2366
2367 # Is the header present?
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2369 $as_echo_n "checking $2 presence... " >&6; }
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 #include <$2>
2373 _ACEOF
2374 if ac_fn_c_try_cpp "$LINENO"; then :
2375   ac_header_preproc=yes
2376 else
2377   ac_header_preproc=no
2378 fi
2379 rm -f conftest.err conftest.i conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2381 $as_echo "$ac_header_preproc" >&6; }
2382
2383 # So?  What about this header?
2384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2385   yes:no: )
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2387 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2389 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2390     ;;
2391   no:yes:* )
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2393 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2395 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2397 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2399 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2401 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2402     ;;
2403 esac
2404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if eval \${$3+:} false; then :
2407   $as_echo_n "(cached) " >&6
2408 else
2409   eval "$3=\$ac_header_compiler"
2410 fi
2411 eval ac_res=\$$3
2412                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 fi
2415   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416
2417 } # ac_fn_c_check_header_mongrel
2418
2419 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2420 # --------------------------------------------
2421 # Tries to find the compile-time value of EXPR in a program that includes
2422 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2423 # computed
2424 ac_fn_c_compute_int ()
2425 {
2426   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427   if test "$cross_compiling" = yes; then
2428     # Depending upon the size, compute the lo and hi bounds.
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h.  */
2431 $4
2432 int
2433 main ()
2434 {
2435 static int test_array [1 - 2 * !(($2) >= 0)];
2436 test_array [0] = 0;
2437 return test_array [0];
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444   ac_lo=0 ac_mid=0
2445   while :; do
2446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h.  */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2453 test_array [0] = 0;
2454 return test_array [0];
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461   ac_hi=$ac_mid; break
2462 else
2463   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2464                         if test $ac_lo -le $ac_mid; then
2465                           ac_lo= ac_hi=
2466                           break
2467                         fi
2468                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2469 fi
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471   done
2472 else
2473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h.  */
2475 $4
2476 int
2477 main ()
2478 {
2479 static int test_array [1 - 2 * !(($2) < 0)];
2480 test_array [0] = 0;
2481 return test_array [0];
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488   ac_hi=-1 ac_mid=-1
2489   while :; do
2490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h.  */
2492 $4
2493 int
2494 main ()
2495 {
2496 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2497 test_array [0] = 0;
2498 return test_array [0];
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505   ac_lo=$ac_mid; break
2506 else
2507   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2508                         if test $ac_mid -le $ac_hi; then
2509                           ac_lo= ac_hi=
2510                           break
2511                         fi
2512                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515   done
2516 else
2517   ac_lo= ac_hi=
2518 fi
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 fi
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 # Binary search between lo and hi bounds.
2523 while test "x$ac_lo" != "x$ac_hi"; do
2524   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main ()
2530 {
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2532 test_array [0] = 0;
2533 return test_array [0];
2534
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_c_try_compile "$LINENO"; then :
2540   ac_hi=$ac_mid
2541 else
2542   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2543 fi
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 done
2546 case $ac_lo in #((
2547 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2548 '') ac_retval=1 ;;
2549 esac
2550   else
2551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $4
2554 static long int longval () { return $2; }
2555 static unsigned long int ulongval () { return $2; }
2556 #include <stdio.h>
2557 #include <stdlib.h>
2558 int
2559 main ()
2560 {
2561
2562   FILE *f = fopen ("conftest.val", "w");
2563   if (! f)
2564     return 1;
2565   if (($2) < 0)
2566     {
2567       long int i = longval ();
2568       if (i != ($2))
2569         return 1;
2570       fprintf (f, "%ld", i);
2571     }
2572   else
2573     {
2574       unsigned long int i = ulongval ();
2575       if (i != ($2))
2576         return 1;
2577       fprintf (f, "%lu", i);
2578     }
2579   /* Do not output a trailing newline, as this causes \r\n confusion
2580      on some platforms.  */
2581   return ferror (f) || fclose (f) != 0;
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 if ac_fn_c_try_run "$LINENO"; then :
2588   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2589 else
2590   ac_retval=1
2591 fi
2592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2593   conftest.$ac_objext conftest.beam conftest.$ac_ext
2594 rm -f conftest.val
2595
2596   fi
2597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598   as_fn_set_status $ac_retval
2599
2600 } # ac_fn_c_compute_int
2601
2602 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2603 # ----------------------------------------------------
2604 # Tries to find if the field MEMBER exists in type AGGR, after including
2605 # INCLUDES, setting cache variable VAR accordingly.
2606 ac_fn_c_check_member ()
2607 {
2608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2610 $as_echo_n "checking for $2.$3... " >&6; }
2611 if eval \${$4+:} false; then :
2612   $as_echo_n "(cached) " >&6
2613 else
2614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h.  */
2616 $5
2617 int
2618 main ()
2619 {
2620 static $2 ac_aggr;
2621 if (ac_aggr.$3)
2622 return 0;
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 if ac_fn_c_try_compile "$LINENO"; then :
2628   eval "$4=yes"
2629 else
2630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h.  */
2632 $5
2633 int
2634 main ()
2635 {
2636 static $2 ac_aggr;
2637 if (sizeof ac_aggr.$3)
2638 return 0;
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 if ac_fn_c_try_compile "$LINENO"; then :
2644   eval "$4=yes"
2645 else
2646   eval "$4=no"
2647 fi
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 fi
2652 eval ac_res=\$$4
2653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654 $as_echo "$ac_res" >&6; }
2655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656
2657 } # ac_fn_c_check_member
2658
2659 # ac_fn_cxx_try_run LINENO
2660 # ------------------------
2661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2662 # that executables *can* be run.
2663 ac_fn_cxx_try_run ()
2664 {
2665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666   if { { ac_try="$ac_link"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673   (eval "$ac_link") 2>&5
2674   ac_status=$?
2675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2677   { { case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2682 $as_echo "$ac_try_echo"; } >&5
2683   (eval "$ac_try") 2>&5
2684   ac_status=$?
2685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686   test $ac_status = 0; }; }; then :
2687   ac_retval=0
2688 else
2689   $as_echo "$as_me: program exited with status $ac_status" >&5
2690        $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693        ac_retval=$ac_status
2694 fi
2695   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697   as_fn_set_status $ac_retval
2698
2699 } # ac_fn_cxx_try_run
2700
2701 # ac_fn_cxx_check_func LINENO FUNC VAR
2702 # ------------------------------------
2703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2704 ac_fn_cxx_check_func ()
2705 {
2706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h.  */
2714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2716 #define $2 innocuous_$2
2717
2718 /* System header to define __stub macros and hopefully few prototypes,
2719     which can conflict with char $2 (); below.
2720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2721     <limits.h> exists even on freestanding compilers.  */
2722
2723 #ifdef __STDC__
2724 # include <limits.h>
2725 #else
2726 # include <assert.h>
2727 #endif
2728
2729 #undef $2
2730
2731 /* Override any GCC internal prototype to avoid an error.
2732    Use char because int might match the return type of a GCC
2733    builtin and then its argument prototype would still apply.  */
2734 #ifdef __cplusplus
2735 extern "C"
2736 #endif
2737 char $2 ();
2738 /* The GNU C library defines this for functions which it implements
2739     to always fail with ENOSYS.  Some functions are actually named
2740     something starting with __ and the normal name is an alias.  */
2741 #if defined __stub_$2 || defined __stub___$2
2742 choke me
2743 #endif
2744
2745 int
2746 main ()
2747 {
2748 return $2 ();
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 if ac_fn_cxx_try_link "$LINENO"; then :
2754   eval "$3=yes"
2755 else
2756   eval "$3=no"
2757 fi
2758 rm -f core conftest.err conftest.$ac_objext \
2759     conftest$ac_exeext conftest.$ac_ext
2760 fi
2761 eval ac_res=\$$3
2762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2765
2766 } # ac_fn_cxx_check_func
2767 cat >config.log <<_ACEOF
2768 This file contains any messages produced by compilers while
2769 running configure, to aid debugging if configure makes a mistake.
2770
2771 It was created by bacula $as_me 7.4.4, which was
2772 generated by GNU Autoconf 2.69.  Invocation command line was
2773
2774   $ $0 $@
2775
2776 _ACEOF
2777 exec 5>>config.log
2778 {
2779 cat <<_ASUNAME
2780 ## --------- ##
2781 ## Platform. ##
2782 ## --------- ##
2783
2784 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2785 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2786 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2787 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2788 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2789
2790 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2791 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2792
2793 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2794 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2795 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2796 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2797 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2798 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2799 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2800
2801 _ASUNAME
2802
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808     $as_echo "PATH: $as_dir"
2809   done
2810 IFS=$as_save_IFS
2811
2812 } >&5
2813
2814 cat >&5 <<_ACEOF
2815
2816
2817 ## ----------- ##
2818 ## Core tests. ##
2819 ## ----------- ##
2820
2821 _ACEOF
2822
2823
2824 # Keep a trace of the command line.
2825 # Strip out --no-create and --no-recursion so they do not pile up.
2826 # Strip out --silent because we don't want to record it for future runs.
2827 # Also quote any args containing shell meta-characters.
2828 # Make two passes to allow for proper duplicate-argument suppression.
2829 ac_configure_args=
2830 ac_configure_args0=
2831 ac_configure_args1=
2832 ac_must_keep_next=false
2833 for ac_pass in 1 2
2834 do
2835   for ac_arg
2836   do
2837     case $ac_arg in
2838     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2839     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2840     | -silent | --silent | --silen | --sile | --sil)
2841       continue ;;
2842     *\'*)
2843       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2844     esac
2845     case $ac_pass in
2846     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2847     2)
2848       as_fn_append ac_configure_args1 " '$ac_arg'"
2849       if test $ac_must_keep_next = true; then
2850         ac_must_keep_next=false # Got value, back to normal.
2851       else
2852         case $ac_arg in
2853           *=* | --config-cache | -C | -disable-* | --disable-* \
2854           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2855           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2856           | -with-* | --with-* | -without-* | --without-* | --x)
2857             case "$ac_configure_args0 " in
2858               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2859             esac
2860             ;;
2861           -* ) ac_must_keep_next=true ;;
2862         esac
2863       fi
2864       as_fn_append ac_configure_args " '$ac_arg'"
2865       ;;
2866     esac
2867   done
2868 done
2869 { ac_configure_args0=; unset ac_configure_args0;}
2870 { ac_configure_args1=; unset ac_configure_args1;}
2871
2872 # When interrupted or exit'd, cleanup temporary files, and complete
2873 # config.log.  We remove comments because anyway the quotes in there
2874 # would cause problems or look ugly.
2875 # WARNING: Use '\'' to represent an apostrophe within the trap.
2876 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2877 trap 'exit_status=$?
2878   # Save into config.log some information that might help in debugging.
2879   {
2880     echo
2881
2882     $as_echo "## ---------------- ##
2883 ## Cache variables. ##
2884 ## ---------------- ##"
2885     echo
2886     # The following way of writing the cache mishandles newlines in values,
2887 (
2888   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2889     eval ac_val=\$$ac_var
2890     case $ac_val in #(
2891     *${as_nl}*)
2892       case $ac_var in #(
2893       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2895       esac
2896       case $ac_var in #(
2897       _ | IFS | as_nl) ;; #(
2898       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2899       *) { eval $ac_var=; unset $ac_var;} ;;
2900       esac ;;
2901     esac
2902   done
2903   (set) 2>&1 |
2904     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2905     *${as_nl}ac_space=\ *)
2906       sed -n \
2907         "s/'\''/'\''\\\\'\'''\''/g;
2908           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2909       ;; #(
2910     *)
2911       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2912       ;;
2913     esac |
2914     sort
2915 )
2916     echo
2917
2918     $as_echo "## ----------------- ##
2919 ## Output variables. ##
2920 ## ----------------- ##"
2921     echo
2922     for ac_var in $ac_subst_vars
2923     do
2924       eval ac_val=\$$ac_var
2925       case $ac_val in
2926       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2927       esac
2928       $as_echo "$ac_var='\''$ac_val'\''"
2929     done | sort
2930     echo
2931
2932     if test -n "$ac_subst_files"; then
2933       $as_echo "## ------------------- ##
2934 ## File substitutions. ##
2935 ## ------------------- ##"
2936       echo
2937       for ac_var in $ac_subst_files
2938       do
2939         eval ac_val=\$$ac_var
2940         case $ac_val in
2941         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2942         esac
2943         $as_echo "$ac_var='\''$ac_val'\''"
2944       done | sort
2945       echo
2946     fi
2947
2948     if test -s confdefs.h; then
2949       $as_echo "## ----------- ##
2950 ## confdefs.h. ##
2951 ## ----------- ##"
2952       echo
2953       cat confdefs.h
2954       echo
2955     fi
2956     test "$ac_signal" != 0 &&
2957       $as_echo "$as_me: caught signal $ac_signal"
2958     $as_echo "$as_me: exit $exit_status"
2959   } >&5
2960   rm -f core *.core core.conftest.* &&
2961     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2962     exit $exit_status
2963 ' 0
2964 for ac_signal in 1 2 13 15; do
2965   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2966 done
2967 ac_signal=0
2968
2969 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2970 rm -f -r conftest* confdefs.h
2971
2972 $as_echo "/* confdefs.h */" > confdefs.h
2973
2974 # Predefined preprocessor variables.
2975
2976 cat >>confdefs.h <<_ACEOF
2977 #define PACKAGE_NAME "$PACKAGE_NAME"
2978 _ACEOF
2979
2980 cat >>confdefs.h <<_ACEOF
2981 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2982 _ACEOF
2983
2984 cat >>confdefs.h <<_ACEOF
2985 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2986 _ACEOF
2987
2988 cat >>confdefs.h <<_ACEOF
2989 #define PACKAGE_STRING "$PACKAGE_STRING"
2990 _ACEOF
2991
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2994 _ACEOF
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_URL "$PACKAGE_URL"
2998 _ACEOF
2999
3000
3001 # Let the site file select an alternate cache file if it wants to.
3002 # Prefer an explicitly selected file to automatically selected ones.
3003 ac_site_file1=NONE
3004 ac_site_file2=NONE
3005 if test -n "$CONFIG_SITE"; then
3006   # We do not want a PATH search for config.site.
3007   case $CONFIG_SITE in #((
3008     -*)  ac_site_file1=./$CONFIG_SITE;;
3009     */*) ac_site_file1=$CONFIG_SITE;;
3010     *)   ac_site_file1=./$CONFIG_SITE;;
3011   esac
3012 elif test "x$prefix" != xNONE; then
3013   ac_site_file1=$prefix/share/config.site
3014   ac_site_file2=$prefix/etc/config.site
3015 else
3016   ac_site_file1=$ac_default_prefix/share/config.site
3017   ac_site_file2=$ac_default_prefix/etc/config.site
3018 fi
3019 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3020 do
3021   test "x$ac_site_file" = xNONE && continue
3022   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3023     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3024 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3025     sed 's/^/| /' "$ac_site_file" >&5
3026     . "$ac_site_file" \
3027       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "failed to load site script $ac_site_file
3030 See \`config.log' for more details" "$LINENO" 5; }
3031   fi
3032 done
3033
3034 if test -r "$cache_file"; then
3035   # Some versions of bash will fail to source /dev/null (special files
3036   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3037   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3038     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3039 $as_echo "$as_me: loading cache $cache_file" >&6;}
3040     case $cache_file in
3041       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3042       *)                      . "./$cache_file";;
3043     esac
3044   fi
3045 else
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3047 $as_echo "$as_me: creating cache $cache_file" >&6;}
3048   >$cache_file
3049 fi
3050
3051 as_fn_append ac_header_list " stdlib.h"
3052 as_fn_append ac_header_list " unistd.h"
3053 as_fn_append ac_header_list " sys/param.h"
3054 # Check that the precious variables saved in the cache have kept the same
3055 # value.
3056 ac_cache_corrupted=false
3057 for ac_var in $ac_precious_vars; do
3058   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3059   eval ac_new_set=\$ac_env_${ac_var}_set
3060   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3061   eval ac_new_val=\$ac_env_${ac_var}_value
3062   case $ac_old_set,$ac_new_set in
3063     set,)
3064       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3065 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3066       ac_cache_corrupted=: ;;
3067     ,set)
3068       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3069 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3070       ac_cache_corrupted=: ;;
3071     ,);;
3072     *)
3073       if test "x$ac_old_val" != "x$ac_new_val"; then
3074         # differences in whitespace do not lead to failure.
3075         ac_old_val_w=`echo x $ac_old_val`
3076         ac_new_val_w=`echo x $ac_new_val`
3077         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3078           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3079 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3080           ac_cache_corrupted=:
3081         else
3082           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3083 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3084           eval $ac_var=\$ac_old_val
3085         fi
3086         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3087 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3088         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3089 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3090       fi;;
3091   esac
3092   # Pass precious variables to config.status.
3093   if test "$ac_new_set" = set; then
3094     case $ac_new_val in
3095     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3096     *) ac_arg=$ac_var=$ac_new_val ;;
3097     esac
3098     case " $ac_configure_args " in
3099       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3100       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3101     esac
3102   fi
3103 done
3104 if $ac_cache_corrupted; then
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3108 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3109   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3110 fi
3111 ## -------------------- ##
3112 ## Main body of script. ##
3113 ## -------------------- ##
3114
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120
3121
3122
3123
3124 BUILD_DIR=`pwd`
3125 cd ..
3126 TOP_DIR=`pwd`
3127 cd ${BUILD_DIR}
3128
3129
3130 ac_aux_dir=
3131 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3132   if test -f "$ac_dir/install-sh"; then
3133     ac_aux_dir=$ac_dir
3134     ac_install_sh="$ac_aux_dir/install-sh -c"
3135     break
3136   elif test -f "$ac_dir/install.sh"; then
3137     ac_aux_dir=$ac_dir
3138     ac_install_sh="$ac_aux_dir/install.sh -c"
3139     break
3140   elif test -f "$ac_dir/shtool"; then
3141     ac_aux_dir=$ac_dir
3142     ac_install_sh="$ac_aux_dir/shtool install -c"
3143     break
3144   fi
3145 done
3146 if test -z "$ac_aux_dir"; then
3147   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3148 fi
3149
3150 # These three variables are undocumented and unsupported,
3151 # and are intended to be withdrawn in a future Autoconf release.
3152 # They can cause serious problems if a builder's source tree is in a directory
3153 # whose full name contains unusual characters.
3154 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3155 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3156 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3157
3158
3159 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3160
3161
3162 for ac_prog in true
3163 do
3164   # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_path_TRUEPRG+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   case $TRUEPRG in
3172   [\\/]* | ?:[\\/]*)
3173   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3174   ;;
3175   *)
3176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
3180   test -z "$as_dir" && as_dir=.
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185     break 2
3186   fi
3187 done
3188   done
3189 IFS=$as_save_IFS
3190
3191   ;;
3192 esac
3193 fi
3194 TRUEPRG=$ac_cv_path_TRUEPRG
3195 if test -n "$TRUEPRG"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3197 $as_echo "$TRUEPRG" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204   test -n "$TRUEPRG" && break
3205 done
3206 test -n "$TRUEPRG" || TRUEPRG=":"
3207
3208 for ac_prog in false
3209 do
3210   # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_path_FALSEPRG+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   case $FALSEPRG in
3218   [\\/]* | ?:[\\/]*)
3219   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3220   ;;
3221   *)
3222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227     for ac_exec_ext in '' $ac_executable_extensions; do
3228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234   done
3235 IFS=$as_save_IFS
3236
3237   ;;
3238 esac
3239 fi
3240 FALSEPRG=$ac_cv_path_FALSEPRG
3241 if test -n "$FALSEPRG"; then
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3243 $as_echo "$FALSEPRG" >&6; }
3244 else
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250   test -n "$FALSEPRG" && break
3251 done
3252 test -n "$FALSEPRG" || FALSEPRG=":"
3253
3254
3255
3256 post_host=
3257 if test "x$BACULA" != x; then
3258    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3259 fi
3260 BACULA=${BACULA:-Bacula}
3261 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3266 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3267 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3268 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269
3270 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3273
3274 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3275 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3276
3277
3278 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3279 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3280
3281 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3282 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3283
3284
3285 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3286
3287 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3288
3289
3290
3291 PFILES="platforms/Makefile"
3292
3293 echo "configuring for ${BACULA} $VERSION ($DATE)"
3294
3295
3296
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   if test -n "$CC"; then
3311   ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318     for ac_exec_ext in '' $ac_executable_extensions; do
3319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325   done
3326 IFS=$as_save_IFS
3327
3328 fi
3329 fi
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339
3340 fi
3341 if test -z "$ac_cv_prog_CC"; then
3342   ac_ct_CC=$CC
3343   # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$ac_ct_CC"; then
3351   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360     ac_cv_prog_ac_ct_CC="gcc"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379   if test "x$ac_ct_CC" = x; then
3380     CC=""
3381   else
3382     case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388     CC=$ac_ct_CC
3389   fi
3390 else
3391   CC="$ac_cv_prog_CC"
3392 fi
3393
3394 if test -z "$CC"; then
3395           if test -n "$ac_tool_prefix"; then
3396     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401   $as_echo_n "(cached) " >&6
3402 else
3403   if test -n "$CC"; then
3404   ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411     for ac_exec_ext in '' $ac_executable_extensions; do
3412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413     ac_cv_prog_CC="${ac_tool_prefix}cc"
3414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418   done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3427 else
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433   fi
3434 fi
3435 if test -z "$CC"; then
3436   # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   if test -n "$CC"; then
3444   ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446   ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452     for ac_exec_ext in '' $ac_executable_extensions; do
3453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455        ac_prog_rejected=yes
3456        continue
3457      fi
3458     ac_cv_prog_CC="cc"
3459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460     break 2
3461   fi
3462 done
3463   done
3464 IFS=$as_save_IFS
3465
3466 if test $ac_prog_rejected = yes; then
3467   # We found a bogon in the path, so make sure we never use it.
3468   set dummy $ac_cv_prog_CC
3469   shift
3470   if test $# != 0; then
3471     # We chose a different compiler from the bogus one.
3472     # However, it has the same basename, so the bogon will be chosen
3473     # first if we set CC to just the basename; use the full file name.
3474     shift
3475     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476   fi
3477 fi
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 if test -z "$CC"; then
3492   if test -n "$ac_tool_prefix"; then
3493   for ac_prog in cl.exe
3494   do
3495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$CC"; then
3503   ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532     test -n "$CC" && break
3533   done
3534 fi
3535 if test -z "$CC"; then
3536   ac_ct_CC=$CC
3537   for ac_prog in cl.exe
3538 do
3539   # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   if test -n "$ac_ct_CC"; then
3547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554     for ac_exec_ext in '' $ac_executable_extensions; do
3555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556     ac_cv_prog_ac_ct_CC="$ac_prog"
3557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561   done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3570 else
3571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575
3576   test -n "$ac_ct_CC" && break
3577 done
3578
3579   if test "x$ac_ct_CC" = x; then
3580     CC=""
3581   else
3582     case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588     CC=$ac_ct_CC
3589   fi
3590 fi
3591
3592 fi
3593
3594
3595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "no acceptable C compiler found in \$PATH
3598 See \`config.log' for more details" "$LINENO" 5; }
3599
3600 # Provide some information about the compiler.
3601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602 set X $ac_compile
3603 ac_compiler=$2
3604 for ac_option in --version -v -V -qversion; do
3605   { { ac_try="$ac_compiler $ac_option >&5"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3613   ac_status=$?
3614   if test -s conftest.err; then
3615     sed '10a\
3616 ... rest of stderr output deleted ...
3617          10q' conftest.err >conftest.er1
3618     cat conftest.er1 >&5
3619   fi
3620   rm -f conftest.er1 conftest.err
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }
3623 done
3624
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627
3628 int
3629 main ()
3630 {
3631
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 ac_clean_files_save=$ac_clean_files
3637 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3638 # Try to create an executable without -o first, disregard a.out.
3639 # It will help us diagnose broken compilers, and finding out an intuition
3640 # of exeext.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3642 $as_echo_n "checking whether the C compiler works... " >&6; }
3643 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3644
3645 # The possible output files:
3646 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3647
3648 ac_rmfiles=
3649 for ac_file in $ac_files
3650 do
3651   case $ac_file in
3652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654   esac
3655 done
3656 rm -f $ac_rmfiles
3657
3658 if { { ac_try="$ac_link_default"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665   (eval "$ac_link_default") 2>&5
3666   ac_status=$?
3667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668   test $ac_status = 0; }; then :
3669   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3671 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3672 # so that the user can short-circuit this test for compilers unknown to
3673 # Autoconf.
3674 for ac_file in $ac_files ''
3675 do
3676   test -f "$ac_file" || continue
3677   case $ac_file in
3678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3679         ;;
3680     [ab].out )
3681         # We found the default executable, but exeext='' is most
3682         # certainly right.
3683         break;;
3684     *.* )
3685         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3686         then :; else
3687            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3688         fi
3689         # We set ac_cv_exeext here because the later test for it is not
3690         # safe: cross compilers may not add the suffix if given an `-o'
3691         # argument, so we may need to know it at that point already.
3692         # Even if this section looks crufty: it has the advantage of
3693         # actually working.
3694         break;;
3695     * )
3696         break;;
3697   esac
3698 done
3699 test "$ac_cv_exeext" = no && ac_cv_exeext=
3700
3701 else
3702   ac_file=''
3703 fi
3704 if test -z "$ac_file"; then :
3705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error 77 "C compiler cannot create executables
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 else
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719 $as_echo_n "checking for C compiler default output file name... " >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3721 $as_echo "$ac_file" >&6; }
3722 ac_exeext=$ac_cv_exeext
3723
3724 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3725 ac_clean_files=$ac_clean_files_save
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3727 $as_echo_n "checking for suffix of executables... " >&6; }
3728 if { { ac_try="$ac_link"
3729 case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735   (eval "$ac_link") 2>&5
3736   ac_status=$?
3737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738   test $ac_status = 0; }; then :
3739   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3740 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3741 # work properly (i.e., refer to `conftest.exe'), while it won't with
3742 # `rm'.
3743 for ac_file in conftest.exe conftest conftest.*; do
3744   test -f "$ac_file" || continue
3745   case $ac_file in
3746     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748           break;;
3749     * ) break;;
3750   esac
3751 done
3752 else
3753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details" "$LINENO" 5; }
3757 fi
3758 rm -f conftest conftest$ac_cv_exeext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3760 $as_echo "$ac_cv_exeext" >&6; }
3761
3762 rm -f conftest.$ac_ext
3763 EXEEXT=$ac_cv_exeext
3764 ac_exeext=$EXEEXT
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767 #include <stdio.h>
3768 int
3769 main ()
3770 {
3771 FILE *f = fopen ("conftest.out", "w");
3772  return ferror (f) || fclose (f) != 0;
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 ac_clean_files="$ac_clean_files conftest.out"
3779 # Check that the compiler produces executables we can run.  If not, either
3780 # the compiler is broken, or we cross compile.
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3782 $as_echo_n "checking whether we are cross compiling... " >&6; }
3783 if test "$cross_compiling" != yes; then
3784   { { ac_try="$ac_link"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791   (eval "$ac_link") 2>&5
3792   ac_status=$?
3793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794   test $ac_status = 0; }
3795   if { ac_try='./conftest$ac_cv_exeext'
3796   { { case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_try") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805   test $ac_status = 0; }; }; then
3806     cross_compiling=no
3807   else
3808     if test "$cross_compiling" = maybe; then
3809         cross_compiling=yes
3810     else
3811         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error $? "cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details" "$LINENO" 5; }
3816     fi
3817   fi
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3820 $as_echo "$cross_compiling" >&6; }
3821
3822 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3823 ac_clean_files=$ac_clean_files_save
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825 $as_echo_n "checking for suffix of object files... " >&6; }
3826 if ${ac_cv_objext+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835
3836   ;
3837   return 0;
3838 }
3839 _ACEOF
3840 rm -f conftest.o conftest.obj
3841 if { { ac_try="$ac_compile"
3842 case "(($ac_try" in
3843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844   *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848   (eval "$ac_compile") 2>&5
3849   ac_status=$?
3850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851   test $ac_status = 0; }; then :
3852   for ac_file in conftest.o conftest.obj conftest.*; do
3853   test -f "$ac_file" || continue;
3854   case $ac_file in
3855     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857        break;;
3858   esac
3859 done
3860 else
3861   $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "cannot compute suffix of object files: cannot compile
3867 See \`config.log' for more details" "$LINENO" 5; }
3868 fi
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872 $as_echo "$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3874 ac_objext=$OBJEXT
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877 if ${ac_cv_c_compiler_gnu+:} false; then :
3878   $as_echo_n "(cached) " >&6
3879 else
3880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h.  */
3882
3883 int
3884 main ()
3885 {
3886 #ifndef __GNUC__
3887        choke me
3888 #endif
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895   ac_compiler_gnu=yes
3896 else
3897   ac_compiler_gnu=no
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905 if test $ac_compiler_gnu = yes; then
3906   GCC=yes
3907 else
3908   GCC=
3909 fi
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3914 if ${ac_cv_prog_cc_g+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   ac_save_c_werror_flag=$ac_c_werror_flag
3918    ac_c_werror_flag=yes
3919    ac_cv_prog_cc_g=no
3920    CFLAGS="-g"
3921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933   ac_cv_prog_cc_g=yes
3934 else
3935   CFLAGS=""
3936       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948
3949 else
3950   ac_c_werror_flag=$ac_save_c_werror_flag
3951          CFLAGS="-g"
3952          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h.  */
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_prog_cc_g=yes
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971    ac_c_werror_flag=$ac_save_c_werror_flag
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974 $as_echo "$ac_cv_prog_cc_g" >&6; }
3975 if test "$ac_test_CFLAGS" = set; then
3976   CFLAGS=$ac_save_CFLAGS
3977 elif test $ac_cv_prog_cc_g = yes; then
3978   if test "$GCC" = yes; then
3979     CFLAGS="-g -O2"
3980   else
3981     CFLAGS="-g"
3982   fi
3983 else
3984   if test "$GCC" = yes; then
3985     CFLAGS="-O2"
3986   else
3987     CFLAGS=
3988   fi
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992 if ${ac_cv_prog_cc_c89+:} false; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   ac_cv_prog_cc_c89=no
3996 ac_save_CC=$CC
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h.  */
3999 #include <stdarg.h>
4000 #include <stdio.h>
4001 struct stat;
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4006      char **p;
4007      int i;
4008 {
4009   return p[i];
4010 }
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4012 {
4013   char *s;
4014   va_list v;
4015   va_start (v,p);
4016   s = g (p, va_arg (v,int));
4017   va_end (v);
4018   return s;
4019 }
4020
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4022    function prototypes and stuff, but not '\xHH' hex character constants.
4023    These don't provoke an error unfortunately, instead are silently treated
4024    as 'x'.  The following induces an error, until -std is added to get
4025    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4026    array size at least.  It's necessary to write '\x00'==0 to get something
4027    that's true only with -std.  */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031    inside strings and character constants.  */
4032 #define FOO(x) 'x'
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 int argc;
4040 char **argv;
4041 int
4042 main ()
4043 {
4044 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 do
4052   CC="$ac_save_CC $ac_arg"
4053   if ac_fn_c_try_compile "$LINENO"; then :
4054   ac_cv_prog_cc_c89=$ac_arg
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext
4057   test "x$ac_cv_prog_cc_c89" != "xno" && break
4058 done
4059 rm -f conftest.$ac_ext
4060 CC=$ac_save_CC
4061
4062 fi
4063 # AC_CACHE_VAL
4064 case "x$ac_cv_prog_cc_c89" in
4065   x)
4066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4068   xno)
4069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4071   *)
4072     CC="$CC $ac_cv_prog_cc_c89"
4073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4075 esac
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4077
4078 fi
4079
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085                 ac_ext=cpp
4086 ac_cpp='$CXXCPP $CPPFLAGS'
4087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4090 if test -z "$CXX"; then
4091   if test -n "$CCC"; then
4092     CXX=$CCC
4093   else
4094     if test -n "$ac_tool_prefix"; then
4095   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4096   do
4097     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CXX+:} false; then :
4102   $as_echo_n "(cached) " >&6
4103 else
4104   if test -n "$CXX"; then
4105   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112     for ac_exec_ext in '' $ac_executable_extensions; do
4113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119   done
4120 IFS=$as_save_IFS
4121
4122 fi
4123 fi
4124 CXX=$ac_cv_prog_CXX
4125 if test -n "$CXX"; then
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4127 $as_echo "$CXX" >&6; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132
4133
4134     test -n "$CXX" && break
4135   done
4136 fi
4137 if test -z "$CXX"; then
4138   ac_ct_CXX=$CXX
4139   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4140 do
4141   # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4146   $as_echo_n "(cached) " >&6
4147 else
4148   if test -n "$ac_ct_CXX"; then
4149   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156     for ac_exec_ext in '' $ac_executable_extensions; do
4157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158     ac_cv_prog_ac_ct_CXX="$ac_prog"
4159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160     break 2
4161   fi
4162 done
4163   done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4169 if test -n "$ac_ct_CXX"; then
4170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4171 $as_echo "$ac_ct_CXX" >&6; }
4172 else
4173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178   test -n "$ac_ct_CXX" && break
4179 done
4180
4181   if test "x$ac_ct_CXX" = x; then
4182     CXX="g++"
4183   else
4184     case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4189 esac
4190     CXX=$ac_ct_CXX
4191   fi
4192 fi
4193
4194   fi
4195 fi
4196 # Provide some information about the compiler.
4197 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4198 set X $ac_compile
4199 ac_compiler=$2
4200 for ac_option in --version -v -V -qversion; do
4201   { { ac_try="$ac_compiler $ac_option >&5"
4202 case "(($ac_try" in
4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204   *) ac_try_echo=$ac_try;;
4205 esac
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 $as_echo "$ac_try_echo"; } >&5
4208   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4209   ac_status=$?
4210   if test -s conftest.err; then
4211     sed '10a\
4212 ... rest of stderr output deleted ...
4213          10q' conftest.err >conftest.er1
4214     cat conftest.er1 >&5
4215   fi
4216   rm -f conftest.er1 conftest.err
4217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218   test $ac_status = 0; }
4219 done
4220
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4222 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4223 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h.  */
4228
4229 int
4230 main ()
4231 {
4232 #ifndef __GNUC__
4233        choke me
4234 #endif
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 if ac_fn_cxx_try_compile "$LINENO"; then :
4241   ac_compiler_gnu=yes
4242 else
4243   ac_compiler_gnu=no
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4250 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4251 if test $ac_compiler_gnu = yes; then
4252   GXX=yes
4253 else
4254   GXX=
4255 fi
4256 ac_test_CXXFLAGS=${CXXFLAGS+set}
4257 ac_save_CXXFLAGS=$CXXFLAGS
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4259 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4260 if ${ac_cv_prog_cxx_g+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4264    ac_cxx_werror_flag=yes
4265    ac_cv_prog_cxx_g=no
4266    CXXFLAGS="-g"
4267    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269
4270 int
4271 main ()
4272 {
4273
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_cxx_try_compile "$LINENO"; then :
4279   ac_cv_prog_cxx_g=yes
4280 else
4281   CXXFLAGS=""
4282       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h.  */
4284
4285 int
4286 main ()
4287 {
4288
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
4293 if ac_fn_cxx_try_compile "$LINENO"; then :
4294
4295 else
4296   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4297          CXXFLAGS="-g"
4298          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h.  */
4300
4301 int
4302 main ()
4303 {
4304
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_cxx_try_compile "$LINENO"; then :
4310   ac_cv_prog_cxx_g=yes
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4320 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4321 if test "$ac_test_CXXFLAGS" = set; then
4322   CXXFLAGS=$ac_save_CXXFLAGS
4323 elif test $ac_cv_prog_cxx_g = yes; then
4324   if test "$GXX" = yes; then
4325     CXXFLAGS="-g -O2"
4326   else
4327     CXXFLAGS="-g"
4328   fi
4329 else
4330   if test "$GXX" = yes; then
4331     CXXFLAGS="-O2"
4332   else
4333     CXXFLAGS=
4334   fi
4335 fi
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342 if test "x$CC" != xcc; then
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4344 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4345 else
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4347 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4348 fi
4349 set dummy $CC; ac_cc=`$as_echo "$2" |
4350                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4351 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h.  */
4356
4357 int
4358 main ()
4359 {
4360
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 # Make sure it works both with $CC and with simple cc.
4366 # We do the test twice because some compilers refuse to overwrite an
4367 # existing .o file with -o, though they will create one.
4368 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4369 rm -f conftest2.*
4370 if { { case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376   (eval "$ac_try") 2>&5
4377   ac_status=$?
4378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379   test $ac_status = 0; } &&
4380    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386   (eval "$ac_try") 2>&5
4387   ac_status=$?
4388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389   test $ac_status = 0; };
4390 then
4391   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4392   if test "x$CC" != xcc; then
4393     # Test first that cc exists at all.
4394     if { ac_try='cc -c conftest.$ac_ext >&5'
4395   { { case "(($ac_try" in
4396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397   *) ac_try_echo=$ac_try;;
4398 esac
4399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400 $as_echo "$ac_try_echo"; } >&5
4401   (eval "$ac_try") 2>&5
4402   ac_status=$?
4403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404   test $ac_status = 0; }; }; then
4405       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4406       rm -f conftest2.*
4407       if { { case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416   test $ac_status = 0; } &&
4417          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419   *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 $as_echo "$ac_try_echo"; } >&5
4423   (eval "$ac_try") 2>&5
4424   ac_status=$?
4425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426   test $ac_status = 0; };
4427       then
4428         # cc works too.
4429         :
4430       else
4431         # cc exists but doesn't like -o.
4432         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4433       fi
4434     fi
4435   fi
4436 else
4437   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4438 fi
4439 rm -f core conftest*
4440
4441 fi
4442 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 $as_echo "yes" >&6; }
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448
4449 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4450
4451 fi
4452
4453 ac_ext=c
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4459 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4460 # On Suns, sometimes $CPP names a directory.
4461 if test -n "$CPP" && test -d "$CPP"; then
4462   CPP=
4463 fi
4464 if test -z "$CPP"; then
4465   if ${ac_cv_prog_CPP+:} false; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468       # Double quotes because CPP needs to be expanded
4469     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4470     do
4471       ac_preproc_ok=false
4472 for ac_c_preproc_warn_flag in '' yes
4473 do
4474   # Use a header file that comes with gcc, so configuring glibc
4475   # with a fresh cross-compiler works.
4476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4477   # <limits.h> exists even on freestanding compilers.
4478   # On the NeXT, cc -E runs the code through the compiler's parser,
4479   # not just through cpp. "Syntax error" is here to catch this case.
4480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h.  */
4482 #ifdef __STDC__
4483 # include <limits.h>
4484 #else
4485 # include <assert.h>
4486 #endif
4487                      Syntax error
4488 _ACEOF
4489 if ac_fn_c_try_cpp "$LINENO"; then :
4490
4491 else
4492   # Broken: fails on valid input.
4493 continue
4494 fi
4495 rm -f conftest.err conftest.i conftest.$ac_ext
4496
4497   # OK, works on sane cases.  Now check whether nonexistent headers
4498   # can be detected and how.
4499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501 #include <ac_nonexistent.h>
4502 _ACEOF
4503 if ac_fn_c_try_cpp "$LINENO"; then :
4504   # Broken: success on invalid input.
4505 continue
4506 else
4507   # Passes both tests.
4508 ac_preproc_ok=:
4509 break
4510 fi
4511 rm -f conftest.err conftest.i conftest.$ac_ext
4512
4513 done
4514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4515 rm -f conftest.i conftest.err conftest.$ac_ext
4516 if $ac_preproc_ok; then :
4517   break
4518 fi
4519
4520     done
4521     ac_cv_prog_CPP=$CPP
4522
4523 fi
4524   CPP=$ac_cv_prog_CPP
4525 else
4526   ac_cv_prog_CPP=$CPP
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4529 $as_echo "$CPP" >&6; }
4530 ac_preproc_ok=false
4531 for ac_c_preproc_warn_flag in '' yes
4532 do
4533   # Use a header file that comes with gcc, so configuring glibc
4534   # with a fresh cross-compiler works.
4535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536   # <limits.h> exists even on freestanding compilers.
4537   # On the NeXT, cc -E runs the code through the compiler's parser,
4538   # not just through cpp. "Syntax error" is here to catch this case.
4539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h.  */
4541 #ifdef __STDC__
4542 # include <limits.h>
4543 #else
4544 # include <assert.h>
4545 #endif
4546                      Syntax error
4547 _ACEOF
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549
4550 else
4551   # Broken: fails on valid input.
4552 continue
4553 fi
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4555
4556   # OK, works on sane cases.  Now check whether nonexistent headers
4557   # can be detected and how.
4558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h.  */
4560 #include <ac_nonexistent.h>
4561 _ACEOF
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4563   # Broken: success on invalid input.
4564 continue
4565 else
4566   # Passes both tests.
4567 ac_preproc_ok=:
4568 break
4569 fi
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4571
4572 done
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.i conftest.err conftest.$ac_ext
4575 if $ac_preproc_ok; then :
4576
4577 else
4578   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4581 See \`config.log' for more details" "$LINENO" 5; }
4582 fi
4583
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4592 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4593 if ${ac_cv_path_GREP+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   if test -z "$GREP"; then
4597   ac_path_GREP_found=false
4598   # Loop through the user's path and test for each of PROGNAME-LIST
4599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_prog in grep ggrep; do
4605     for ac_exec_ext in '' $ac_executable_extensions; do
4606       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4607       as_fn_executable_p "$ac_path_GREP" || continue
4608 # Check for GNU ac_path_GREP and select it if it is found.
4609   # Check for GNU $ac_path_GREP
4610 case `"$ac_path_GREP" --version 2>&1` in
4611 *GNU*)
4612   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613 *)
4614   ac_count=0
4615   $as_echo_n 0123456789 >"conftest.in"
4616   while :
4617   do
4618     cat "conftest.in" "conftest.in" >"conftest.tmp"
4619     mv "conftest.tmp" "conftest.in"
4620     cp "conftest.in" "conftest.nl"
4621     $as_echo 'GREP' >> "conftest.nl"
4622     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624     as_fn_arith $ac_count + 1 && ac_count=$as_val
4625     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4626       # Best one so far, save it but keep looking for a better one
4627       ac_cv_path_GREP="$ac_path_GREP"
4628       ac_path_GREP_max=$ac_count
4629     fi
4630     # 10*(2^10) chars as input seems more than enough
4631     test $ac_count -gt 10 && break
4632   done
4633   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4635
4636       $ac_path_GREP_found && break 3
4637     done
4638   done
4639   done
4640 IFS=$as_save_IFS
4641   if test -z "$ac_cv_path_GREP"; then
4642     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643   fi
4644 else
4645   ac_cv_path_GREP=$GREP
4646 fi
4647
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4650 $as_echo "$ac_cv_path_GREP" >&6; }
4651  GREP="$ac_cv_path_GREP"
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4655 $as_echo_n "checking for egrep... " >&6; }
4656 if ${ac_cv_path_EGREP+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4660    then ac_cv_path_EGREP="$GREP -E"
4661    else
4662      if test -z "$EGREP"; then
4663   ac_path_EGREP_found=false
4664   # Loop through the user's path and test for each of PROGNAME-LIST
4665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670     for ac_prog in egrep; do
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4673       as_fn_executable_p "$ac_path_EGREP" || continue
4674 # Check for GNU ac_path_EGREP and select it if it is found.
4675   # Check for GNU $ac_path_EGREP
4676 case `"$ac_path_EGREP" --version 2>&1` in
4677 *GNU*)
4678   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4679 *)
4680   ac_count=0
4681   $as_echo_n 0123456789 >"conftest.in"
4682   while :
4683   do
4684     cat "conftest.in" "conftest.in" >"conftest.tmp"
4685     mv "conftest.tmp" "conftest.in"
4686     cp "conftest.in" "conftest.nl"
4687     $as_echo 'EGREP' >> "conftest.nl"
4688     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4690     as_fn_arith $ac_count + 1 && ac_count=$as_val
4691     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4692       # Best one so far, save it but keep looking for a better one
4693       ac_cv_path_EGREP="$ac_path_EGREP"
4694       ac_path_EGREP_max=$ac_count
4695     fi
4696     # 10*(2^10) chars as input seems more than enough
4697     test $ac_count -gt 10 && break
4698   done
4699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700 esac
4701
4702       $ac_path_EGREP_found && break 3
4703     done
4704   done
4705   done
4706 IFS=$as_save_IFS
4707   if test -z "$ac_cv_path_EGREP"; then
4708     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709   fi
4710 else
4711   ac_cv_path_EGREP=$EGREP
4712 fi
4713
4714    fi
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4717 $as_echo "$ac_cv_path_EGREP" >&6; }
4718  EGREP="$ac_cv_path_EGREP"
4719
4720
4721 if test $ac_cv_c_compiler_gnu = yes; then
4722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4723 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4724 if ${ac_cv_prog_gcc_traditional+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727     ac_pattern="Autoconf.*'x'"
4728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h.  */
4730 #include <sgtty.h>
4731 Autoconf TIOCGETP
4732 _ACEOF
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4735   ac_cv_prog_gcc_traditional=yes
4736 else
4737   ac_cv_prog_gcc_traditional=no
4738 fi
4739 rm -f conftest*
4740
4741
4742   if test $ac_cv_prog_gcc_traditional = no; then
4743     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745 #include <termio.h>
4746 Autoconf TCGETA
4747 _ACEOF
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4750   ac_cv_prog_gcc_traditional=yes
4751 fi
4752 rm -f conftest*
4753
4754   fi
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4757 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4758   if test $ac_cv_prog_gcc_traditional = yes; then
4759     CC="$CC -traditional"
4760   fi
4761 fi
4762
4763 BASECC=`basename $CC`
4764 have_gcc=no
4765 if test x"$GCC" = "xyes"; then
4766    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4767
4768    have_gcc=yes
4769 fi
4770 # Extract the first word of "$CXX", so it can be a program name with args.
4771 set dummy $CXX; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_path_CXX+:} false; then :
4775   $as_echo_n "(cached) " >&6
4776 else
4777   case $CXX in
4778   [\\/]* | ?:[\\/]*)
4779   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4780   ;;
4781   *)
4782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787     for ac_exec_ext in '' $ac_executable_extensions; do
4788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791     break 2
4792   fi
4793 done
4794   done
4795 IFS=$as_save_IFS
4796
4797   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4798   ;;
4799 esac
4800 fi
4801 CXX=$ac_cv_path_CXX
4802 if test -n "$CXX"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4804 $as_echo "$CXX" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 if test ! -e $CXX; then
4812    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4813 fi
4814
4815 # Find a good install program.  We prefer a C program (faster),
4816 # so one script is as good as another.  But avoid the broken or
4817 # incompatible versions:
4818 # SysV /etc/install, /usr/sbin/install
4819 # SunOS /usr/etc/install
4820 # IRIX /sbin/install
4821 # AIX /bin/install
4822 # AmigaOS /C/install, which installs bootblocks on floppy discs
4823 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4824 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4825 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4826 # OS/2's system install, which has a completely different semantic
4827 # ./install, which can be erroneously created by make from ./install.sh.
4828 # Reject install programs that cannot install multiple files.
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4830 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4831 if test -z "$INSTALL"; then
4832 if ${ac_cv_path_install+:} false; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840     # Account for people who put trailing slashes in PATH elements.
4841 case $as_dir/ in #((
4842   ./ | .// | /[cC]/* | \
4843   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4844   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4845   /usr/ucb/* ) ;;
4846   *)
4847     # OSF1 and SCO ODT 3.0 have their own names for install.
4848     # Don't use installbsd from OSF since it installs stuff as root
4849     # by default.
4850     for ac_prog in ginstall scoinst install; do
4851       for ac_exec_ext in '' $ac_executable_extensions; do
4852         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4853           if test $ac_prog = install &&
4854             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855             # AIX install.  It has an incompatible calling convention.
4856             :
4857           elif test $ac_prog = install &&
4858             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4859             # program-specific install script used by HP pwplus--don't use.
4860             :
4861           else
4862             rm -rf conftest.one conftest.two conftest.dir
4863             echo one > conftest.one
4864             echo two > conftest.two
4865             mkdir conftest.dir
4866             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4867               test -s conftest.one && test -s conftest.two &&
4868               test -s conftest.dir/conftest.one &&
4869               test -s conftest.dir/conftest.two
4870             then
4871               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4872               break 3
4873             fi
4874           fi
4875         fi
4876       done
4877     done
4878     ;;
4879 esac
4880
4881   done
4882 IFS=$as_save_IFS
4883
4884 rm -rf conftest.one conftest.two conftest.dir
4885
4886 fi
4887   if test "${ac_cv_path_install+set}" = set; then
4888     INSTALL=$ac_cv_path_install
4889   else
4890     # As a last resort, use the slow shell script.  Don't cache a
4891     # value for INSTALL within a source directory, because that will
4892     # break other packages using the cache if that directory is
4893     # removed, or if the value is a relative name.
4894     INSTALL=$ac_install_sh
4895   fi
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4898 $as_echo "$INSTALL" >&6; }
4899
4900 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4901 # It thinks the first close brace ends the variable substitution.
4902 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4903
4904 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4905
4906 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4907
4908 # Extract the first word of "mv", so it can be a program name with args.
4909 set dummy mv; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_path_MV+:} false; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   case $MV in
4916   [\\/]* | ?:[\\/]*)
4917   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4918   ;;
4919   *)
4920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4936   ;;
4937 esac
4938 fi
4939 MV=$ac_cv_path_MV
4940 if test -n "$MV"; then
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4942 $as_echo "$MV" >&6; }
4943 else
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 # Extract the first word of "rm", so it can be a program name with args.
4950 set dummy rm; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_path_REMOVE+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   case $REMOVE in
4957   [\\/]* | ?:[\\/]*)
4958   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4959   ;;
4960   *)
4961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966     for ac_exec_ext in '' $ac_executable_extensions; do
4967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973   done
4974 IFS=$as_save_IFS
4975
4976   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4977   ;;
4978 esac
4979 fi
4980 REMOVE=$ac_cv_path_REMOVE
4981 if test -n "$REMOVE"; then
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4983 $as_echo "$REMOVE" >&6; }
4984 else
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4988
4989
4990 # Extract the first word of "cp", so it can be a program name with args.
4991 set dummy cp; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_path_CP+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   case $CP in
4998   [\\/]* | ?:[\\/]*)
4999   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5000   ;;
5001   *)
5002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007     for ac_exec_ext in '' $ac_executable_extensions; do
5008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014   done
5015 IFS=$as_save_IFS
5016
5017   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5018   ;;
5019 esac
5020 fi
5021 CP=$ac_cv_path_CP
5022 if test -n "$CP"; then
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5024 $as_echo "$CP" >&6; }
5025 else
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031 # Extract the first word of "sed", so it can be a program name with args.
5032 set dummy sed; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_path_SED+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   case $SED in
5039   [\\/]* | ?:[\\/]*)
5040   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041   ;;
5042   *)
5043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046   IFS=$as_save_IFS
5047   test -z "$as_dir" && as_dir=.
5048     for ac_exec_ext in '' $ac_executable_extensions; do
5049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055   done
5056 IFS=$as_save_IFS
5057
5058   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5059   ;;
5060 esac
5061 fi
5062 SED=$ac_cv_path_SED
5063 if test -n "$SED"; then
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5065 $as_echo "$SED" >&6; }
5066 else
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5069 fi
5070
5071
5072 # Extract the first word of "echo", so it can be a program name with args.
5073 set dummy echo; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_path_ECHO+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   case $ECHO in
5080   [\\/]* | ?:[\\/]*)
5081   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5082   ;;
5083   *)
5084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096   done
5097 IFS=$as_save_IFS
5098
5099   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5100   ;;
5101 esac
5102 fi
5103 ECHO=$ac_cv_path_ECHO
5104 if test -n "$ECHO"; then
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5106 $as_echo "$ECHO" >&6; }
5107 else
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111
5112
5113 # Extract the first word of "cmp", so it can be a program name with args.
5114 set dummy cmp; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_CMP+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   case $CMP in
5121   [\\/]* | ?:[\\/]*)
5122   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5123   ;;
5124   *)
5125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5141   ;;
5142 esac
5143 fi
5144 CMP=$ac_cv_path_CMP
5145 if test -n "$CMP"; then
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5147 $as_echo "$CMP" >&6; }
5148 else
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154 # Extract the first word of "tbl", so it can be a program name with args.
5155 set dummy tbl; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_path_TBL+:} false; then :
5159   $as_echo_n "(cached) " >&6
5160 else
5161   case $TBL in
5162   [\\/]* | ?:[\\/]*)
5163   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5164   ;;
5165   *)
5166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171     for ac_exec_ext in '' $ac_executable_extensions; do
5172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178   done
5179 IFS=$as_save_IFS
5180
5181   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5182   ;;
5183 esac
5184 fi
5185 TBL=$ac_cv_path_TBL
5186 if test -n "$TBL"; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5188 $as_echo "$TBL" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194
5195 # Extract the first word of "ar", so it can be a program name with args.
5196 set dummy ar; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_path_AR+:} false; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202   case $AR in
5203   [\\/]* | ?:[\\/]*)
5204   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5205   ;;
5206   *)
5207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210   IFS=$as_save_IFS
5211   test -z "$as_dir" && as_dir=.
5212     for ac_exec_ext in '' $ac_executable_extensions; do
5213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216     break 2
5217   fi
5218 done
5219   done
5220 IFS=$as_save_IFS
5221
5222   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5223   ;;
5224 esac
5225 fi
5226 AR=$ac_cv_path_AR
5227 if test -n "$AR"; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5229 $as_echo "$AR" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235
5236 # Extract the first word of "openssl", so it can be a program name with args.
5237 set dummy openssl; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_path_OPENSSL+:} false; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   case $OPENSSL in
5244   [\\/]* | ?:[\\/]*)
5245   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5246   ;;
5247   *)
5248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253     for ac_exec_ext in '' $ac_executable_extensions; do
5254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257     break 2
5258   fi
5259 done
5260   done
5261 IFS=$as_save_IFS
5262
5263   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5264   ;;
5265 esac
5266 fi
5267 OPENSSL=$ac_cv_path_OPENSSL
5268 if test -n "$OPENSSL"; then
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5270 $as_echo "$OPENSSL" >&6; }
5271 else
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276
5277 # Extract the first word of "mtx", so it can be a program name with args.
5278 set dummy mtx; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_path_MTX+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   case $MTX in
5285   [\\/]* | ?:[\\/]*)
5286   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5287   ;;
5288   *)
5289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292   IFS=$as_save_IFS
5293   test -z "$as_dir" && as_dir=.
5294     for ac_exec_ext in '' $ac_executable_extensions; do
5295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298     break 2
5299   fi
5300 done
5301   done
5302 IFS=$as_save_IFS
5303
5304   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5305   ;;
5306 esac
5307 fi
5308 MTX=$ac_cv_path_MTX
5309 if test -n "$MTX"; then
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5311 $as_echo "$MTX" >&6; }
5312 else
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317
5318 # Extract the first word of "dd", so it can be a program name with args.
5319 set dummy dd; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_path_DD+:} false; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   case $DD in
5326   [\\/]* | ?:[\\/]*)
5327   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5328   ;;
5329   *)
5330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333   IFS=$as_save_IFS
5334   test -z "$as_dir" && as_dir=.
5335     for ac_exec_ext in '' $ac_executable_extensions; do
5336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339     break 2
5340   fi
5341 done
5342   done
5343 IFS=$as_save_IFS
5344
5345   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5346   ;;
5347 esac
5348 fi
5349 DD=$ac_cv_path_DD
5350 if test -n "$DD"; then
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5352 $as_echo "$DD" >&6; }
5353 else
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 fi
5357
5358
5359 # Extract the first word of "mkisofs", so it can be a program name with args.
5360 set dummy mkisofs; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_path_MKISOFS+:} false; then :
5364   $as_echo_n "(cached) " >&6
5365 else
5366   case $MKISOFS in
5367   [\\/]* | ?:[\\/]*)
5368   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5369   ;;
5370   *)
5371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374   IFS=$as_save_IFS
5375   test -z "$as_dir" && as_dir=.
5376     for ac_exec_ext in '' $ac_executable_extensions; do
5377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380     break 2
5381   fi
5382 done
5383   done
5384 IFS=$as_save_IFS
5385
5386   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5387   ;;
5388 esac
5389 fi
5390 MKISOFS=$ac_cv_path_MKISOFS
5391 if test -n "$MKISOFS"; then
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5393 $as_echo "$MKISOFS" >&6; }
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400 # Extract the first word of "python", so it can be a program name with args.
5401 set dummy python; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_path_PYTHON+:} false; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   case $PYTHON in
5408   [\\/]* | ?:[\\/]*)
5409   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5410   ;;
5411   *)
5412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417     for ac_exec_ext in '' $ac_executable_extensions; do
5418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424   done
5425 IFS=$as_save_IFS
5426
5427   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5428   ;;
5429 esac
5430 fi
5431 PYTHON=$ac_cv_path_PYTHON
5432 if test -n "$PYTHON"; then
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5434 $as_echo "$PYTHON" >&6; }
5435 else
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440
5441 # Extract the first word of "growisofs", so it can be a program name with args.
5442 set dummy growisofs; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_path_GROWISOFS+:} false; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   case $GROWISOFS in
5449   [\\/]* | ?:[\\/]*)
5450   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5451   ;;
5452   *)
5453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458     for ac_exec_ext in '' $ac_executable_extensions; do
5459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462     break 2
5463   fi
5464 done
5465   done
5466 IFS=$as_save_IFS
5467
5468   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5469   ;;
5470 esac
5471 fi
5472 GROWISOFS=$ac_cv_path_GROWISOFS
5473 if test -n "$GROWISOFS"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5475 $as_echo "$GROWISOFS" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481
5482 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5483 set dummy dvd+rw-mediainfo; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489   case $DVDRWMEDIAINFO in
5490   [\\/]* | ?:[\\/]*)
5491   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5492   ;;
5493   *)
5494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499     for ac_exec_ext in '' $ac_executable_extensions; do
5500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506   done
5507 IFS=$as_save_IFS
5508
5509   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5510   ;;
5511 esac
5512 fi
5513 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5514 if test -n "$DVDRWMEDIAINFO"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5516 $as_echo "$DVDRWMEDIAINFO" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522
5523 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5524 set dummy dvd+rw-format; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5528   $as_echo_n "(cached) " >&6
5529 else
5530   case $DVDRWFORMAT in
5531   [\\/]* | ?:[\\/]*)
5532   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5533   ;;
5534   *)
5535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538   IFS=$as_save_IFS
5539   test -z "$as_dir" && as_dir=.
5540     for ac_exec_ext in '' $ac_executable_extensions; do
5541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544     break 2
5545   fi
5546 done
5547   done
5548 IFS=$as_save_IFS
5549
5550   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5551   ;;
5552 esac
5553 fi
5554 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5555 if test -n "$DVDRWFORMAT"; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5557 $as_echo "$DVDRWFORMAT" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 # Extract the first word of "pkg-config", so it can be a program name with args.
5565 set dummy pkg-config; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_path_PKGCONFIG+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   case $PKGCONFIG in
5572   [\\/]* | ?:[\\/]*)
5573   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5574   ;;
5575   *)
5576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5578 do
5579   IFS=$as_save_IFS
5580   test -z "$as_dir" && as_dir=.
5581     for ac_exec_ext in '' $ac_executable_extensions; do
5582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585     break 2
5586   fi
5587 done
5588   done
5589 IFS=$as_save_IFS
5590
5591   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5592   ;;
5593 esac
5594 fi
5595 PKGCONFIG=$ac_cv_path_PKGCONFIG
5596 if test -n "$PKGCONFIG"; then
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5598 $as_echo "$PKGCONFIG" >&6; }
5599 else
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604
5605 # Extract the first word of "qmake", so it can be a program name with args.
5606 set dummy qmake; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_path_QMAKE+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   case $QMAKE in
5613   [\\/]* | ?:[\\/]*)
5614   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5615   ;;
5616   *)
5617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629   done
5630 IFS=$as_save_IFS
5631
5632   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5633   ;;
5634 esac
5635 fi
5636 QMAKE=$ac_cv_path_QMAKE
5637 if test -n "$QMAKE"; then
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5639 $as_echo "$QMAKE" >&6; }
5640 else
5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645
5646 # Extract the first word of "gmake", so it can be a program name with args.
5647 set dummy gmake; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_path_GMAKE+:} false; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   case $GMAKE in
5654   [\\/]* | ?:[\\/]*)
5655   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5656   ;;
5657   *)
5658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661   IFS=$as_save_IFS
5662   test -z "$as_dir" && as_dir=.
5663     for ac_exec_ext in '' $ac_executable_extensions; do
5664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667     break 2
5668   fi
5669 done
5670   done
5671 IFS=$as_save_IFS
5672
5673   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5674   ;;
5675 esac
5676 fi
5677 GMAKE=$ac_cv_path_GMAKE
5678 if test -n "$GMAKE"; then
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5680 $as_echo "$GMAKE" >&6; }
5681 else
5682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685
5686
5687 # Extract the first word of "pidof", so it can be a program name with args.
5688 set dummy pidof; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_path_PIDOF+:} false; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   case $PIDOF in
5695   [\\/]* | ?:[\\/]*)
5696   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5697   ;;
5698   *)
5699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704     for ac_exec_ext in '' $ac_executable_extensions; do
5705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708     break 2
5709   fi
5710 done
5711   done
5712 IFS=$as_save_IFS
5713
5714   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5715   ;;
5716 esac
5717 fi
5718 PIDOF=$ac_cv_path_PIDOF
5719 if test -n "$PIDOF"; then
5720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5721 $as_echo "$PIDOF" >&6; }
5722 else
5723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728 for ac_prog in gawk mawk nawk awk
5729 do
5730   # Extract the first word of "$ac_prog", so it can be a program name with args.
5731 set dummy $ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_AWK+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$AWK"; then
5738   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747     ac_cv_prog_AWK="$ac_prog"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 AWK=$ac_cv_prog_AWK
5758 if test -n "$AWK"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5760 $as_echo "$AWK" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767   test -n "$AWK" && break
5768 done
5769
5770 # Some AWK programs fail, so test it and warn the user
5771 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5772       { if ((prog == $2) || (("(" prog ")") == $2) ||
5773       (("" prog "") == $2) ||
5774       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5775 else
5776   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5777    The regex engine of $AWK is too broken to be used you
5778    might want to install GNU AWK.
5779    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5780 fi
5781 THE_AWK=$AWK
5782 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5783 set dummy $THE_AWK; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if ${ac_cv_path_AWK+:} false; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   case $AWK in
5790   [\\/]* | ?:[\\/]*)
5791   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5792   ;;
5793   *)
5794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799     for ac_exec_ext in '' $ac_executable_extensions; do
5800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803     break 2
5804   fi
5805 done
5806   done
5807 IFS=$as_save_IFS
5808
5809   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5810   ;;
5811 esac
5812 fi
5813 AWK=$ac_cv_path_AWK
5814 if test -n "$AWK"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5816 $as_echo "$AWK" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823
5824
5825 test -n "$ARFLAG" || ARFLAGS="cr"
5826
5827
5828 MAKE_SHELL=/bin/sh
5829
5830
5831
5832
5833
5834
5835
5836 use_libtool=yes
5837 # Check whether --enable-libtool was given.
5838 if test "${enable_libtool+set}" = set; then :
5839   enableval=$enable_libtool;
5840        if test x$enableval = xno; then
5841           use_libtool=no
5842        fi
5843
5844
5845 fi
5846
5847 case `pwd` in
5848   *\ * | *\     *)
5849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5851 esac
5852
5853
5854
5855 macro_version='2.4.2'
5856 macro_revision='1.3337'
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 ltmain="$ac_aux_dir/ltmain.sh"
5871
5872 # Make sure we can run config.sub.
5873 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5874   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5875
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5877 $as_echo_n "checking build system type... " >&6; }
5878 if ${ac_cv_build+:} false; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881   ac_build_alias=$build_alias
5882 test "x$ac_build_alias" = x &&
5883   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5884 test "x$ac_build_alias" = x &&
5885   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5886 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5887   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5888
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5891 $as_echo "$ac_cv_build" >&6; }
5892 case $ac_cv_build in
5893 *-*-*) ;;
5894 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5895 esac
5896 build=$ac_cv_build
5897 ac_save_IFS=$IFS; IFS='-'
5898 set x $ac_cv_build
5899 shift
5900 build_cpu=$1
5901 build_vendor=$2
5902 shift; shift
5903 # Remember, the first character of IFS is used to create $*,
5904 # except with old shells:
5905 build_os=$*
5906 IFS=$ac_save_IFS
5907 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5911 $as_echo_n "checking host system type... " >&6; }
5912 if ${ac_cv_host+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   if test "x$host_alias" = x; then
5916   ac_cv_host=$ac_cv_build
5917 else
5918   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5919     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5924 $as_echo "$ac_cv_host" >&6; }
5925 case $ac_cv_host in
5926 *-*-*) ;;
5927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5928 esac
5929 host=$ac_cv_host
5930 ac_save_IFS=$IFS; IFS='-'
5931 set x $ac_cv_host
5932 shift
5933 host_cpu=$1
5934 host_vendor=$2
5935 shift; shift
5936 # Remember, the first character of IFS is used to create $*,
5937 # except with old shells:
5938 host_os=$*
5939 IFS=$ac_save_IFS
5940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5941
5942
5943 # Backslashify metacharacters that are still active within
5944 # double-quoted strings.
5945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5946
5947 # Same as above, but do not quote variable references.
5948 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5949
5950 # Sed substitution to delay expansion of an escaped shell variable in a
5951 # double_quote_subst'ed string.
5952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5953
5954 # Sed substitution to delay expansion of an escaped single quote.
5955 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5956
5957 # Sed substitution to avoid accidental globbing in evaled expressions
5958 no_glob_subst='s/\*/\\\*/g'
5959
5960 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5965 $as_echo_n "checking how to print strings... " >&6; }
5966 # Test print first, because it will be a builtin if present.
5967 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5968    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5969   ECHO='print -r --'
5970 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5971   ECHO='printf %s\n'
5972 else
5973   # Use this function as a fallback that always works.
5974   func_fallback_echo ()
5975   {
5976     eval 'cat <<_LTECHO_EOF
5977 $1
5978 _LTECHO_EOF'
5979   }
5980   ECHO='func_fallback_echo'
5981 fi
5982
5983 # func_echo_all arg...
5984 # Invoke $ECHO with all args, space-separated.
5985 func_echo_all ()
5986 {
5987     $ECHO ""
5988 }
5989
5990 case "$ECHO" in
5991   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5992 $as_echo "printf" >&6; } ;;
5993   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5994 $as_echo "print -r" >&6; } ;;
5995   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5996 $as_echo "cat" >&6; } ;;
5997 esac
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6014 if ${ac_cv_path_SED+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6018      for ac_i in 1 2 3 4 5 6 7; do
6019        ac_script="$ac_script$as_nl$ac_script"
6020      done
6021      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6022      { ac_script=; unset ac_script;}
6023      if test -z "$SED"; then
6024   ac_path_SED_found=false
6025   # Loop through the user's path and test for each of PROGNAME-LIST
6026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031     for ac_prog in sed gsed; do
6032     for ac_exec_ext in '' $ac_executable_extensions; do
6033       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6034       as_fn_executable_p "$ac_path_SED" || continue
6035 # Check for GNU ac_path_SED and select it if it is found.
6036   # Check for GNU $ac_path_SED
6037 case `"$ac_path_SED" --version 2>&1` in
6038 *GNU*)
6039   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6040 *)
6041   ac_count=0
6042   $as_echo_n 0123456789 >"conftest.in"
6043   while :
6044   do
6045     cat "conftest.in" "conftest.in" >"conftest.tmp"
6046     mv "conftest.tmp" "conftest.in"
6047     cp "conftest.in" "conftest.nl"
6048     $as_echo '' >> "conftest.nl"
6049     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6051     as_fn_arith $ac_count + 1 && ac_count=$as_val
6052     if test $ac_count -gt ${ac_path_SED_max-0}; then
6053       # Best one so far, save it but keep looking for a better one
6054       ac_cv_path_SED="$ac_path_SED"
6055       ac_path_SED_max=$ac_count
6056     fi
6057     # 10*(2^10) chars as input seems more than enough
6058     test $ac_count -gt 10 && break
6059   done
6060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6061 esac
6062
6063       $ac_path_SED_found && break 3
6064     done
6065   done
6066   done
6067 IFS=$as_save_IFS
6068   if test -z "$ac_cv_path_SED"; then
6069     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6070   fi
6071 else
6072   ac_cv_path_SED=$SED
6073 fi
6074
6075 fi
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6077 $as_echo "$ac_cv_path_SED" >&6; }
6078  SED="$ac_cv_path_SED"
6079   rm -f conftest.sed
6080
6081 test -z "$SED" && SED=sed
6082 Xsed="$SED -e 1s/^X//"
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6095 $as_echo_n "checking for fgrep... " >&6; }
6096 if ${ac_cv_path_FGREP+:} false; then :
6097   $as_echo_n "(cached) " >&6
6098 else
6099   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6100    then ac_cv_path_FGREP="$GREP -F"
6101    else
6102      if test -z "$FGREP"; then
6103   ac_path_FGREP_found=false
6104   # Loop through the user's path and test for each of PROGNAME-LIST
6105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110     for ac_prog in fgrep; do
6111     for ac_exec_ext in '' $ac_executable_extensions; do
6112       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6113       as_fn_executable_p "$ac_path_FGREP" || continue
6114 # Check for GNU ac_path_FGREP and select it if it is found.
6115   # Check for GNU $ac_path_FGREP
6116 case `"$ac_path_FGREP" --version 2>&1` in
6117 *GNU*)
6118   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6119 *)
6120   ac_count=0
6121   $as_echo_n 0123456789 >"conftest.in"
6122   while :
6123   do
6124     cat "conftest.in" "conftest.in" >"conftest.tmp"
6125     mv "conftest.tmp" "conftest.in"
6126     cp "conftest.in" "conftest.nl"
6127     $as_echo 'FGREP' >> "conftest.nl"
6128     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6129     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6130     as_fn_arith $ac_count + 1 && ac_count=$as_val
6131     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6132       # Best one so far, save it but keep looking for a better one
6133       ac_cv_path_FGREP="$ac_path_FGREP"
6134       ac_path_FGREP_max=$ac_count
6135     fi
6136     # 10*(2^10) chars as input seems more than enough
6137     test $ac_count -gt 10 && break
6138   done
6139   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6140 esac
6141
6142       $ac_path_FGREP_found && break 3
6143     done
6144   done
6145   done
6146 IFS=$as_save_IFS
6147   if test -z "$ac_cv_path_FGREP"; then
6148     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6149   fi
6150 else
6151   ac_cv_path_FGREP=$FGREP
6152 fi
6153
6154    fi
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6157 $as_echo "$ac_cv_path_FGREP" >&6; }
6158  FGREP="$ac_cv_path_FGREP"
6159
6160
6161 test -z "$GREP" && GREP=grep
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181 # Check whether --with-gnu-ld was given.
6182 if test "${with_gnu_ld+set}" = set; then :
6183   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6184 else
6185   with_gnu_ld=no
6186 fi
6187
6188 ac_prog=ld
6189 if test "$GCC" = yes; then
6190   # Check if gcc -print-prog-name=ld gives a path.
6191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6192 $as_echo_n "checking for ld used by $CC... " >&6; }
6193   case $host in
6194   *-*-mingw*)
6195     # gcc leaves a trailing carriage return which upsets mingw
6196     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6197   *)
6198     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6199   esac
6200   case $ac_prog in
6201     # Accept absolute paths.
6202     [\\/]* | ?:[\\/]*)
6203       re_direlt='/[^/][^/]*/\.\./'
6204       # Canonicalize the pathname of ld
6205       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6206       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6207         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6208       done
6209       test -z "$LD" && LD="$ac_prog"
6210       ;;
6211   "")
6212     # If it fails, then pretend we aren't using GCC.
6213     ac_prog=ld
6214     ;;
6215   *)
6216     # If it is relative, then search for the first ld in PATH.
6217     with_gnu_ld=unknown
6218     ;;
6219   esac
6220 elif test "$with_gnu_ld" = yes; then
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6222 $as_echo_n "checking for GNU ld... " >&6; }
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6225 $as_echo_n "checking for non-GNU ld... " >&6; }
6226 fi
6227 if ${lt_cv_path_LD+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -z "$LD"; then
6231   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6232   for ac_dir in $PATH; do
6233     IFS="$lt_save_ifs"
6234     test -z "$ac_dir" && ac_dir=.
6235     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6236       lt_cv_path_LD="$ac_dir/$ac_prog"
6237       # Check to see if the program is GNU ld.  I'd rather use --version,
6238       # but apparently some variants of GNU ld only accept -v.
6239       # Break only if it was the GNU/non-GNU ld that we prefer.
6240       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6241       *GNU* | *'with BFD'*)
6242         test "$with_gnu_ld" != no && break
6243         ;;
6244       *)
6245         test "$with_gnu_ld" != yes && break
6246         ;;
6247       esac
6248     fi
6249   done
6250   IFS="$lt_save_ifs"
6251 else
6252   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6253 fi
6254 fi
6255
6256 LD="$lt_cv_path_LD"
6257 if test -n "$LD"; then
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6259 $as_echo "$LD" >&6; }
6260 else
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6267 if ${lt_cv_prog_gnu_ld+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6271 case `$LD -v 2>&1 </dev/null` in
6272 *GNU* | *'with BFD'*)
6273   lt_cv_prog_gnu_ld=yes
6274   ;;
6275 *)
6276   lt_cv_prog_gnu_ld=no
6277   ;;
6278 esac
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6281 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6282 with_gnu_ld=$lt_cv_prog_gnu_ld
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6293 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6294 if ${lt_cv_path_NM+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$NM"; then
6298   # Let the user override the test.
6299   lt_cv_path_NM="$NM"
6300 else
6301   lt_nm_to_check="${ac_tool_prefix}nm"
6302   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6303     lt_nm_to_check="$lt_nm_to_check nm"
6304   fi
6305   for lt_tmp_nm in $lt_nm_to_check; do
6306     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6307     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6308       IFS="$lt_save_ifs"
6309       test -z "$ac_dir" && ac_dir=.
6310       tmp_nm="$ac_dir/$lt_tmp_nm"
6311       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6312         # Check to see if the nm accepts a BSD-compat flag.
6313         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6314         #   nm: unknown option "B" ignored
6315         # Tru64's nm complains that /dev/null is an invalid object file
6316         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6317         */dev/null* | *'Invalid file or object type'*)
6318           lt_cv_path_NM="$tmp_nm -B"
6319           break
6320           ;;
6321         *)
6322           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6323           */dev/null*)
6324             lt_cv_path_NM="$tmp_nm -p"
6325             break
6326             ;;
6327           *)
6328             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6329             continue # so that we can try to find one that supports BSD flags
6330             ;;
6331           esac
6332           ;;
6333         esac
6334       fi
6335     done
6336     IFS="$lt_save_ifs"
6337   done
6338   : ${lt_cv_path_NM=no}
6339 fi
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6342 $as_echo "$lt_cv_path_NM" >&6; }
6343 if test "$lt_cv_path_NM" != "no"; then
6344   NM="$lt_cv_path_NM"
6345 else
6346   # Didn't find any BSD compatible name lister, look for dumpbin.
6347   if test -n "$DUMPBIN"; then :
6348     # Let the user override the test.
6349   else
6350     if test -n "$ac_tool_prefix"; then
6351   for ac_prog in dumpbin "link -dump"
6352   do
6353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_DUMPBIN+:} false; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$DUMPBIN"; then
6361   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 DUMPBIN=$ac_cv_prog_DUMPBIN
6381 if test -n "$DUMPBIN"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6383 $as_echo "$DUMPBIN" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390     test -n "$DUMPBIN" && break
6391   done
6392 fi
6393 if test -z "$DUMPBIN"; then
6394   ac_ct_DUMPBIN=$DUMPBIN
6395   for ac_prog in dumpbin "link -dump"
6396 do
6397   # Extract the first word of "$ac_prog", so it can be a program name with args.
6398 set dummy $ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$ac_ct_DUMPBIN"; then
6405   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6425 if test -n "$ac_ct_DUMPBIN"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6427 $as_echo "$ac_ct_DUMPBIN" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434   test -n "$ac_ct_DUMPBIN" && break
6435 done
6436
6437   if test "x$ac_ct_DUMPBIN" = x; then
6438     DUMPBIN=":"
6439   else
6440     case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446     DUMPBIN=$ac_ct_DUMPBIN
6447   fi
6448 fi
6449
6450     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6451     *COFF*)
6452       DUMPBIN="$DUMPBIN -symbols"
6453       ;;
6454     *)
6455       DUMPBIN=:
6456       ;;
6457     esac
6458   fi
6459
6460   if test "$DUMPBIN" != ":"; then
6461     NM="$DUMPBIN"
6462   fi
6463 fi
6464 test -z "$NM" && NM=nm
6465
6466
6467
6468
6469
6470
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6472 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6473 if ${lt_cv_nm_interface+:} false; then :
6474   $as_echo_n "(cached) " >&6
6475 else
6476   lt_cv_nm_interface="BSD nm"
6477   echo "int some_variable = 0;" > conftest.$ac_ext
6478   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6479   (eval "$ac_compile" 2>conftest.err)
6480   cat conftest.err >&5
6481   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6482   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6483   cat conftest.err >&5
6484   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6485   cat conftest.out >&5
6486   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6487     lt_cv_nm_interface="MS dumpbin"
6488   fi
6489   rm -f conftest*
6490 fi
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6492 $as_echo "$lt_cv_nm_interface" >&6; }
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6495 $as_echo_n "checking whether ln -s works... " >&6; }
6496 LN_S=$as_ln_s
6497 if test "$LN_S" = "ln -s"; then
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6499 $as_echo "yes" >&6; }
6500 else
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6502 $as_echo "no, using $LN_S" >&6; }
6503 fi
6504
6505 # find the maximum length of command line arguments
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6507 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6508 if ${lt_cv_sys_max_cmd_len+:} false; then :
6509   $as_echo_n "(cached) " >&6
6510 else
6511     i=0
6512   teststring="ABCD"
6513
6514   case $build_os in
6515   msdosdjgpp*)
6516     # On DJGPP, this test can blow up pretty badly due to problems in libc
6517     # (any single argument exceeding 2000 bytes causes a buffer overrun
6518     # during glob expansion).  Even if it were fixed, the result of this
6519     # check would be larger than it should be.
6520     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6521     ;;
6522
6523   gnu*)
6524     # Under GNU Hurd, this test is not required because there is
6525     # no limit to the length of command line arguments.
6526     # Libtool will interpret -1 as no limit whatsoever
6527     lt_cv_sys_max_cmd_len=-1;
6528     ;;
6529
6530   cygwin* | mingw* | cegcc*)
6531     # On Win9x/ME, this test blows up -- it succeeds, but takes
6532     # about 5 minutes as the teststring grows exponentially.
6533     # Worse, since 9x/ME are not pre-emptively multitasking,
6534     # you end up with a "frozen" computer, even though with patience
6535     # the test eventually succeeds (with a max line length of 256k).
6536     # Instead, let's just punt: use the minimum linelength reported by
6537     # all of the supported platforms: 8192 (on NT/2K/XP).
6538     lt_cv_sys_max_cmd_len=8192;
6539     ;;
6540
6541   mint*)
6542     # On MiNT this can take a long time and run out of memory.
6543     lt_cv_sys_max_cmd_len=8192;
6544     ;;
6545
6546   amigaos*)
6547     # On AmigaOS with pdksh, this test takes hours, literally.
6548     # So we just punt and use a minimum line length of 8192.
6549     lt_cv_sys_max_cmd_len=8192;
6550     ;;
6551
6552   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6553     # This has been around since 386BSD, at least.  Likely further.
6554     if test -x /sbin/sysctl; then
6555       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6556     elif test -x /usr/sbin/sysctl; then
6557       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6558     else
6559       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6560     fi
6561     # And add a safety zone
6562     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6563     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6564     ;;
6565
6566   interix*)
6567     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6568     lt_cv_sys_max_cmd_len=196608
6569     ;;
6570
6571   os2*)
6572     # The test takes a long time on OS/2.
6573     lt_cv_sys_max_cmd_len=8192
6574     ;;
6575
6576   osf*)
6577     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6578     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6579     # nice to cause kernel panics so lets avoid the loop below.
6580     # First set a reasonable default.
6581     lt_cv_sys_max_cmd_len=16384
6582     #
6583     if test -x /sbin/sysconfig; then
6584       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6585         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6586       esac
6587     fi
6588     ;;
6589   sco3.2v5*)
6590     lt_cv_sys_max_cmd_len=102400
6591     ;;
6592   sysv5* | sco5v6* | sysv4.2uw2*)
6593     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6594     if test -n "$kargmax"; then
6595       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6596     else
6597       lt_cv_sys_max_cmd_len=32768
6598     fi
6599     ;;
6600   *)
6601     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6602     if test -n "$lt_cv_sys_max_cmd_len" && \
6603         test undefined != "$lt_cv_sys_max_cmd_len"; then
6604       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6605       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6606     else
6607       # Make teststring a little bigger before we do anything with it.
6608       # a 1K string should be a reasonable start.
6609       for i in 1 2 3 4 5 6 7 8 ; do
6610         teststring=$teststring$teststring
6611       done
6612       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6613       # If test is not a shell built-in, we'll probably end up computing a
6614       # maximum length that is only half of the actual maximum length, but
6615       # we can't tell.
6616       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6617                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6618               test $i != 17 # 1/2 MB should be enough
6619       do
6620         i=`expr $i + 1`
6621         teststring=$teststring$teststring
6622       done
6623       # Only check the string length outside the loop.
6624       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6625       teststring=
6626       # Add a significant safety factor because C++ compilers can tack on
6627       # massive amounts of additional arguments before passing them to the
6628       # linker.  It appears as though 1/2 is a usable value.
6629       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6630     fi
6631     ;;
6632   esac
6633
6634 fi
6635
6636 if test -n $lt_cv_sys_max_cmd_len ; then
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6638 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6639 else
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6641 $as_echo "none" >&6; }
6642 fi
6643 max_cmd_len=$lt_cv_sys_max_cmd_len
6644
6645
6646
6647
6648
6649
6650 : ${CP="cp -f"}
6651 : ${MV="mv -f"}
6652 : ${RM="rm -f"}
6653
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6655 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6656 # Try some XSI features
6657 xsi_shell=no
6658 ( _lt_dummy="a/b/c"
6659   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6660       = c,a/b,b/c, \
6661     && eval 'test $(( 1 + 1 )) -eq 2 \
6662     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6663   && xsi_shell=yes
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6665 $as_echo "$xsi_shell" >&6; }
6666
6667
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6669 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6670 lt_shell_append=no
6671 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6672     >/dev/null 2>&1 \
6673   && lt_shell_append=yes
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6675 $as_echo "$lt_shell_append" >&6; }
6676
6677
6678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6679   lt_unset=unset
6680 else
6681   lt_unset=false
6682 fi
6683
6684
6685
6686
6687
6688 # test EBCDIC or ASCII
6689 case `echo X|tr X '\101'` in
6690  A) # ASCII based system
6691     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6692   lt_SP2NL='tr \040 \012'
6693   lt_NL2SP='tr \015\012 \040\040'
6694   ;;
6695  *) # EBCDIC based system
6696   lt_SP2NL='tr \100 \n'
6697   lt_NL2SP='tr \r\n \100\100'
6698   ;;
6699 esac
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6710 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6711 if ${lt_cv_to_host_file_cmd+:} false; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   case $host in
6715   *-*-mingw* )
6716     case $build in
6717       *-*-mingw* ) # actually msys
6718         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6719         ;;
6720       *-*-cygwin* )
6721         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6722         ;;
6723       * ) # otherwise, assume *nix
6724         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6725         ;;
6726     esac
6727     ;;
6728   *-*-cygwin* )
6729     case $build in
6730       *-*-mingw* ) # actually msys
6731         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6732         ;;
6733       *-*-cygwin* )
6734         lt_cv_to_host_file_cmd=func_convert_file_noop
6735         ;;
6736       * ) # otherwise, assume *nix
6737         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6738         ;;
6739     esac
6740     ;;
6741   * ) # unhandled hosts (and "normal" native builds)
6742     lt_cv_to_host_file_cmd=func_convert_file_noop
6743     ;;
6744 esac
6745
6746 fi
6747
6748 to_host_file_cmd=$lt_cv_to_host_file_cmd
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6750 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6751
6752
6753
6754
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6757 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6758 if ${lt_cv_to_tool_file_cmd+:} false; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   #assume ordinary cross tools, or native build.
6762 lt_cv_to_tool_file_cmd=func_convert_file_noop
6763 case $host in
6764   *-*-mingw* )
6765     case $build in
6766       *-*-mingw* ) # actually msys
6767         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6768         ;;
6769     esac
6770     ;;
6771 esac
6772
6773 fi
6774
6775 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6777 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6778
6779
6780
6781
6782
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6784 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6785 if ${lt_cv_ld_reload_flag+:} false; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   lt_cv_ld_reload_flag='-r'
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6791 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6792 reload_flag=$lt_cv_ld_reload_flag
6793 case $reload_flag in
6794 "" | " "*) ;;
6795 *) reload_flag=" $reload_flag" ;;
6796 esac
6797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6798 case $host_os in
6799   cygwin* | mingw* | pw32* | cegcc*)
6800     if test "$GCC" != yes; then
6801       reload_cmds=false
6802     fi
6803     ;;
6804   darwin*)
6805     if test "$GCC" = yes; then
6806       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6807     else
6808       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6809     fi
6810     ;;
6811 esac
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821 if test -n "$ac_tool_prefix"; then
6822   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_OBJDUMP+:} false; then :
6827   $as_echo_n "(cached) " >&6
6828 else
6829   if test -n "$OBJDUMP"; then
6830   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837     for ac_exec_ext in '' $ac_executable_extensions; do
6838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844   done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 OBJDUMP=$ac_cv_prog_OBJDUMP
6850 if test -n "$OBJDUMP"; then
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6852 $as_echo "$OBJDUMP" >&6; }
6853 else
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_OBJDUMP"; then
6861   ac_ct_OBJDUMP=$OBJDUMP
6862   # Extract the first word of "objdump", so it can be a program name with args.
6863 set dummy objdump; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869   if test -n "$ac_ct_OBJDUMP"; then
6870   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877     for ac_exec_ext in '' $ac_executable_extensions; do
6878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884   done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6890 if test -n "$ac_ct_OBJDUMP"; then
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6892 $as_echo "$ac_ct_OBJDUMP" >&6; }
6893 else
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898   if test "x$ac_ct_OBJDUMP" = x; then
6899     OBJDUMP="false"
6900   else
6901     case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907     OBJDUMP=$ac_ct_OBJDUMP
6908   fi
6909 else
6910   OBJDUMP="$ac_cv_prog_OBJDUMP"
6911 fi
6912
6913 test -z "$OBJDUMP" && OBJDUMP=objdump
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6924 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6925 if ${lt_cv_deplibs_check_method+:} false; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   lt_cv_file_magic_cmd='$MAGIC_CMD'
6929 lt_cv_file_magic_test_file=
6930 lt_cv_deplibs_check_method='unknown'
6931 # Need to set the preceding variable on all platforms that support
6932 # interlibrary dependencies.
6933 # 'none' -- dependencies not supported.
6934 # `unknown' -- same as none, but documents that we really don't know.
6935 # 'pass_all' -- all dependencies passed with no checks.
6936 # 'test_compile' -- check by making test program.
6937 # 'file_magic [[regex]]' -- check by looking for files in library path
6938 # which responds to the $file_magic_cmd with a given extended regex.
6939 # If you have `file' or equivalent on your system and you're not sure
6940 # whether `pass_all' will *always* work, you probably want this one.
6941
6942 case $host_os in
6943 aix[4-9]*)
6944   lt_cv_deplibs_check_method=pass_all
6945   ;;
6946
6947 beos*)
6948   lt_cv_deplibs_check_method=pass_all
6949   ;;
6950
6951 bsdi[45]*)
6952   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6953   lt_cv_file_magic_cmd='/usr/bin/file -L'
6954   lt_cv_file_magic_test_file=/shlib/libc.so
6955   ;;
6956
6957 cygwin*)
6958   # func_win32_libid is a shell function defined in ltmain.sh
6959   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6960   lt_cv_file_magic_cmd='func_win32_libid'
6961   ;;
6962
6963 mingw* | pw32*)
6964   # Base MSYS/MinGW do not provide the 'file' command needed by
6965   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6966   # unless we find 'file', for example because we are cross-compiling.
6967   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6968   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6969     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6970     lt_cv_file_magic_cmd='func_win32_libid'
6971   else
6972     # Keep this pattern in sync with the one in func_win32_libid.
6973     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6974     lt_cv_file_magic_cmd='$OBJDUMP -f'
6975   fi
6976   ;;
6977
6978 cegcc*)
6979   # use the weaker test based on 'objdump'. See mingw*.
6980   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6981   lt_cv_file_magic_cmd='$OBJDUMP -f'
6982   ;;
6983
6984 darwin* | rhapsody*)
6985   lt_cv_deplibs_check_method=pass_all
6986   ;;
6987
6988 freebsd* | dragonfly*)
6989   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6990     case $host_cpu in
6991     i*86 )
6992       # Not sure whether the presence of OpenBSD here was a mistake.
6993       # Let's accept both of them until this is cleared up.
6994       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6995       lt_cv_file_magic_cmd=/usr/bin/file
6996       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6997       ;;
6998     esac
6999   else
7000     lt_cv_deplibs_check_method=pass_all
7001   fi
7002   ;;
7003
7004 haiku*)
7005   lt_cv_deplibs_check_method=pass_all
7006   ;;
7007
7008 hpux10.20* | hpux11*)
7009   lt_cv_file_magic_cmd=/usr/bin/file
7010   case $host_cpu in
7011   ia64*)
7012     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7013     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7014     ;;
7015   hppa*64*)
7016     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]'
7017     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7018     ;;
7019   *)
7020     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7021     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7022     ;;
7023   esac
7024   ;;
7025
7026 interix[3-9]*)
7027   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7028   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7029   ;;
7030
7031 irix5* | irix6* | nonstopux*)
7032   case $LD in
7033   *-32|*"-32 ") libmagic=32-bit;;
7034   *-n32|*"-n32 ") libmagic=N32;;
7035   *-64|*"-64 ") libmagic=64-bit;;
7036   *) libmagic=never-match;;
7037   esac
7038   lt_cv_deplibs_check_method=pass_all
7039   ;;
7040
7041 # This must be glibc/ELF.
7042 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7043   lt_cv_deplibs_check_method=pass_all
7044   ;;
7045
7046 netbsd* | netbsdelf*-gnu)
7047   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7048     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7049   else
7050     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7051   fi
7052   ;;
7053
7054 newos6*)
7055   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7056   lt_cv_file_magic_cmd=/usr/bin/file
7057   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7058   ;;
7059
7060 *nto* | *qnx*)
7061   lt_cv_deplibs_check_method=pass_all
7062   ;;
7063
7064 openbsd*)
7065   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7066     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7067   else
7068     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7069   fi
7070   ;;
7071
7072 osf3* | osf4* | osf5*)
7073   lt_cv_deplibs_check_method=pass_all
7074   ;;
7075
7076 rdos*)
7077   lt_cv_deplibs_check_method=pass_all
7078   ;;
7079
7080 solaris*)
7081   lt_cv_deplibs_check_method=pass_all
7082   ;;
7083
7084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7085   lt_cv_deplibs_check_method=pass_all
7086   ;;
7087
7088 sysv4 | sysv4.3*)
7089   case $host_vendor in
7090   motorola)
7091     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]'
7092     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7093     ;;
7094   ncr)
7095     lt_cv_deplibs_check_method=pass_all
7096     ;;
7097   sequent)
7098     lt_cv_file_magic_cmd='/bin/file'
7099     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7100     ;;
7101   sni)
7102     lt_cv_file_magic_cmd='/bin/file'
7103     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7104     lt_cv_file_magic_test_file=/lib/libc.so
7105     ;;
7106   siemens)
7107     lt_cv_deplibs_check_method=pass_all
7108     ;;
7109   pc)
7110     lt_cv_deplibs_check_method=pass_all
7111     ;;
7112   esac
7113   ;;
7114
7115 tpf*)
7116   lt_cv_deplibs_check_method=pass_all
7117   ;;
7118 esac
7119
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7122 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7123
7124 file_magic_glob=
7125 want_nocaseglob=no
7126 if test "$build" = "$host"; then
7127   case $host_os in
7128   mingw* | pw32*)
7129     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7130       want_nocaseglob=yes
7131     else
7132       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7133     fi
7134     ;;
7135   esac
7136 fi
7137
7138 file_magic_cmd=$lt_cv_file_magic_cmd
7139 deplibs_check_method=$lt_cv_deplibs_check_method
7140 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163 if test -n "$ac_tool_prefix"; then
7164   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_DLLTOOL+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test -n "$DLLTOOL"; then
7172   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179     for ac_exec_ext in '' $ac_executable_extensions; do
7180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186   done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 DLLTOOL=$ac_cv_prog_DLLTOOL
7192 if test -n "$DLLTOOL"; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7194 $as_echo "$DLLTOOL" >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7198 fi
7199
7200
7201 fi
7202 if test -z "$ac_cv_prog_DLLTOOL"; then
7203   ac_ct_DLLTOOL=$DLLTOOL
7204   # Extract the first word of "dlltool", so it can be a program name with args.
7205 set dummy dlltool; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$ac_ct_DLLTOOL"; then
7212   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7232 if test -n "$ac_ct_DLLTOOL"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7234 $as_echo "$ac_ct_DLLTOOL" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240   if test "x$ac_ct_DLLTOOL" = x; then
7241     DLLTOOL="false"
7242   else
7243     case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7248 esac
7249     DLLTOOL=$ac_ct_DLLTOOL
7250   fi
7251 else
7252   DLLTOOL="$ac_cv_prog_DLLTOOL"
7253 fi
7254
7255 test -z "$DLLTOOL" && DLLTOOL=dlltool
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7267 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7268 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7269   $as_echo_n "(cached) " >&6
7270 else
7271   lt_cv_sharedlib_from_linklib_cmd='unknown'
7272
7273 case $host_os in
7274 cygwin* | mingw* | pw32* | cegcc*)
7275   # two different shell functions defined in ltmain.sh
7276   # decide which to use based on capabilities of $DLLTOOL
7277   case `$DLLTOOL --help 2>&1` in
7278   *--identify-strict*)
7279     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7280     ;;
7281   *)
7282     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7283     ;;
7284   esac
7285   ;;
7286 *)
7287   # fallback: assume linklib IS sharedlib
7288   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7289   ;;
7290 esac
7291
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7294 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7295 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7296 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7297
7298
7299
7300
7301
7302
7303
7304 if test -n "$ac_tool_prefix"; then
7305   for ac_prog in ar
7306   do
7307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_AR+:} false; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314   if test -n "$AR"; then
7315   ac_cv_prog_AR="$AR" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322     for ac_exec_ext in '' $ac_executable_extensions; do
7323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329   done
7330 IFS=$as_save_IFS
7331
7332 fi
7333 fi
7334 AR=$ac_cv_prog_AR
7335 if test -n "$AR"; then
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7337 $as_echo "$AR" >&6; }
7338 else
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342
7343
7344     test -n "$AR" && break
7345   done
7346 fi
7347 if test -z "$AR"; then
7348   ac_ct_AR=$AR
7349   for ac_prog in ar
7350 do
7351   # Extract the first word of "$ac_prog", so it can be a program name with args.
7352 set dummy $ac_prog; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$ac_ct_AR"; then
7359   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368     ac_cv_prog_ac_ct_AR="$ac_prog"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7379 if test -n "$ac_ct_AR"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7381 $as_echo "$ac_ct_AR" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387
7388   test -n "$ac_ct_AR" && break
7389 done
7390
7391   if test "x$ac_ct_AR" = x; then
7392     AR="false"
7393   else
7394     case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400     AR=$ac_ct_AR
7401   fi
7402 fi
7403
7404 : ${AR=ar}
7405 : ${AR_FLAGS=cru}
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7418 $as_echo_n "checking for archiver @FILE support... " >&6; }
7419 if ${lt_cv_ar_at_file+:} false; then :
7420   $as_echo_n "(cached) " >&6
7421 else
7422   lt_cv_ar_at_file=no
7423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h.  */
7425
7426 int
7427 main ()
7428 {
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435   echo conftest.$ac_objext > conftest.lst
7436       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7437       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7438   (eval $lt_ar_try) 2>&5
7439   ac_status=$?
7440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441   test $ac_status = 0; }
7442       if test "$ac_status" -eq 0; then
7443         # Ensure the archiver fails upon bogus file names.
7444         rm -f conftest.$ac_objext libconftest.a
7445         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7446   (eval $lt_ar_try) 2>&5
7447   ac_status=$?
7448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449   test $ac_status = 0; }
7450         if test "$ac_status" -ne 0; then
7451           lt_cv_ar_at_file=@
7452         fi
7453       fi
7454       rm -f conftest.* libconftest.a
7455
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7461 $as_echo "$lt_cv_ar_at_file" >&6; }
7462
7463 if test "x$lt_cv_ar_at_file" = xno; then
7464   archiver_list_spec=
7465 else
7466   archiver_list_spec=$lt_cv_ar_at_file
7467 fi
7468
7469
7470
7471
7472
7473
7474
7475 if test -n "$ac_tool_prefix"; then
7476   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}strip; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_STRIP+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$STRIP"; then
7484   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 STRIP=$ac_cv_prog_STRIP
7504 if test -n "$STRIP"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7506 $as_echo "$STRIP" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513 fi
7514 if test -z "$ac_cv_prog_STRIP"; then
7515   ac_ct_STRIP=$STRIP
7516   # Extract the first word of "strip", so it can be a program name with args.
7517 set dummy strip; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   if test -n "$ac_ct_STRIP"; then
7524   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529   IFS=$as_save_IFS
7530   test -z "$as_dir" && as_dir=.
7531     for ac_exec_ext in '' $ac_executable_extensions; do
7532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533     ac_cv_prog_ac_ct_STRIP="strip"
7534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535     break 2
7536   fi
7537 done
7538   done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7544 if test -n "$ac_ct_STRIP"; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7546 $as_echo "$ac_ct_STRIP" >&6; }
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552   if test "x$ac_ct_STRIP" = x; then
7553     STRIP=":"
7554   else
7555     case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561     STRIP=$ac_ct_STRIP
7562   fi
7563 else
7564   STRIP="$ac_cv_prog_STRIP"
7565 fi
7566
7567 test -z "$STRIP" && STRIP=:
7568
7569
7570
7571
7572
7573
7574 if test -n "$ac_tool_prefix"; then
7575   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_RANLIB+:} false; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582   if test -n "$RANLIB"; then
7583   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590     for ac_exec_ext in '' $ac_executable_extensions; do
7591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597   done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 RANLIB=$ac_cv_prog_RANLIB
7603 if test -n "$RANLIB"; then
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7605 $as_echo "$RANLIB" >&6; }
7606 else
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612 fi
7613 if test -z "$ac_cv_prog_RANLIB"; then
7614   ac_ct_RANLIB=$RANLIB
7615   # Extract the first word of "ranlib", so it can be a program name with args.
7616 set dummy ranlib; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7620   $as_echo_n "(cached) " >&6
7621 else
7622   if test -n "$ac_ct_RANLIB"; then
7623   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630     for ac_exec_ext in '' $ac_executable_extensions; do
7631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632     ac_cv_prog_ac_ct_RANLIB="ranlib"
7633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637   done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7643 if test -n "$ac_ct_RANLIB"; then
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7645 $as_echo "$ac_ct_RANLIB" >&6; }
7646 else
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651   if test "x$ac_ct_RANLIB" = x; then
7652     RANLIB=":"
7653   else
7654     case $cross_compiling:$ac_tool_warned in
7655 yes:)
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7659 esac
7660     RANLIB=$ac_ct_RANLIB
7661   fi
7662 else
7663   RANLIB="$ac_cv_prog_RANLIB"
7664 fi
7665
7666 test -z "$RANLIB" && RANLIB=:
7667
7668
7669
7670
7671
7672
7673 # Determine commands to create old-style static archives.
7674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7675 old_postinstall_cmds='chmod 644 $oldlib'
7676 old_postuninstall_cmds=
7677
7678 if test -n "$RANLIB"; then
7679   case $host_os in
7680   openbsd*)
7681     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7682     ;;
7683   *)
7684     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7685     ;;
7686   esac
7687   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7688 fi
7689
7690 case $host_os in
7691   darwin*)
7692     lock_old_archive_extraction=yes ;;
7693   *)
7694     lock_old_archive_extraction=no ;;
7695 esac
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735 # If no C compiler was specified, use CC.
7736 LTCC=${LTCC-"$CC"}
7737
7738 # If no C compiler flags were specified, use CFLAGS.
7739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7740
7741 # Allow CC to be a program name with arguments.
7742 compiler=$CC
7743
7744
7745 # Check for command to grab the raw symbol name followed by C symbol from nm.
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7747 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7748 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751
7752 # These are sane defaults that work on at least a few old systems.
7753 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7754
7755 # Character class describing NM global symbol codes.
7756 symcode='[BCDEGRST]'
7757
7758 # Regexp to match symbols that can be accessed directly from C.
7759 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7760
7761 # Define system-specific variables.
7762 case $host_os in
7763 aix*)
7764   symcode='[BCDT]'
7765   ;;
7766 cygwin* | mingw* | pw32* | cegcc*)
7767   symcode='[ABCDGISTW]'
7768   ;;
7769 hpux*)
7770   if test "$host_cpu" = ia64; then
7771     symcode='[ABCDEGRST]'
7772   fi
7773   ;;
7774 irix* | nonstopux*)
7775   symcode='[BCDEGRST]'
7776   ;;
7777 osf*)
7778   symcode='[BCDEGQRST]'
7779   ;;
7780 solaris*)
7781   symcode='[BDRT]'
7782   ;;
7783 sco3.2v5*)
7784   symcode='[DT]'
7785   ;;
7786 sysv4.2uw2*)
7787   symcode='[DT]'
7788   ;;
7789 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7790   symcode='[ABDT]'
7791   ;;
7792 sysv4)
7793   symcode='[DFNSTU]'
7794   ;;
7795 esac
7796
7797 # If we're using GNU nm, then use its standard symbol codes.
7798 case `$NM -V 2>&1` in
7799 *GNU* | *'with BFD'*)
7800   symcode='[ABCDGIRSTW]' ;;
7801 esac
7802
7803 # Transform an extracted symbol line into a proper C declaration.
7804 # Some systems (esp. on ia64) link data and code symbols differently,
7805 # so use this general approach.
7806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7807
7808 # Transform an extracted symbol line into symbol name and symbol address
7809 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7810 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'"
7811
7812 # Handle CRLF in mingw tool chain
7813 opt_cr=
7814 case $build_os in
7815 mingw*)
7816   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7817   ;;
7818 esac
7819
7820 # Try without a prefix underscore, then with it.
7821 for ac_symprfx in "" "_"; do
7822
7823   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7824   symxfrm="\\1 $ac_symprfx\\2 \\2"
7825
7826   # Write the raw and C identifiers.
7827   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7828     # Fake it for dumpbin and say T for any non-static function
7829     # and D for any global variable.
7830     # Also find C++ and __fastcall symbols from MSVC++,
7831     # which start with @ or ?.
7832     lt_cv_sys_global_symbol_pipe="$AWK '"\
7833 "     {last_section=section; section=\$ 3};"\
7834 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7835 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7836 "     \$ 0!~/External *\|/{next};"\
7837 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7838 "     {if(hide[section]) next};"\
7839 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7840 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7841 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7842 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7843 "     ' prfx=^$ac_symprfx"
7844   else
7845     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7846   fi
7847   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7848
7849   # Check to see that the pipe works correctly.
7850   pipe_works=no
7851
7852   rm -f conftest*
7853   cat > conftest.$ac_ext <<_LT_EOF
7854 #ifdef __cplusplus
7855 extern "C" {
7856 #endif
7857 char nm_test_var;
7858 void nm_test_func(void);
7859 void nm_test_func(void){}
7860 #ifdef __cplusplus
7861 }
7862 #endif
7863 int main(){nm_test_var='a';nm_test_func();return(0);}
7864 _LT_EOF
7865
7866   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7867   (eval $ac_compile) 2>&5
7868   ac_status=$?
7869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870   test $ac_status = 0; }; then
7871     # Now try to grab the symbols.
7872     nlist=conftest.nm
7873     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7874   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7875   ac_status=$?
7876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877   test $ac_status = 0; } && test -s "$nlist"; then
7878       # Try sorting and uniquifying the output.
7879       if sort "$nlist" | uniq > "$nlist"T; then
7880         mv -f "$nlist"T "$nlist"
7881       else
7882         rm -f "$nlist"T
7883       fi
7884
7885       # Make sure that we snagged all the symbols we need.
7886       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7887         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7888           cat <<_LT_EOF > conftest.$ac_ext
7889 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7890 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7891 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7892    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7893 # define LT_DLSYM_CONST
7894 #elif defined(__osf__)
7895 /* This system does not cope well with relocations in const data.  */
7896 # define LT_DLSYM_CONST
7897 #else
7898 # define LT_DLSYM_CONST const
7899 #endif
7900
7901 #ifdef __cplusplus
7902 extern "C" {
7903 #endif
7904
7905 _LT_EOF
7906           # Now generate the symbol file.
7907           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7908
7909           cat <<_LT_EOF >> conftest.$ac_ext
7910
7911 /* The mapping between symbol names and symbols.  */
7912 LT_DLSYM_CONST struct {
7913   const char *name;
7914   void       *address;
7915 }
7916 lt__PROGRAM__LTX_preloaded_symbols[] =
7917 {
7918   { "@PROGRAM@", (void *) 0 },
7919 _LT_EOF
7920           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7921           cat <<\_LT_EOF >> conftest.$ac_ext
7922   {0, (void *) 0}
7923 };
7924
7925 /* This works around a problem in FreeBSD linker */
7926 #ifdef FREEBSD_WORKAROUND
7927 static const void *lt_preloaded_setup() {
7928   return lt__PROGRAM__LTX_preloaded_symbols;
7929 }
7930 #endif
7931
7932 #ifdef __cplusplus
7933 }
7934 #endif
7935 _LT_EOF
7936           # Now try linking the two files.
7937           mv conftest.$ac_objext conftstm.$ac_objext
7938           lt_globsym_save_LIBS=$LIBS
7939           lt_globsym_save_CFLAGS=$CFLAGS
7940           LIBS="conftstm.$ac_objext"
7941           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7942           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7943   (eval $ac_link) 2>&5
7944   ac_status=$?
7945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7947             pipe_works=yes
7948           fi
7949           LIBS=$lt_globsym_save_LIBS
7950           CFLAGS=$lt_globsym_save_CFLAGS
7951         else
7952           echo "cannot find nm_test_func in $nlist" >&5
7953         fi
7954       else
7955         echo "cannot find nm_test_var in $nlist" >&5
7956       fi
7957     else
7958       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7959     fi
7960   else
7961     echo "$progname: failed program was:" >&5
7962     cat conftest.$ac_ext >&5
7963   fi
7964   rm -rf conftest* conftst*
7965
7966   # Do not use the global_symbol_pipe unless it works.
7967   if test "$pipe_works" = yes; then
7968     break
7969   else
7970     lt_cv_sys_global_symbol_pipe=
7971   fi
7972 done
7973
7974 fi
7975
7976 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7977   lt_cv_sys_global_symbol_to_cdecl=
7978 fi
7979 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7981 $as_echo "failed" >&6; }
7982 else
7983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7984 $as_echo "ok" >&6; }
7985 fi
7986
7987 # Response file support.
7988 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7989   nm_file_list_spec='@'
7990 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7991   nm_file_list_spec='@'
7992 fi
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8021 $as_echo_n "checking for sysroot... " >&6; }
8022
8023 # Check whether --with-sysroot was given.
8024 if test "${with_sysroot+set}" = set; then :
8025   withval=$with_sysroot;
8026 else
8027   with_sysroot=no
8028 fi
8029
8030
8031 lt_sysroot=
8032 case ${with_sysroot} in #(
8033  yes)
8034    if test "$GCC" = yes; then
8035      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8036    fi
8037    ;; #(
8038  /*)
8039    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8040    ;; #(
8041  no|'')
8042    ;; #(
8043  *)
8044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8045 $as_echo "${with_sysroot}" >&6; }
8046    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8047    ;;
8048 esac
8049
8050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8051 $as_echo "${lt_sysroot:-no}" >&6; }
8052
8053
8054
8055
8056
8057 # Check whether --enable-libtool-lock was given.
8058 if test "${enable_libtool_lock+set}" = set; then :
8059   enableval=$enable_libtool_lock;
8060 fi
8061
8062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8063
8064 # Some flags need to be propagated to the compiler or linker for good
8065 # libtool support.
8066 case $host in
8067 ia64-*-hpux*)
8068   # Find out which ABI we are using.
8069   echo 'int i;' > conftest.$ac_ext
8070   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8071   (eval $ac_compile) 2>&5
8072   ac_status=$?
8073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074   test $ac_status = 0; }; then
8075     case `/usr/bin/file conftest.$ac_objext` in
8076       *ELF-32*)
8077         HPUX_IA64_MODE="32"
8078         ;;
8079       *ELF-64*)
8080         HPUX_IA64_MODE="64"
8081         ;;
8082     esac
8083   fi
8084   rm -rf conftest*
8085   ;;
8086 *-*-irix6*)
8087   # Find out which ABI we are using.
8088   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8089   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8090   (eval $ac_compile) 2>&5
8091   ac_status=$?
8092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8093   test $ac_status = 0; }; then
8094     if test "$lt_cv_prog_gnu_ld" = yes; then
8095       case `/usr/bin/file conftest.$ac_objext` in
8096         *32-bit*)
8097           LD="${LD-ld} -melf32bsmip"
8098           ;;
8099         *N32*)
8100           LD="${LD-ld} -melf32bmipn32"
8101           ;;
8102         *64-bit*)
8103           LD="${LD-ld} -melf64bmip"
8104         ;;
8105       esac
8106     else
8107       case `/usr/bin/file conftest.$ac_objext` in
8108         *32-bit*)
8109           LD="${LD-ld} -32"
8110           ;;
8111         *N32*)
8112           LD="${LD-ld} -n32"
8113           ;;
8114         *64-bit*)
8115           LD="${LD-ld} -64"
8116           ;;
8117       esac
8118     fi
8119   fi
8120   rm -rf conftest*
8121   ;;
8122
8123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8124 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8125   # Find out which ABI we are using.
8126   echo 'int i;' > conftest.$ac_ext
8127   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8128   (eval $ac_compile) 2>&5
8129   ac_status=$?
8130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8131   test $ac_status = 0; }; then
8132     case `/usr/bin/file conftest.o` in
8133       *32-bit*)
8134         case $host in
8135           x86_64-*kfreebsd*-gnu)
8136             LD="${LD-ld} -m elf_i386_fbsd"
8137             ;;
8138           x86_64-*linux*)
8139             case `/usr/bin/file conftest.o` in
8140               *x86-64*)
8141                 LD="${LD-ld} -m elf32_x86_64"
8142                 ;;
8143               *)
8144                 LD="${LD-ld} -m elf_i386"
8145                 ;;
8146             esac
8147             ;;
8148           powerpc64le-*)
8149             LD="${LD-ld} -m elf32lppclinux"
8150             ;;
8151           powerpc64-*)
8152             LD="${LD-ld} -m elf32ppclinux"
8153             ;;
8154           s390x-*linux*)
8155             LD="${LD-ld} -m elf_s390"
8156             ;;
8157           sparc64-*linux*)
8158             LD="${LD-ld} -m elf32_sparc"
8159             ;;
8160         esac
8161         ;;
8162       *64-bit*)
8163         case $host in
8164           x86_64-*kfreebsd*-gnu)
8165             LD="${LD-ld} -m elf_x86_64_fbsd"
8166             ;;
8167           x86_64-*linux*)
8168             LD="${LD-ld} -m elf_x86_64"
8169             ;;
8170           powerpcle-*)
8171             LD="${LD-ld} -m elf64lppc"
8172             ;;
8173           powerpc-*)
8174             LD="${LD-ld} -m elf64ppc"
8175             ;;
8176           s390*-*linux*|s390*-*tpf*)
8177             LD="${LD-ld} -m elf64_s390"
8178             ;;
8179           sparc*-*linux*)
8180             LD="${LD-ld} -m elf64_sparc"
8181             ;;
8182         esac
8183         ;;
8184     esac
8185   fi
8186   rm -rf conftest*
8187   ;;
8188
8189 *-*-sco3.2v5*)
8190   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8191   SAVE_CFLAGS="$CFLAGS"
8192   CFLAGS="$CFLAGS -belf"
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8194 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8195 if ${lt_cv_cc_needs_belf+:} false; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   ac_ext=c
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8203
8204      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h.  */
8206
8207 int
8208 main ()
8209 {
8210
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"; then :
8216   lt_cv_cc_needs_belf=yes
8217 else
8218   lt_cv_cc_needs_belf=no
8219 fi
8220 rm -f core conftest.err conftest.$ac_objext \
8221     conftest$ac_exeext conftest.$ac_ext
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 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8230 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8231   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8232     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8233     CFLAGS="$SAVE_CFLAGS"
8234   fi
8235   ;;
8236 *-*solaris*)
8237   # Find out which ABI we are using.
8238   echo 'int i;' > conftest.$ac_ext
8239   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8240   (eval $ac_compile) 2>&5
8241   ac_status=$?
8242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243   test $ac_status = 0; }; then
8244     case `/usr/bin/file conftest.o` in
8245     *64-bit*)
8246       case $lt_cv_prog_gnu_ld in
8247       yes*)
8248         case $host in
8249         i?86-*-solaris*)
8250           LD="${LD-ld} -m elf_x86_64"
8251           ;;
8252         sparc*-*-solaris*)
8253           LD="${LD-ld} -m elf64_sparc"
8254           ;;
8255         esac
8256         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8257         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8258           LD="${LD-ld}_sol2"
8259         fi
8260         ;;
8261       *)
8262         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8263           LD="${LD-ld} -64"
8264         fi
8265         ;;
8266       esac
8267       ;;
8268     esac
8269   fi
8270   rm -rf conftest*
8271   ;;
8272 esac
8273
8274 need_locks="$enable_libtool_lock"
8275
8276 if test -n "$ac_tool_prefix"; then
8277   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8278 set dummy ${ac_tool_prefix}mt; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   if test -n "$MANIFEST_TOOL"; then
8285   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8286 else
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290   IFS=$as_save_IFS
8291   test -z "$as_dir" && as_dir=.
8292     for ac_exec_ext in '' $ac_executable_extensions; do
8293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296     break 2
8297   fi
8298 done
8299   done
8300 IFS=$as_save_IFS
8301
8302 fi
8303 fi
8304 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8305 if test -n "$MANIFEST_TOOL"; then
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8307 $as_echo "$MANIFEST_TOOL" >&6; }
8308 else
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8311 fi
8312
8313
8314 fi
8315 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8316   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8317   # Extract the first word of "mt", so it can be a program name with args.
8318 set dummy mt; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8322   $as_echo_n "(cached) " >&6
8323 else
8324   if test -n "$ac_ct_MANIFEST_TOOL"; then
8325   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330   IFS=$as_save_IFS
8331   test -z "$as_dir" && as_dir=.
8332     for ac_exec_ext in '' $ac_executable_extensions; do
8333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336     break 2
8337   fi
8338 done
8339   done
8340 IFS=$as_save_IFS
8341
8342 fi
8343 fi
8344 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8345 if test -n "$ac_ct_MANIFEST_TOOL"; then
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8347 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8348 else
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8351 fi
8352
8353   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8354     MANIFEST_TOOL=":"
8355   else
8356     case $cross_compiling:$ac_tool_warned in
8357 yes:)
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360 ac_tool_warned=yes ;;
8361 esac
8362     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8363   fi
8364 else
8365   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8366 fi
8367
8368 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8370 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8371 if ${lt_cv_path_mainfest_tool+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   lt_cv_path_mainfest_tool=no
8375   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8376   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8377   cat conftest.err >&5
8378   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8379     lt_cv_path_mainfest_tool=yes
8380   fi
8381   rm -f conftest*
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8384 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8385 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8386   MANIFEST_TOOL=:
8387 fi
8388
8389
8390
8391
8392
8393
8394   case $host_os in
8395     rhapsody* | darwin*)
8396     if test -n "$ac_tool_prefix"; then
8397   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   if test -n "$DSYMUTIL"; then
8405   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8425 if test -n "$DSYMUTIL"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8427 $as_echo "$DSYMUTIL" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434 fi
8435 if test -z "$ac_cv_prog_DSYMUTIL"; then
8436   ac_ct_DSYMUTIL=$DSYMUTIL
8437   # Extract the first word of "dsymutil", so it can be a program name with args.
8438 set dummy dsymutil; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   if test -n "$ac_ct_DSYMUTIL"; then
8445   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450   IFS=$as_save_IFS
8451   test -z "$as_dir" && as_dir=.
8452     for ac_exec_ext in '' $ac_executable_extensions; do
8453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456     break 2
8457   fi
8458 done
8459   done
8460 IFS=$as_save_IFS
8461
8462 fi
8463 fi
8464 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8465 if test -n "$ac_ct_DSYMUTIL"; then
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8467 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8468 else
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473   if test "x$ac_ct_DSYMUTIL" = x; then
8474     DSYMUTIL=":"
8475   else
8476     case $cross_compiling:$ac_tool_warned in
8477 yes:)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8481 esac
8482     DSYMUTIL=$ac_ct_DSYMUTIL
8483   fi
8484 else
8485   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8486 fi
8487
8488     if test -n "$ac_tool_prefix"; then
8489   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8490 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_NMEDIT+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   if test -n "$NMEDIT"; then
8497   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502   IFS=$as_save_IFS
8503   test -z "$as_dir" && as_dir=.
8504     for ac_exec_ext in '' $ac_executable_extensions; do
8505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508     break 2
8509   fi
8510 done
8511   done
8512 IFS=$as_save_IFS
8513
8514 fi
8515 fi
8516 NMEDIT=$ac_cv_prog_NMEDIT
8517 if test -n "$NMEDIT"; then
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8519 $as_echo "$NMEDIT" >&6; }
8520 else
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8523 fi
8524
8525
8526 fi
8527 if test -z "$ac_cv_prog_NMEDIT"; then
8528   ac_ct_NMEDIT=$NMEDIT
8529   # Extract the first word of "nmedit", so it can be a program name with args.
8530 set dummy nmedit; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   if test -n "$ac_ct_NMEDIT"; then
8537   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542   IFS=$as_save_IFS
8543   test -z "$as_dir" && as_dir=.
8544     for ac_exec_ext in '' $ac_executable_extensions; do
8545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548     break 2
8549   fi
8550 done
8551   done
8552 IFS=$as_save_IFS
8553
8554 fi
8555 fi
8556 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8557 if test -n "$ac_ct_NMEDIT"; then
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8559 $as_echo "$ac_ct_NMEDIT" >&6; }
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565   if test "x$ac_ct_NMEDIT" = x; then
8566     NMEDIT=":"
8567   else
8568     case $cross_compiling:$ac_tool_warned in
8569 yes:)
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned=yes ;;
8573 esac
8574     NMEDIT=$ac_ct_NMEDIT
8575   fi
8576 else
8577   NMEDIT="$ac_cv_prog_NMEDIT"
8578 fi
8579
8580     if test -n "$ac_tool_prefix"; then
8581   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8582 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_prog_LIPO+:} false; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588   if test -n "$LIPO"; then
8589   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594   IFS=$as_save_IFS
8595   test -z "$as_dir" && as_dir=.
8596     for ac_exec_ext in '' $ac_executable_extensions; do
8597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600     break 2
8601   fi
8602 done
8603   done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 LIPO=$ac_cv_prog_LIPO
8609 if test -n "$LIPO"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8611 $as_echo "$LIPO" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618 fi
8619 if test -z "$ac_cv_prog_LIPO"; then
8620   ac_ct_LIPO=$LIPO
8621   # Extract the first word of "lipo", so it can be a program name with args.
8622 set dummy lipo; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8626   $as_echo_n "(cached) " >&6
8627 else
8628   if test -n "$ac_ct_LIPO"; then
8629   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8630 else
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in $PATH
8633 do
8634   IFS=$as_save_IFS
8635   test -z "$as_dir" && as_dir=.
8636     for ac_exec_ext in '' $ac_executable_extensions; do
8637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638     ac_cv_prog_ac_ct_LIPO="lipo"
8639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8640     break 2
8641   fi
8642 done
8643   done
8644 IFS=$as_save_IFS
8645
8646 fi
8647 fi
8648 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8649 if test -n "$ac_ct_LIPO"; then
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8651 $as_echo "$ac_ct_LIPO" >&6; }
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656
8657   if test "x$ac_ct_LIPO" = x; then
8658     LIPO=":"
8659   else
8660     case $cross_compiling:$ac_tool_warned in
8661 yes:)
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8664 ac_tool_warned=yes ;;
8665 esac
8666     LIPO=$ac_ct_LIPO
8667   fi
8668 else
8669   LIPO="$ac_cv_prog_LIPO"
8670 fi
8671
8672     if test -n "$ac_tool_prefix"; then
8673   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8674 set dummy ${ac_tool_prefix}otool; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_OTOOL+:} false; then :
8678   $as_echo_n "(cached) " >&6
8679 else
8680   if test -n "$OTOOL"; then
8681   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686   IFS=$as_save_IFS
8687   test -z "$as_dir" && as_dir=.
8688     for ac_exec_ext in '' $ac_executable_extensions; do
8689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692     break 2
8693   fi
8694 done
8695   done
8696 IFS=$as_save_IFS
8697
8698 fi
8699 fi
8700 OTOOL=$ac_cv_prog_OTOOL
8701 if test -n "$OTOOL"; then
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8703 $as_echo "$OTOOL" >&6; }
8704 else
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8707 fi
8708
8709
8710 fi
8711 if test -z "$ac_cv_prog_OTOOL"; then
8712   ac_ct_OTOOL=$OTOOL
8713   # Extract the first word of "otool", so it can be a program name with args.
8714 set dummy otool; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   if test -n "$ac_ct_OTOOL"; then
8721   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8722 else
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8725 do
8726   IFS=$as_save_IFS
8727   test -z "$as_dir" && as_dir=.
8728     for ac_exec_ext in '' $ac_executable_extensions; do
8729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730     ac_cv_prog_ac_ct_OTOOL="otool"
8731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732     break 2
8733   fi
8734 done
8735   done
8736 IFS=$as_save_IFS
8737
8738 fi
8739 fi
8740 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8741 if test -n "$ac_ct_OTOOL"; then
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8743 $as_echo "$ac_ct_OTOOL" >&6; }
8744 else
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8747 fi
8748
8749   if test "x$ac_ct_OTOOL" = x; then
8750     OTOOL=":"
8751   else
8752     case $cross_compiling:$ac_tool_warned in
8753 yes:)
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned=yes ;;
8757 esac
8758     OTOOL=$ac_ct_OTOOL
8759   fi
8760 else
8761   OTOOL="$ac_cv_prog_OTOOL"
8762 fi
8763
8764     if test -n "$ac_tool_prefix"; then
8765   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8766 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if ${ac_cv_prog_OTOOL64+:} false; then :
8770   $as_echo_n "(cached) " >&6
8771 else
8772   if test -n "$OTOOL64"; then
8773   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778   IFS=$as_save_IFS
8779   test -z "$as_dir" && as_dir=.
8780     for ac_exec_ext in '' $ac_executable_extensions; do
8781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784     break 2
8785   fi
8786 done
8787   done
8788 IFS=$as_save_IFS
8789
8790 fi
8791 fi
8792 OTOOL64=$ac_cv_prog_OTOOL64
8793 if test -n "$OTOOL64"; then
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8795 $as_echo "$OTOOL64" >&6; }
8796 else
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 fi
8800
8801
8802 fi
8803 if test -z "$ac_cv_prog_OTOOL64"; then
8804   ac_ct_OTOOL64=$OTOOL64
8805   # Extract the first word of "otool64", so it can be a program name with args.
8806 set dummy otool64; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   if test -n "$ac_ct_OTOOL64"; then
8813   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8814 else
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8817 do
8818   IFS=$as_save_IFS
8819   test -z "$as_dir" && as_dir=.
8820     for ac_exec_ext in '' $ac_executable_extensions; do
8821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8822     ac_cv_prog_ac_ct_OTOOL64="otool64"
8823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824     break 2
8825   fi
8826 done
8827   done
8828 IFS=$as_save_IFS
8829
8830 fi
8831 fi
8832 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8833 if test -n "$ac_ct_OTOOL64"; then
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8835 $as_echo "$ac_ct_OTOOL64" >&6; }
8836 else
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841   if test "x$ac_ct_OTOOL64" = x; then
8842     OTOOL64=":"
8843   else
8844     case $cross_compiling:$ac_tool_warned in
8845 yes:)
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8848 ac_tool_warned=yes ;;
8849 esac
8850     OTOOL64=$ac_ct_OTOOL64
8851   fi
8852 else
8853   OTOOL64="$ac_cv_prog_OTOOL64"
8854 fi
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8883 $as_echo_n "checking for -single_module linker flag... " >&6; }
8884 if ${lt_cv_apple_cc_single_mod+:} false; then :
8885   $as_echo_n "(cached) " >&6
8886 else
8887   lt_cv_apple_cc_single_mod=no
8888       if test -z "${LT_MULTI_MODULE}"; then
8889         # By default we will add the -single_module flag. You can override
8890         # by either setting the environment variable LT_MULTI_MODULE
8891         # non-empty at configure time, or by adding -multi_module to the
8892         # link flags.
8893         rm -rf libconftest.dylib*
8894         echo "int foo(void){return 1;}" > conftest.c
8895         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8896 -dynamiclib -Wl,-single_module conftest.c" >&5
8897         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8898           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8899         _lt_result=$?
8900         # If there is a non-empty error log, and "single_module"
8901         # appears in it, assume the flag caused a linker warning
8902         if test -s conftest.err && $GREP single_module conftest.err; then
8903           cat conftest.err >&5
8904         # Otherwise, if the output was created with a 0 exit code from
8905         # the compiler, it worked.
8906         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8907           lt_cv_apple_cc_single_mod=yes
8908         else
8909           cat conftest.err >&5
8910         fi
8911         rm -rf libconftest.dylib*
8912         rm -f conftest.*
8913       fi
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8916 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8917
8918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8919 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8920 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   lt_cv_ld_exported_symbols_list=no
8924       save_LDFLAGS=$LDFLAGS
8925       echo "_main" > conftest.sym
8926       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8927       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h.  */
8929
8930 int
8931 main ()
8932 {
8933
8934   ;
8935   return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_c_try_link "$LINENO"; then :
8939   lt_cv_ld_exported_symbols_list=yes
8940 else
8941   lt_cv_ld_exported_symbols_list=no
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext \
8944     conftest$ac_exeext conftest.$ac_ext
8945         LDFLAGS="$save_LDFLAGS"
8946
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8949 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8950
8951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8952 $as_echo_n "checking for -force_load linker flag... " >&6; }
8953 if ${lt_cv_ld_force_load+:} false; then :
8954   $as_echo_n "(cached) " >&6
8955 else
8956   lt_cv_ld_force_load=no
8957       cat > conftest.c << _LT_EOF
8958 int forced_loaded() { return 2;}
8959 _LT_EOF
8960       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8961       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8962       echo "$AR cru libconftest.a conftest.o" >&5
8963       $AR cru libconftest.a conftest.o 2>&5
8964       echo "$RANLIB libconftest.a" >&5
8965       $RANLIB libconftest.a 2>&5
8966       cat > conftest.c << _LT_EOF
8967 int main() { return 0;}
8968 _LT_EOF
8969       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8970       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8971       _lt_result=$?
8972       if test -s conftest.err && $GREP force_load conftest.err; then
8973         cat conftest.err >&5
8974       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8975         lt_cv_ld_force_load=yes
8976       else
8977         cat conftest.err >&5
8978       fi
8979         rm -f conftest.err libconftest.a conftest conftest.c
8980         rm -rf conftest.dSYM
8981
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8984 $as_echo "$lt_cv_ld_force_load" >&6; }
8985     case $host_os in
8986     rhapsody* | darwin1.[012])
8987       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8988     darwin1.*)
8989       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8990     darwin*) # darwin 5.x on
8991       # if running on 10.5 or later, the deployment target defaults
8992       # to the OS version, if on x86, and 10.4, the deployment
8993       # target defaults to 10.4. Don't you love it?
8994       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8995         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8996           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8997         10.[012]*)
8998           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8999         10.*)
9000           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9001       esac
9002     ;;
9003   esac
9004     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9005       _lt_dar_single_mod='$single_module'
9006     fi
9007     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9008       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9009     else
9010       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9011     fi
9012     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9013       _lt_dsymutil='~$DSYMUTIL $lib || :'
9014     else
9015       _lt_dsymutil=
9016     fi
9017     ;;
9018   esac
9019
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9021 $as_echo_n "checking for ANSI C header files... " >&6; }
9022 if ${ac_cv_header_stdc+:} false; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h.  */
9027 #include <stdlib.h>
9028 #include <stdarg.h>
9029 #include <string.h>
9030 #include <float.h>
9031
9032 int
9033 main ()
9034 {
9035
9036   ;
9037   return 0;
9038 }
9039 _ACEOF
9040 if ac_fn_c_try_compile "$LINENO"; then :
9041   ac_cv_header_stdc=yes
9042 else
9043   ac_cv_header_stdc=no
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046
9047 if test $ac_cv_header_stdc = yes; then
9048   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051 #include <string.h>
9052
9053 _ACEOF
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055   $EGREP "memchr" >/dev/null 2>&1; then :
9056
9057 else
9058   ac_cv_header_stdc=no
9059 fi
9060 rm -f conftest*
9061
9062 fi
9063
9064 if test $ac_cv_header_stdc = yes; then
9065   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h.  */
9068 #include <stdlib.h>
9069
9070 _ACEOF
9071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072   $EGREP "free" >/dev/null 2>&1; then :
9073
9074 else
9075   ac_cv_header_stdc=no
9076 fi
9077 rm -f conftest*
9078
9079 fi
9080
9081 if test $ac_cv_header_stdc = yes; then
9082   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9083   if test "$cross_compiling" = yes; then :
9084   :
9085 else
9086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h.  */
9088 #include <ctype.h>
9089 #include <stdlib.h>
9090 #if ((' ' & 0x0FF) == 0x020)
9091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9093 #else
9094 # define ISLOWER(c) \
9095                    (('a' <= (c) && (c) <= 'i') \
9096                      || ('j' <= (c) && (c) <= 'r') \
9097                      || ('s' <= (c) && (c) <= 'z'))
9098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9099 #endif
9100
9101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9102 int
9103 main ()
9104 {
9105   int i;
9106   for (i = 0; i < 256; i++)
9107     if (XOR (islower (i), ISLOWER (i))
9108         || toupper (i) != TOUPPER (i))
9109       return 2;
9110   return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_run "$LINENO"; then :
9114
9115 else
9116   ac_cv_header_stdc=no
9117 fi
9118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9119   conftest.$ac_objext conftest.beam conftest.$ac_ext
9120 fi
9121
9122 fi
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9125 $as_echo "$ac_cv_header_stdc" >&6; }
9126 if test $ac_cv_header_stdc = yes; then
9127
9128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9129
9130 fi
9131
9132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9134                   inttypes.h stdint.h unistd.h
9135 do :
9136   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9138 "
9139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9140   cat >>confdefs.h <<_ACEOF
9141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9142 _ACEOF
9143
9144 fi
9145
9146 done
9147
9148
9149 for ac_header in dlfcn.h
9150 do :
9151   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9152 "
9153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9154   cat >>confdefs.h <<_ACEOF
9155 #define HAVE_DLFCN_H 1
9156 _ACEOF
9157
9158 fi
9159
9160 done
9161
9162
9163
9164
9165 func_stripname_cnf ()
9166 {
9167   case ${2} in
9168   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9169   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9170   esac
9171 } # func_stripname_cnf
9172
9173
9174
9175
9176
9177 # Set options
9178 # Check whether --enable-shared was given.
9179 if test "${enable_shared+set}" = set; then :
9180   enableval=$enable_shared; p=${PACKAGE-default}
9181     case $enableval in
9182     yes) enable_shared=yes ;;
9183     no) enable_shared=no ;;
9184     *)
9185       enable_shared=no
9186       # Look at the argument we got.  We use all the common list separators.
9187       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9188       for pkg in $enableval; do
9189         IFS="$lt_save_ifs"
9190         if test "X$pkg" = "X$p"; then
9191           enable_shared=yes
9192         fi
9193       done
9194       IFS="$lt_save_ifs"
9195       ;;
9196     esac
9197 else
9198   enable_shared=yes
9199 fi
9200
9201
9202
9203
9204
9205
9206
9207 # Check whether --enable-static was given.
9208 if test "${enable_static+set}" = set; then :
9209   enableval=$enable_static; p=${PACKAGE-default}
9210     case $enableval in
9211     yes) enable_static=yes ;;
9212     no) enable_static=no ;;
9213     *)
9214      enable_static=no
9215       # Look at the argument we got.  We use all the common list separators.
9216       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9217       for pkg in $enableval; do
9218         IFS="$lt_save_ifs"
9219         if test "X$pkg" = "X$p"; then
9220           enable_static=yes
9221         fi
9222       done
9223       IFS="$lt_save_ifs"
9224       ;;
9225     esac
9226 else
9227   enable_static=no
9228 fi
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239         enable_dlopen=no
9240
9241
9242   enable_win32_dll=no
9243
9244
9245
9246
9247
9248 # Check whether --with-pic was given.
9249 if test "${with_pic+set}" = set; then :
9250   withval=$with_pic; lt_p=${PACKAGE-default}
9251     case $withval in
9252     yes|no) pic_mode=$withval ;;
9253     *)
9254       pic_mode=default
9255       # Look at the argument we got.  We use all the common list separators.
9256       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9257       for lt_pkg in $withval; do
9258         IFS="$lt_save_ifs"
9259         if test "X$lt_pkg" = "X$lt_p"; then
9260           pic_mode=yes
9261         fi
9262       done
9263       IFS="$lt_save_ifs"
9264       ;;
9265     esac
9266 else
9267   pic_mode=default
9268 fi
9269
9270
9271 test -z "$pic_mode" && pic_mode=default
9272
9273
9274
9275
9276
9277
9278
9279   # Check whether --enable-fast-install was given.
9280 if test "${enable_fast_install+set}" = set; then :
9281   enableval=$enable_fast_install; p=${PACKAGE-default}
9282     case $enableval in
9283     yes) enable_fast_install=yes ;;
9284     no) enable_fast_install=no ;;
9285     *)
9286       enable_fast_install=no
9287       # Look at the argument we got.  We use all the common list separators.
9288       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9289       for pkg in $enableval; do
9290         IFS="$lt_save_ifs"
9291         if test "X$pkg" = "X$p"; then
9292           enable_fast_install=yes
9293         fi
9294       done
9295       IFS="$lt_save_ifs"
9296       ;;
9297     esac
9298 else
9299   enable_fast_install=yes
9300 fi
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 # This can be used to rebuild libtool when needed
9313 LIBTOOL_DEPS="$ltmain"
9314
9315 # Always use our own libtool.
9316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 test -z "$LN_S" && LN_S="ln -s"
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362 if test -n "${ZSH_VERSION+set}" ; then
9363    setopt NO_GLOB_SUBST
9364 fi
9365
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9367 $as_echo_n "checking for objdir... " >&6; }
9368 if ${lt_cv_objdir+:} false; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9374   lt_cv_objdir=.libs
9375 else
9376   # MS-DOS does not allow filenames that begin with a dot.
9377   lt_cv_objdir=_libs
9378 fi
9379 rmdir .libs 2>/dev/null
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9382 $as_echo "$lt_cv_objdir" >&6; }
9383 objdir=$lt_cv_objdir
9384
9385
9386
9387
9388
9389 cat >>confdefs.h <<_ACEOF
9390 #define LT_OBJDIR "$lt_cv_objdir/"
9391 _ACEOF
9392
9393
9394
9395
9396 case $host_os in
9397 aix3*)
9398   # AIX sometimes has problems with the GCC collect2 program.  For some
9399   # reason, if we set the COLLECT_NAMES environment variable, the problems
9400   # vanish in a puff of smoke.
9401   if test "X${COLLECT_NAMES+set}" != Xset; then
9402     COLLECT_NAMES=
9403     export COLLECT_NAMES
9404   fi
9405   ;;
9406 esac
9407
9408 # Global variables:
9409 ofile=libtool
9410 can_build_shared=yes
9411
9412 # All known linkers require a `.a' archive for static linking (except MSVC,
9413 # which needs '.lib').
9414 libext=a
9415
9416 with_gnu_ld="$lt_cv_prog_gnu_ld"
9417
9418 old_CC="$CC"
9419 old_CFLAGS="$CFLAGS"
9420
9421 # Set sane defaults for various variables
9422 test -z "$CC" && CC=cc
9423 test -z "$LTCC" && LTCC=$CC
9424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9425 test -z "$LD" && LD=ld
9426 test -z "$ac_objext" && ac_objext=o
9427
9428 for cc_temp in $compiler""; do
9429   case $cc_temp in
9430     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9431     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9432     \-*) ;;
9433     *) break;;
9434   esac
9435 done
9436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9437
9438
9439 # Only perform the check for file, if the check method requires it
9440 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9441 case $deplibs_check_method in
9442 file_magic*)
9443   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9445 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9447   $as_echo_n "(cached) " >&6
9448 else
9449   case $MAGIC_CMD in
9450 [\\/*] |  ?:[\\/]*)
9451   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9452   ;;
9453 *)
9454   lt_save_MAGIC_CMD="$MAGIC_CMD"
9455   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9456   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9457   for ac_dir in $ac_dummy; do
9458     IFS="$lt_save_ifs"
9459     test -z "$ac_dir" && ac_dir=.
9460     if test -f $ac_dir/${ac_tool_prefix}file; then
9461       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9462       if test -n "$file_magic_test_file"; then
9463         case $deplibs_check_method in
9464         "file_magic "*)
9465           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9466           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9467           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9468             $EGREP "$file_magic_regex" > /dev/null; then
9469             :
9470           else
9471             cat <<_LT_EOF 1>&2
9472
9473 *** Warning: the command libtool uses to detect shared libraries,
9474 *** $file_magic_cmd, produces output that libtool cannot recognize.
9475 *** The result is that libtool may fail to recognize shared libraries
9476 *** as such.  This will affect the creation of libtool libraries that
9477 *** depend on shared libraries, but programs linked with such libtool
9478 *** libraries will work regardless of this problem.  Nevertheless, you
9479 *** may want to report the problem to your system manager and/or to
9480 *** bug-libtool@gnu.org
9481
9482 _LT_EOF
9483           fi ;;
9484         esac
9485       fi
9486       break
9487     fi
9488   done
9489   IFS="$lt_save_ifs"
9490   MAGIC_CMD="$lt_save_MAGIC_CMD"
9491   ;;
9492 esac
9493 fi
9494
9495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9496 if test -n "$MAGIC_CMD"; then
9497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9498 $as_echo "$MAGIC_CMD" >&6; }
9499 else
9500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9502 fi
9503
9504
9505
9506
9507
9508 if test -z "$lt_cv_path_MAGIC_CMD"; then
9509   if test -n "$ac_tool_prefix"; then
9510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9511 $as_echo_n "checking for file... " >&6; }
9512 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9513   $as_echo_n "(cached) " >&6
9514 else
9515   case $MAGIC_CMD in
9516 [\\/*] |  ?:[\\/]*)
9517   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9518   ;;
9519 *)
9520   lt_save_MAGIC_CMD="$MAGIC_CMD"
9521   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9522   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9523   for ac_dir in $ac_dummy; do
9524     IFS="$lt_save_ifs"
9525     test -z "$ac_dir" && ac_dir=.
9526     if test -f $ac_dir/file; then
9527       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9528       if test -n "$file_magic_test_file"; then
9529         case $deplibs_check_method in
9530         "file_magic "*)
9531           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9532           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9533           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9534             $EGREP "$file_magic_regex" > /dev/null; then
9535             :
9536           else
9537             cat <<_LT_EOF 1>&2
9538
9539 *** Warning: the command libtool uses to detect shared libraries,
9540 *** $file_magic_cmd, produces output that libtool cannot recognize.
9541 *** The result is that libtool may fail to recognize shared libraries
9542 *** as such.  This will affect the creation of libtool libraries that
9543 *** depend on shared libraries, but programs linked with such libtool
9544 *** libraries will work regardless of this problem.  Nevertheless, you
9545 *** may want to report the problem to your system manager and/or to
9546 *** bug-libtool@gnu.org
9547
9548 _LT_EOF
9549           fi ;;
9550         esac
9551       fi
9552       break
9553     fi
9554   done
9555   IFS="$lt_save_ifs"
9556   MAGIC_CMD="$lt_save_MAGIC_CMD"
9557   ;;
9558 esac
9559 fi
9560
9561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9562 if test -n "$MAGIC_CMD"; then
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9564 $as_echo "$MAGIC_CMD" >&6; }
9565 else
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569
9570
9571   else
9572     MAGIC_CMD=:
9573   fi
9574 fi
9575
9576   fi
9577   ;;
9578 esac
9579
9580 # Use C for the default configuration in the libtool script
9581
9582 lt_save_CC="$CC"
9583 ac_ext=c
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9588
9589
9590 # Source file extension for C test sources.
9591 ac_ext=c
9592
9593 # Object file extension for compiled C test sources.
9594 objext=o
9595 objext=$objext
9596
9597 # Code to be used in simple compile tests
9598 lt_simple_compile_test_code="int some_variable = 0;"
9599
9600 # Code to be used in simple link tests
9601 lt_simple_link_test_code='int main(){return(0);}'
9602
9603
9604
9605
9606
9607
9608
9609 # If no C compiler was specified, use CC.
9610 LTCC=${LTCC-"$CC"}
9611
9612 # If no C compiler flags were specified, use CFLAGS.
9613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9614
9615 # Allow CC to be a program name with arguments.
9616 compiler=$CC
9617
9618 # Save the default compiler, since it gets overwritten when the other
9619 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9620 compiler_DEFAULT=$CC
9621
9622 # save warnings/boilerplate of simple test code
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_compiler_boilerplate=`cat conftest.err`
9627 $RM conftest*
9628
9629 ac_outfile=conftest.$ac_objext
9630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9632 _lt_linker_boilerplate=`cat conftest.err`
9633 $RM -r conftest*
9634
9635
9636 ## CAVEAT EMPTOR:
9637 ## There is no encapsulation within the following macros, do not change
9638 ## the running order or otherwise move them around unless you know exactly
9639 ## what you are doing...
9640 if test -n "$compiler"; then
9641
9642 lt_prog_compiler_no_builtin_flag=
9643
9644 if test "$GCC" = yes; then
9645   case $cc_basename in
9646   nvcc*)
9647     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9648   *)
9649     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9650   esac
9651
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9653 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9654 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   lt_cv_prog_compiler_rtti_exceptions=no
9658    ac_outfile=conftest.$ac_objext
9659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660    lt_compiler_flag="-fno-rtti -fno-exceptions"
9661    # Insert the option either (1) after the last *FLAGS variable, or
9662    # (2) before a word containing "conftest.", or (3) at the end.
9663    # Note that $ac_compile itself does not contain backslashes and begins
9664    # with a dollar sign (not a hyphen), so the echo should work correctly.
9665    # The option is referenced via a variable to avoid confusing sed.
9666    lt_compile=`echo "$ac_compile" | $SED \
9667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669    -e 's:$: $lt_compiler_flag:'`
9670    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9671    (eval "$lt_compile" 2>conftest.err)
9672    ac_status=$?
9673    cat conftest.err >&5
9674    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675    if (exit $ac_status) && test -s "$ac_outfile"; then
9676      # The compiler can only warn and ignore the option if not recognized
9677      # So say no if there are warnings other than the usual output.
9678      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9679      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9680      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9681        lt_cv_prog_compiler_rtti_exceptions=yes
9682      fi
9683    fi
9684    $RM conftest*
9685
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9688 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9689
9690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9691     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9692 else
9693     :
9694 fi
9695
9696 fi
9697
9698
9699
9700
9701
9702
9703   lt_prog_compiler_wl=
9704 lt_prog_compiler_pic=
9705 lt_prog_compiler_static=
9706
9707
9708   if test "$GCC" = yes; then
9709     lt_prog_compiler_wl='-Wl,'
9710     lt_prog_compiler_static='-static'
9711
9712     case $host_os in
9713       aix*)
9714       # All AIX code is PIC.
9715       if test "$host_cpu" = ia64; then
9716         # AIX 5 now supports IA64 processor
9717         lt_prog_compiler_static='-Bstatic'
9718       fi
9719       ;;
9720
9721     amigaos*)
9722       case $host_cpu in
9723       powerpc)
9724             # see comment about AmigaOS4 .so support
9725             lt_prog_compiler_pic='-fPIC'
9726         ;;
9727       m68k)
9728             # FIXME: we need at least 68020 code to build shared libraries, but
9729             # adding the `-m68020' flag to GCC prevents building anything better,
9730             # like `-m68040'.
9731             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9732         ;;
9733       esac
9734       ;;
9735
9736     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9737       # PIC is the default for these OSes.
9738       ;;
9739
9740     mingw* | cygwin* | pw32* | os2* | cegcc*)
9741       # This hack is so that the source file can tell whether it is being
9742       # built for inclusion in a dll (and should export symbols for example).
9743       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9744       # (--disable-auto-import) libraries
9745       lt_prog_compiler_pic='-DDLL_EXPORT'
9746       ;;
9747
9748     darwin* | rhapsody*)
9749       # PIC is the default on this platform
9750       # Common symbols not allowed in MH_DYLIB files
9751       lt_prog_compiler_pic='-fno-common'
9752       ;;
9753
9754     haiku*)
9755       # PIC is the default for Haiku.
9756       # The "-static" flag exists, but is broken.
9757       lt_prog_compiler_static=
9758       ;;
9759
9760     hpux*)
9761       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9762       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9763       # sets the default TLS model and affects inlining.
9764       case $host_cpu in
9765       hppa*64*)
9766         # +Z the default
9767         ;;
9768       *)
9769         lt_prog_compiler_pic='-fPIC'
9770         ;;
9771       esac
9772       ;;
9773
9774     interix[3-9]*)
9775       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9776       # Instead, we relocate shared libraries at runtime.
9777       ;;
9778
9779     msdosdjgpp*)
9780       # Just because we use GCC doesn't mean we suddenly get shared libraries
9781       # on systems that don't support them.
9782       lt_prog_compiler_can_build_shared=no
9783       enable_shared=no
9784       ;;
9785
9786     *nto* | *qnx*)
9787       # QNX uses GNU C++, but need to define -shared option too, otherwise
9788       # it will coredump.
9789       lt_prog_compiler_pic='-fPIC -shared'
9790       ;;
9791
9792     sysv4*MP*)
9793       if test -d /usr/nec; then
9794         lt_prog_compiler_pic=-Kconform_pic
9795       fi
9796       ;;
9797
9798     *)
9799       lt_prog_compiler_pic='-fPIC'
9800       ;;
9801     esac
9802
9803     case $cc_basename in
9804     nvcc*) # Cuda Compiler Driver 2.2
9805       lt_prog_compiler_wl='-Xlinker '
9806       if test -n "$lt_prog_compiler_pic"; then
9807         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9808       fi
9809       ;;
9810     esac
9811   else
9812     # PORTME Check for flag to pass linker flags through the system compiler.
9813     case $host_os in
9814     aix*)
9815       lt_prog_compiler_wl='-Wl,'
9816       if test "$host_cpu" = ia64; then
9817         # AIX 5 now supports IA64 processor
9818         lt_prog_compiler_static='-Bstatic'
9819       else
9820         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9821       fi
9822       ;;
9823
9824     mingw* | cygwin* | pw32* | os2* | cegcc*)
9825       # This hack is so that the source file can tell whether it is being
9826       # built for inclusion in a dll (and should export symbols for example).
9827       lt_prog_compiler_pic='-DDLL_EXPORT'
9828       ;;
9829
9830     hpux9* | hpux10* | hpux11*)
9831       lt_prog_compiler_wl='-Wl,'
9832       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9833       # not for PA HP-UX.
9834       case $host_cpu in
9835       hppa*64*|ia64*)
9836         # +Z the default
9837         ;;
9838       *)
9839         lt_prog_compiler_pic='+Z'
9840         ;;
9841       esac
9842       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9843       lt_prog_compiler_static='${wl}-a ${wl}archive'
9844       ;;
9845
9846     irix5* | irix6* | nonstopux*)
9847       lt_prog_compiler_wl='-Wl,'
9848       # PIC (with -KPIC) is the default.
9849       lt_prog_compiler_static='-non_shared'
9850       ;;
9851
9852     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9853       case $cc_basename in
9854       # old Intel for x86_64 which still supported -KPIC.
9855       ecc*)
9856         lt_prog_compiler_wl='-Wl,'
9857         lt_prog_compiler_pic='-KPIC'
9858         lt_prog_compiler_static='-static'
9859         ;;
9860       # icc used to be incompatible with GCC.
9861       # ICC 10 doesn't accept -KPIC any more.
9862       icc* | ifort*)
9863         lt_prog_compiler_wl='-Wl,'
9864         lt_prog_compiler_pic='-fPIC'
9865         lt_prog_compiler_static='-static'
9866         ;;
9867       # Lahey Fortran 8.1.
9868       lf95*)
9869         lt_prog_compiler_wl='-Wl,'
9870         lt_prog_compiler_pic='--shared'
9871         lt_prog_compiler_static='--static'
9872         ;;
9873       nagfor*)
9874         # NAG Fortran compiler
9875         lt_prog_compiler_wl='-Wl,-Wl,,'
9876         lt_prog_compiler_pic='-PIC'
9877         lt_prog_compiler_static='-Bstatic'
9878         ;;
9879       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9880         # Portland Group compilers (*not* the Pentium gcc compiler,
9881         # which looks to be a dead project)
9882         lt_prog_compiler_wl='-Wl,'
9883         lt_prog_compiler_pic='-fpic'
9884         lt_prog_compiler_static='-Bstatic'
9885         ;;
9886       ccc*)
9887         lt_prog_compiler_wl='-Wl,'
9888         # All Alpha code is PIC.
9889         lt_prog_compiler_static='-non_shared'
9890         ;;
9891       xl* | bgxl* | bgf* | mpixl*)
9892         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9893         lt_prog_compiler_wl='-Wl,'
9894         lt_prog_compiler_pic='-qpic'
9895         lt_prog_compiler_static='-qstaticlink'
9896         ;;
9897       *)
9898         case `$CC -V 2>&1 | sed 5q` in
9899         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9900           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9901           lt_prog_compiler_pic='-KPIC'
9902           lt_prog_compiler_static='-Bstatic'
9903           lt_prog_compiler_wl=''
9904           ;;
9905         *Sun\ F* | *Sun*Fortran*)
9906           lt_prog_compiler_pic='-KPIC'
9907           lt_prog_compiler_static='-Bstatic'
9908           lt_prog_compiler_wl='-Qoption ld '
9909           ;;
9910         *Sun\ C*)
9911           # Sun C 5.9
9912           lt_prog_compiler_pic='-KPIC'
9913           lt_prog_compiler_static='-Bstatic'
9914           lt_prog_compiler_wl='-Wl,'
9915           ;;
9916         *Intel*\ [CF]*Compiler*)
9917           lt_prog_compiler_wl='-Wl,'
9918           lt_prog_compiler_pic='-fPIC'
9919           lt_prog_compiler_static='-static'
9920           ;;
9921         *Portland\ Group*)
9922           lt_prog_compiler_wl='-Wl,'
9923           lt_prog_compiler_pic='-fpic'
9924           lt_prog_compiler_static='-Bstatic'
9925           ;;
9926         esac
9927         ;;
9928       esac
9929       ;;
9930
9931     newsos6)
9932       lt_prog_compiler_pic='-KPIC'
9933       lt_prog_compiler_static='-Bstatic'
9934       ;;
9935
9936     *nto* | *qnx*)
9937       # QNX uses GNU C++, but need to define -shared option too, otherwise
9938       # it will coredump.
9939       lt_prog_compiler_pic='-fPIC -shared'
9940       ;;
9941
9942     osf3* | osf4* | osf5*)
9943       lt_prog_compiler_wl='-Wl,'
9944       # All OSF/1 code is PIC.
9945       lt_prog_compiler_static='-non_shared'
9946       ;;
9947
9948     rdos*)
9949       lt_prog_compiler_static='-non_shared'
9950       ;;
9951
9952     solaris*)
9953       lt_prog_compiler_pic='-KPIC'
9954       lt_prog_compiler_static='-Bstatic'
9955       case $cc_basename in
9956       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9957         lt_prog_compiler_wl='-Qoption ld ';;
9958       *)
9959         lt_prog_compiler_wl='-Wl,';;
9960       esac
9961       ;;
9962
9963     sunos4*)
9964       lt_prog_compiler_wl='-Qoption ld '
9965       lt_prog_compiler_pic='-PIC'
9966       lt_prog_compiler_static='-Bstatic'
9967       ;;
9968
9969     sysv4 | sysv4.2uw2* | sysv4.3*)
9970       lt_prog_compiler_wl='-Wl,'
9971       lt_prog_compiler_pic='-KPIC'
9972       lt_prog_compiler_static='-Bstatic'
9973       ;;
9974
9975     sysv4*MP*)
9976       if test -d /usr/nec ;then
9977         lt_prog_compiler_pic='-Kconform_pic'
9978         lt_prog_compiler_static='-Bstatic'
9979       fi
9980       ;;
9981
9982     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9983       lt_prog_compiler_wl='-Wl,'
9984       lt_prog_compiler_pic='-KPIC'
9985       lt_prog_compiler_static='-Bstatic'
9986       ;;
9987
9988     unicos*)
9989       lt_prog_compiler_wl='-Wl,'
9990       lt_prog_compiler_can_build_shared=no
9991       ;;
9992
9993     uts4*)
9994       lt_prog_compiler_pic='-pic'
9995       lt_prog_compiler_static='-Bstatic'
9996       ;;
9997
9998     *)
9999       lt_prog_compiler_can_build_shared=no
10000       ;;
10001     esac
10002   fi
10003
10004 case $host_os in
10005   # For platforms which do not support PIC, -DPIC is meaningless:
10006   *djgpp*)
10007     lt_prog_compiler_pic=
10008     ;;
10009   *)
10010     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10011     ;;
10012 esac
10013
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10016 if ${lt_cv_prog_compiler_pic+:} false; then :
10017   $as_echo_n "(cached) " >&6
10018 else
10019   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10022 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10023 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10024
10025 #
10026 # Check to make sure the PIC flag actually works.
10027 #
10028 if test -n "$lt_prog_compiler_pic"; then
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10030 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10031 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10032   $as_echo_n "(cached) " >&6
10033 else
10034   lt_cv_prog_compiler_pic_works=no
10035    ac_outfile=conftest.$ac_objext
10036    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10037    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10038    # Insert the option either (1) after the last *FLAGS variable, or
10039    # (2) before a word containing "conftest.", or (3) at the end.
10040    # Note that $ac_compile itself does not contain backslashes and begins
10041    # with a dollar sign (not a hyphen), so the echo should work correctly.
10042    # The option is referenced via a variable to avoid confusing sed.
10043    lt_compile=`echo "$ac_compile" | $SED \
10044    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10046    -e 's:$: $lt_compiler_flag:'`
10047    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10048    (eval "$lt_compile" 2>conftest.err)
10049    ac_status=$?
10050    cat conftest.err >&5
10051    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052    if (exit $ac_status) && test -s "$ac_outfile"; then
10053      # The compiler can only warn and ignore the option if not recognized
10054      # So say no if there are warnings other than the usual output.
10055      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10056      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10058        lt_cv_prog_compiler_pic_works=yes
10059      fi
10060    fi
10061    $RM conftest*
10062
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10065 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10066
10067 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10068     case $lt_prog_compiler_pic in
10069      "" | " "*) ;;
10070      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10071      esac
10072 else
10073     lt_prog_compiler_pic=
10074      lt_prog_compiler_can_build_shared=no
10075 fi
10076
10077 fi
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089 #
10090 # Check to make sure the static flag actually works.
10091 #
10092 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10095 if ${lt_cv_prog_compiler_static_works+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   lt_cv_prog_compiler_static_works=no
10099    save_LDFLAGS="$LDFLAGS"
10100    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10101    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10102    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10103      # The linker can only warn and ignore the option if not recognized
10104      # So say no if there are warnings
10105      if test -s conftest.err; then
10106        # Append any errors to the config.log.
10107        cat conftest.err 1>&5
10108        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10109        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110        if diff conftest.exp conftest.er2 >/dev/null; then
10111          lt_cv_prog_compiler_static_works=yes
10112        fi
10113      else
10114        lt_cv_prog_compiler_static_works=yes
10115      fi
10116    fi
10117    $RM -r conftest*
10118    LDFLAGS="$save_LDFLAGS"
10119
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10122 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10123
10124 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10125     :
10126 else
10127     lt_prog_compiler_static=
10128 fi
10129
10130
10131
10132
10133
10134
10135
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10138 if ${lt_cv_prog_compiler_c_o+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   lt_cv_prog_compiler_c_o=no
10142    $RM -r conftest 2>/dev/null
10143    mkdir conftest
10144    cd conftest
10145    mkdir out
10146    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10147
10148    lt_compiler_flag="-o out/conftest2.$ac_objext"
10149    # Insert the option either (1) after the last *FLAGS variable, or
10150    # (2) before a word containing "conftest.", or (3) at the end.
10151    # Note that $ac_compile itself does not contain backslashes and begins
10152    # with a dollar sign (not a hyphen), so the echo should work correctly.
10153    lt_compile=`echo "$ac_compile" | $SED \
10154    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10155    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10156    -e 's:$: $lt_compiler_flag:'`
10157    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10158    (eval "$lt_compile" 2>out/conftest.err)
10159    ac_status=$?
10160    cat out/conftest.err >&5
10161    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10163    then
10164      # The compiler can only warn and ignore the option if not recognized
10165      # So say no if there are warnings
10166      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10167      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10168      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10169        lt_cv_prog_compiler_c_o=yes
10170      fi
10171    fi
10172    chmod u+w . 2>&5
10173    $RM conftest*
10174    # SGI C++ compiler will create directory out/ii_files/ for
10175    # template instantiation
10176    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10177    $RM out/* && rmdir out
10178    cd ..
10179    $RM -r conftest
10180    $RM conftest*
10181
10182 fi
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10185
10186
10187
10188
10189
10190
10191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10193 if ${lt_cv_prog_compiler_c_o+:} false; then :
10194   $as_echo_n "(cached) " >&6
10195 else
10196   lt_cv_prog_compiler_c_o=no
10197    $RM -r conftest 2>/dev/null
10198    mkdir conftest
10199    cd conftest
10200    mkdir out
10201    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10202
10203    lt_compiler_flag="-o out/conftest2.$ac_objext"
10204    # Insert the option either (1) after the last *FLAGS variable, or
10205    # (2) before a word containing "conftest.", or (3) at the end.
10206    # Note that $ac_compile itself does not contain backslashes and begins
10207    # with a dollar sign (not a hyphen), so the echo should work correctly.
10208    lt_compile=`echo "$ac_compile" | $SED \
10209    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10210    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10211    -e 's:$: $lt_compiler_flag:'`
10212    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10213    (eval "$lt_compile" 2>out/conftest.err)
10214    ac_status=$?
10215    cat out/conftest.err >&5
10216    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10218    then
10219      # The compiler can only warn and ignore the option if not recognized
10220      # So say no if there are warnings
10221      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10222      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10223      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10224        lt_cv_prog_compiler_c_o=yes
10225      fi
10226    fi
10227    chmod u+w . 2>&5
10228    $RM conftest*
10229    # SGI C++ compiler will create directory out/ii_files/ for
10230    # template instantiation
10231    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10232    $RM out/* && rmdir out
10233    cd ..
10234    $RM -r conftest
10235    $RM conftest*
10236
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10239 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10240
10241
10242
10243
10244 hard_links="nottested"
10245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10246   # do not overwrite the value of need_locks provided by the user
10247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10248 $as_echo_n "checking if we can lock with hard links... " >&6; }
10249   hard_links=yes
10250   $RM conftest*
10251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10252   touch conftest.a
10253   ln conftest.a conftest.b 2>&5 || hard_links=no
10254   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10256 $as_echo "$hard_links" >&6; }
10257   if test "$hard_links" = no; then
10258     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10259 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10260     need_locks=warn
10261   fi
10262 else
10263   need_locks=no
10264 fi
10265
10266
10267
10268
10269
10270
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10272 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10273
10274   runpath_var=
10275   allow_undefined_flag=
10276   always_export_symbols=no
10277   archive_cmds=
10278   archive_expsym_cmds=
10279   compiler_needs_object=no
10280   enable_shared_with_static_runtimes=no
10281   export_dynamic_flag_spec=
10282   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10283   hardcode_automatic=no
10284   hardcode_direct=no
10285   hardcode_direct_absolute=no
10286   hardcode_libdir_flag_spec=
10287   hardcode_libdir_separator=
10288   hardcode_minus_L=no
10289   hardcode_shlibpath_var=unsupported
10290   inherit_rpath=no
10291   link_all_deplibs=unknown
10292   module_cmds=
10293   module_expsym_cmds=
10294   old_archive_from_new_cmds=
10295   old_archive_from_expsyms_cmds=
10296   thread_safe_flag_spec=
10297   whole_archive_flag_spec=
10298   # include_expsyms should be a list of space-separated symbols to be *always*
10299   # included in the symbol list
10300   include_expsyms=
10301   # exclude_expsyms can be an extended regexp of symbols to exclude
10302   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10303   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10304   # as well as any symbol that contains `d'.
10305   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10306   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10307   # platforms (ab)use it in PIC code, but their linkers get confused if
10308   # the symbol is explicitly referenced.  Since portable code cannot
10309   # rely on this symbol name, it's probably fine to never include it in
10310   # preloaded symbol tables.
10311   # Exclude shared library initialization/finalization symbols.
10312   extract_expsyms_cmds=
10313
10314   case $host_os in
10315   cygwin* | mingw* | pw32* | cegcc*)
10316     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10317     # When not using gcc, we currently assume that we are using
10318     # Microsoft Visual C++.
10319     if test "$GCC" != yes; then
10320       with_gnu_ld=no
10321     fi
10322     ;;
10323   interix*)
10324     # we just hope/assume this is gcc and not c89 (= MSVC++)
10325     with_gnu_ld=yes
10326     ;;
10327   openbsd*)
10328     with_gnu_ld=no
10329     ;;
10330   linux* | k*bsd*-gnu | gnu*)
10331     link_all_deplibs=no
10332     ;;
10333   esac
10334
10335   ld_shlibs=yes
10336
10337   # On some targets, GNU ld is compatible enough with the native linker
10338   # that we're better off using the native interface for both.
10339   lt_use_gnu_ld_interface=no
10340   if test "$with_gnu_ld" = yes; then
10341     case $host_os in
10342       aix*)
10343         # The AIX port of GNU ld has always aspired to compatibility
10344         # with the native linker.  However, as the warning in the GNU ld
10345         # block says, versions before 2.19.5* couldn't really create working
10346         # shared libraries, regardless of the interface used.
10347         case `$LD -v 2>&1` in
10348           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10349           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10350           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10351           *)
10352             lt_use_gnu_ld_interface=yes
10353             ;;
10354         esac
10355         ;;
10356       *)
10357         lt_use_gnu_ld_interface=yes
10358         ;;
10359     esac
10360   fi
10361
10362   if test "$lt_use_gnu_ld_interface" = yes; then
10363     # If archive_cmds runs LD, not CC, wlarc should be empty
10364     wlarc='${wl}'
10365
10366     # Set some defaults for GNU ld with shared library support. These
10367     # are reset later if shared libraries are not supported. Putting them
10368     # here allows them to be overridden if necessary.
10369     runpath_var=LD_RUN_PATH
10370     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371     export_dynamic_flag_spec='${wl}--export-dynamic'
10372     # ancient GNU ld didn't support --whole-archive et. al.
10373     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10374       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10375     else
10376       whole_archive_flag_spec=
10377     fi
10378     supports_anon_versioning=no
10379     case `$LD -v 2>&1` in
10380       *GNU\ gold*) supports_anon_versioning=yes ;;
10381       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10382       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10383       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10384       *\ 2.11.*) ;; # other 2.11 versions
10385       *) supports_anon_versioning=yes ;;
10386     esac
10387
10388     # See if GNU ld supports shared libraries.
10389     case $host_os in
10390     aix[3-9]*)
10391       # On AIX/PPC, the GNU linker is very broken
10392       if test "$host_cpu" != ia64; then
10393         ld_shlibs=no
10394         cat <<_LT_EOF 1>&2
10395
10396 *** Warning: the GNU linker, at least up to release 2.19, is reported
10397 *** to be unable to reliably create shared libraries on AIX.
10398 *** Therefore, libtool is disabling shared libraries support.  If you
10399 *** really care for shared libraries, you may want to install binutils
10400 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10401 *** You will then need to restart the configuration process.
10402
10403 _LT_EOF
10404       fi
10405       ;;
10406
10407     amigaos*)
10408       case $host_cpu in
10409       powerpc)
10410             # see comment about AmigaOS4 .so support
10411             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10412             archive_expsym_cmds=''
10413         ;;
10414       m68k)
10415             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)'
10416             hardcode_libdir_flag_spec='-L$libdir'
10417             hardcode_minus_L=yes
10418         ;;
10419       esac
10420       ;;
10421
10422     beos*)
10423       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10424         allow_undefined_flag=unsupported
10425         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10426         # support --undefined.  This deserves some investigation.  FIXME
10427         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10428       else
10429         ld_shlibs=no
10430       fi
10431       ;;
10432
10433     cygwin* | mingw* | pw32* | cegcc*)
10434       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10435       # as there is no search path for DLLs.
10436       hardcode_libdir_flag_spec='-L$libdir'
10437       export_dynamic_flag_spec='${wl}--export-all-symbols'
10438       allow_undefined_flag=unsupported
10439       always_export_symbols=no
10440       enable_shared_with_static_runtimes=yes
10441       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'
10442       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10443
10444       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10445         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10446         # If the export-symbols file already is a .def file (1st line
10447         # is EXPORTS), use it as is; otherwise, prepend...
10448         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10449           cp $export_symbols $output_objdir/$soname.def;
10450         else
10451           echo EXPORTS > $output_objdir/$soname.def;
10452           cat $export_symbols >> $output_objdir/$soname.def;
10453         fi~
10454         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455       else
10456         ld_shlibs=no
10457       fi
10458       ;;
10459
10460     haiku*)
10461       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462       link_all_deplibs=yes
10463       ;;
10464
10465     interix[3-9]*)
10466       hardcode_direct=no
10467       hardcode_shlibpath_var=no
10468       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469       export_dynamic_flag_spec='${wl}-E'
10470       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10471       # Instead, shared libraries are loaded at an image base (0x10000000 by
10472       # default) and relocated if they conflict, which is a slow very memory
10473       # consuming and fragmenting process.  To avoid this, we pick a random,
10474       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10475       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10476       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10477       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'
10478       ;;
10479
10480     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10481       tmp_diet=no
10482       if test "$host_os" = linux-dietlibc; then
10483         case $cc_basename in
10484           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10485         esac
10486       fi
10487       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10488          && test "$tmp_diet" = no
10489       then
10490         tmp_addflag=' $pic_flag'
10491         tmp_sharedflag='-shared'
10492         case $cc_basename,$host_cpu in
10493         pgcc*)                          # Portland Group C compiler
10494           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'
10495           tmp_addflag=' $pic_flag'
10496           ;;
10497         pgf77* | pgf90* | pgf95* | pgfortran*)
10498                                         # Portland Group f77 and f90 compilers
10499           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'
10500           tmp_addflag=' $pic_flag -Mnomain' ;;
10501         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10502           tmp_addflag=' -i_dynamic' ;;
10503         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10504           tmp_addflag=' -i_dynamic -nofor_main' ;;
10505         ifc* | ifort*)                  # Intel Fortran compiler
10506           tmp_addflag=' -nofor_main' ;;
10507         lf95*)                          # Lahey Fortran 8.1
10508           whole_archive_flag_spec=
10509           tmp_sharedflag='--shared' ;;
10510         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10511           tmp_sharedflag='-qmkshrobj'
10512           tmp_addflag= ;;
10513         nvcc*)  # Cuda Compiler Driver 2.2
10514           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'
10515           compiler_needs_object=yes
10516           ;;
10517         esac
10518         case `$CC -V 2>&1 | sed 5q` in
10519         *Sun\ C*)                       # Sun C 5.9
10520           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'
10521           compiler_needs_object=yes
10522           tmp_sharedflag='-G' ;;
10523         *Sun\ F*)                       # Sun Fortran 8.3
10524           tmp_sharedflag='-G' ;;
10525         esac
10526         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10527
10528         if test "x$supports_anon_versioning" = xyes; then
10529           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10530             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10531             echo "local: *; };" >> $output_objdir/$libname.ver~
10532             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10533         fi
10534
10535         case $cc_basename in
10536         xlf* | bgf* | bgxlf* | mpixlf*)
10537           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10538           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10539           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10541           if test "x$supports_anon_versioning" = xyes; then
10542             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10543               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10544               echo "local: *; };" >> $output_objdir/$libname.ver~
10545               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10546           fi
10547           ;;
10548         esac
10549       else
10550         ld_shlibs=no
10551       fi
10552       ;;
10553
10554     netbsd* | netbsdelf*-gnu)
10555       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10556         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10557         wlarc=
10558       else
10559         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10561       fi
10562       ;;
10563
10564     solaris*)
10565       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10566         ld_shlibs=no
10567         cat <<_LT_EOF 1>&2
10568
10569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10570 *** create shared libraries on Solaris systems.  Therefore, libtool
10571 *** is disabling shared libraries support.  We urge you to upgrade GNU
10572 *** binutils to release 2.9.1 or newer.  Another option is to modify
10573 *** your PATH or compiler configuration so that the native linker is
10574 *** used, and then restart.
10575
10576 _LT_EOF
10577       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10578         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10579         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10580       else
10581         ld_shlibs=no
10582       fi
10583       ;;
10584
10585     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10586       case `$LD -v 2>&1` in
10587         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10588         ld_shlibs=no
10589         cat <<_LT_EOF 1>&2
10590
10591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10592 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10593 *** is disabling shared libraries support.  We urge you to upgrade GNU
10594 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10595 *** your PATH or compiler configuration so that the native linker is
10596 *** used, and then restart.
10597
10598 _LT_EOF
10599         ;;
10600         *)
10601           # For security reasons, it is highly recommended that you always
10602           # use absolute paths for naming shared libraries, and exclude the
10603           # DT_RUNPATH tag from executables and libraries.  But doing so
10604           # requires that you compile everything twice, which is a pain.
10605           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10608             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10609           else
10610             ld_shlibs=no
10611           fi
10612         ;;
10613       esac
10614       ;;
10615
10616     sunos4*)
10617       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10618       wlarc=
10619       hardcode_direct=yes
10620       hardcode_shlibpath_var=no
10621       ;;
10622
10623     *)
10624       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10625         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10626         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10627       else
10628         ld_shlibs=no
10629       fi
10630       ;;
10631     esac
10632
10633     if test "$ld_shlibs" = no; then
10634       runpath_var=
10635       hardcode_libdir_flag_spec=
10636       export_dynamic_flag_spec=
10637       whole_archive_flag_spec=
10638     fi
10639   else
10640     # PORTME fill in a description of your system's linker (not GNU ld)
10641     case $host_os in
10642     aix3*)
10643       allow_undefined_flag=unsupported
10644       always_export_symbols=yes
10645       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'
10646       # Note: this linker hardcodes the directories in LIBPATH if there
10647       # are no directories specified by -L.
10648       hardcode_minus_L=yes
10649       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10650         # Neither direct hardcoding nor static linking is supported with a
10651         # broken collect2.
10652         hardcode_direct=unsupported
10653       fi
10654       ;;
10655
10656     aix[4-9]*)
10657       if test "$host_cpu" = ia64; then
10658         # On IA64, the linker does run time linking by default, so we don't
10659         # have to do anything special.
10660         aix_use_runtimelinking=no
10661         exp_sym_flag='-Bexport'
10662         no_entry_flag=""
10663       else
10664         # If we're using GNU nm, then we don't want the "-C" option.
10665         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10666         # Also, AIX nm treats weak defined symbols like other global
10667         # defined symbols, whereas GNU nm marks them as "W".
10668         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10669           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'
10670         else
10671           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'
10672         fi
10673         aix_use_runtimelinking=no
10674
10675         # Test if we are trying to use run time linking or normal
10676         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10677         # need to do runtime linking.
10678         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10679           for ld_flag in $LDFLAGS; do
10680           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10681             aix_use_runtimelinking=yes
10682             break
10683           fi
10684           done
10685           ;;
10686         esac
10687
10688         exp_sym_flag='-bexport'
10689         no_entry_flag='-bnoentry'
10690       fi
10691
10692       # When large executables or shared objects are built, AIX ld can
10693       # have problems creating the table of contents.  If linking a library
10694       # or program results in "error TOC overflow" add -mminimal-toc to
10695       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10696       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10697
10698       archive_cmds=''
10699       hardcode_direct=yes
10700       hardcode_direct_absolute=yes
10701       hardcode_libdir_separator=':'
10702       link_all_deplibs=yes
10703       file_list_spec='${wl}-f,'
10704
10705       if test "$GCC" = yes; then
10706         case $host_os in aix4.[012]|aix4.[012].*)
10707         # We only want to do this on AIX 4.2 and lower, the check
10708         # below for broken collect2 doesn't work under 4.3+
10709           collect2name=`${CC} -print-prog-name=collect2`
10710           if test -f "$collect2name" &&
10711            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10712           then
10713           # We have reworked collect2
10714           :
10715           else
10716           # We have old collect2
10717           hardcode_direct=unsupported
10718           # It fails to find uninstalled libraries when the uninstalled
10719           # path is not listed in the libpath.  Setting hardcode_minus_L
10720           # to unsupported forces relinking
10721           hardcode_minus_L=yes
10722           hardcode_libdir_flag_spec='-L$libdir'
10723           hardcode_libdir_separator=
10724           fi
10725           ;;
10726         esac
10727         shared_flag='-shared'
10728         if test "$aix_use_runtimelinking" = yes; then
10729           shared_flag="$shared_flag "'${wl}-G'
10730         fi
10731         link_all_deplibs=no
10732       else
10733         # not using gcc
10734         if test "$host_cpu" = ia64; then
10735         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10736         # chokes on -Wl,-G. The following line is correct:
10737           shared_flag='-G'
10738         else
10739           if test "$aix_use_runtimelinking" = yes; then
10740             shared_flag='${wl}-G'
10741           else
10742             shared_flag='${wl}-bM:SRE'
10743           fi
10744         fi
10745       fi
10746
10747       export_dynamic_flag_spec='${wl}-bexpall'
10748       # It seems that -bexpall does not export symbols beginning with
10749       # underscore (_), so it is better to generate a list of symbols to export.
10750       always_export_symbols=yes
10751       if test "$aix_use_runtimelinking" = yes; then
10752         # Warning - without using the other runtime loading flags (-brtl),
10753         # -berok will link without error, but may produce a broken library.
10754         allow_undefined_flag='-berok'
10755         # Determine the default libpath from the value encoded in an
10756         # empty executable.
10757         if test "${lt_cv_aix_libpath+set}" = set; then
10758   aix_libpath=$lt_cv_aix_libpath
10759 else
10760   if ${lt_cv_aix_libpath_+:} false; then :
10761   $as_echo_n "(cached) " >&6
10762 else
10763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h.  */
10765
10766 int
10767 main ()
10768 {
10769
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775
10776   lt_aix_libpath_sed='
10777       /Import File Strings/,/^$/ {
10778           /^0/ {
10779               s/^0  *\([^ ]*\) *$/\1/
10780               p
10781           }
10782       }'
10783   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784   # Check for a 64-bit object if we didn't find anything.
10785   if test -z "$lt_cv_aix_libpath_"; then
10786     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10787   fi
10788 fi
10789 rm -f core conftest.err conftest.$ac_objext \
10790     conftest$ac_exeext conftest.$ac_ext
10791   if test -z "$lt_cv_aix_libpath_"; then
10792     lt_cv_aix_libpath_="/usr/lib:/lib"
10793   fi
10794
10795 fi
10796
10797   aix_libpath=$lt_cv_aix_libpath_
10798 fi
10799
10800         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10801         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"
10802       else
10803         if test "$host_cpu" = ia64; then
10804           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10805           allow_undefined_flag="-z nodefs"
10806           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"
10807         else
10808          # Determine the default libpath from the value encoded in an
10809          # empty executable.
10810          if test "${lt_cv_aix_libpath+set}" = set; then
10811   aix_libpath=$lt_cv_aix_libpath
10812 else
10813   if ${lt_cv_aix_libpath_+:} false; then :
10814   $as_echo_n "(cached) " >&6
10815 else
10816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h.  */
10818
10819 int
10820 main ()
10821 {
10822
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828
10829   lt_aix_libpath_sed='
10830       /Import File Strings/,/^$/ {
10831           /^0/ {
10832               s/^0  *\([^ ]*\) *$/\1/
10833               p
10834           }
10835       }'
10836   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10837   # Check for a 64-bit object if we didn't find anything.
10838   if test -z "$lt_cv_aix_libpath_"; then
10839     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10840   fi
10841 fi
10842 rm -f core conftest.err conftest.$ac_objext \
10843     conftest$ac_exeext conftest.$ac_ext
10844   if test -z "$lt_cv_aix_libpath_"; then
10845     lt_cv_aix_libpath_="/usr/lib:/lib"
10846   fi
10847
10848 fi
10849
10850   aix_libpath=$lt_cv_aix_libpath_
10851 fi
10852
10853          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10854           # Warning - without using the other run time loading flags,
10855           # -berok will link without error, but may produce a broken library.
10856           no_undefined_flag=' ${wl}-bernotok'
10857           allow_undefined_flag=' ${wl}-berok'
10858           if test "$with_gnu_ld" = yes; then
10859             # We only use this code for GNU lds that support --whole-archive.
10860             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10861           else
10862             # Exported symbols can be pulled into shared objects from archives
10863             whole_archive_flag_spec='$convenience'
10864           fi
10865           archive_cmds_need_lc=yes
10866           # This is similar to how AIX traditionally builds its shared libraries.
10867           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'
10868         fi
10869       fi
10870       ;;
10871
10872     amigaos*)
10873       case $host_cpu in
10874       powerpc)
10875             # see comment about AmigaOS4 .so support
10876             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877             archive_expsym_cmds=''
10878         ;;
10879       m68k)
10880             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)'
10881             hardcode_libdir_flag_spec='-L$libdir'
10882             hardcode_minus_L=yes
10883         ;;
10884       esac
10885       ;;
10886
10887     bsdi[45]*)
10888       export_dynamic_flag_spec=-rdynamic
10889       ;;
10890
10891     cygwin* | mingw* | pw32* | cegcc*)
10892       # When not using gcc, we currently assume that we are using
10893       # Microsoft Visual C++.
10894       # hardcode_libdir_flag_spec is actually meaningless, as there is
10895       # no search path for DLLs.
10896       case $cc_basename in
10897       cl*)
10898         # Native MSVC
10899         hardcode_libdir_flag_spec=' '
10900         allow_undefined_flag=unsupported
10901         always_export_symbols=yes
10902         file_list_spec='@'
10903         # Tell ltmain to make .lib files, not .a files.
10904         libext=lib
10905         # Tell ltmain to make .dll files, not .so files.
10906         shrext_cmds=".dll"
10907         # FIXME: Setting linknames here is a bad hack.
10908         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10909         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10910             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10911           else
10912             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10913           fi~
10914           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10915           linknames='
10916         # The linker will not automatically build a static lib if we build a DLL.
10917         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10918         enable_shared_with_static_runtimes=yes
10919         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10920         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10921         # Don't use ranlib
10922         old_postinstall_cmds='chmod 644 $oldlib'
10923         postlink_cmds='lt_outputfile="@OUTPUT@"~
10924           lt_tool_outputfile="@TOOL_OUTPUT@"~
10925           case $lt_outputfile in
10926             *.exe|*.EXE) ;;
10927             *)
10928               lt_outputfile="$lt_outputfile.exe"
10929               lt_tool_outputfile="$lt_tool_outputfile.exe"
10930               ;;
10931           esac~
10932           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10933             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10934             $RM "$lt_outputfile.manifest";
10935           fi'
10936         ;;
10937       *)
10938         # Assume MSVC wrapper
10939         hardcode_libdir_flag_spec=' '
10940         allow_undefined_flag=unsupported
10941         # Tell ltmain to make .lib files, not .a files.
10942         libext=lib
10943         # Tell ltmain to make .dll files, not .so files.
10944         shrext_cmds=".dll"
10945         # FIXME: Setting linknames here is a bad hack.
10946         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10947         # The linker will automatically build a .lib file if we build a DLL.
10948         old_archive_from_new_cmds='true'
10949         # FIXME: Should let the user specify the lib program.
10950         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10951         enable_shared_with_static_runtimes=yes
10952         ;;
10953       esac
10954       ;;
10955
10956     darwin* | rhapsody*)
10957
10958
10959   archive_cmds_need_lc=no
10960   hardcode_direct=no
10961   hardcode_automatic=yes
10962   hardcode_shlibpath_var=unsupported
10963   if test "$lt_cv_ld_force_load" = "yes"; then
10964     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\"`'
10965
10966   else
10967     whole_archive_flag_spec=''
10968   fi
10969   link_all_deplibs=yes
10970   allow_undefined_flag="$_lt_dar_allow_undefined"
10971   case $cc_basename in
10972      ifort*) _lt_dar_can_shared=yes ;;
10973      *) _lt_dar_can_shared=$GCC ;;
10974   esac
10975   if test "$_lt_dar_can_shared" = "yes"; then
10976     output_verbose_link_cmd=func_echo_all
10977     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10978     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10979     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}"
10980     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}"
10981
10982   else
10983   ld_shlibs=no
10984   fi
10985
10986       ;;
10987
10988     dgux*)
10989       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990       hardcode_libdir_flag_spec='-L$libdir'
10991       hardcode_shlibpath_var=no
10992       ;;
10993
10994     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10995     # support.  Future versions do this automatically, but an explicit c++rt0.o
10996     # does not break anything, and helps significantly (at the cost of a little
10997     # extra space).
10998     freebsd2.2*)
10999       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11000       hardcode_libdir_flag_spec='-R$libdir'
11001       hardcode_direct=yes
11002       hardcode_shlibpath_var=no
11003       ;;
11004
11005     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11006     freebsd2.*)
11007       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11008       hardcode_direct=yes
11009       hardcode_minus_L=yes
11010       hardcode_shlibpath_var=no
11011       ;;
11012
11013     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11014     freebsd* | dragonfly*)
11015       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11016       hardcode_libdir_flag_spec='-R$libdir'
11017       hardcode_direct=yes
11018       hardcode_shlibpath_var=no
11019       ;;
11020
11021     hpux9*)
11022       if test "$GCC" = yes; then
11023         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'
11024       else
11025         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'
11026       fi
11027       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11028       hardcode_libdir_separator=:
11029       hardcode_direct=yes
11030
11031       # hardcode_minus_L: Not really in the search PATH,
11032       # but as the default location of the library.
11033       hardcode_minus_L=yes
11034       export_dynamic_flag_spec='${wl}-E'
11035       ;;
11036
11037     hpux10*)
11038       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11039         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11040       else
11041         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11042       fi
11043       if test "$with_gnu_ld" = no; then
11044         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045         hardcode_libdir_separator=:
11046         hardcode_direct=yes
11047         hardcode_direct_absolute=yes
11048         export_dynamic_flag_spec='${wl}-E'
11049         # hardcode_minus_L: Not really in the search PATH,
11050         # but as the default location of the library.
11051         hardcode_minus_L=yes
11052       fi
11053       ;;
11054
11055     hpux11*)
11056       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11057         case $host_cpu in
11058         hppa*64*)
11059           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11060           ;;
11061         ia64*)
11062           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11063           ;;
11064         *)
11065           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11066           ;;
11067         esac
11068       else
11069         case $host_cpu in
11070         hppa*64*)
11071           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11072           ;;
11073         ia64*)
11074           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11075           ;;
11076         *)
11077
11078           # Older versions of the 11.00 compiler do not understand -b yet
11079           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11080           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11081 $as_echo_n "checking if $CC understands -b... " >&6; }
11082 if ${lt_cv_prog_compiler__b+:} false; then :
11083   $as_echo_n "(cached) " >&6
11084 else
11085   lt_cv_prog_compiler__b=no
11086    save_LDFLAGS="$LDFLAGS"
11087    LDFLAGS="$LDFLAGS -b"
11088    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11089    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11090      # The linker can only warn and ignore the option if not recognized
11091      # So say no if there are warnings
11092      if test -s conftest.err; then
11093        # Append any errors to the config.log.
11094        cat conftest.err 1>&5
11095        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11096        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11097        if diff conftest.exp conftest.er2 >/dev/null; then
11098          lt_cv_prog_compiler__b=yes
11099        fi
11100      else
11101        lt_cv_prog_compiler__b=yes
11102      fi
11103    fi
11104    $RM -r conftest*
11105    LDFLAGS="$save_LDFLAGS"
11106
11107 fi
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11109 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11110
11111 if test x"$lt_cv_prog_compiler__b" = xyes; then
11112     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11113 else
11114     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11115 fi
11116
11117           ;;
11118         esac
11119       fi
11120       if test "$with_gnu_ld" = no; then
11121         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11122         hardcode_libdir_separator=:
11123
11124         case $host_cpu in
11125         hppa*64*|ia64*)
11126           hardcode_direct=no
11127           hardcode_shlibpath_var=no
11128           ;;
11129         *)
11130           hardcode_direct=yes
11131           hardcode_direct_absolute=yes
11132           export_dynamic_flag_spec='${wl}-E'
11133
11134           # hardcode_minus_L: Not really in the search PATH,
11135           # but as the default location of the library.
11136           hardcode_minus_L=yes
11137           ;;
11138         esac
11139       fi
11140       ;;
11141
11142     irix5* | irix6* | nonstopux*)
11143       if test "$GCC" = yes; then
11144         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'
11145         # Try to use the -exported_symbol ld option, if it does not
11146         # work, assume that -exports_file does not work either and
11147         # implicitly export all symbols.
11148         # This should be the same for all languages, so no per-tag cache variable.
11149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11150 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11151 if ${lt_cv_irix_exported_symbol+:} false; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   save_LDFLAGS="$LDFLAGS"
11155            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11156            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h.  */
11158 int foo (void) { return 0; }
11159 _ACEOF
11160 if ac_fn_c_try_link "$LINENO"; then :
11161   lt_cv_irix_exported_symbol=yes
11162 else
11163   lt_cv_irix_exported_symbol=no
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext \
11166     conftest$ac_exeext conftest.$ac_ext
11167            LDFLAGS="$save_LDFLAGS"
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11170 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11171         if test "$lt_cv_irix_exported_symbol" = yes; then
11172           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'
11173         fi
11174       else
11175         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'
11176         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'
11177       fi
11178       archive_cmds_need_lc='no'
11179       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11180       hardcode_libdir_separator=:
11181       inherit_rpath=yes
11182       link_all_deplibs=yes
11183       ;;
11184
11185     netbsd* | netbsdelf*-gnu)
11186       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11187         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11188       else
11189         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11190       fi
11191       hardcode_libdir_flag_spec='-R$libdir'
11192       hardcode_direct=yes
11193       hardcode_shlibpath_var=no
11194       ;;
11195
11196     newsos6)
11197       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198       hardcode_direct=yes
11199       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11200       hardcode_libdir_separator=:
11201       hardcode_shlibpath_var=no
11202       ;;
11203
11204     *nto* | *qnx*)
11205       ;;
11206
11207     openbsd*)
11208       if test -f /usr/libexec/ld.so; then
11209         hardcode_direct=yes
11210         hardcode_shlibpath_var=no
11211         hardcode_direct_absolute=yes
11212         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11213           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11214           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11215           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11216           export_dynamic_flag_spec='${wl}-E'
11217         else
11218           case $host_os in
11219            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11220              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11221              hardcode_libdir_flag_spec='-R$libdir'
11222              ;;
11223            *)
11224              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11225              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11226              ;;
11227           esac
11228         fi
11229       else
11230         ld_shlibs=no
11231       fi
11232       ;;
11233
11234     os2*)
11235       hardcode_libdir_flag_spec='-L$libdir'
11236       hardcode_minus_L=yes
11237       allow_undefined_flag=unsupported
11238       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'
11239       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11240       ;;
11241
11242     osf3*)
11243       if test "$GCC" = yes; then
11244         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11245         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'
11246       else
11247         allow_undefined_flag=' -expect_unresolved \*'
11248         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'
11249       fi
11250       archive_cmds_need_lc='no'
11251       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11252       hardcode_libdir_separator=:
11253       ;;
11254
11255     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11256       if test "$GCC" = yes; then
11257         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11258         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'
11259         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11260       else
11261         allow_undefined_flag=' -expect_unresolved \*'
11262         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'
11263         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~
11264         $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'
11265
11266         # Both c and cxx compiler support -rpath directly
11267         hardcode_libdir_flag_spec='-rpath $libdir'
11268       fi
11269       archive_cmds_need_lc='no'
11270       hardcode_libdir_separator=:
11271       ;;
11272
11273     solaris*)
11274       no_undefined_flag=' -z defs'
11275       if test "$GCC" = yes; then
11276         wlarc='${wl}'
11277         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11278         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11279           $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'
11280       else
11281         case `$CC -V 2>&1` in
11282         *"Compilers 5.0"*)
11283           wlarc=''
11284           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11285           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11286           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11287           ;;
11288         *)
11289           wlarc='${wl}'
11290           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11291           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11292           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11293           ;;
11294         esac
11295       fi
11296       hardcode_libdir_flag_spec='-R$libdir'
11297       hardcode_shlibpath_var=no
11298       case $host_os in
11299       solaris2.[0-5] | solaris2.[0-5].*) ;;
11300       *)
11301         # The compiler driver will combine and reorder linker options,
11302         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11303         # but is careful enough not to reorder.
11304         # Supported since Solaris 2.6 (maybe 2.5.1?)
11305         if test "$GCC" = yes; then
11306           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11307         else
11308           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11309         fi
11310         ;;
11311       esac
11312       link_all_deplibs=yes
11313       ;;
11314
11315     sunos4*)
11316       if test "x$host_vendor" = xsequent; then
11317         # Use $CC to link under sequent, because it throws in some extra .o
11318         # files that make .init and .fini sections work.
11319         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11320       else
11321         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11322       fi
11323       hardcode_libdir_flag_spec='-L$libdir'
11324       hardcode_direct=yes
11325       hardcode_minus_L=yes
11326       hardcode_shlibpath_var=no
11327       ;;
11328
11329     sysv4)
11330       case $host_vendor in
11331         sni)
11332           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333           hardcode_direct=yes # is this really true???
11334         ;;
11335         siemens)
11336           ## LD is ld it makes a PLAMLIB
11337           ## CC just makes a GrossModule.
11338           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11339           reload_cmds='$CC -r -o $output$reload_objs'
11340           hardcode_direct=no
11341         ;;
11342         motorola)
11343           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11345         ;;
11346       esac
11347       runpath_var='LD_RUN_PATH'
11348       hardcode_shlibpath_var=no
11349       ;;
11350
11351     sysv4.3*)
11352       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353       hardcode_shlibpath_var=no
11354       export_dynamic_flag_spec='-Bexport'
11355       ;;
11356
11357     sysv4*MP*)
11358       if test -d /usr/nec; then
11359         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11360         hardcode_shlibpath_var=no
11361         runpath_var=LD_RUN_PATH
11362         hardcode_runpath_var=yes
11363         ld_shlibs=yes
11364       fi
11365       ;;
11366
11367     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11368       no_undefined_flag='${wl}-z,text'
11369       archive_cmds_need_lc=no
11370       hardcode_shlibpath_var=no
11371       runpath_var='LD_RUN_PATH'
11372
11373       if test "$GCC" = yes; then
11374         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376       else
11377         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379       fi
11380       ;;
11381
11382     sysv5* | sco3.2v5* | sco5v6*)
11383       # Note: We can NOT use -z defs as we might desire, because we do not
11384       # link with -lc, and that would cause any symbols used from libc to
11385       # always be unresolved, which means just about no library would
11386       # ever link correctly.  If we're not using GNU ld we use -z text
11387       # though, which does catch some bad symbols but isn't as heavy-handed
11388       # as -z defs.
11389       no_undefined_flag='${wl}-z,text'
11390       allow_undefined_flag='${wl}-z,nodefs'
11391       archive_cmds_need_lc=no
11392       hardcode_shlibpath_var=no
11393       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11394       hardcode_libdir_separator=':'
11395       link_all_deplibs=yes
11396       export_dynamic_flag_spec='${wl}-Bexport'
11397       runpath_var='LD_RUN_PATH'
11398
11399       if test "$GCC" = yes; then
11400         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402       else
11403         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405       fi
11406       ;;
11407
11408     uts4*)
11409       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11410       hardcode_libdir_flag_spec='-L$libdir'
11411       hardcode_shlibpath_var=no
11412       ;;
11413
11414     *)
11415       ld_shlibs=no
11416       ;;
11417     esac
11418
11419     if test x$host_vendor = xsni; then
11420       case $host in
11421       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11422         export_dynamic_flag_spec='${wl}-Blargedynsym'
11423         ;;
11424       esac
11425     fi
11426   fi
11427
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11429 $as_echo "$ld_shlibs" >&6; }
11430 test "$ld_shlibs" = no && can_build_shared=no
11431
11432 with_gnu_ld=$with_gnu_ld
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448 #
11449 # Do we need to explicitly link libc?
11450 #
11451 case "x$archive_cmds_need_lc" in
11452 x|xyes)
11453   # Assume -lc should be added
11454   archive_cmds_need_lc=yes
11455
11456   if test "$enable_shared" = yes && test "$GCC" = yes; then
11457     case $archive_cmds in
11458     *'~'*)
11459       # FIXME: we may have to deal with multi-command sequences.
11460       ;;
11461     '$CC '*)
11462       # Test whether the compiler implicitly links with -lc since on some
11463       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11464       # to ld, don't add -lc before -lgcc.
11465       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11466 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11467 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   $RM conftest*
11471         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11472
11473         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11474   (eval $ac_compile) 2>&5
11475   ac_status=$?
11476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477   test $ac_status = 0; } 2>conftest.err; then
11478           soname=conftest
11479           lib=conftest
11480           libobjs=conftest.$ac_objext
11481           deplibs=
11482           wl=$lt_prog_compiler_wl
11483           pic_flag=$lt_prog_compiler_pic
11484           compiler_flags=-v
11485           linker_flags=-v
11486           verstring=
11487           output_objdir=.
11488           libname=conftest
11489           lt_save_allow_undefined_flag=$allow_undefined_flag
11490           allow_undefined_flag=
11491           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11492   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11493   ac_status=$?
11494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11495   test $ac_status = 0; }
11496           then
11497             lt_cv_archive_cmds_need_lc=no
11498           else
11499             lt_cv_archive_cmds_need_lc=yes
11500           fi
11501           allow_undefined_flag=$lt_save_allow_undefined_flag
11502         else
11503           cat conftest.err 1>&5
11504         fi
11505         $RM conftest*
11506
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11509 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11510       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11511       ;;
11512     esac
11513   fi
11514   ;;
11515 esac
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11670
11671 if test "$GCC" = yes; then
11672   case $host_os in
11673     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11674     *) lt_awk_arg="/^libraries:/" ;;
11675   esac
11676   case $host_os in
11677     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11678     *) lt_sed_strip_eq="s,=/,/,g" ;;
11679   esac
11680   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11681   case $lt_search_path_spec in
11682   *\;*)
11683     # if the path contains ";" then we assume it to be the separator
11684     # otherwise default to the standard path separator (i.e. ":") - it is
11685     # assumed that no part of a normal pathname contains ";" but that should
11686     # okay in the real world where ";" in dirpaths is itself problematic.
11687     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11688     ;;
11689   *)
11690     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11691     ;;
11692   esac
11693   # Ok, now we have the path, separated by spaces, we can step through it
11694   # and add multilib dir if necessary.
11695   lt_tmp_lt_search_path_spec=
11696   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11697   for lt_sys_path in $lt_search_path_spec; do
11698     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11699       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11700     else
11701       test -d "$lt_sys_path" && \
11702         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11703     fi
11704   done
11705   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11706 BEGIN {RS=" "; FS="/|\n";} {
11707   lt_foo="";
11708   lt_count=0;
11709   for (lt_i = NF; lt_i > 0; lt_i--) {
11710     if ($lt_i != "" && $lt_i != ".") {
11711       if ($lt_i == "..") {
11712         lt_count++;
11713       } else {
11714         if (lt_count == 0) {
11715           lt_foo="/" $lt_i lt_foo;
11716         } else {
11717           lt_count--;
11718         }
11719       }
11720     }
11721   }
11722   if (lt_foo != "") { lt_freq[lt_foo]++; }
11723   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11724 }'`
11725   # AWK program above erroneously prepends '/' to C:/dos/paths
11726   # for these hosts.
11727   case $host_os in
11728     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11729       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11730   esac
11731   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11732 else
11733   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11734 fi
11735 library_names_spec=
11736 libname_spec='lib$name'
11737 soname_spec=
11738 shrext_cmds=".so"
11739 postinstall_cmds=
11740 postuninstall_cmds=
11741 finish_cmds=
11742 finish_eval=
11743 shlibpath_var=
11744 shlibpath_overrides_runpath=unknown
11745 version_type=none
11746 dynamic_linker="$host_os ld.so"
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11748 need_lib_prefix=unknown
11749 hardcode_into_libs=no
11750
11751 # when you set need_version to no, make sure it does not cause -set_version
11752 # flags to be left without arguments
11753 need_version=unknown
11754
11755 case $host_os in
11756 aix3*)
11757   version_type=linux # correct to gnu/linux during the next big refactor
11758   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11759   shlibpath_var=LIBPATH
11760
11761   # AIX 3 has no versioning support, so we append a major version to the name.
11762   soname_spec='${libname}${release}${shared_ext}$major'
11763   ;;
11764
11765 aix[4-9]*)
11766   version_type=linux # correct to gnu/linux during the next big refactor
11767   need_lib_prefix=no
11768   need_version=no
11769   hardcode_into_libs=yes
11770   if test "$host_cpu" = ia64; then
11771     # AIX 5 supports IA64
11772     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11773     shlibpath_var=LD_LIBRARY_PATH
11774   else
11775     # With GCC up to 2.95.x, collect2 would create an import file
11776     # for dependence libraries.  The import file would start with
11777     # the line `#! .'.  This would cause the generated library to
11778     # depend on `.', always an invalid library.  This was fixed in
11779     # development snapshots of GCC prior to 3.0.
11780     case $host_os in
11781       aix4 | aix4.[01] | aix4.[01].*)
11782       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11783            echo ' yes '
11784            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11785         :
11786       else
11787         can_build_shared=no
11788       fi
11789       ;;
11790     esac
11791     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11792     # soname into executable. Probably we can add versioning support to
11793     # collect2, so additional links can be useful in future.
11794     if test "$aix_use_runtimelinking" = yes; then
11795       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11796       # instead of lib<name>.a to let people know that these are not
11797       # typical AIX shared libraries.
11798       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799     else
11800       # We preserve .a as extension for shared libraries through AIX4.2
11801       # and later when we are not doing run time linking.
11802       library_names_spec='${libname}${release}.a $libname.a'
11803       soname_spec='${libname}${release}${shared_ext}$major'
11804     fi
11805     shlibpath_var=LIBPATH
11806   fi
11807   ;;
11808
11809 amigaos*)
11810   case $host_cpu in
11811   powerpc)
11812     # Since July 2007 AmigaOS4 officially supports .so libraries.
11813     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815     ;;
11816   m68k)
11817     library_names_spec='$libname.ixlibrary $libname.a'
11818     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11819     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'
11820     ;;
11821   esac
11822   ;;
11823
11824 beos*)
11825   library_names_spec='${libname}${shared_ext}'
11826   dynamic_linker="$host_os ld.so"
11827   shlibpath_var=LIBRARY_PATH
11828   ;;
11829
11830 bsdi[45]*)
11831   version_type=linux # correct to gnu/linux during the next big refactor
11832   need_version=no
11833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834   soname_spec='${libname}${release}${shared_ext}$major'
11835   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11836   shlibpath_var=LD_LIBRARY_PATH
11837   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11838   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11839   # the default ld.so.conf also contains /usr/contrib/lib and
11840   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11841   # libtool to hard-code these into programs
11842   ;;
11843
11844 cygwin* | mingw* | pw32* | cegcc*)
11845   version_type=windows
11846   shrext_cmds=".dll"
11847   need_version=no
11848   need_lib_prefix=no
11849
11850   case $GCC,$cc_basename in
11851   yes,*)
11852     # gcc
11853     library_names_spec='$libname.dll.a'
11854     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11855     postinstall_cmds='base_file=`basename \${file}`~
11856       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11857       dldir=$destdir/`dirname \$dlpath`~
11858       test -d \$dldir || mkdir -p \$dldir~
11859       $install_prog $dir/$dlname \$dldir/$dlname~
11860       chmod a+x \$dldir/$dlname~
11861       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11862         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11863       fi'
11864     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11865       dlpath=$dir/\$dldll~
11866        $RM \$dlpath'
11867     shlibpath_overrides_runpath=yes
11868
11869     case $host_os in
11870     cygwin*)
11871       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11872       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11873
11874       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11875       ;;
11876     mingw* | cegcc*)
11877       # MinGW DLLs use traditional 'lib' prefix
11878       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11879       ;;
11880     pw32*)
11881       # pw32 DLLs use 'pw' prefix rather than 'lib'
11882       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11883       ;;
11884     esac
11885     dynamic_linker='Win32 ld.exe'
11886     ;;
11887
11888   *,cl*)
11889     # Native MSVC
11890     libname_spec='$name'
11891     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11892     library_names_spec='${libname}.dll.lib'
11893
11894     case $build_os in
11895     mingw*)
11896       sys_lib_search_path_spec=
11897       lt_save_ifs=$IFS
11898       IFS=';'
11899       for lt_path in $LIB
11900       do
11901         IFS=$lt_save_ifs
11902         # Let DOS variable expansion print the short 8.3 style file name.
11903         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11904         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11905       done
11906       IFS=$lt_save_ifs
11907       # Convert to MSYS style.
11908       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11909       ;;
11910     cygwin*)
11911       # Convert to unix form, then to dos form, then back to unix form
11912       # but this time dos style (no spaces!) so that the unix form looks
11913       # like /cygdrive/c/PROGRA~1:/cygdr...
11914       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11915       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11916       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11917       ;;
11918     *)
11919       sys_lib_search_path_spec="$LIB"
11920       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11921         # It is most probably a Windows format PATH.
11922         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11923       else
11924         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11925       fi
11926       # FIXME: find the short name or the path components, as spaces are
11927       # common. (e.g. "Program Files" -> "PROGRA~1")
11928       ;;
11929     esac
11930
11931     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11932     postinstall_cmds='base_file=`basename \${file}`~
11933       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11934       dldir=$destdir/`dirname \$dlpath`~
11935       test -d \$dldir || mkdir -p \$dldir~
11936       $install_prog $dir/$dlname \$dldir/$dlname'
11937     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11938       dlpath=$dir/\$dldll~
11939        $RM \$dlpath'
11940     shlibpath_overrides_runpath=yes
11941     dynamic_linker='Win32 link.exe'
11942     ;;
11943
11944   *)
11945     # Assume MSVC wrapper
11946     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11947     dynamic_linker='Win32 ld.exe'
11948     ;;
11949   esac
11950   # FIXME: first we should search . and the directory the executable is in
11951   shlibpath_var=PATH
11952   ;;
11953
11954 darwin* | rhapsody*)
11955   dynamic_linker="$host_os dyld"
11956   version_type=darwin
11957   need_lib_prefix=no
11958   need_version=no
11959   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11960   soname_spec='${libname}${release}${major}$shared_ext'
11961   shlibpath_overrides_runpath=yes
11962   shlibpath_var=DYLD_LIBRARY_PATH
11963   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11964
11965   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11966   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11967   ;;
11968
11969 dgux*)
11970   version_type=linux # correct to gnu/linux during the next big refactor
11971   need_lib_prefix=no
11972   need_version=no
11973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11974   soname_spec='${libname}${release}${shared_ext}$major'
11975   shlibpath_var=LD_LIBRARY_PATH
11976   ;;
11977
11978 freebsd* | dragonfly*)
11979   # DragonFly does not have aout.  When/if they implement a new
11980   # versioning mechanism, adjust this.
11981   if test -x /usr/bin/objformat; then
11982     objformat=`/usr/bin/objformat`
11983   else
11984     case $host_os in
11985     freebsd[23].*) objformat=aout ;;
11986     *) objformat=elf ;;
11987     esac
11988   fi
11989   version_type=freebsd-$objformat
11990   case $version_type in
11991     freebsd-elf*)
11992       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11993       need_version=no
11994       need_lib_prefix=no
11995       ;;
11996     freebsd-*)
11997       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11998       need_version=yes
11999       ;;
12000   esac
12001   shlibpath_var=LD_LIBRARY_PATH
12002   case $host_os in
12003   freebsd2.*)
12004     shlibpath_overrides_runpath=yes
12005     ;;
12006   freebsd3.[01]* | freebsdelf3.[01]*)
12007     shlibpath_overrides_runpath=yes
12008     hardcode_into_libs=yes
12009     ;;
12010   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12011   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12012     shlibpath_overrides_runpath=no
12013     hardcode_into_libs=yes
12014     ;;
12015   *) # from 4.6 on, and DragonFly
12016     shlibpath_overrides_runpath=yes
12017     hardcode_into_libs=yes
12018     ;;
12019   esac
12020   ;;
12021
12022 haiku*)
12023   version_type=linux # correct to gnu/linux during the next big refactor
12024   need_lib_prefix=no
12025   need_version=no
12026   dynamic_linker="$host_os runtime_loader"
12027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028   soname_spec='${libname}${release}${shared_ext}$major'
12029   shlibpath_var=LIBRARY_PATH
12030   shlibpath_overrides_runpath=yes
12031   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12032   hardcode_into_libs=yes
12033   ;;
12034
12035 hpux9* | hpux10* | hpux11*)
12036   # Give a soname corresponding to the major version so that dld.sl refuses to
12037   # link against other versions.
12038   version_type=sunos
12039   need_lib_prefix=no
12040   need_version=no
12041   case $host_cpu in
12042   ia64*)
12043     shrext_cmds='.so'
12044     hardcode_into_libs=yes
12045     dynamic_linker="$host_os dld.so"
12046     shlibpath_var=LD_LIBRARY_PATH
12047     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049     soname_spec='${libname}${release}${shared_ext}$major'
12050     if test "X$HPUX_IA64_MODE" = X32; then
12051       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12052     else
12053       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12054     fi
12055     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056     ;;
12057   hppa*64*)
12058     shrext_cmds='.sl'
12059     hardcode_into_libs=yes
12060     dynamic_linker="$host_os dld.sl"
12061     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12062     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064     soname_spec='${libname}${release}${shared_ext}$major'
12065     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12067     ;;
12068   *)
12069     shrext_cmds='.sl'
12070     dynamic_linker="$host_os dld.sl"
12071     shlibpath_var=SHLIB_PATH
12072     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074     soname_spec='${libname}${release}${shared_ext}$major'
12075     ;;
12076   esac
12077   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12078   postinstall_cmds='chmod 555 $lib'
12079   # or fails outright, so override atomically:
12080   install_override_mode=555
12081   ;;
12082
12083 interix[3-9]*)
12084   version_type=linux # correct to gnu/linux during the next big refactor
12085   need_lib_prefix=no
12086   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12090   shlibpath_var=LD_LIBRARY_PATH
12091   shlibpath_overrides_runpath=no
12092   hardcode_into_libs=yes
12093   ;;
12094
12095 irix5* | irix6* | nonstopux*)
12096   case $host_os in
12097     nonstopux*) version_type=nonstopux ;;
12098     *)
12099         if test "$lt_cv_prog_gnu_ld" = yes; then
12100                 version_type=linux # correct to gnu/linux during the next big refactor
12101         else
12102                 version_type=irix
12103         fi ;;
12104   esac
12105   need_lib_prefix=no
12106   need_version=no
12107   soname_spec='${libname}${release}${shared_ext}$major'
12108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12109   case $host_os in
12110   irix5* | nonstopux*)
12111     libsuff= shlibsuff=
12112     ;;
12113   *)
12114     case $LD in # libtool.m4 will add one of these switches to LD
12115     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12116       libsuff= shlibsuff= libmagic=32-bit;;
12117     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12118       libsuff=32 shlibsuff=N32 libmagic=N32;;
12119     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12120       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12121     *) libsuff= shlibsuff= libmagic=never-match;;
12122     esac
12123     ;;
12124   esac
12125   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12126   shlibpath_overrides_runpath=no
12127   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12128   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12129   hardcode_into_libs=yes
12130   ;;
12131
12132 # No shared lib support for Linux oldld, aout, or coff.
12133 linux*oldld* | linux*aout* | linux*coff*)
12134   dynamic_linker=no
12135   ;;
12136
12137 # This must be glibc/ELF.
12138 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12139   version_type=linux # correct to gnu/linux during the next big refactor
12140   need_lib_prefix=no
12141   need_version=no
12142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143   soname_spec='${libname}${release}${shared_ext}$major'
12144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12145   shlibpath_var=LD_LIBRARY_PATH
12146   shlibpath_overrides_runpath=no
12147
12148   # Some binutils ld are patched to set DT_RUNPATH
12149   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12150   $as_echo_n "(cached) " >&6
12151 else
12152   lt_cv_shlibpath_overrides_runpath=no
12153     save_LDFLAGS=$LDFLAGS
12154     save_libdir=$libdir
12155     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12156          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h.  */
12159
12160 int
12161 main ()
12162 {
12163
12164   ;
12165   return 0;
12166 }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12170   lt_cv_shlibpath_overrides_runpath=yes
12171 fi
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext \
12174     conftest$ac_exeext conftest.$ac_ext
12175     LDFLAGS=$save_LDFLAGS
12176     libdir=$save_libdir
12177
12178 fi
12179
12180   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12181
12182   # This implies no fast_install, which is unacceptable.
12183   # Some rework will be needed to allow for fast_install
12184   # before this can be enabled.
12185   hardcode_into_libs=yes
12186
12187   # Append ld.so.conf contents to the search path
12188   if test -f /etc/ld.so.conf; then
12189     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' ' '`
12190     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12191   fi
12192
12193   # We used to test for /lib/ld.so.1 and disable shared libraries on
12194   # powerpc, because MkLinux only supported shared libraries with the
12195   # GNU dynamic linker.  Since this was broken with cross compilers,
12196   # most powerpc-linux boxes support dynamic linking these days and
12197   # people can always --disable-shared, the test was removed, and we
12198   # assume the GNU/Linux dynamic linker is in use.
12199   dynamic_linker='GNU/Linux ld.so'
12200   ;;
12201
12202 netbsdelf*-gnu)
12203   version_type=linux
12204   need_lib_prefix=no
12205   need_version=no
12206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12207   soname_spec='${libname}${release}${shared_ext}$major'
12208   shlibpath_var=LD_LIBRARY_PATH
12209   shlibpath_overrides_runpath=no
12210   hardcode_into_libs=yes
12211   dynamic_linker='NetBSD ld.elf_so'
12212   ;;
12213
12214 netbsd*)
12215   version_type=sunos
12216   need_lib_prefix=no
12217   need_version=no
12218   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12220     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12221     dynamic_linker='NetBSD (a.out) ld.so'
12222   else
12223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12224     soname_spec='${libname}${release}${shared_ext}$major'
12225     dynamic_linker='NetBSD ld.elf_so'
12226   fi
12227   shlibpath_var=LD_LIBRARY_PATH
12228   shlibpath_overrides_runpath=yes
12229   hardcode_into_libs=yes
12230   ;;
12231
12232 newsos6)
12233   version_type=linux # correct to gnu/linux during the next big refactor
12234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235   shlibpath_var=LD_LIBRARY_PATH
12236   shlibpath_overrides_runpath=yes
12237   ;;
12238
12239 *nto* | *qnx*)
12240   version_type=qnx
12241   need_lib_prefix=no
12242   need_version=no
12243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244   soname_spec='${libname}${release}${shared_ext}$major'
12245   shlibpath_var=LD_LIBRARY_PATH
12246   shlibpath_overrides_runpath=no
12247   hardcode_into_libs=yes
12248   dynamic_linker='ldqnx.so'
12249   ;;
12250
12251 openbsd*)
12252   version_type=sunos
12253   sys_lib_dlsearch_path_spec="/usr/lib"
12254   need_lib_prefix=no
12255   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12256   case $host_os in
12257     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12258     *)                          need_version=no  ;;
12259   esac
12260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12262   shlibpath_var=LD_LIBRARY_PATH
12263   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12264     case $host_os in
12265       openbsd2.[89] | openbsd2.[89].*)
12266         shlibpath_overrides_runpath=no
12267         ;;
12268       *)
12269         shlibpath_overrides_runpath=yes
12270         ;;
12271       esac
12272   else
12273     shlibpath_overrides_runpath=yes
12274   fi
12275   ;;
12276
12277 os2*)
12278   libname_spec='$name'
12279   shrext_cmds=".dll"
12280   need_lib_prefix=no
12281   library_names_spec='$libname${shared_ext} $libname.a'
12282   dynamic_linker='OS/2 ld.exe'
12283   shlibpath_var=LIBPATH
12284   ;;
12285
12286 osf3* | osf4* | osf5*)
12287   version_type=osf
12288   need_lib_prefix=no
12289   need_version=no
12290   soname_spec='${libname}${release}${shared_ext}$major'
12291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292   shlibpath_var=LD_LIBRARY_PATH
12293   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12294   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12295   ;;
12296
12297 rdos*)
12298   dynamic_linker=no
12299   ;;
12300
12301 solaris*)
12302   version_type=linux # correct to gnu/linux during the next big refactor
12303   need_lib_prefix=no
12304   need_version=no
12305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306   soname_spec='${libname}${release}${shared_ext}$major'
12307   shlibpath_var=LD_LIBRARY_PATH
12308   shlibpath_overrides_runpath=yes
12309   hardcode_into_libs=yes
12310   # ldd complains unless libraries are executable
12311   postinstall_cmds='chmod +x $lib'
12312   ;;
12313
12314 sunos4*)
12315   version_type=sunos
12316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12317   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12318   shlibpath_var=LD_LIBRARY_PATH
12319   shlibpath_overrides_runpath=yes
12320   if test "$with_gnu_ld" = yes; then
12321     need_lib_prefix=no
12322   fi
12323   need_version=yes
12324   ;;
12325
12326 sysv4 | sysv4.3*)
12327   version_type=linux # correct to gnu/linux during the next big refactor
12328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329   soname_spec='${libname}${release}${shared_ext}$major'
12330   shlibpath_var=LD_LIBRARY_PATH
12331   case $host_vendor in
12332     sni)
12333       shlibpath_overrides_runpath=no
12334       need_lib_prefix=no
12335       runpath_var=LD_RUN_PATH
12336       ;;
12337     siemens)
12338       need_lib_prefix=no
12339       ;;
12340     motorola)
12341       need_lib_prefix=no
12342       need_version=no
12343       shlibpath_overrides_runpath=no
12344       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12345       ;;
12346   esac
12347   ;;
12348
12349 sysv4*MP*)
12350   if test -d /usr/nec ;then
12351     version_type=linux # correct to gnu/linux during the next big refactor
12352     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12353     soname_spec='$libname${shared_ext}.$major'
12354     shlibpath_var=LD_LIBRARY_PATH
12355   fi
12356   ;;
12357
12358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12359   version_type=freebsd-elf
12360   need_lib_prefix=no
12361   need_version=no
12362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12363   soname_spec='${libname}${release}${shared_ext}$major'
12364   shlibpath_var=LD_LIBRARY_PATH
12365   shlibpath_overrides_runpath=yes
12366   hardcode_into_libs=yes
12367   if test "$with_gnu_ld" = yes; then
12368     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12369   else
12370     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12371     case $host_os in
12372       sco3.2v5*)
12373         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12374         ;;
12375     esac
12376   fi
12377   sys_lib_dlsearch_path_spec='/usr/lib'
12378   ;;
12379
12380 tpf*)
12381   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12382   version_type=linux # correct to gnu/linux during the next big refactor
12383   need_lib_prefix=no
12384   need_version=no
12385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386   shlibpath_var=LD_LIBRARY_PATH
12387   shlibpath_overrides_runpath=no
12388   hardcode_into_libs=yes
12389   ;;
12390
12391 uts4*)
12392   version_type=linux # correct to gnu/linux during the next big refactor
12393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394   soname_spec='${libname}${release}${shared_ext}$major'
12395   shlibpath_var=LD_LIBRARY_PATH
12396   ;;
12397
12398 *)
12399   dynamic_linker=no
12400   ;;
12401 esac
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12403 $as_echo "$dynamic_linker" >&6; }
12404 test "$dynamic_linker" = no && can_build_shared=no
12405
12406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12407 if test "$GCC" = yes; then
12408   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12409 fi
12410
12411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12412   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12413 fi
12414 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12415   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12416 fi
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12511 hardcode_action=
12512 if test -n "$hardcode_libdir_flag_spec" ||
12513    test -n "$runpath_var" ||
12514    test "X$hardcode_automatic" = "Xyes" ; then
12515
12516   # We can hardcode non-existent directories.
12517   if test "$hardcode_direct" != no &&
12518      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12519      # have to relink, otherwise we might link with an installed library
12520      # when we should be linking with a yet-to-be-installed one
12521      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12522      test "$hardcode_minus_L" != no; then
12523     # Linking always hardcodes the temporary library directory.
12524     hardcode_action=relink
12525   else
12526     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12527     hardcode_action=immediate
12528   fi
12529 else
12530   # We cannot hardcode anything, or else we can only hardcode existing
12531   # directories.
12532   hardcode_action=unsupported
12533 fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12535 $as_echo "$hardcode_action" >&6; }
12536
12537 if test "$hardcode_action" = relink ||
12538    test "$inherit_rpath" = yes; then
12539   # Fast installation is not supported
12540   enable_fast_install=no
12541 elif test "$shlibpath_overrides_runpath" = yes ||
12542      test "$enable_shared" = no; then
12543   # Fast installation is not necessary
12544   enable_fast_install=needless
12545 fi
12546
12547
12548
12549
12550
12551
12552   if test "x$enable_dlopen" != xyes; then
12553   enable_dlopen=unknown
12554   enable_dlopen_self=unknown
12555   enable_dlopen_self_static=unknown
12556 else
12557   lt_cv_dlopen=no
12558   lt_cv_dlopen_libs=
12559
12560   case $host_os in
12561   beos*)
12562     lt_cv_dlopen="load_add_on"
12563     lt_cv_dlopen_libs=
12564     lt_cv_dlopen_self=yes
12565     ;;
12566
12567   mingw* | pw32* | cegcc*)
12568     lt_cv_dlopen="LoadLibrary"
12569     lt_cv_dlopen_libs=
12570     ;;
12571
12572   cygwin*)
12573     lt_cv_dlopen="dlopen"
12574     lt_cv_dlopen_libs=
12575     ;;
12576
12577   darwin*)
12578   # if libdl is installed we need to link against it
12579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12581 if ${ac_cv_lib_dl_dlopen+:} false; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584   ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-ldl  $LIBS"
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h.  */
12588
12589 /* Override any GCC internal prototype to avoid an error.
12590    Use char because int might match the return type of a GCC
12591    builtin and then its argument prototype would still apply.  */
12592 #ifdef __cplusplus
12593 extern "C"
12594 #endif
12595 char dlopen ();
12596 int
12597 main ()
12598 {
12599 return dlopen ();
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_link "$LINENO"; then :
12605   ac_cv_lib_dl_dlopen=yes
12606 else
12607   ac_cv_lib_dl_dlopen=no
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext \
12610     conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_check_lib_save_LIBS
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12615 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12616   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12617 else
12618
12619     lt_cv_dlopen="dyld"
12620     lt_cv_dlopen_libs=
12621     lt_cv_dlopen_self=yes
12622
12623 fi
12624
12625     ;;
12626
12627   *)
12628     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12629 if test "x$ac_cv_func_shl_load" = xyes; then :
12630   lt_cv_dlopen="shl_load"
12631 else
12632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12633 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12634 if ${ac_cv_lib_dld_shl_load+:} false; then :
12635   $as_echo_n "(cached) " >&6
12636 else
12637   ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-ldld  $LIBS"
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h.  */
12641
12642 /* Override any GCC internal prototype to avoid an error.
12643    Use char because int might match the return type of a GCC
12644    builtin and then its argument prototype would still apply.  */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char shl_load ();
12649 int
12650 main ()
12651 {
12652 return shl_load ();
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 if ac_fn_c_try_link "$LINENO"; then :
12658   ac_cv_lib_dld_shl_load=yes
12659 else
12660   ac_cv_lib_dld_shl_load=no
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext \
12663     conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12665 fi
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12667 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12668 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12669   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12670 else
12671   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12672 if test "x$ac_cv_func_dlopen" = xyes; then :
12673   lt_cv_dlopen="dlopen"
12674 else
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12677 if ${ac_cv_lib_dl_dlopen+:} false; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680   ac_check_lib_save_LIBS=$LIBS
12681 LIBS="-ldl  $LIBS"
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h.  */
12684
12685 /* Override any GCC internal prototype to avoid an error.
12686    Use char because int might match the return type of a GCC
12687    builtin and then its argument prototype would still apply.  */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 char dlopen ();
12692 int
12693 main ()
12694 {
12695 return dlopen ();
12696   ;
12697   return 0;
12698 }
12699 _ACEOF
12700 if ac_fn_c_try_link "$LINENO"; then :
12701   ac_cv_lib_dl_dlopen=yes
12702 else
12703   ac_cv_lib_dl_dlopen=no
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext \
12706     conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12712   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12713 else
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12715 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12716 if ${ac_cv_lib_svld_dlopen+:} false; then :
12717   $as_echo_n "(cached) " >&6
12718 else
12719   ac_check_lib_save_LIBS=$LIBS
12720 LIBS="-lsvld  $LIBS"
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h.  */
12723
12724 /* Override any GCC internal prototype to avoid an error.
12725    Use char because int might match the return type of a GCC
12726    builtin and then its argument prototype would still apply.  */
12727 #ifdef __cplusplus
12728 extern "C"
12729 #endif
12730 char dlopen ();
12731 int
12732 main ()
12733 {
12734 return dlopen ();
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 if ac_fn_c_try_link "$LINENO"; then :
12740   ac_cv_lib_svld_dlopen=yes
12741 else
12742   ac_cv_lib_svld_dlopen=no
12743 fi
12744 rm -f core conftest.err conftest.$ac_objext \
12745     conftest$ac_exeext conftest.$ac_ext
12746 LIBS=$ac_check_lib_save_LIBS
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12749 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12750 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12752 else
12753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12754 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12755 if ${ac_cv_lib_dld_dld_link+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-ldld  $LIBS"
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h.  */
12762
12763 /* Override any GCC internal prototype to avoid an error.
12764    Use char because int might match the return type of a GCC
12765    builtin and then its argument prototype would still apply.  */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char dld_link ();
12770 int
12771 main ()
12772 {
12773 return dld_link ();
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779   ac_cv_lib_dld_dld_link=yes
12780 else
12781   ac_cv_lib_dld_dld_link=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext \
12784     conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12788 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12789 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12790   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12791 fi
12792
12793
12794 fi
12795
12796
12797 fi
12798
12799
12800 fi
12801
12802
12803 fi
12804
12805
12806 fi
12807
12808     ;;
12809   esac
12810
12811   if test "x$lt_cv_dlopen" != xno; then
12812     enable_dlopen=yes
12813   else
12814     enable_dlopen=no
12815   fi
12816
12817   case $lt_cv_dlopen in
12818   dlopen)
12819     save_CPPFLAGS="$CPPFLAGS"
12820     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12821
12822     save_LDFLAGS="$LDFLAGS"
12823     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12824
12825     save_LIBS="$LIBS"
12826     LIBS="$lt_cv_dlopen_libs $LIBS"
12827
12828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12829 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12830 if ${lt_cv_dlopen_self+:} false; then :
12831   $as_echo_n "(cached) " >&6
12832 else
12833           if test "$cross_compiling" = yes; then :
12834   lt_cv_dlopen_self=cross
12835 else
12836   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12837   lt_status=$lt_dlunknown
12838   cat > conftest.$ac_ext <<_LT_EOF
12839 #line $LINENO "configure"
12840 #include "confdefs.h"
12841
12842 #if HAVE_DLFCN_H
12843 #include <dlfcn.h>
12844 #endif
12845
12846 #include <stdio.h>
12847
12848 #ifdef RTLD_GLOBAL
12849 #  define LT_DLGLOBAL           RTLD_GLOBAL
12850 #else
12851 #  ifdef DL_GLOBAL
12852 #    define LT_DLGLOBAL         DL_GLOBAL
12853 #  else
12854 #    define LT_DLGLOBAL         0
12855 #  endif
12856 #endif
12857
12858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12859    find out it does not work in some platform. */
12860 #ifndef LT_DLLAZY_OR_NOW
12861 #  ifdef RTLD_LAZY
12862 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12863 #  else
12864 #    ifdef DL_LAZY
12865 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12866 #    else
12867 #      ifdef RTLD_NOW
12868 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12869 #      else
12870 #        ifdef DL_NOW
12871 #          define LT_DLLAZY_OR_NOW      DL_NOW
12872 #        else
12873 #          define LT_DLLAZY_OR_NOW      0
12874 #        endif
12875 #      endif
12876 #    endif
12877 #  endif
12878 #endif
12879
12880 /* When -fvisbility=hidden is used, assume the code has been annotated
12881    correspondingly for the symbols needed.  */
12882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12883 int fnord () __attribute__((visibility("default")));
12884 #endif
12885
12886 int fnord () { return 42; }
12887 int main ()
12888 {
12889   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12890   int status = $lt_dlunknown;
12891
12892   if (self)
12893     {
12894       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12895       else
12896         {
12897           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12898           else puts (dlerror ());
12899         }
12900       /* dlclose (self); */
12901     }
12902   else
12903     puts (dlerror ());
12904
12905   return status;
12906 }
12907 _LT_EOF
12908   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12909   (eval $ac_link) 2>&5
12910   ac_status=$?
12911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12913     (./conftest; exit; ) >&5 2>/dev/null
12914     lt_status=$?
12915     case x$lt_status in
12916       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12917       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12918       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12919     esac
12920   else :
12921     # compilation failed
12922     lt_cv_dlopen_self=no
12923   fi
12924 fi
12925 rm -fr conftest*
12926
12927
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12930 $as_echo "$lt_cv_dlopen_self" >&6; }
12931
12932     if test "x$lt_cv_dlopen_self" = xyes; then
12933       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12934       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12935 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12936 if ${lt_cv_dlopen_self_static+:} false; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939           if test "$cross_compiling" = yes; then :
12940   lt_cv_dlopen_self_static=cross
12941 else
12942   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12943   lt_status=$lt_dlunknown
12944   cat > conftest.$ac_ext <<_LT_EOF
12945 #line $LINENO "configure"
12946 #include "confdefs.h"
12947
12948 #if HAVE_DLFCN_H
12949 #include <dlfcn.h>
12950 #endif
12951
12952 #include <stdio.h>
12953
12954 #ifdef RTLD_GLOBAL
12955 #  define LT_DLGLOBAL           RTLD_GLOBAL
12956 #else
12957 #  ifdef DL_GLOBAL
12958 #    define LT_DLGLOBAL         DL_GLOBAL
12959 #  else
12960 #    define LT_DLGLOBAL         0
12961 #  endif
12962 #endif
12963
12964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12965    find out it does not work in some platform. */
12966 #ifndef LT_DLLAZY_OR_NOW
12967 #  ifdef RTLD_LAZY
12968 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12969 #  else
12970 #    ifdef DL_LAZY
12971 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12972 #    else
12973 #      ifdef RTLD_NOW
12974 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12975 #      else
12976 #        ifdef DL_NOW
12977 #          define LT_DLLAZY_OR_NOW      DL_NOW
12978 #        else
12979 #          define LT_DLLAZY_OR_NOW      0
12980 #        endif
12981 #      endif
12982 #    endif
12983 #  endif
12984 #endif
12985
12986 /* When -fvisbility=hidden is used, assume the code has been annotated
12987    correspondingly for the symbols needed.  */
12988 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12989 int fnord () __attribute__((visibility("default")));
12990 #endif
12991
12992 int fnord () { return 42; }
12993 int main ()
12994 {
12995   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12996   int status = $lt_dlunknown;
12997
12998   if (self)
12999     {
13000       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13001       else
13002         {
13003           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13004           else puts (dlerror ());
13005         }
13006       /* dlclose (self); */
13007     }
13008   else
13009     puts (dlerror ());
13010
13011   return status;
13012 }
13013 _LT_EOF
13014   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13015   (eval $ac_link) 2>&5
13016   ac_status=$?
13017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13019     (./conftest; exit; ) >&5 2>/dev/null
13020     lt_status=$?
13021     case x$lt_status in
13022       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13023       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13024       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13025     esac
13026   else :
13027     # compilation failed
13028     lt_cv_dlopen_self_static=no
13029   fi
13030 fi
13031 rm -fr conftest*
13032
13033
13034 fi
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13036 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13037     fi
13038
13039     CPPFLAGS="$save_CPPFLAGS"
13040     LDFLAGS="$save_LDFLAGS"
13041     LIBS="$save_LIBS"
13042     ;;
13043   esac
13044
13045   case $lt_cv_dlopen_self in
13046   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13047   *) enable_dlopen_self=unknown ;;
13048   esac
13049
13050   case $lt_cv_dlopen_self_static in
13051   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13052   *) enable_dlopen_self_static=unknown ;;
13053   esac
13054 fi
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072 striplib=
13073 old_striplib=
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13075 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13076 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13077   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13078   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13081 else
13082 # FIXME - insert some real tests, host_os isn't really good enough
13083   case $host_os in
13084   darwin*)
13085     if test -n "$STRIP" ; then
13086       striplib="$STRIP -x"
13087       old_striplib="$STRIP -S"
13088       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13089 $as_echo "yes" >&6; }
13090     else
13091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13093     fi
13094     ;;
13095   *)
13096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098     ;;
13099   esac
13100 fi
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113   # Report which library types will actually be built
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13115 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13117 $as_echo "$can_build_shared" >&6; }
13118
13119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13120 $as_echo_n "checking whether to build shared libraries... " >&6; }
13121   test "$can_build_shared" = "no" && enable_shared=no
13122
13123   # On AIX, shared libraries and static libraries use the same namespace, and
13124   # are all built from PIC.
13125   case $host_os in
13126   aix3*)
13127     test "$enable_shared" = yes && enable_static=no
13128     if test -n "$RANLIB"; then
13129       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13130       postinstall_cmds='$RANLIB $lib'
13131     fi
13132     ;;
13133
13134   aix[4-9]*)
13135     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13136       test "$enable_shared" = yes && enable_static=no
13137     fi
13138     ;;
13139   esac
13140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13141 $as_echo "$enable_shared" >&6; }
13142
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13144 $as_echo_n "checking whether to build static libraries... " >&6; }
13145   # Make sure either enable_shared or enable_static is yes.
13146   test "$enable_shared" = yes || enable_static=yes
13147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13148 $as_echo "$enable_static" >&6; }
13149
13150
13151
13152
13153 fi
13154 ac_ext=c
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159
13160 CC="$lt_save_CC"
13161
13162       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13163     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13164     (test "X$CXX" != "Xg++"))) ; then
13165   ac_ext=cpp
13166 ac_cpp='$CXXCPP $CPPFLAGS'
13167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13171 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13172 if test -z "$CXXCPP"; then
13173   if ${ac_cv_prog_CXXCPP+:} false; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176       # Double quotes because CXXCPP needs to be expanded
13177     for CXXCPP in "$CXX -E" "/lib/cpp"
13178     do
13179       ac_preproc_ok=false
13180 for ac_cxx_preproc_warn_flag in '' yes
13181 do
13182   # Use a header file that comes with gcc, so configuring glibc
13183   # with a fresh cross-compiler works.
13184   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13185   # <limits.h> exists even on freestanding compilers.
13186   # On the NeXT, cc -E runs the code through the compiler's parser,
13187   # not just through cpp. "Syntax error" is here to catch this case.
13188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h.  */
13190 #ifdef __STDC__
13191 # include <limits.h>
13192 #else
13193 # include <assert.h>
13194 #endif
13195                      Syntax error
13196 _ACEOF
13197 if ac_fn_cxx_try_cpp "$LINENO"; then :
13198
13199 else
13200   # Broken: fails on valid input.
13201 continue
13202 fi
13203 rm -f conftest.err conftest.i conftest.$ac_ext
13204
13205   # OK, works on sane cases.  Now check whether nonexistent headers
13206   # can be detected and how.
13207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h.  */
13209 #include <ac_nonexistent.h>
13210 _ACEOF
13211 if ac_fn_cxx_try_cpp "$LINENO"; then :
13212   # Broken: success on invalid input.
13213 continue
13214 else
13215   # Passes both tests.
13216 ac_preproc_ok=:
13217 break
13218 fi
13219 rm -f conftest.err conftest.i conftest.$ac_ext
13220
13221 done
13222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13223 rm -f conftest.i conftest.err conftest.$ac_ext
13224 if $ac_preproc_ok; then :
13225   break
13226 fi
13227
13228     done
13229     ac_cv_prog_CXXCPP=$CXXCPP
13230
13231 fi
13232   CXXCPP=$ac_cv_prog_CXXCPP
13233 else
13234   ac_cv_prog_CXXCPP=$CXXCPP
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13237 $as_echo "$CXXCPP" >&6; }
13238 ac_preproc_ok=false
13239 for ac_cxx_preproc_warn_flag in '' yes
13240 do
13241   # Use a header file that comes with gcc, so configuring glibc
13242   # with a fresh cross-compiler works.
13243   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13244   # <limits.h> exists even on freestanding compilers.
13245   # On the NeXT, cc -E runs the code through the compiler's parser,
13246   # not just through cpp. "Syntax error" is here to catch this case.
13247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h.  */
13249 #ifdef __STDC__
13250 # include <limits.h>
13251 #else
13252 # include <assert.h>
13253 #endif
13254                      Syntax error
13255 _ACEOF
13256 if ac_fn_cxx_try_cpp "$LINENO"; then :
13257
13258 else
13259   # Broken: fails on valid input.
13260 continue
13261 fi
13262 rm -f conftest.err conftest.i conftest.$ac_ext
13263
13264   # OK, works on sane cases.  Now check whether nonexistent headers
13265   # can be detected and how.
13266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h.  */
13268 #include <ac_nonexistent.h>
13269 _ACEOF
13270 if ac_fn_cxx_try_cpp "$LINENO"; then :
13271   # Broken: success on invalid input.
13272 continue
13273 else
13274   # Passes both tests.
13275 ac_preproc_ok=:
13276 break
13277 fi
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13279
13280 done
13281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13282 rm -f conftest.i conftest.err conftest.$ac_ext
13283 if $ac_preproc_ok; then :
13284
13285 else
13286   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13288 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13289 See \`config.log' for more details" "$LINENO" 5; }
13290 fi
13291
13292 ac_ext=c
13293 ac_cpp='$CPP $CPPFLAGS'
13294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13297
13298 else
13299   _lt_caught_CXX_error=yes
13300 fi
13301
13302 ac_ext=cpp
13303 ac_cpp='$CXXCPP $CPPFLAGS'
13304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13307
13308 archive_cmds_need_lc_CXX=no
13309 allow_undefined_flag_CXX=
13310 always_export_symbols_CXX=no
13311 archive_expsym_cmds_CXX=
13312 compiler_needs_object_CXX=no
13313 export_dynamic_flag_spec_CXX=
13314 hardcode_direct_CXX=no
13315 hardcode_direct_absolute_CXX=no
13316 hardcode_libdir_flag_spec_CXX=
13317 hardcode_libdir_separator_CXX=
13318 hardcode_minus_L_CXX=no
13319 hardcode_shlibpath_var_CXX=unsupported
13320 hardcode_automatic_CXX=no
13321 inherit_rpath_CXX=no
13322 module_cmds_CXX=
13323 module_expsym_cmds_CXX=
13324 link_all_deplibs_CXX=unknown
13325 old_archive_cmds_CXX=$old_archive_cmds
13326 reload_flag_CXX=$reload_flag
13327 reload_cmds_CXX=$reload_cmds
13328 no_undefined_flag_CXX=
13329 whole_archive_flag_spec_CXX=
13330 enable_shared_with_static_runtimes_CXX=no
13331
13332 # Source file extension for C++ test sources.
13333 ac_ext=cpp
13334
13335 # Object file extension for compiled C++ test sources.
13336 objext=o
13337 objext_CXX=$objext
13338
13339 # No sense in running all these tests if we already determined that
13340 # the CXX compiler isn't working.  Some variables (like enable_shared)
13341 # are currently assumed to apply to all compilers on this platform,
13342 # and will be corrupted by setting them based on a non-working compiler.
13343 if test "$_lt_caught_CXX_error" != yes; then
13344   # Code to be used in simple compile tests
13345   lt_simple_compile_test_code="int some_variable = 0;"
13346
13347   # Code to be used in simple link tests
13348   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13349
13350   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13351
13352
13353
13354
13355
13356
13357 # If no C compiler was specified, use CC.
13358 LTCC=${LTCC-"$CC"}
13359
13360 # If no C compiler flags were specified, use CFLAGS.
13361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13362
13363 # Allow CC to be a program name with arguments.
13364 compiler=$CC
13365
13366
13367   # save warnings/boilerplate of simple test code
13368   ac_outfile=conftest.$ac_objext
13369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13371 _lt_compiler_boilerplate=`cat conftest.err`
13372 $RM conftest*
13373
13374   ac_outfile=conftest.$ac_objext
13375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13377 _lt_linker_boilerplate=`cat conftest.err`
13378 $RM -r conftest*
13379
13380
13381   # Allow CC to be a program name with arguments.
13382   lt_save_CC=$CC
13383   lt_save_CFLAGS=$CFLAGS
13384   lt_save_LD=$LD
13385   lt_save_GCC=$GCC
13386   GCC=$GXX
13387   lt_save_with_gnu_ld=$with_gnu_ld
13388   lt_save_path_LD=$lt_cv_path_LD
13389   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13390     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13391   else
13392     $as_unset lt_cv_prog_gnu_ld
13393   fi
13394   if test -n "${lt_cv_path_LDCXX+set}"; then
13395     lt_cv_path_LD=$lt_cv_path_LDCXX
13396   else
13397     $as_unset lt_cv_path_LD
13398   fi
13399   test -z "${LDCXX+set}" || LD=$LDCXX
13400   CC=${CXX-"c++"}
13401   CFLAGS=$CXXFLAGS
13402   compiler=$CC
13403   compiler_CXX=$CC
13404   for cc_temp in $compiler""; do
13405   case $cc_temp in
13406     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13407     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13408     \-*) ;;
13409     *) break;;
13410   esac
13411 done
13412 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13413
13414
13415   if test -n "$compiler"; then
13416     # We don't want -fno-exception when compiling C++ code, so set the
13417     # no_builtin_flag separately
13418     if test "$GXX" = yes; then
13419       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13420     else
13421       lt_prog_compiler_no_builtin_flag_CXX=
13422     fi
13423
13424     if test "$GXX" = yes; then
13425       # Set up default GNU C++ configuration
13426
13427
13428
13429 # Check whether --with-gnu-ld was given.
13430 if test "${with_gnu_ld+set}" = set; then :
13431   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13432 else
13433   with_gnu_ld=no
13434 fi
13435
13436 ac_prog=ld
13437 if test "$GCC" = yes; then
13438   # Check if gcc -print-prog-name=ld gives a path.
13439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13440 $as_echo_n "checking for ld used by $CC... " >&6; }
13441   case $host in
13442   *-*-mingw*)
13443     # gcc leaves a trailing carriage return which upsets mingw
13444     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13445   *)
13446     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13447   esac
13448   case $ac_prog in
13449     # Accept absolute paths.
13450     [\\/]* | ?:[\\/]*)
13451       re_direlt='/[^/][^/]*/\.\./'
13452       # Canonicalize the pathname of ld
13453       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13454       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13455         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13456       done
13457       test -z "$LD" && LD="$ac_prog"
13458       ;;
13459   "")
13460     # If it fails, then pretend we aren't using GCC.
13461     ac_prog=ld
13462     ;;
13463   *)
13464     # If it is relative, then search for the first ld in PATH.
13465     with_gnu_ld=unknown
13466     ;;
13467   esac
13468 elif test "$with_gnu_ld" = yes; then
13469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13470 $as_echo_n "checking for GNU ld... " >&6; }
13471 else
13472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13473 $as_echo_n "checking for non-GNU ld... " >&6; }
13474 fi
13475 if ${lt_cv_path_LD+:} false; then :
13476   $as_echo_n "(cached) " >&6
13477 else
13478   if test -z "$LD"; then
13479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13480   for ac_dir in $PATH; do
13481     IFS="$lt_save_ifs"
13482     test -z "$ac_dir" && ac_dir=.
13483     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13484       lt_cv_path_LD="$ac_dir/$ac_prog"
13485       # Check to see if the program is GNU ld.  I'd rather use --version,
13486       # but apparently some variants of GNU ld only accept -v.
13487       # Break only if it was the GNU/non-GNU ld that we prefer.
13488       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13489       *GNU* | *'with BFD'*)
13490         test "$with_gnu_ld" != no && break
13491         ;;
13492       *)
13493         test "$with_gnu_ld" != yes && break
13494         ;;
13495       esac
13496     fi
13497   done
13498   IFS="$lt_save_ifs"
13499 else
13500   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13501 fi
13502 fi
13503
13504 LD="$lt_cv_path_LD"
13505 if test -n "$LD"; then
13506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13507 $as_echo "$LD" >&6; }
13508 else
13509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13511 fi
13512 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13514 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13515 if ${lt_cv_prog_gnu_ld+:} false; then :
13516   $as_echo_n "(cached) " >&6
13517 else
13518   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13519 case `$LD -v 2>&1 </dev/null` in
13520 *GNU* | *'with BFD'*)
13521   lt_cv_prog_gnu_ld=yes
13522   ;;
13523 *)
13524   lt_cv_prog_gnu_ld=no
13525   ;;
13526 esac
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13529 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13530 with_gnu_ld=$lt_cv_prog_gnu_ld
13531
13532
13533
13534
13535
13536
13537
13538       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13539       # archiving commands below assume that GNU ld is being used.
13540       if test "$with_gnu_ld" = yes; then
13541         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13542         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'
13543
13544         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13545         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13546
13547         # If archive_cmds runs LD, not CC, wlarc should be empty
13548         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13549         #     investigate it a little bit more. (MM)
13550         wlarc='${wl}'
13551
13552         # ancient GNU ld didn't support --whole-archive et. al.
13553         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13554           $GREP 'no-whole-archive' > /dev/null; then
13555           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13556         else
13557           whole_archive_flag_spec_CXX=
13558         fi
13559       else
13560         with_gnu_ld=no
13561         wlarc=
13562
13563         # A generic and very simple default shared library creation
13564         # command for GNU C++ for the case where it uses the native
13565         # linker, instead of GNU ld.  If possible, this setting should
13566         # overridden to take advantage of the native linker features on
13567         # the platform it is being used on.
13568         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13569       fi
13570
13571       # Commands to make compiler produce verbose output that lists
13572       # what "hidden" libraries, object files and flags are used when
13573       # linking a shared library.
13574       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13575
13576     else
13577       GXX=no
13578       with_gnu_ld=no
13579       wlarc=
13580     fi
13581
13582     # PORTME: fill in a description of your system's C++ link characteristics
13583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13584 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13585     ld_shlibs_CXX=yes
13586     case $host_os in
13587       aix3*)
13588         # FIXME: insert proper C++ library support
13589         ld_shlibs_CXX=no
13590         ;;
13591       aix[4-9]*)
13592         if test "$host_cpu" = ia64; then
13593           # On IA64, the linker does run time linking by default, so we don't
13594           # have to do anything special.
13595           aix_use_runtimelinking=no
13596           exp_sym_flag='-Bexport'
13597           no_entry_flag=""
13598         else
13599           aix_use_runtimelinking=no
13600
13601           # Test if we are trying to use run time linking or normal
13602           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13603           # need to do runtime linking.
13604           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13605             for ld_flag in $LDFLAGS; do
13606               case $ld_flag in
13607               *-brtl*)
13608                 aix_use_runtimelinking=yes
13609                 break
13610                 ;;
13611               esac
13612             done
13613             ;;
13614           esac
13615
13616           exp_sym_flag='-bexport'
13617           no_entry_flag='-bnoentry'
13618         fi
13619
13620         # When large executables or shared objects are built, AIX ld can
13621         # have problems creating the table of contents.  If linking a library
13622         # or program results in "error TOC overflow" add -mminimal-toc to
13623         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13624         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13625
13626         archive_cmds_CXX=''
13627         hardcode_direct_CXX=yes
13628         hardcode_direct_absolute_CXX=yes
13629         hardcode_libdir_separator_CXX=':'
13630         link_all_deplibs_CXX=yes
13631         file_list_spec_CXX='${wl}-f,'
13632
13633         if test "$GXX" = yes; then
13634           case $host_os in aix4.[012]|aix4.[012].*)
13635           # We only want to do this on AIX 4.2 and lower, the check
13636           # below for broken collect2 doesn't work under 4.3+
13637           collect2name=`${CC} -print-prog-name=collect2`
13638           if test -f "$collect2name" &&
13639              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13640           then
13641             # We have reworked collect2
13642             :
13643           else
13644             # We have old collect2
13645             hardcode_direct_CXX=unsupported
13646             # It fails to find uninstalled libraries when the uninstalled
13647             # path is not listed in the libpath.  Setting hardcode_minus_L
13648             # to unsupported forces relinking
13649             hardcode_minus_L_CXX=yes
13650             hardcode_libdir_flag_spec_CXX='-L$libdir'
13651             hardcode_libdir_separator_CXX=
13652           fi
13653           esac
13654           shared_flag='-shared'
13655           if test "$aix_use_runtimelinking" = yes; then
13656             shared_flag="$shared_flag "'${wl}-G'
13657           fi
13658         else
13659           # not using gcc
13660           if test "$host_cpu" = ia64; then
13661           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13662           # chokes on -Wl,-G. The following line is correct:
13663           shared_flag='-G'
13664           else
13665             if test "$aix_use_runtimelinking" = yes; then
13666               shared_flag='${wl}-G'
13667             else
13668               shared_flag='${wl}-bM:SRE'
13669             fi
13670           fi
13671         fi
13672
13673         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13674         # It seems that -bexpall does not export symbols beginning with
13675         # underscore (_), so it is better to generate a list of symbols to
13676         # export.
13677         always_export_symbols_CXX=yes
13678         if test "$aix_use_runtimelinking" = yes; then
13679           # Warning - without using the other runtime loading flags (-brtl),
13680           # -berok will link without error, but may produce a broken library.
13681           allow_undefined_flag_CXX='-berok'
13682           # Determine the default libpath from the value encoded in an empty
13683           # executable.
13684           if test "${lt_cv_aix_libpath+set}" = set; then
13685   aix_libpath=$lt_cv_aix_libpath
13686 else
13687   if ${lt_cv_aix_libpath__CXX+:} false; then :
13688   $as_echo_n "(cached) " >&6
13689 else
13690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h.  */
13692
13693 int
13694 main ()
13695 {
13696
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_cxx_try_link "$LINENO"; then :
13702
13703   lt_aix_libpath_sed='
13704       /Import File Strings/,/^$/ {
13705           /^0/ {
13706               s/^0  *\([^ ]*\) *$/\1/
13707               p
13708           }
13709       }'
13710   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13711   # Check for a 64-bit object if we didn't find anything.
13712   if test -z "$lt_cv_aix_libpath__CXX"; then
13713     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13714   fi
13715 fi
13716 rm -f core conftest.err conftest.$ac_objext \
13717     conftest$ac_exeext conftest.$ac_ext
13718   if test -z "$lt_cv_aix_libpath__CXX"; then
13719     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13720   fi
13721
13722 fi
13723
13724   aix_libpath=$lt_cv_aix_libpath__CXX
13725 fi
13726
13727           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13728
13729           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"
13730         else
13731           if test "$host_cpu" = ia64; then
13732             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13733             allow_undefined_flag_CXX="-z nodefs"
13734             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"
13735           else
13736             # Determine the default libpath from the value encoded in an
13737             # empty executable.
13738             if test "${lt_cv_aix_libpath+set}" = set; then
13739   aix_libpath=$lt_cv_aix_libpath
13740 else
13741   if ${lt_cv_aix_libpath__CXX+:} false; then :
13742   $as_echo_n "(cached) " >&6
13743 else
13744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h.  */
13746
13747 int
13748 main ()
13749 {
13750
13751   ;
13752   return 0;
13753 }
13754 _ACEOF
13755 if ac_fn_cxx_try_link "$LINENO"; then :
13756
13757   lt_aix_libpath_sed='
13758       /Import File Strings/,/^$/ {
13759           /^0/ {
13760               s/^0  *\([^ ]*\) *$/\1/
13761               p
13762           }
13763       }'
13764   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13765   # Check for a 64-bit object if we didn't find anything.
13766   if test -z "$lt_cv_aix_libpath__CXX"; then
13767     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13768   fi
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext \
13771     conftest$ac_exeext conftest.$ac_ext
13772   if test -z "$lt_cv_aix_libpath__CXX"; then
13773     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13774   fi
13775
13776 fi
13777
13778   aix_libpath=$lt_cv_aix_libpath__CXX
13779 fi
13780
13781             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13782             # Warning - without using the other run time loading flags,
13783             # -berok will link without error, but may produce a broken library.
13784             no_undefined_flag_CXX=' ${wl}-bernotok'
13785             allow_undefined_flag_CXX=' ${wl}-berok'
13786             if test "$with_gnu_ld" = yes; then
13787               # We only use this code for GNU lds that support --whole-archive.
13788               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13789             else
13790               # Exported symbols can be pulled into shared objects from archives
13791               whole_archive_flag_spec_CXX='$convenience'
13792             fi
13793             archive_cmds_need_lc_CXX=yes
13794             # This is similar to how AIX traditionally builds its shared
13795             # libraries.
13796             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'
13797           fi
13798         fi
13799         ;;
13800
13801       beos*)
13802         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13803           allow_undefined_flag_CXX=unsupported
13804           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13805           # support --undefined.  This deserves some investigation.  FIXME
13806           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13807         else
13808           ld_shlibs_CXX=no
13809         fi
13810         ;;
13811
13812       chorus*)
13813         case $cc_basename in
13814           *)
13815           # FIXME: insert proper C++ library support
13816           ld_shlibs_CXX=no
13817           ;;
13818         esac
13819         ;;
13820
13821       cygwin* | mingw* | pw32* | cegcc*)
13822         case $GXX,$cc_basename in
13823         ,cl* | no,cl*)
13824           # Native MSVC
13825           # hardcode_libdir_flag_spec is actually meaningless, as there is
13826           # no search path for DLLs.
13827           hardcode_libdir_flag_spec_CXX=' '
13828           allow_undefined_flag_CXX=unsupported
13829           always_export_symbols_CXX=yes
13830           file_list_spec_CXX='@'
13831           # Tell ltmain to make .lib files, not .a files.
13832           libext=lib
13833           # Tell ltmain to make .dll files, not .so files.
13834           shrext_cmds=".dll"
13835           # FIXME: Setting linknames here is a bad hack.
13836           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13837           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13838               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13839             else
13840               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13841             fi~
13842             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13843             linknames='
13844           # The linker will not automatically build a static lib if we build a DLL.
13845           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13846           enable_shared_with_static_runtimes_CXX=yes
13847           # Don't use ranlib
13848           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13849           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13850             lt_tool_outputfile="@TOOL_OUTPUT@"~
13851             case $lt_outputfile in
13852               *.exe|*.EXE) ;;
13853               *)
13854                 lt_outputfile="$lt_outputfile.exe"
13855                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13856                 ;;
13857             esac~
13858             func_to_tool_file "$lt_outputfile"~
13859             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13860               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13861               $RM "$lt_outputfile.manifest";
13862             fi'
13863           ;;
13864         *)
13865           # g++
13866           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13867           # as there is no search path for DLLs.
13868           hardcode_libdir_flag_spec_CXX='-L$libdir'
13869           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13870           allow_undefined_flag_CXX=unsupported
13871           always_export_symbols_CXX=no
13872           enable_shared_with_static_runtimes_CXX=yes
13873
13874           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13875             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'
13876             # If the export-symbols file already is a .def file (1st line
13877             # is EXPORTS), use it as is; otherwise, prepend...
13878             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13879               cp $export_symbols $output_objdir/$soname.def;
13880             else
13881               echo EXPORTS > $output_objdir/$soname.def;
13882               cat $export_symbols >> $output_objdir/$soname.def;
13883             fi~
13884             $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'
13885           else
13886             ld_shlibs_CXX=no
13887           fi
13888           ;;
13889         esac
13890         ;;
13891       darwin* | rhapsody*)
13892
13893
13894   archive_cmds_need_lc_CXX=no
13895   hardcode_direct_CXX=no
13896   hardcode_automatic_CXX=yes
13897   hardcode_shlibpath_var_CXX=unsupported
13898   if test "$lt_cv_ld_force_load" = "yes"; then
13899     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\"`'
13900
13901   else
13902     whole_archive_flag_spec_CXX=''
13903   fi
13904   link_all_deplibs_CXX=yes
13905   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13906   case $cc_basename in
13907      ifort*) _lt_dar_can_shared=yes ;;
13908      *) _lt_dar_can_shared=$GCC ;;
13909   esac
13910   if test "$_lt_dar_can_shared" = "yes"; then
13911     output_verbose_link_cmd=func_echo_all
13912     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}"
13913     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13914     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}"
13915     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}"
13916        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13917       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}"
13918       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}"
13919     fi
13920
13921   else
13922   ld_shlibs_CXX=no
13923   fi
13924
13925         ;;
13926
13927       dgux*)
13928         case $cc_basename in
13929           ec++*)
13930             # FIXME: insert proper C++ library support
13931             ld_shlibs_CXX=no
13932             ;;
13933           ghcx*)
13934             # Green Hills C++ Compiler
13935             # FIXME: insert proper C++ library support
13936             ld_shlibs_CXX=no
13937             ;;
13938           *)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942         esac
13943         ;;
13944
13945       freebsd2.*)
13946         # C++ shared libraries reported to be fairly broken before
13947         # switch to ELF
13948         ld_shlibs_CXX=no
13949         ;;
13950
13951       freebsd-elf*)
13952         archive_cmds_need_lc_CXX=no
13953         ;;
13954
13955       freebsd* | dragonfly*)
13956         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13957         # conventions
13958         ld_shlibs_CXX=yes
13959         ;;
13960
13961       haiku*)
13962         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963         link_all_deplibs_CXX=yes
13964         ;;
13965
13966       hpux9*)
13967         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13968         hardcode_libdir_separator_CXX=:
13969         export_dynamic_flag_spec_CXX='${wl}-E'
13970         hardcode_direct_CXX=yes
13971         hardcode_minus_L_CXX=yes # Not in the search PATH,
13972                                              # but as the default
13973                                              # location of the library.
13974
13975         case $cc_basename in
13976           CC*)
13977             # FIXME: insert proper C++ library support
13978             ld_shlibs_CXX=no
13979             ;;
13980           aCC*)
13981             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'
13982             # Commands to make compiler produce verbose output that lists
13983             # what "hidden" libraries, object files and flags are used when
13984             # linking a shared library.
13985             #
13986             # There doesn't appear to be a way to prevent this compiler from
13987             # explicitly linking system object files so we need to strip them
13988             # from the output so that they don't get included in the library
13989             # dependencies.
13990             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"'
13991             ;;
13992           *)
13993             if test "$GXX" = yes; then
13994               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'
13995             else
13996               # FIXME: insert proper C++ library support
13997               ld_shlibs_CXX=no
13998             fi
13999             ;;
14000         esac
14001         ;;
14002
14003       hpux10*|hpux11*)
14004         if test $with_gnu_ld = no; then
14005           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14006           hardcode_libdir_separator_CXX=:
14007
14008           case $host_cpu in
14009             hppa*64*|ia64*)
14010               ;;
14011             *)
14012               export_dynamic_flag_spec_CXX='${wl}-E'
14013               ;;
14014           esac
14015         fi
14016         case $host_cpu in
14017           hppa*64*|ia64*)
14018             hardcode_direct_CXX=no
14019             hardcode_shlibpath_var_CXX=no
14020             ;;
14021           *)
14022             hardcode_direct_CXX=yes
14023             hardcode_direct_absolute_CXX=yes
14024             hardcode_minus_L_CXX=yes # Not in the search PATH,
14025                                                  # but as the default
14026                                                  # location of the library.
14027             ;;
14028         esac
14029
14030         case $cc_basename in
14031           CC*)
14032             # FIXME: insert proper C++ library support
14033             ld_shlibs_CXX=no
14034             ;;
14035           aCC*)
14036             case $host_cpu in
14037               hppa*64*)
14038                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14039                 ;;
14040               ia64*)
14041                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14042                 ;;
14043               *)
14044                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045                 ;;
14046             esac
14047             # Commands to make compiler produce verbose output that lists
14048             # what "hidden" libraries, object files and flags are used when
14049             # linking a shared library.
14050             #
14051             # There doesn't appear to be a way to prevent this compiler from
14052             # explicitly linking system object files so we need to strip them
14053             # from the output so that they don't get included in the library
14054             # dependencies.
14055             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"'
14056             ;;
14057           *)
14058             if test "$GXX" = yes; then
14059               if test $with_gnu_ld = no; then
14060                 case $host_cpu in
14061                   hppa*64*)
14062                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14063                     ;;
14064                   ia64*)
14065                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14066                     ;;
14067                   *)
14068                     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'
14069                     ;;
14070                 esac
14071               fi
14072             else
14073               # FIXME: insert proper C++ library support
14074               ld_shlibs_CXX=no
14075             fi
14076             ;;
14077         esac
14078         ;;
14079
14080       interix[3-9]*)
14081         hardcode_direct_CXX=no
14082         hardcode_shlibpath_var_CXX=no
14083         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14084         export_dynamic_flag_spec_CXX='${wl}-E'
14085         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14086         # Instead, shared libraries are loaded at an image base (0x10000000 by
14087         # default) and relocated if they conflict, which is a slow very memory
14088         # consuming and fragmenting process.  To avoid this, we pick a random,
14089         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14090         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14091         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'
14092         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'
14093         ;;
14094       irix5* | irix6*)
14095         case $cc_basename in
14096           CC*)
14097             # SGI C++
14098             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'
14099
14100             # Archives containing C++ object files must be created using
14101             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14102             # necessary to make sure instantiated templates are included
14103             # in the archive.
14104             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14105             ;;
14106           *)
14107             if test "$GXX" = yes; then
14108               if test "$with_gnu_ld" = no; then
14109                 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'
14110               else
14111                 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'
14112               fi
14113             fi
14114             link_all_deplibs_CXX=yes
14115             ;;
14116         esac
14117         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14118         hardcode_libdir_separator_CXX=:
14119         inherit_rpath_CXX=yes
14120         ;;
14121
14122       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14123         case $cc_basename in
14124           KCC*)
14125             # Kuck and Associates, Inc. (KAI) C++ Compiler
14126
14127             # KCC will only create a shared library if the output file
14128             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14129             # to its proper name (with version) after linking.
14130             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'
14131             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'
14132             # Commands to make compiler produce verbose output that lists
14133             # what "hidden" libraries, object files and flags are used when
14134             # linking a shared library.
14135             #
14136             # There doesn't appear to be a way to prevent this compiler from
14137             # explicitly linking system object files so we need to strip them
14138             # from the output so that they don't get included in the library
14139             # dependencies.
14140             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"'
14141
14142             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14143             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14144
14145             # Archives containing C++ object files must be created using
14146             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14147             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14148             ;;
14149           icpc* | ecpc* )
14150             # Intel C++
14151             with_gnu_ld=yes
14152             # version 8.0 and above of icpc choke on multiply defined symbols
14153             # if we add $predep_objects and $postdep_objects, however 7.1 and
14154             # earlier do not add the objects themselves.
14155             case `$CC -V 2>&1` in
14156               *"Version 7."*)
14157                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14158                 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'
14159                 ;;
14160               *)  # Version 8.0 or newer
14161                 tmp_idyn=
14162                 case $host_cpu in
14163                   ia64*) tmp_idyn=' -i_dynamic';;
14164                 esac
14165                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14166                 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'
14167                 ;;
14168             esac
14169             archive_cmds_need_lc_CXX=no
14170             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14171             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14172             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14173             ;;
14174           pgCC* | pgcpp*)
14175             # Portland Group C++ compiler
14176             case `$CC -V` in
14177             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14178               prelink_cmds_CXX='tpldir=Template.dir~
14179                 rm -rf $tpldir~
14180                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14181                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14182               old_archive_cmds_CXX='tpldir=Template.dir~
14183                 rm -rf $tpldir~
14184                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14185                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14186                 $RANLIB $oldlib'
14187               archive_cmds_CXX='tpldir=Template.dir~
14188                 rm -rf $tpldir~
14189                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14190                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14191               archive_expsym_cmds_CXX='tpldir=Template.dir~
14192                 rm -rf $tpldir~
14193                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14194                 $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'
14195               ;;
14196             *) # Version 6 and above use weak symbols
14197               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14198               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'
14199               ;;
14200             esac
14201
14202             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14203             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14204             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'
14205             ;;
14206           cxx*)
14207             # Compaq C++
14208             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14209             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'
14210
14211             runpath_var=LD_RUN_PATH
14212             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14213             hardcode_libdir_separator_CXX=:
14214
14215             # Commands to make compiler produce verbose output that lists
14216             # what "hidden" libraries, object files and flags are used when
14217             # linking a shared library.
14218             #
14219             # There doesn't appear to be a way to prevent this compiler from
14220             # explicitly linking system object files so we need to strip them
14221             # from the output so that they don't get included in the library
14222             # dependencies.
14223             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'
14224             ;;
14225           xl* | mpixl* | bgxl*)
14226             # IBM XL 8.0 on PPC, with GNU ld
14227             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14228             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14229             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230             if test "x$supports_anon_versioning" = xyes; then
14231               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14232                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14233                 echo "local: *; };" >> $output_objdir/$libname.ver~
14234                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14235             fi
14236             ;;
14237           *)
14238             case `$CC -V 2>&1 | sed 5q` in
14239             *Sun\ C*)
14240               # Sun C++ 5.9
14241               no_undefined_flag_CXX=' -zdefs'
14242               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14243               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'
14244               hardcode_libdir_flag_spec_CXX='-R$libdir'
14245               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'
14246               compiler_needs_object_CXX=yes
14247
14248               # Not sure whether something based on
14249               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14250               # would be better.
14251               output_verbose_link_cmd='func_echo_all'
14252
14253               # Archives containing C++ object files must be created using
14254               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14255               # necessary to make sure instantiated templates are included
14256               # in the archive.
14257               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14258               ;;
14259             esac
14260             ;;
14261         esac
14262         ;;
14263
14264       lynxos*)
14265         # FIXME: insert proper C++ library support
14266         ld_shlibs_CXX=no
14267         ;;
14268
14269       m88k*)
14270         # FIXME: insert proper C++ library support
14271         ld_shlibs_CXX=no
14272         ;;
14273
14274       mvs*)
14275         case $cc_basename in
14276           cxx*)
14277             # FIXME: insert proper C++ library support
14278             ld_shlibs_CXX=no
14279             ;;
14280           *)
14281             # FIXME: insert proper C++ library support
14282             ld_shlibs_CXX=no
14283             ;;
14284         esac
14285         ;;
14286
14287       netbsd*)
14288         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14289           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14290           wlarc=
14291           hardcode_libdir_flag_spec_CXX='-R$libdir'
14292           hardcode_direct_CXX=yes
14293           hardcode_shlibpath_var_CXX=no
14294         fi
14295         # Workaround some broken pre-1.5 toolchains
14296         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14297         ;;
14298
14299       *nto* | *qnx*)
14300         ld_shlibs_CXX=yes
14301         ;;
14302
14303       openbsd2*)
14304         # C++ shared libraries are fairly broken
14305         ld_shlibs_CXX=no
14306         ;;
14307
14308       openbsd*)
14309         if test -f /usr/libexec/ld.so; then
14310           hardcode_direct_CXX=yes
14311           hardcode_shlibpath_var_CXX=no
14312           hardcode_direct_absolute_CXX=yes
14313           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14314           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14315           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14316             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14317             export_dynamic_flag_spec_CXX='${wl}-E'
14318             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14319           fi
14320           output_verbose_link_cmd=func_echo_all
14321         else
14322           ld_shlibs_CXX=no
14323         fi
14324         ;;
14325
14326       osf3* | osf4* | osf5*)
14327         case $cc_basename in
14328           KCC*)
14329             # Kuck and Associates, Inc. (KAI) C++ Compiler
14330
14331             # KCC will only create a shared library if the output file
14332             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14333             # to its proper name (with version) after linking.
14334             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'
14335
14336             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14337             hardcode_libdir_separator_CXX=:
14338
14339             # Archives containing C++ object files must be created using
14340             # the KAI C++ compiler.
14341             case $host in
14342               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14343               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14344             esac
14345             ;;
14346           RCC*)
14347             # Rational C++ 2.4.1
14348             # FIXME: insert proper C++ library support
14349             ld_shlibs_CXX=no
14350             ;;
14351           cxx*)
14352             case $host in
14353               osf3*)
14354                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14355                 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'
14356                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14357                 ;;
14358               *)
14359                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14360                 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'
14361                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14362                   echo "-hidden">> $lib.exp~
14363                   $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~
14364                   $RM $lib.exp'
14365                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14366                 ;;
14367             esac
14368
14369             hardcode_libdir_separator_CXX=:
14370
14371             # Commands to make compiler produce verbose output that lists
14372             # what "hidden" libraries, object files and flags are used when
14373             # linking a shared library.
14374             #
14375             # There doesn't appear to be a way to prevent this compiler from
14376             # explicitly linking system object files so we need to strip them
14377             # from the output so that they don't get included in the library
14378             # dependencies.
14379             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"'
14380             ;;
14381           *)
14382             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14383               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14384               case $host in
14385                 osf3*)
14386                   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'
14387                   ;;
14388                 *)
14389                   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'
14390                   ;;
14391               esac
14392
14393               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14394               hardcode_libdir_separator_CXX=:
14395
14396               # Commands to make compiler produce verbose output that lists
14397               # what "hidden" libraries, object files and flags are used when
14398               # linking a shared library.
14399               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14400
14401             else
14402               # FIXME: insert proper C++ library support
14403               ld_shlibs_CXX=no
14404             fi
14405             ;;
14406         esac
14407         ;;
14408
14409       psos*)
14410         # FIXME: insert proper C++ library support
14411         ld_shlibs_CXX=no
14412         ;;
14413
14414       sunos4*)
14415         case $cc_basename in
14416           CC*)
14417             # Sun C++ 4.x
14418             # FIXME: insert proper C++ library support
14419             ld_shlibs_CXX=no
14420             ;;
14421           lcc*)
14422             # Lucid
14423             # FIXME: insert proper C++ library support
14424             ld_shlibs_CXX=no
14425             ;;
14426           *)
14427             # FIXME: insert proper C++ library support
14428             ld_shlibs_CXX=no
14429             ;;
14430         esac
14431         ;;
14432
14433       solaris*)
14434         case $cc_basename in
14435           CC* | sunCC*)
14436             # Sun C++ 4.2, 5.x and Centerline C++
14437             archive_cmds_need_lc_CXX=yes
14438             no_undefined_flag_CXX=' -zdefs'
14439             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14440             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14441               $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'
14442
14443             hardcode_libdir_flag_spec_CXX='-R$libdir'
14444             hardcode_shlibpath_var_CXX=no
14445             case $host_os in
14446               solaris2.[0-5] | solaris2.[0-5].*) ;;
14447               *)
14448                 # The compiler driver will combine and reorder linker options,
14449                 # but understands `-z linker_flag'.
14450                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14451                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14452                 ;;
14453             esac
14454             link_all_deplibs_CXX=yes
14455
14456             output_verbose_link_cmd='func_echo_all'
14457
14458             # Archives containing C++ object files must be created using
14459             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14460             # necessary to make sure instantiated templates are included
14461             # in the archive.
14462             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14463             ;;
14464           gcx*)
14465             # Green Hills C++ Compiler
14466             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14467
14468             # The C++ compiler must be used to create the archive.
14469             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14470             ;;
14471           *)
14472             # GNU C++ compiler with Solaris linker
14473             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14474               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14475               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14476                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14477                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14478                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14479
14480                 # Commands to make compiler produce verbose output that lists
14481                 # what "hidden" libraries, object files and flags are used when
14482                 # linking a shared library.
14483                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14484               else
14485                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14486                 # platform.
14487                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14488                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14489                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14490
14491                 # Commands to make compiler produce verbose output that lists
14492                 # what "hidden" libraries, object files and flags are used when
14493                 # linking a shared library.
14494                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14495               fi
14496
14497               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14498               case $host_os in
14499                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14500                 *)
14501                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14502                   ;;
14503               esac
14504             fi
14505             ;;
14506         esac
14507         ;;
14508
14509     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14510       no_undefined_flag_CXX='${wl}-z,text'
14511       archive_cmds_need_lc_CXX=no
14512       hardcode_shlibpath_var_CXX=no
14513       runpath_var='LD_RUN_PATH'
14514
14515       case $cc_basename in
14516         CC*)
14517           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14519           ;;
14520         *)
14521           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14523           ;;
14524       esac
14525       ;;
14526
14527       sysv5* | sco3.2v5* | sco5v6*)
14528         # Note: We can NOT use -z defs as we might desire, because we do not
14529         # link with -lc, and that would cause any symbols used from libc to
14530         # always be unresolved, which means just about no library would
14531         # ever link correctly.  If we're not using GNU ld we use -z text
14532         # though, which does catch some bad symbols but isn't as heavy-handed
14533         # as -z defs.
14534         no_undefined_flag_CXX='${wl}-z,text'
14535         allow_undefined_flag_CXX='${wl}-z,nodefs'
14536         archive_cmds_need_lc_CXX=no
14537         hardcode_shlibpath_var_CXX=no
14538         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14539         hardcode_libdir_separator_CXX=':'
14540         link_all_deplibs_CXX=yes
14541         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14542         runpath_var='LD_RUN_PATH'
14543
14544         case $cc_basename in
14545           CC*)
14546             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14549               '"$old_archive_cmds_CXX"
14550             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14551               '"$reload_cmds_CXX"
14552             ;;
14553           *)
14554             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14556             ;;
14557         esac
14558       ;;
14559
14560       tandem*)
14561         case $cc_basename in
14562           NCC*)
14563             # NonStop-UX NCC 3.20
14564             # FIXME: insert proper C++ library support
14565             ld_shlibs_CXX=no
14566             ;;
14567           *)
14568             # FIXME: insert proper C++ library support
14569             ld_shlibs_CXX=no
14570             ;;
14571         esac
14572         ;;
14573
14574       vxworks*)
14575         # FIXME: insert proper C++ library support
14576         ld_shlibs_CXX=no
14577         ;;
14578
14579       *)
14580         # FIXME: insert proper C++ library support
14581         ld_shlibs_CXX=no
14582         ;;
14583     esac
14584
14585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14586 $as_echo "$ld_shlibs_CXX" >&6; }
14587     test "$ld_shlibs_CXX" = no && can_build_shared=no
14588
14589     GCC_CXX="$GXX"
14590     LD_CXX="$LD"
14591
14592     ## CAVEAT EMPTOR:
14593     ## There is no encapsulation within the following macros, do not change
14594     ## the running order or otherwise move them around unless you know exactly
14595     ## what you are doing...
14596     # Dependencies to place before and after the object being linked:
14597 predep_objects_CXX=
14598 postdep_objects_CXX=
14599 predeps_CXX=
14600 postdeps_CXX=
14601 compiler_lib_search_path_CXX=
14602
14603 cat > conftest.$ac_ext <<_LT_EOF
14604 class Foo
14605 {
14606 public:
14607   Foo (void) { a = 0; }
14608 private:
14609   int a;
14610 };
14611 _LT_EOF
14612
14613
14614 _lt_libdeps_save_CFLAGS=$CFLAGS
14615 case "$CC $CFLAGS " in #(
14616 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14617 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14618 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14619 esac
14620
14621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14622   (eval $ac_compile) 2>&5
14623   ac_status=$?
14624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14625   test $ac_status = 0; }; then
14626   # Parse the compiler output and extract the necessary
14627   # objects, libraries and library flags.
14628
14629   # Sentinel used to keep track of whether or not we are before
14630   # the conftest object file.
14631   pre_test_object_deps_done=no
14632
14633   for p in `eval "$output_verbose_link_cmd"`; do
14634     case ${prev}${p} in
14635
14636     -L* | -R* | -l*)
14637        # Some compilers place space between "-{L,R}" and the path.
14638        # Remove the space.
14639        if test $p = "-L" ||
14640           test $p = "-R"; then
14641          prev=$p
14642          continue
14643        fi
14644
14645        # Expand the sysroot to ease extracting the directories later.
14646        if test -z "$prev"; then
14647          case $p in
14648          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14649          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14650          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14651          esac
14652        fi
14653        case $p in
14654        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14655        esac
14656        if test "$pre_test_object_deps_done" = no; then
14657          case ${prev} in
14658          -L | -R)
14659            # Internal compiler library paths should come after those
14660            # provided the user.  The postdeps already come after the
14661            # user supplied libs so there is no need to process them.
14662            if test -z "$compiler_lib_search_path_CXX"; then
14663              compiler_lib_search_path_CXX="${prev}${p}"
14664            else
14665              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14666            fi
14667            ;;
14668          # The "-l" case would never come before the object being
14669          # linked, so don't bother handling this case.
14670          esac
14671        else
14672          if test -z "$postdeps_CXX"; then
14673            postdeps_CXX="${prev}${p}"
14674          else
14675            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14676          fi
14677        fi
14678        prev=
14679        ;;
14680
14681     *.lto.$objext) ;; # Ignore GCC LTO objects
14682     *.$objext)
14683        # This assumes that the test object file only shows up
14684        # once in the compiler output.
14685        if test "$p" = "conftest.$objext"; then
14686          pre_test_object_deps_done=yes
14687          continue
14688        fi
14689
14690        if test "$pre_test_object_deps_done" = no; then
14691          if test -z "$predep_objects_CXX"; then
14692            predep_objects_CXX="$p"
14693          else
14694            predep_objects_CXX="$predep_objects_CXX $p"
14695          fi
14696        else
14697          if test -z "$postdep_objects_CXX"; then
14698            postdep_objects_CXX="$p"
14699          else
14700            postdep_objects_CXX="$postdep_objects_CXX $p"
14701          fi
14702        fi
14703        ;;
14704
14705     *) ;; # Ignore the rest.
14706
14707     esac
14708   done
14709
14710   # Clean up.
14711   rm -f a.out a.exe
14712 else
14713   echo "libtool.m4: error: problem compiling CXX test program"
14714 fi
14715
14716 $RM -f confest.$objext
14717 CFLAGS=$_lt_libdeps_save_CFLAGS
14718
14719 # PORTME: override above test on systems where it is broken
14720 case $host_os in
14721 interix[3-9]*)
14722   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14723   # hack all around it, let's just trust "g++" to DTRT.
14724   predep_objects_CXX=
14725   postdep_objects_CXX=
14726   postdeps_CXX=
14727   ;;
14728
14729 linux*)
14730   case `$CC -V 2>&1 | sed 5q` in
14731   *Sun\ C*)
14732     # Sun C++ 5.9
14733
14734     # The more standards-conforming stlport4 library is
14735     # incompatible with the Cstd library. Avoid specifying
14736     # it if it's in CXXFLAGS. Ignore libCrun as
14737     # -library=stlport4 depends on it.
14738     case " $CXX $CXXFLAGS " in
14739     *" -library=stlport4 "*)
14740       solaris_use_stlport4=yes
14741       ;;
14742     esac
14743
14744     if test "$solaris_use_stlport4" != yes; then
14745       postdeps_CXX='-library=Cstd -library=Crun'
14746     fi
14747     ;;
14748   esac
14749   ;;
14750
14751 solaris*)
14752   case $cc_basename in
14753   CC* | sunCC*)
14754     # The more standards-conforming stlport4 library is
14755     # incompatible with the Cstd library. Avoid specifying
14756     # it if it's in CXXFLAGS. Ignore libCrun as
14757     # -library=stlport4 depends on it.
14758     case " $CXX $CXXFLAGS " in
14759     *" -library=stlport4 "*)
14760       solaris_use_stlport4=yes
14761       ;;
14762     esac
14763
14764     # Adding this requires a known-good setup of shared libraries for
14765     # Sun compiler versions before 5.6, else PIC objects from an old
14766     # archive will be linked into the output, leading to subtle bugs.
14767     if test "$solaris_use_stlport4" != yes; then
14768       postdeps_CXX='-library=Cstd -library=Crun'
14769     fi
14770     ;;
14771   esac
14772   ;;
14773 esac
14774
14775
14776 case " $postdeps_CXX " in
14777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14778 esac
14779  compiler_lib_search_dirs_CXX=
14780 if test -n "${compiler_lib_search_path_CXX}"; then
14781  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14782 fi
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814     lt_prog_compiler_wl_CXX=
14815 lt_prog_compiler_pic_CXX=
14816 lt_prog_compiler_static_CXX=
14817
14818
14819   # C++ specific cases for pic, static, wl, etc.
14820   if test "$GXX" = yes; then
14821     lt_prog_compiler_wl_CXX='-Wl,'
14822     lt_prog_compiler_static_CXX='-static'
14823
14824     case $host_os in
14825     aix*)
14826       # All AIX code is PIC.
14827       if test "$host_cpu" = ia64; then
14828         # AIX 5 now supports IA64 processor
14829         lt_prog_compiler_static_CXX='-Bstatic'
14830       fi
14831       ;;
14832
14833     amigaos*)
14834       case $host_cpu in
14835       powerpc)
14836             # see comment about AmigaOS4 .so support
14837             lt_prog_compiler_pic_CXX='-fPIC'
14838         ;;
14839       m68k)
14840             # FIXME: we need at least 68020 code to build shared libraries, but
14841             # adding the `-m68020' flag to GCC prevents building anything better,
14842             # like `-m68040'.
14843             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14844         ;;
14845       esac
14846       ;;
14847
14848     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14849       # PIC is the default for these OSes.
14850       ;;
14851     mingw* | cygwin* | os2* | pw32* | cegcc*)
14852       # This hack is so that the source file can tell whether it is being
14853       # built for inclusion in a dll (and should export symbols for example).
14854       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14855       # (--disable-auto-import) libraries
14856       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14857       ;;
14858     darwin* | rhapsody*)
14859       # PIC is the default on this platform
14860       # Common symbols not allowed in MH_DYLIB files
14861       lt_prog_compiler_pic_CXX='-fno-common'
14862       ;;
14863     *djgpp*)
14864       # DJGPP does not support shared libraries at all
14865       lt_prog_compiler_pic_CXX=
14866       ;;
14867     haiku*)
14868       # PIC is the default for Haiku.
14869       # The "-static" flag exists, but is broken.
14870       lt_prog_compiler_static_CXX=
14871       ;;
14872     interix[3-9]*)
14873       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14874       # Instead, we relocate shared libraries at runtime.
14875       ;;
14876     sysv4*MP*)
14877       if test -d /usr/nec; then
14878         lt_prog_compiler_pic_CXX=-Kconform_pic
14879       fi
14880       ;;
14881     hpux*)
14882       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14883       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14884       # sets the default TLS model and affects inlining.
14885       case $host_cpu in
14886       hppa*64*)
14887         ;;
14888       *)
14889         lt_prog_compiler_pic_CXX='-fPIC'
14890         ;;
14891       esac
14892       ;;
14893     *qnx* | *nto*)
14894       # QNX uses GNU C++, but need to define -shared option too, otherwise
14895       # it will coredump.
14896       lt_prog_compiler_pic_CXX='-fPIC -shared'
14897       ;;
14898     *)
14899       lt_prog_compiler_pic_CXX='-fPIC'
14900       ;;
14901     esac
14902   else
14903     case $host_os in
14904       aix[4-9]*)
14905         # All AIX code is PIC.
14906         if test "$host_cpu" = ia64; then
14907           # AIX 5 now supports IA64 processor
14908           lt_prog_compiler_static_CXX='-Bstatic'
14909         else
14910           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14911         fi
14912         ;;
14913       chorus*)
14914         case $cc_basename in
14915         cxch68*)
14916           # Green Hills C++ Compiler
14917           # _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"
14918           ;;
14919         esac
14920         ;;
14921       mingw* | cygwin* | os2* | pw32* | cegcc*)
14922         # This hack is so that the source file can tell whether it is being
14923         # built for inclusion in a dll (and should export symbols for example).
14924         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14925         ;;
14926       dgux*)
14927         case $cc_basename in
14928           ec++*)
14929             lt_prog_compiler_pic_CXX='-KPIC'
14930             ;;
14931           ghcx*)
14932             # Green Hills C++ Compiler
14933             lt_prog_compiler_pic_CXX='-pic'
14934             ;;
14935           *)
14936             ;;
14937         esac
14938         ;;
14939       freebsd* | dragonfly*)
14940         # FreeBSD uses GNU C++
14941         ;;
14942       hpux9* | hpux10* | hpux11*)
14943         case $cc_basename in
14944           CC*)
14945             lt_prog_compiler_wl_CXX='-Wl,'
14946             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14947             if test "$host_cpu" != ia64; then
14948               lt_prog_compiler_pic_CXX='+Z'
14949             fi
14950             ;;
14951           aCC*)
14952             lt_prog_compiler_wl_CXX='-Wl,'
14953             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14954             case $host_cpu in
14955             hppa*64*|ia64*)
14956               # +Z the default
14957               ;;
14958             *)
14959               lt_prog_compiler_pic_CXX='+Z'
14960               ;;
14961             esac
14962             ;;
14963           *)
14964             ;;
14965         esac
14966         ;;
14967       interix*)
14968         # This is c89, which is MS Visual C++ (no shared libs)
14969         # Anyone wants to do a port?
14970         ;;
14971       irix5* | irix6* | nonstopux*)
14972         case $cc_basename in
14973           CC*)
14974             lt_prog_compiler_wl_CXX='-Wl,'
14975             lt_prog_compiler_static_CXX='-non_shared'
14976             # CC pic flag -KPIC is the default.
14977             ;;
14978           *)
14979             ;;
14980         esac
14981         ;;
14982       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14983         case $cc_basename in
14984           KCC*)
14985             # KAI C++ Compiler
14986             lt_prog_compiler_wl_CXX='--backend -Wl,'
14987             lt_prog_compiler_pic_CXX='-fPIC'
14988             ;;
14989           ecpc* )
14990             # old Intel C++ for x86_64 which still supported -KPIC.
14991             lt_prog_compiler_wl_CXX='-Wl,'
14992             lt_prog_compiler_pic_CXX='-KPIC'
14993             lt_prog_compiler_static_CXX='-static'
14994             ;;
14995           icpc* )
14996             # Intel C++, used to be incompatible with GCC.
14997             # ICC 10 doesn't accept -KPIC any more.
14998             lt_prog_compiler_wl_CXX='-Wl,'
14999             lt_prog_compiler_pic_CXX='-fPIC'
15000             lt_prog_compiler_static_CXX='-static'
15001             ;;
15002           pgCC* | pgcpp*)
15003             # Portland Group C++ compiler
15004             lt_prog_compiler_wl_CXX='-Wl,'
15005             lt_prog_compiler_pic_CXX='-fpic'
15006             lt_prog_compiler_static_CXX='-Bstatic'
15007             ;;
15008           cxx*)
15009             # Compaq C++
15010             # Make sure the PIC flag is empty.  It appears that all Alpha
15011             # Linux and Compaq Tru64 Unix objects are PIC.
15012             lt_prog_compiler_pic_CXX=
15013             lt_prog_compiler_static_CXX='-non_shared'
15014             ;;
15015           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15016             # IBM XL 8.0, 9.0 on PPC and BlueGene
15017             lt_prog_compiler_wl_CXX='-Wl,'
15018             lt_prog_compiler_pic_CXX='-qpic'
15019             lt_prog_compiler_static_CXX='-qstaticlink'
15020             ;;
15021           *)
15022             case `$CC -V 2>&1 | sed 5q` in
15023             *Sun\ C*)
15024               # Sun C++ 5.9
15025               lt_prog_compiler_pic_CXX='-KPIC'
15026               lt_prog_compiler_static_CXX='-Bstatic'
15027               lt_prog_compiler_wl_CXX='-Qoption ld '
15028               ;;
15029             esac
15030             ;;
15031         esac
15032         ;;
15033       lynxos*)
15034         ;;
15035       m88k*)
15036         ;;
15037       mvs*)
15038         case $cc_basename in
15039           cxx*)
15040             lt_prog_compiler_pic_CXX='-W c,exportall'
15041             ;;
15042           *)
15043             ;;
15044         esac
15045         ;;
15046       netbsd* | netbsdelf*-gnu)
15047         ;;
15048       *qnx* | *nto*)
15049         # QNX uses GNU C++, but need to define -shared option too, otherwise
15050         # it will coredump.
15051         lt_prog_compiler_pic_CXX='-fPIC -shared'
15052         ;;
15053       osf3* | osf4* | osf5*)
15054         case $cc_basename in
15055           KCC*)
15056             lt_prog_compiler_wl_CXX='--backend -Wl,'
15057             ;;
15058           RCC*)
15059             # Rational C++ 2.4.1
15060             lt_prog_compiler_pic_CXX='-pic'
15061             ;;
15062           cxx*)
15063             # Digital/Compaq C++
15064             lt_prog_compiler_wl_CXX='-Wl,'
15065             # Make sure the PIC flag is empty.  It appears that all Alpha
15066             # Linux and Compaq Tru64 Unix objects are PIC.
15067             lt_prog_compiler_pic_CXX=
15068             lt_prog_compiler_static_CXX='-non_shared'
15069             ;;
15070           *)
15071             ;;
15072         esac
15073         ;;
15074       psos*)
15075         ;;
15076       solaris*)
15077         case $cc_basename in
15078           CC* | sunCC*)
15079             # Sun C++ 4.2, 5.x and Centerline C++
15080             lt_prog_compiler_pic_CXX='-KPIC'
15081             lt_prog_compiler_static_CXX='-Bstatic'
15082             lt_prog_compiler_wl_CXX='-Qoption ld '
15083             ;;
15084           gcx*)
15085             # Green Hills C++ Compiler
15086             lt_prog_compiler_pic_CXX='-PIC'
15087             ;;
15088           *)
15089             ;;
15090         esac
15091         ;;
15092       sunos4*)
15093         case $cc_basename in
15094           CC*)
15095             # Sun C++ 4.x
15096             lt_prog_compiler_pic_CXX='-pic'
15097             lt_prog_compiler_static_CXX='-Bstatic'
15098             ;;
15099           lcc*)
15100             # Lucid
15101             lt_prog_compiler_pic_CXX='-pic'
15102             ;;
15103           *)
15104             ;;
15105         esac
15106         ;;
15107       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15108         case $cc_basename in
15109           CC*)
15110             lt_prog_compiler_wl_CXX='-Wl,'
15111             lt_prog_compiler_pic_CXX='-KPIC'
15112             lt_prog_compiler_static_CXX='-Bstatic'
15113             ;;
15114         esac
15115         ;;
15116       tandem*)
15117         case $cc_basename in
15118           NCC*)
15119             # NonStop-UX NCC 3.20
15120             lt_prog_compiler_pic_CXX='-KPIC'
15121             ;;
15122           *)
15123             ;;
15124         esac
15125         ;;
15126       vxworks*)
15127         ;;
15128       *)
15129         lt_prog_compiler_can_build_shared_CXX=no
15130         ;;
15131     esac
15132   fi
15133
15134 case $host_os in
15135   # For platforms which do not support PIC, -DPIC is meaningless:
15136   *djgpp*)
15137     lt_prog_compiler_pic_CXX=
15138     ;;
15139   *)
15140     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15141     ;;
15142 esac
15143
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15146 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15147   $as_echo_n "(cached) " >&6
15148 else
15149   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15150 fi
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15152 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15153 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15154
15155 #
15156 # Check to make sure the PIC flag actually works.
15157 #
15158 if test -n "$lt_prog_compiler_pic_CXX"; then
15159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15161 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15162   $as_echo_n "(cached) " >&6
15163 else
15164   lt_cv_prog_compiler_pic_works_CXX=no
15165    ac_outfile=conftest.$ac_objext
15166    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15167    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15168    # Insert the option either (1) after the last *FLAGS variable, or
15169    # (2) before a word containing "conftest.", or (3) at the end.
15170    # Note that $ac_compile itself does not contain backslashes and begins
15171    # with a dollar sign (not a hyphen), so the echo should work correctly.
15172    # The option is referenced via a variable to avoid confusing sed.
15173    lt_compile=`echo "$ac_compile" | $SED \
15174    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15176    -e 's:$: $lt_compiler_flag:'`
15177    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15178    (eval "$lt_compile" 2>conftest.err)
15179    ac_status=$?
15180    cat conftest.err >&5
15181    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182    if (exit $ac_status) && test -s "$ac_outfile"; then
15183      # The compiler can only warn and ignore the option if not recognized
15184      # So say no if there are warnings other than the usual output.
15185      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15186      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15188        lt_cv_prog_compiler_pic_works_CXX=yes
15189      fi
15190    fi
15191    $RM conftest*
15192
15193 fi
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15195 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15196
15197 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15198     case $lt_prog_compiler_pic_CXX in
15199      "" | " "*) ;;
15200      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15201      esac
15202 else
15203     lt_prog_compiler_pic_CXX=
15204      lt_prog_compiler_can_build_shared_CXX=no
15205 fi
15206
15207 fi
15208
15209
15210
15211
15212
15213 #
15214 # Check to make sure the static flag actually works.
15215 #
15216 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15218 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15219 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15220   $as_echo_n "(cached) " >&6
15221 else
15222   lt_cv_prog_compiler_static_works_CXX=no
15223    save_LDFLAGS="$LDFLAGS"
15224    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15225    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15226    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15227      # The linker can only warn and ignore the option if not recognized
15228      # So say no if there are warnings
15229      if test -s conftest.err; then
15230        # Append any errors to the config.log.
15231        cat conftest.err 1>&5
15232        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15233        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15234        if diff conftest.exp conftest.er2 >/dev/null; then
15235          lt_cv_prog_compiler_static_works_CXX=yes
15236        fi
15237      else
15238        lt_cv_prog_compiler_static_works_CXX=yes
15239      fi
15240    fi
15241    $RM -r conftest*
15242    LDFLAGS="$save_LDFLAGS"
15243
15244 fi
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15246 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15247
15248 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15249     :
15250 else
15251     lt_prog_compiler_static_CXX=
15252 fi
15253
15254
15255
15256
15257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15259 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15260   $as_echo_n "(cached) " >&6
15261 else
15262   lt_cv_prog_compiler_c_o_CXX=no
15263    $RM -r conftest 2>/dev/null
15264    mkdir conftest
15265    cd conftest
15266    mkdir out
15267    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15268
15269    lt_compiler_flag="-o out/conftest2.$ac_objext"
15270    # Insert the option either (1) after the last *FLAGS variable, or
15271    # (2) before a word containing "conftest.", or (3) at the end.
15272    # Note that $ac_compile itself does not contain backslashes and begins
15273    # with a dollar sign (not a hyphen), so the echo should work correctly.
15274    lt_compile=`echo "$ac_compile" | $SED \
15275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15277    -e 's:$: $lt_compiler_flag:'`
15278    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15279    (eval "$lt_compile" 2>out/conftest.err)
15280    ac_status=$?
15281    cat out/conftest.err >&5
15282    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15284    then
15285      # The compiler can only warn and ignore the option if not recognized
15286      # So say no if there are warnings
15287      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15288      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15289      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15290        lt_cv_prog_compiler_c_o_CXX=yes
15291      fi
15292    fi
15293    chmod u+w . 2>&5
15294    $RM conftest*
15295    # SGI C++ compiler will create directory out/ii_files/ for
15296    # template instantiation
15297    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15298    $RM out/* && rmdir out
15299    cd ..
15300    $RM -r conftest
15301    $RM conftest*
15302
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15305 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15306
15307
15308
15309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15310 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15311 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15312   $as_echo_n "(cached) " >&6
15313 else
15314   lt_cv_prog_compiler_c_o_CXX=no
15315    $RM -r conftest 2>/dev/null
15316    mkdir conftest
15317    cd conftest
15318    mkdir out
15319    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15320
15321    lt_compiler_flag="-o out/conftest2.$ac_objext"
15322    # Insert the option either (1) after the last *FLAGS variable, or
15323    # (2) before a word containing "conftest.", or (3) at the end.
15324    # Note that $ac_compile itself does not contain backslashes and begins
15325    # with a dollar sign (not a hyphen), so the echo should work correctly.
15326    lt_compile=`echo "$ac_compile" | $SED \
15327    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15328    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15329    -e 's:$: $lt_compiler_flag:'`
15330    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15331    (eval "$lt_compile" 2>out/conftest.err)
15332    ac_status=$?
15333    cat out/conftest.err >&5
15334    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15336    then
15337      # The compiler can only warn and ignore the option if not recognized
15338      # So say no if there are warnings
15339      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15340      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15341      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15342        lt_cv_prog_compiler_c_o_CXX=yes
15343      fi
15344    fi
15345    chmod u+w . 2>&5
15346    $RM conftest*
15347    # SGI C++ compiler will create directory out/ii_files/ for
15348    # template instantiation
15349    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15350    $RM out/* && rmdir out
15351    cd ..
15352    $RM -r conftest
15353    $RM conftest*
15354
15355 fi
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15357 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15358
15359
15360
15361
15362 hard_links="nottested"
15363 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15364   # do not overwrite the value of need_locks provided by the user
15365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15366 $as_echo_n "checking if we can lock with hard links... " >&6; }
15367   hard_links=yes
15368   $RM conftest*
15369   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15370   touch conftest.a
15371   ln conftest.a conftest.b 2>&5 || hard_links=no
15372   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15374 $as_echo "$hard_links" >&6; }
15375   if test "$hard_links" = no; then
15376     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15377 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15378     need_locks=warn
15379   fi
15380 else
15381   need_locks=no
15382 fi
15383
15384
15385
15386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15388
15389   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15390   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15391   case $host_os in
15392   aix[4-9]*)
15393     # If we're using GNU nm, then we don't want the "-C" option.
15394     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15395     # Also, AIX nm treats weak defined symbols like other global defined
15396     # symbols, whereas GNU nm marks them as "W".
15397     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15398       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'
15399     else
15400       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'
15401     fi
15402     ;;
15403   pw32*)
15404     export_symbols_cmds_CXX="$ltdll_cmds"
15405     ;;
15406   cygwin* | mingw* | cegcc*)
15407     case $cc_basename in
15408     cl*)
15409       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15410       ;;
15411     *)
15412       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'
15413       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15414       ;;
15415     esac
15416     ;;
15417   linux* | k*bsd*-gnu | gnu*)
15418     link_all_deplibs_CXX=no
15419     ;;
15420   *)
15421     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15422     ;;
15423   esac
15424
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15426 $as_echo "$ld_shlibs_CXX" >&6; }
15427 test "$ld_shlibs_CXX" = no && can_build_shared=no
15428
15429 with_gnu_ld_CXX=$with_gnu_ld
15430
15431
15432
15433
15434
15435
15436 #
15437 # Do we need to explicitly link libc?
15438 #
15439 case "x$archive_cmds_need_lc_CXX" in
15440 x|xyes)
15441   # Assume -lc should be added
15442   archive_cmds_need_lc_CXX=yes
15443
15444   if test "$enable_shared" = yes && test "$GCC" = yes; then
15445     case $archive_cmds_CXX in
15446     *'~'*)
15447       # FIXME: we may have to deal with multi-command sequences.
15448       ;;
15449     '$CC '*)
15450       # Test whether the compiler implicitly links with -lc since on some
15451       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15452       # to ld, don't add -lc before -lgcc.
15453       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15455 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15456   $as_echo_n "(cached) " >&6
15457 else
15458   $RM conftest*
15459         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15460
15461         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15462   (eval $ac_compile) 2>&5
15463   ac_status=$?
15464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465   test $ac_status = 0; } 2>conftest.err; then
15466           soname=conftest
15467           lib=conftest
15468           libobjs=conftest.$ac_objext
15469           deplibs=
15470           wl=$lt_prog_compiler_wl_CXX
15471           pic_flag=$lt_prog_compiler_pic_CXX
15472           compiler_flags=-v
15473           linker_flags=-v
15474           verstring=
15475           output_objdir=.
15476           libname=conftest
15477           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15478           allow_undefined_flag_CXX=
15479           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15480   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15481   ac_status=$?
15482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15483   test $ac_status = 0; }
15484           then
15485             lt_cv_archive_cmds_need_lc_CXX=no
15486           else
15487             lt_cv_archive_cmds_need_lc_CXX=yes
15488           fi
15489           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15490         else
15491           cat conftest.err 1>&5
15492         fi
15493         $RM conftest*
15494
15495 fi
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15497 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15498       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15499       ;;
15500     esac
15501   fi
15502   ;;
15503 esac
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15567 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15568
15569 library_names_spec=
15570 libname_spec='lib$name'
15571 soname_spec=
15572 shrext_cmds=".so"
15573 postinstall_cmds=
15574 postuninstall_cmds=
15575 finish_cmds=
15576 finish_eval=
15577 shlibpath_var=
15578 shlibpath_overrides_runpath=unknown
15579 version_type=none
15580 dynamic_linker="$host_os ld.so"
15581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15582 need_lib_prefix=unknown
15583 hardcode_into_libs=no
15584
15585 # when you set need_version to no, make sure it does not cause -set_version
15586 # flags to be left without arguments
15587 need_version=unknown
15588
15589 case $host_os in
15590 aix3*)
15591   version_type=linux # correct to gnu/linux during the next big refactor
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15593   shlibpath_var=LIBPATH
15594
15595   # AIX 3 has no versioning support, so we append a major version to the name.
15596   soname_spec='${libname}${release}${shared_ext}$major'
15597   ;;
15598
15599 aix[4-9]*)
15600   version_type=linux # correct to gnu/linux during the next big refactor
15601   need_lib_prefix=no
15602   need_version=no
15603   hardcode_into_libs=yes
15604   if test "$host_cpu" = ia64; then
15605     # AIX 5 supports IA64
15606     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15607     shlibpath_var=LD_LIBRARY_PATH
15608   else
15609     # With GCC up to 2.95.x, collect2 would create an import file
15610     # for dependence libraries.  The import file would start with
15611     # the line `#! .'.  This would cause the generated library to
15612     # depend on `.', always an invalid library.  This was fixed in
15613     # development snapshots of GCC prior to 3.0.
15614     case $host_os in
15615       aix4 | aix4.[01] | aix4.[01].*)
15616       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15617            echo ' yes '
15618            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15619         :
15620       else
15621         can_build_shared=no
15622       fi
15623       ;;
15624     esac
15625     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15626     # soname into executable. Probably we can add versioning support to
15627     # collect2, so additional links can be useful in future.
15628     if test "$aix_use_runtimelinking" = yes; then
15629       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15630       # instead of lib<name>.a to let people know that these are not
15631       # typical AIX shared libraries.
15632       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633     else
15634       # We preserve .a as extension for shared libraries through AIX4.2
15635       # and later when we are not doing run time linking.
15636       library_names_spec='${libname}${release}.a $libname.a'
15637       soname_spec='${libname}${release}${shared_ext}$major'
15638     fi
15639     shlibpath_var=LIBPATH
15640   fi
15641   ;;
15642
15643 amigaos*)
15644   case $host_cpu in
15645   powerpc)
15646     # Since July 2007 AmigaOS4 officially supports .so libraries.
15647     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649     ;;
15650   m68k)
15651     library_names_spec='$libname.ixlibrary $libname.a'
15652     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15653     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'
15654     ;;
15655   esac
15656   ;;
15657
15658 beos*)
15659   library_names_spec='${libname}${shared_ext}'
15660   dynamic_linker="$host_os ld.so"
15661   shlibpath_var=LIBRARY_PATH
15662   ;;
15663
15664 bsdi[45]*)
15665   version_type=linux # correct to gnu/linux during the next big refactor
15666   need_version=no
15667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668   soname_spec='${libname}${release}${shared_ext}$major'
15669   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670   shlibpath_var=LD_LIBRARY_PATH
15671   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673   # the default ld.so.conf also contains /usr/contrib/lib and
15674   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675   # libtool to hard-code these into programs
15676   ;;
15677
15678 cygwin* | mingw* | pw32* | cegcc*)
15679   version_type=windows
15680   shrext_cmds=".dll"
15681   need_version=no
15682   need_lib_prefix=no
15683
15684   case $GCC,$cc_basename in
15685   yes,*)
15686     # gcc
15687     library_names_spec='$libname.dll.a'
15688     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15689     postinstall_cmds='base_file=`basename \${file}`~
15690       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15691       dldir=$destdir/`dirname \$dlpath`~
15692       test -d \$dldir || mkdir -p \$dldir~
15693       $install_prog $dir/$dlname \$dldir/$dlname~
15694       chmod a+x \$dldir/$dlname~
15695       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15696         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15697       fi'
15698     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699       dlpath=$dir/\$dldll~
15700        $RM \$dlpath'
15701     shlibpath_overrides_runpath=yes
15702
15703     case $host_os in
15704     cygwin*)
15705       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707
15708       ;;
15709     mingw* | cegcc*)
15710       # MinGW DLLs use traditional 'lib' prefix
15711       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712       ;;
15713     pw32*)
15714       # pw32 DLLs use 'pw' prefix rather than 'lib'
15715       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15716       ;;
15717     esac
15718     dynamic_linker='Win32 ld.exe'
15719     ;;
15720
15721   *,cl*)
15722     # Native MSVC
15723     libname_spec='$name'
15724     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725     library_names_spec='${libname}.dll.lib'
15726
15727     case $build_os in
15728     mingw*)
15729       sys_lib_search_path_spec=
15730       lt_save_ifs=$IFS
15731       IFS=';'
15732       for lt_path in $LIB
15733       do
15734         IFS=$lt_save_ifs
15735         # Let DOS variable expansion print the short 8.3 style file name.
15736         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15737         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15738       done
15739       IFS=$lt_save_ifs
15740       # Convert to MSYS style.
15741       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15742       ;;
15743     cygwin*)
15744       # Convert to unix form, then to dos form, then back to unix form
15745       # but this time dos style (no spaces!) so that the unix form looks
15746       # like /cygdrive/c/PROGRA~1:/cygdr...
15747       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15748       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15749       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15750       ;;
15751     *)
15752       sys_lib_search_path_spec="$LIB"
15753       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15754         # It is most probably a Windows format PATH.
15755         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15756       else
15757         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15758       fi
15759       # FIXME: find the short name or the path components, as spaces are
15760       # common. (e.g. "Program Files" -> "PROGRA~1")
15761       ;;
15762     esac
15763
15764     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15765     postinstall_cmds='base_file=`basename \${file}`~
15766       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15767       dldir=$destdir/`dirname \$dlpath`~
15768       test -d \$dldir || mkdir -p \$dldir~
15769       $install_prog $dir/$dlname \$dldir/$dlname'
15770     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15771       dlpath=$dir/\$dldll~
15772        $RM \$dlpath'
15773     shlibpath_overrides_runpath=yes
15774     dynamic_linker='Win32 link.exe'
15775     ;;
15776
15777   *)
15778     # Assume MSVC wrapper
15779     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15780     dynamic_linker='Win32 ld.exe'
15781     ;;
15782   esac
15783   # FIXME: first we should search . and the directory the executable is in
15784   shlibpath_var=PATH
15785   ;;
15786
15787 darwin* | rhapsody*)
15788   dynamic_linker="$host_os dyld"
15789   version_type=darwin
15790   need_lib_prefix=no
15791   need_version=no
15792   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15793   soname_spec='${libname}${release}${major}$shared_ext'
15794   shlibpath_overrides_runpath=yes
15795   shlibpath_var=DYLD_LIBRARY_PATH
15796   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15797
15798   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15799   ;;
15800
15801 dgux*)
15802   version_type=linux # correct to gnu/linux during the next big refactor
15803   need_lib_prefix=no
15804   need_version=no
15805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15806   soname_spec='${libname}${release}${shared_ext}$major'
15807   shlibpath_var=LD_LIBRARY_PATH
15808   ;;
15809
15810 freebsd* | dragonfly*)
15811   # DragonFly does not have aout.  When/if they implement a new
15812   # versioning mechanism, adjust this.
15813   if test -x /usr/bin/objformat; then
15814     objformat=`/usr/bin/objformat`
15815   else
15816     case $host_os in
15817     freebsd[23].*) objformat=aout ;;
15818     *) objformat=elf ;;
15819     esac
15820   fi
15821   version_type=freebsd-$objformat
15822   case $version_type in
15823     freebsd-elf*)
15824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15825       need_version=no
15826       need_lib_prefix=no
15827       ;;
15828     freebsd-*)
15829       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15830       need_version=yes
15831       ;;
15832   esac
15833   shlibpath_var=LD_LIBRARY_PATH
15834   case $host_os in
15835   freebsd2.*)
15836     shlibpath_overrides_runpath=yes
15837     ;;
15838   freebsd3.[01]* | freebsdelf3.[01]*)
15839     shlibpath_overrides_runpath=yes
15840     hardcode_into_libs=yes
15841     ;;
15842   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15843   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15844     shlibpath_overrides_runpath=no
15845     hardcode_into_libs=yes
15846     ;;
15847   *) # from 4.6 on, and DragonFly
15848     shlibpath_overrides_runpath=yes
15849     hardcode_into_libs=yes
15850     ;;
15851   esac
15852   ;;
15853
15854 haiku*)
15855   version_type=linux # correct to gnu/linux during the next big refactor
15856   need_lib_prefix=no
15857   need_version=no
15858   dynamic_linker="$host_os runtime_loader"
15859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15860   soname_spec='${libname}${release}${shared_ext}$major'
15861   shlibpath_var=LIBRARY_PATH
15862   shlibpath_overrides_runpath=yes
15863   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15864   hardcode_into_libs=yes
15865   ;;
15866
15867 hpux9* | hpux10* | hpux11*)
15868   # Give a soname corresponding to the major version so that dld.sl refuses to
15869   # link against other versions.
15870   version_type=sunos
15871   need_lib_prefix=no
15872   need_version=no
15873   case $host_cpu in
15874   ia64*)
15875     shrext_cmds='.so'
15876     hardcode_into_libs=yes
15877     dynamic_linker="$host_os dld.so"
15878     shlibpath_var=LD_LIBRARY_PATH
15879     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881     soname_spec='${libname}${release}${shared_ext}$major'
15882     if test "X$HPUX_IA64_MODE" = X32; then
15883       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15884     else
15885       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15886     fi
15887     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15888     ;;
15889   hppa*64*)
15890     shrext_cmds='.sl'
15891     hardcode_into_libs=yes
15892     dynamic_linker="$host_os dld.sl"
15893     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896     soname_spec='${libname}${release}${shared_ext}$major'
15897     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15898     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15899     ;;
15900   *)
15901     shrext_cmds='.sl'
15902     dynamic_linker="$host_os dld.sl"
15903     shlibpath_var=SHLIB_PATH
15904     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906     soname_spec='${libname}${release}${shared_ext}$major'
15907     ;;
15908   esac
15909   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15910   postinstall_cmds='chmod 555 $lib'
15911   # or fails outright, so override atomically:
15912   install_override_mode=555
15913   ;;
15914
15915 interix[3-9]*)
15916   version_type=linux # correct to gnu/linux during the next big refactor
15917   need_lib_prefix=no
15918   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15922   shlibpath_var=LD_LIBRARY_PATH
15923   shlibpath_overrides_runpath=no
15924   hardcode_into_libs=yes
15925   ;;
15926
15927 irix5* | irix6* | nonstopux*)
15928   case $host_os in
15929     nonstopux*) version_type=nonstopux ;;
15930     *)
15931         if test "$lt_cv_prog_gnu_ld" = yes; then
15932                 version_type=linux # correct to gnu/linux during the next big refactor
15933         else
15934                 version_type=irix
15935         fi ;;
15936   esac
15937   need_lib_prefix=no
15938   need_version=no
15939   soname_spec='${libname}${release}${shared_ext}$major'
15940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15941   case $host_os in
15942   irix5* | nonstopux*)
15943     libsuff= shlibsuff=
15944     ;;
15945   *)
15946     case $LD in # libtool.m4 will add one of these switches to LD
15947     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15948       libsuff= shlibsuff= libmagic=32-bit;;
15949     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15950       libsuff=32 shlibsuff=N32 libmagic=N32;;
15951     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15952       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15953     *) libsuff= shlibsuff= libmagic=never-match;;
15954     esac
15955     ;;
15956   esac
15957   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15958   shlibpath_overrides_runpath=no
15959   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15960   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15961   hardcode_into_libs=yes
15962   ;;
15963
15964 # No shared lib support for Linux oldld, aout, or coff.
15965 linux*oldld* | linux*aout* | linux*coff*)
15966   dynamic_linker=no
15967   ;;
15968
15969 # This must be glibc/ELF.
15970 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15971   version_type=linux # correct to gnu/linux during the next big refactor
15972   need_lib_prefix=no
15973   need_version=no
15974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975   soname_spec='${libname}${release}${shared_ext}$major'
15976   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15977   shlibpath_var=LD_LIBRARY_PATH
15978   shlibpath_overrides_runpath=no
15979
15980   # Some binutils ld are patched to set DT_RUNPATH
15981   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15982   $as_echo_n "(cached) " >&6
15983 else
15984   lt_cv_shlibpath_overrides_runpath=no
15985     save_LDFLAGS=$LDFLAGS
15986     save_libdir=$libdir
15987     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15988          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h.  */
15991
15992 int
15993 main ()
15994 {
15995
15996   ;
15997   return 0;
15998 }
15999 _ACEOF
16000 if ac_fn_cxx_try_link "$LINENO"; then :
16001   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16002   lt_cv_shlibpath_overrides_runpath=yes
16003 fi
16004 fi
16005 rm -f core conftest.err conftest.$ac_objext \
16006     conftest$ac_exeext conftest.$ac_ext
16007     LDFLAGS=$save_LDFLAGS
16008     libdir=$save_libdir
16009
16010 fi
16011
16012   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16013
16014   # This implies no fast_install, which is unacceptable.
16015   # Some rework will be needed to allow for fast_install
16016   # before this can be enabled.
16017   hardcode_into_libs=yes
16018
16019   # Append ld.so.conf contents to the search path
16020   if test -f /etc/ld.so.conf; then
16021     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' ' '`
16022     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16023   fi
16024
16025   # We used to test for /lib/ld.so.1 and disable shared libraries on
16026   # powerpc, because MkLinux only supported shared libraries with the
16027   # GNU dynamic linker.  Since this was broken with cross compilers,
16028   # most powerpc-linux boxes support dynamic linking these days and
16029   # people can always --disable-shared, the test was removed, and we
16030   # assume the GNU/Linux dynamic linker is in use.
16031   dynamic_linker='GNU/Linux ld.so'
16032   ;;
16033
16034 netbsdelf*-gnu)
16035   version_type=linux
16036   need_lib_prefix=no
16037   need_version=no
16038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16039   soname_spec='${libname}${release}${shared_ext}$major'
16040   shlibpath_var=LD_LIBRARY_PATH
16041   shlibpath_overrides_runpath=no
16042   hardcode_into_libs=yes
16043   dynamic_linker='NetBSD ld.elf_so'
16044   ;;
16045
16046 netbsd*)
16047   version_type=sunos
16048   need_lib_prefix=no
16049   need_version=no
16050   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16052     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16053     dynamic_linker='NetBSD (a.out) ld.so'
16054   else
16055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056     soname_spec='${libname}${release}${shared_ext}$major'
16057     dynamic_linker='NetBSD ld.elf_so'
16058   fi
16059   shlibpath_var=LD_LIBRARY_PATH
16060   shlibpath_overrides_runpath=yes
16061   hardcode_into_libs=yes
16062   ;;
16063
16064 newsos6)
16065   version_type=linux # correct to gnu/linux during the next big refactor
16066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067   shlibpath_var=LD_LIBRARY_PATH
16068   shlibpath_overrides_runpath=yes
16069   ;;
16070
16071 *nto* | *qnx*)
16072   version_type=qnx
16073   need_lib_prefix=no
16074   need_version=no
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076   soname_spec='${libname}${release}${shared_ext}$major'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   shlibpath_overrides_runpath=no
16079   hardcode_into_libs=yes
16080   dynamic_linker='ldqnx.so'
16081   ;;
16082
16083 openbsd*)
16084   version_type=sunos
16085   sys_lib_dlsearch_path_spec="/usr/lib"
16086   need_lib_prefix=no
16087   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16088   case $host_os in
16089     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16090     *)                          need_version=no  ;;
16091   esac
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16093   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16096     case $host_os in
16097       openbsd2.[89] | openbsd2.[89].*)
16098         shlibpath_overrides_runpath=no
16099         ;;
16100       *)
16101         shlibpath_overrides_runpath=yes
16102         ;;
16103       esac
16104   else
16105     shlibpath_overrides_runpath=yes
16106   fi
16107   ;;
16108
16109 os2*)
16110   libname_spec='$name'
16111   shrext_cmds=".dll"
16112   need_lib_prefix=no
16113   library_names_spec='$libname${shared_ext} $libname.a'
16114   dynamic_linker='OS/2 ld.exe'
16115   shlibpath_var=LIBPATH
16116   ;;
16117
16118 osf3* | osf4* | osf5*)
16119   version_type=osf
16120   need_lib_prefix=no
16121   need_version=no
16122   soname_spec='${libname}${release}${shared_ext}$major'
16123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124   shlibpath_var=LD_LIBRARY_PATH
16125   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16126   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16127   ;;
16128
16129 rdos*)
16130   dynamic_linker=no
16131   ;;
16132
16133 solaris*)
16134   version_type=linux # correct to gnu/linux during the next big refactor
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=yes
16141   hardcode_into_libs=yes
16142   # ldd complains unless libraries are executable
16143   postinstall_cmds='chmod +x $lib'
16144   ;;
16145
16146 sunos4*)
16147   version_type=sunos
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16149   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16150   shlibpath_var=LD_LIBRARY_PATH
16151   shlibpath_overrides_runpath=yes
16152   if test "$with_gnu_ld" = yes; then
16153     need_lib_prefix=no
16154   fi
16155   need_version=yes
16156   ;;
16157
16158 sysv4 | sysv4.3*)
16159   version_type=linux # correct to gnu/linux during the next big refactor
16160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161   soname_spec='${libname}${release}${shared_ext}$major'
16162   shlibpath_var=LD_LIBRARY_PATH
16163   case $host_vendor in
16164     sni)
16165       shlibpath_overrides_runpath=no
16166       need_lib_prefix=no
16167       runpath_var=LD_RUN_PATH
16168       ;;
16169     siemens)
16170       need_lib_prefix=no
16171       ;;
16172     motorola)
16173       need_lib_prefix=no
16174       need_version=no
16175       shlibpath_overrides_runpath=no
16176       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16177       ;;
16178   esac
16179   ;;
16180
16181 sysv4*MP*)
16182   if test -d /usr/nec ;then
16183     version_type=linux # correct to gnu/linux during the next big refactor
16184     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16185     soname_spec='$libname${shared_ext}.$major'
16186     shlibpath_var=LD_LIBRARY_PATH
16187   fi
16188   ;;
16189
16190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16191   version_type=freebsd-elf
16192   need_lib_prefix=no
16193   need_version=no
16194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16195   soname_spec='${libname}${release}${shared_ext}$major'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   shlibpath_overrides_runpath=yes
16198   hardcode_into_libs=yes
16199   if test "$with_gnu_ld" = yes; then
16200     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16201   else
16202     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16203     case $host_os in
16204       sco3.2v5*)
16205         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16206         ;;
16207     esac
16208   fi
16209   sys_lib_dlsearch_path_spec='/usr/lib'
16210   ;;
16211
16212 tpf*)
16213   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16214   version_type=linux # correct to gnu/linux during the next big refactor
16215   need_lib_prefix=no
16216   need_version=no
16217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218   shlibpath_var=LD_LIBRARY_PATH
16219   shlibpath_overrides_runpath=no
16220   hardcode_into_libs=yes
16221   ;;
16222
16223 uts4*)
16224   version_type=linux # correct to gnu/linux during the next big refactor
16225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226   soname_spec='${libname}${release}${shared_ext}$major'
16227   shlibpath_var=LD_LIBRARY_PATH
16228   ;;
16229
16230 *)
16231   dynamic_linker=no
16232   ;;
16233 esac
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16235 $as_echo "$dynamic_linker" >&6; }
16236 test "$dynamic_linker" = no && can_build_shared=no
16237
16238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16239 if test "$GCC" = yes; then
16240   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16241 fi
16242
16243 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16244   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16245 fi
16246 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16247   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16248 fi
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16289 hardcode_action_CXX=
16290 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16291    test -n "$runpath_var_CXX" ||
16292    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16293
16294   # We can hardcode non-existent directories.
16295   if test "$hardcode_direct_CXX" != no &&
16296      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16297      # have to relink, otherwise we might link with an installed library
16298      # when we should be linking with a yet-to-be-installed one
16299      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16300      test "$hardcode_minus_L_CXX" != no; then
16301     # Linking always hardcodes the temporary library directory.
16302     hardcode_action_CXX=relink
16303   else
16304     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16305     hardcode_action_CXX=immediate
16306   fi
16307 else
16308   # We cannot hardcode anything, or else we can only hardcode existing
16309   # directories.
16310   hardcode_action_CXX=unsupported
16311 fi
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16313 $as_echo "$hardcode_action_CXX" >&6; }
16314
16315 if test "$hardcode_action_CXX" = relink ||
16316    test "$inherit_rpath_CXX" = yes; then
16317   # Fast installation is not supported
16318   enable_fast_install=no
16319 elif test "$shlibpath_overrides_runpath" = yes ||
16320      test "$enable_shared" = no; then
16321   # Fast installation is not necessary
16322   enable_fast_install=needless
16323 fi
16324
16325
16326
16327
16328
16329
16330
16331   fi # test -n "$compiler"
16332
16333   CC=$lt_save_CC
16334   CFLAGS=$lt_save_CFLAGS
16335   LDCXX=$LD
16336   LD=$lt_save_LD
16337   GCC=$lt_save_GCC
16338   with_gnu_ld=$lt_save_with_gnu_ld
16339   lt_cv_path_LDCXX=$lt_cv_path_LD
16340   lt_cv_path_LD=$lt_save_path_LD
16341   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16342   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16343 fi # test "$_lt_caught_CXX_error" != yes
16344
16345 ac_ext=c
16346 ac_cpp='$CPP $CPPFLAGS'
16347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365         ac_config_commands="$ac_config_commands libtool"
16366
16367
16368
16369
16370 # Only expand once:
16371
16372
16373
16374 LT_DLLOADERS=
16375
16376
16377 ac_ext=c
16378 ac_cpp='$CPP $CPPFLAGS'
16379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16382
16383
16384 LIBADD_DLOPEN=
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16386 $as_echo_n "checking for library containing dlopen... " >&6; }
16387 if ${ac_cv_search_dlopen+:} false; then :
16388   $as_echo_n "(cached) " >&6
16389 else
16390   ac_func_search_save_LIBS=$LIBS
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h.  */
16393
16394 /* Override any GCC internal prototype to avoid an error.
16395    Use char because int might match the return type of a GCC
16396    builtin and then its argument prototype would still apply.  */
16397 #ifdef __cplusplus
16398 extern "C"
16399 #endif
16400 char dlopen ();
16401 int
16402 main ()
16403 {
16404 return dlopen ();
16405   ;
16406   return 0;
16407 }
16408 _ACEOF
16409 for ac_lib in '' dl; do
16410   if test -z "$ac_lib"; then
16411     ac_res="none required"
16412   else
16413     ac_res=-l$ac_lib
16414     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16415   fi
16416   if ac_fn_c_try_link "$LINENO"; then :
16417   ac_cv_search_dlopen=$ac_res
16418 fi
16419 rm -f core conftest.err conftest.$ac_objext \
16420     conftest$ac_exeext
16421   if ${ac_cv_search_dlopen+:} false; then :
16422   break
16423 fi
16424 done
16425 if ${ac_cv_search_dlopen+:} false; then :
16426
16427 else
16428   ac_cv_search_dlopen=no
16429 fi
16430 rm conftest.$ac_ext
16431 LIBS=$ac_func_search_save_LIBS
16432 fi
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16434 $as_echo "$ac_cv_search_dlopen" >&6; }
16435 ac_res=$ac_cv_search_dlopen
16436 if test "$ac_res" != no; then :
16437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16438
16439 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16440
16441         if test "$ac_cv_search_dlopen" != "none required" ; then
16442           LIBADD_DLOPEN="-ldl"
16443         fi
16444         libltdl_cv_lib_dl_dlopen="yes"
16445         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16446 else
16447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h.  */
16449 #if HAVE_DLFCN_H
16450 #  include <dlfcn.h>
16451 #endif
16452
16453 int
16454 main ()
16455 {
16456 dlopen(0, 0);
16457   ;
16458   return 0;
16459 }
16460 _ACEOF
16461 if ac_fn_c_try_link "$LINENO"; then :
16462
16463 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16464
16465             libltdl_cv_func_dlopen="yes"
16466             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16467 else
16468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16469 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16470 if ${ac_cv_lib_svld_dlopen+:} false; then :
16471   $as_echo_n "(cached) " >&6
16472 else
16473   ac_check_lib_save_LIBS=$LIBS
16474 LIBS="-lsvld  $LIBS"
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h.  */
16477
16478 /* Override any GCC internal prototype to avoid an error.
16479    Use char because int might match the return type of a GCC
16480    builtin and then its argument prototype would still apply.  */
16481 #ifdef __cplusplus
16482 extern "C"
16483 #endif
16484 char dlopen ();
16485 int
16486 main ()
16487 {
16488 return dlopen ();
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 if ac_fn_c_try_link "$LINENO"; then :
16494   ac_cv_lib_svld_dlopen=yes
16495 else
16496   ac_cv_lib_svld_dlopen=no
16497 fi
16498 rm -f core conftest.err conftest.$ac_objext \
16499     conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16501 fi
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16503 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16504 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16505
16506 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16507
16508                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16509                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16510 fi
16511
16512 fi
16513 rm -f core conftest.err conftest.$ac_objext \
16514     conftest$ac_exeext conftest.$ac_ext
16515 fi
16516
16517 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16518 then
16519   lt_save_LIBS="$LIBS"
16520   LIBS="$LIBS $LIBADD_DLOPEN"
16521   for ac_func in dlerror
16522 do :
16523   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16524 if test "x$ac_cv_func_dlerror" = xyes; then :
16525   cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DLERROR 1
16527 _ACEOF
16528
16529 fi
16530 done
16531
16532   LIBS="$lt_save_LIBS"
16533 fi
16534
16535
16536 LIBADD_SHL_LOAD=
16537 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16538 if test "x$ac_cv_func_shl_load" = xyes; then :
16539
16540 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16541
16542         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16543 else
16544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16546 if ${ac_cv_lib_dld_shl_load+:} false; then :
16547   $as_echo_n "(cached) " >&6
16548 else
16549   ac_check_lib_save_LIBS=$LIBS
16550 LIBS="-ldld  $LIBS"
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h.  */
16553
16554 /* Override any GCC internal prototype to avoid an error.
16555    Use char because int might match the return type of a GCC
16556    builtin and then its argument prototype would still apply.  */
16557 #ifdef __cplusplus
16558 extern "C"
16559 #endif
16560 char shl_load ();
16561 int
16562 main ()
16563 {
16564 return shl_load ();
16565   ;
16566   return 0;
16567 }
16568 _ACEOF
16569 if ac_fn_c_try_link "$LINENO"; then :
16570   ac_cv_lib_dld_shl_load=yes
16571 else
16572   ac_cv_lib_dld_shl_load=no
16573 fi
16574 rm -f core conftest.err conftest.$ac_objext \
16575     conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16577 fi
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16579 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16580 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16581
16582 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16583
16584             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16585             LIBADD_SHL_LOAD="-ldld"
16586 fi
16587
16588 fi
16589
16590
16591
16592 case $host_os in
16593 darwin[1567].*)
16594 # We only want this for pre-Mac OS X 10.4.
16595   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16596 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16597
16598 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16599
16600         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16601 fi
16602
16603   ;;
16604 beos*)
16605   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16606   ;;
16607 cygwin* | mingw* | os2* | pw32*)
16608   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16609 "
16610 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16611   ac_have_decl=1
16612 else
16613   ac_have_decl=0
16614 fi
16615
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16618 _ACEOF
16619
16620   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16621   ;;
16622 esac
16623
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16625 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16626 if ${ac_cv_lib_dld_dld_link+:} false; then :
16627   $as_echo_n "(cached) " >&6
16628 else
16629   ac_check_lib_save_LIBS=$LIBS
16630 LIBS="-ldld  $LIBS"
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h.  */
16633
16634 /* Override any GCC internal prototype to avoid an error.
16635    Use char because int might match the return type of a GCC
16636    builtin and then its argument prototype would still apply.  */
16637 #ifdef __cplusplus
16638 extern "C"
16639 #endif
16640 char dld_link ();
16641 int
16642 main ()
16643 {
16644 return dld_link ();
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 if ac_fn_c_try_link "$LINENO"; then :
16650   ac_cv_lib_dld_dld_link=yes
16651 else
16652   ac_cv_lib_dld_dld_link=no
16653 fi
16654 rm -f core conftest.err conftest.$ac_objext \
16655     conftest$ac_exeext conftest.$ac_ext
16656 LIBS=$ac_check_lib_save_LIBS
16657 fi
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16659 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16660 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16661
16662 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16663
16664                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16665 fi
16666
16667
16668
16669
16670 LT_DLPREOPEN=
16671 if test -n "$LT_DLLOADERS"
16672 then
16673   for lt_loader in $LT_DLLOADERS; do
16674     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16675   done
16676
16677 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16678
16679 fi
16680
16681
16682 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16683
16684
16685 ac_ext=c
16686 ac_cpp='$CPP $CPPFLAGS'
16687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16690
16691
16692
16693
16694 if test x$use_libtool != xno; then
16695    DEFAULT_OBJECT_TYPE=".lo"
16696    DEFAULT_ARCHIVE_TYPE=".la"
16697    DEFAULT_SHARED_OBJECT_TYPE=".la"
16698    LIBTOOL="\$(LIBTOOL)"
16699    LIBTOOL_INSTALL_TARGET="libtool-install"
16700    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16701    LIBTOOL_CLEAN_TARGET="libtool-clean"
16702    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16703    FD_PLUGIN_DIR="src/plugins/fd"
16704    have_plugins=yes
16705 else
16706    DEFAULT_OBJECT_TYPE=".o"
16707    DEFAULT_ARCHIVE_TYPE=".a"
16708    DEFAULT_SHARED_OBJECT_TYPE=".so"
16709    LIBTOOL="# \$(LIBTOOL)"
16710    LIBTOOL_INSTALL_TARGET=""
16711    LIBTOOL_UNINSTALL_TARGET=""
16712    LIBTOOL_CLEAN_TARGET=""
16713    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16714    FD_PLUGIN_DIR=""
16715    have_plugins=no
16716 fi
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728 # Check whether --enable-includes was given.
16729 if test "${enable_includes+set}" = set; then :
16730   enableval=$enable_includes;
16731        if test x$enableval = xyes; then
16732           install_includes=yes
16733        fi
16734
16735
16736 fi
16737
16738
16739
16740 if test x$use_libtool != xno -a x$install_includes = xyes; then
16741    INCLUDE_INSTALL_TARGET="install-includes"
16742    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16743 else
16744    INCLUDE_INSTALL_TARGET=""
16745    INCLUDE_UNINSTALL_TARGET=""
16746 fi
16747
16748
16749
16750
16751
16752 case $host_os in
16753   *cygwin* ) CYGWIN=yes;;
16754          * ) CYGWIN=no;;
16755 esac
16756
16757 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16758 then
16759
16760
16761 if $TRUEPRG; then
16762   HAVE_SUN_OS_TRUE=
16763   HAVE_SUN_OS_FALSE='#'
16764 else
16765   HAVE_SUN_OS_TRUE='#'
16766   HAVE_SUN_OS_FALSE=
16767 fi
16768         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16769
16770 else
16771
16772
16773 if $FALSEPRG; then
16774   HAVE_SUN_OS_TRUE=
16775   HAVE_SUN_OS_FALSE='#'
16776 else
16777   HAVE_SUN_OS_TRUE='#'
16778   HAVE_SUN_OS_FALSE=
16779 fi
16780 fi
16781
16782 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16783 then
16784
16785
16786 if $TRUEPRG; then
16787   HAVE_HURD_OS_TRUE=
16788   HAVE_HURD_OS_FALSE='#'
16789 else
16790   HAVE_HURD_OS_TRUE='#'
16791   HAVE_HURD_OS_FALSE=
16792 fi
16793         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16794
16795 else
16796
16797
16798 if $FALSEPRG; then
16799   HAVE_HURD_OS_TRUE=
16800   HAVE_HURD_OS_FALSE='#'
16801 else
16802   HAVE_HURD_OS_TRUE='#'
16803   HAVE_HURD_OS_FALSE=
16804 fi
16805 fi
16806
16807 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16808 then
16809
16810
16811 if $TRUEPRG; then
16812   HAVE_OSF1_OS_TRUE=
16813   HAVE_OSF1_OS_FALSE='#'
16814 else
16815   HAVE_OSF1_OS_TRUE='#'
16816   HAVE_OSF1_OS_FALSE=
16817 fi
16818         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16819
16820 else
16821
16822
16823 if $FALSEPRG; then
16824   HAVE_OSF1_OS_TRUE=
16825   HAVE_OSF1_OS_FALSE='#'
16826 else
16827   HAVE_OSF1_OS_TRUE='#'
16828   HAVE_OSF1_OS_FALSE=
16829 fi
16830 fi
16831
16832 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16833 then
16834
16835
16836 if $TRUEPRG; then
16837   HAVE_AIX_OS_TRUE=
16838   HAVE_AIX_OS_FALSE='#'
16839 else
16840   HAVE_AIX_OS_TRUE='#'
16841   HAVE_AIX_OS_FALSE=
16842 fi
16843         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16844
16845 else
16846
16847
16848 if $FALSEPRG; then
16849   HAVE_AIX_OS_TRUE=
16850   HAVE_AIX_OS_FALSE='#'
16851 else
16852   HAVE_AIX_OS_TRUE='#'
16853   HAVE_AIX_OS_FALSE=
16854 fi
16855 fi
16856
16857 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16858 then
16859
16860
16861 if $TRUEPRG; then
16862   HAVE_HPUX_OS_TRUE=
16863   HAVE_HPUX_OS_FALSE='#'
16864 else
16865   HAVE_HPUX_OS_TRUE='#'
16866   HAVE_HPUX_OS_FALSE=
16867 fi
16868         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16869
16870 else
16871
16872
16873 if $FALSEPRG; then
16874   HAVE_HPUX_OS_TRUE=
16875   HAVE_HPUX_OS_FALSE='#'
16876 else
16877   HAVE_HPUX_OS_TRUE='#'
16878   HAVE_HPUX_OS_FALSE=
16879 fi
16880 fi
16881
16882 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16883 then
16884
16885
16886 if $TRUEPRG; then
16887   HAVE_LINUX_OS_TRUE=
16888   HAVE_LINUX_OS_FALSE='#'
16889 else
16890   HAVE_LINUX_OS_TRUE='#'
16891   HAVE_LINUX_OS_FALSE=
16892 fi
16893         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16894
16895 else
16896
16897
16898 if $FALSEPRG; then
16899   HAVE_LINUX_OS_TRUE=
16900   HAVE_LINUX_OS_FALSE='#'
16901 else
16902   HAVE_LINUX_OS_TRUE='#'
16903   HAVE_LINUX_OS_FALSE=
16904 fi
16905 fi
16906
16907 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16908 then
16909
16910
16911 if $TRUEPRG; then
16912   HAVE_FREEBSD_OS_TRUE=
16913   HAVE_FREEBSD_OS_FALSE='#'
16914 else
16915   HAVE_FREEBSD_OS_TRUE='#'
16916   HAVE_FREEBSD_OS_FALSE=
16917 fi
16918         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16919
16920 else
16921
16922
16923 if $FALSEPRG; then
16924   HAVE_FREEBSD_OS_TRUE=
16925   HAVE_FREEBSD_OS_FALSE='#'
16926 else
16927   HAVE_FREEBSD_OS_TRUE='#'
16928   HAVE_FREEBSD_OS_FALSE=
16929 fi
16930 fi
16931
16932 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16933 then
16934
16935
16936 if $TRUEPRG; then
16937   HAVE_NETBSD_OS_TRUE=
16938   HAVE_NETBSD_OS_FALSE='#'
16939 else
16940   HAVE_NETBSD_OS_TRUE='#'
16941   HAVE_NETBSD_OS_FALSE=
16942 fi
16943         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16944
16945 else
16946
16947
16948 if $FALSEPRG; then
16949   HAVE_NETBSD_OS_TRUE=
16950   HAVE_NETBSD_OS_FALSE='#'
16951 else
16952   HAVE_NETBSD_OS_TRUE='#'
16953   HAVE_NETBSD_OS_FALSE=
16954 fi
16955 fi
16956
16957 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16958 then
16959
16960
16961 if $TRUEPRG; then
16962   HAVE_OPENBSD_OS_TRUE=
16963   HAVE_OPENBSD_OS_FALSE='#'
16964 else
16965   HAVE_OPENBSD_OS_TRUE='#'
16966   HAVE_OPENBSD_OS_FALSE=
16967 fi
16968         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16969
16970 else
16971
16972
16973 if $FALSEPRG; then
16974   HAVE_OPENBSD_OS_TRUE=
16975   HAVE_OPENBSD_OS_FALSE='#'
16976 else
16977   HAVE_OPENBSD_OS_TRUE='#'
16978   HAVE_OPENBSD_OS_FALSE=
16979 fi
16980 fi
16981
16982 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16983 then
16984
16985
16986 if $TRUEPRG; then
16987   HAVE_BSDI_OS_TRUE=
16988   HAVE_BSDI_OS_FALSE='#'
16989 else
16990   HAVE_BSDI_OS_TRUE='#'
16991   HAVE_BSDI_OS_FALSE=
16992 fi
16993         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16994
16995 else
16996
16997
16998 if $FALSEPRG; then
16999   HAVE_BSDI_OS_TRUE=
17000   HAVE_BSDI_OS_FALSE='#'
17001 else
17002   HAVE_BSDI_OS_TRUE='#'
17003   HAVE_BSDI_OS_FALSE=
17004 fi
17005 fi
17006
17007 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17008 then
17009
17010
17011 if $TRUEPRG; then
17012   HAVE_SGI_OS_TRUE=
17013   HAVE_SGI_OS_FALSE='#'
17014 else
17015   HAVE_SGI_OS_TRUE='#'
17016   HAVE_SGI_OS_FALSE=
17017 fi
17018         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17019
17020 else
17021
17022
17023 if $FALSEPRG; then
17024   HAVE_SGI_OS_TRUE=
17025   HAVE_SGI_OS_FALSE='#'
17026 else
17027   HAVE_SGI_OS_TRUE='#'
17028   HAVE_SGI_OS_FALSE=
17029 fi
17030 fi
17031
17032 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17033 then
17034
17035
17036 if $TRUEPRG; then
17037   HAVE_IRIX_OS_TRUE=
17038   HAVE_IRIX_OS_FALSE='#'
17039 else
17040   HAVE_IRIX_OS_TRUE='#'
17041   HAVE_IRIX_OS_FALSE=
17042 fi
17043         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17044
17045 else
17046
17047
17048 if $FALSEPRG; then
17049   HAVE_IRIX_OS_TRUE=
17050   HAVE_IRIX_OS_FALSE='#'
17051 else
17052   HAVE_IRIX_OS_TRUE='#'
17053   HAVE_IRIX_OS_FALSE=
17054 fi
17055 fi
17056
17057 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17058 then
17059
17060
17061 if $TRUEPRG; then
17062   HAVE_DARWIN_OS_TRUE=
17063   HAVE_DARWIN_OS_FALSE='#'
17064 else
17065   HAVE_DARWIN_OS_TRUE='#'
17066   HAVE_DARWIN_OS_FALSE=
17067 fi
17068     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17069
17070 else
17071
17072
17073 if $FALSEPRG; then
17074   HAVE_DARWIN_OS_TRUE=
17075   HAVE_DARWIN_OS_FALSE='#'
17076 else
17077   HAVE_DARWIN_OS_TRUE='#'
17078   HAVE_DARWIN_OS_FALSE=
17079 fi
17080 fi
17081
17082 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17083 then
17084
17085
17086 if $TRUEPRG; then
17087   HAVE_KFREEBSD_OS_TRUE=
17088   HAVE_KFREEBSD_OS_FALSE='#'
17089 else
17090   HAVE_KFREEBSD_OS_TRUE='#'
17091   HAVE_KFREEBSD_OS_FALSE=
17092 fi
17093     $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17094
17095 else
17096
17097
17098 if $FALSEPRG; then
17099   HAVE_KFREEBSD_OS_TRUE=
17100   HAVE_KFREEBSD_OS_FALSE='#'
17101 else
17102   HAVE_KFREEBSD_OS_TRUE='#'
17103   HAVE_KFREEBSD_OS_FALSE=
17104 fi
17105 fi
17106
17107
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17109 $as_echo_n "checking for Operating System Distribution... " >&6; }
17110 if test "x$DISTNAME" != "x"
17111 then
17112         echo "distname set to $DISTNAME"
17113 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17114 then
17115         DISTNAME=alpha
17116 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17117 then
17118         DISTNAME=aix
17119 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17120 then
17121         DISTNAME=hpux
17122 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17123 then
17124         DISTNAME=solaris
17125 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17126 then
17127         DISTNAME=hurd
17128 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17129 then
17130         DISTNAME=freebsd
17131 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17132 then
17133         DISTNAME=netbsd
17134 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17135 then
17136         DISTNAME=openbsd
17137 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17138 then
17139         DISTNAME=irix
17140 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17141 then
17142         DISTNAME=bsdi
17143 elif test -f /etc/SuSE-release
17144 then
17145         DISTNAME=suse
17146 elif test -d /etc/SuSEconfig
17147 then
17148         DISTNAME=suse5
17149 elif test -f /etc/mandrake-release
17150 then
17151         DISTNAME=mandrake
17152 elif test -f /etc/whitebox-release
17153 then
17154        DISTNAME=redhat
17155 elif test -f /etc/redhat-release
17156 then
17157         DISTNAME=redhat
17158 elif test -f /etc/gentoo-release
17159 then
17160         DISTNAME=gentoo
17161 elif test -f /etc/debian_version
17162 then
17163         DISTNAME=debian
17164 elif test -f /etc/slackware-version
17165 then
17166         DISTNAME=slackware
17167 elif test x$host_vendor = xapple
17168 then
17169     DISTNAME=osx
17170 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17171 then
17172     DISTNAME=darwin
17173 elif test -f /etc/engarde-version
17174 then
17175         DISTNAME=engarde
17176 elif test -f /etc/arch-release
17177 then
17178         DISTNAME=archlinux
17179 elif test "$CYGWIN" = yes
17180 then
17181         DISTNAME=cygwin
17182         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17183
17184 else
17185         DISTNAME=unknown
17186 fi
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17188 $as_echo "done" >&6; }
17189
17190
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17192 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17193 set x ${MAKE-make}
17194 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17195 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17196   $as_echo_n "(cached) " >&6
17197 else
17198   cat >conftest.make <<\_ACEOF
17199 SHELL = /bin/sh
17200 all:
17201         @echo '@@@%%%=$(MAKE)=@@@%%%'
17202 _ACEOF
17203 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17204 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17205   *@@@%%%=?*=@@@%%%*)
17206     eval ac_cv_prog_make_${ac_make}_set=yes;;
17207   *)
17208     eval ac_cv_prog_make_${ac_make}_set=no;;
17209 esac
17210 rm -f conftest.make
17211 fi
17212 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17214 $as_echo "yes" >&6; }
17215   SET_MAKE=
17216 else
17217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17218 $as_echo "no" >&6; }
17219   SET_MAKE="MAKE=${MAKE-make}"
17220 fi
17221
17222
17223
17224         MKINSTALLDIRS=
17225   if test -n "$ac_aux_dir"; then
17226     case "$ac_aux_dir" in
17227       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17228       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17229     esac
17230   fi
17231   if test -z "$MKINSTALLDIRS"; then
17232     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17233   fi
17234
17235
17236
17237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17238 $as_echo_n "checking whether NLS is requested... " >&6; }
17239     # Check whether --enable-nls was given.
17240 if test "${enable_nls+set}" = set; then :
17241   enableval=$enable_nls; USE_NLS=$enableval
17242 else
17243   USE_NLS=yes
17244 fi
17245
17246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17247 $as_echo "$USE_NLS" >&6; }
17248
17249
17250
17251
17252
17253
17254 # Prepare PATH_SEPARATOR.
17255 # The user is always right.
17256 if test "${PATH_SEPARATOR+set}" != set; then
17257   echo "#! /bin/sh" >conf$$.sh
17258   echo  "exit 0"   >>conf$$.sh
17259   chmod +x conf$$.sh
17260   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17261     PATH_SEPARATOR=';'
17262   else
17263     PATH_SEPARATOR=:
17264   fi
17265   rm -f conf$$.sh
17266 fi
17267
17268 # Find out how to test for executable files. Don't use a zero-byte file,
17269 # as systems may use methods other than mode bits to determine executability.
17270 cat >conf$$.file <<_ASEOF
17271 #! /bin/sh
17272 exit 0
17273 _ASEOF
17274 chmod +x conf$$.file
17275 if test -x conf$$.file >/dev/null 2>&1; then
17276   ac_executable_p="test -x"
17277 else
17278   ac_executable_p="test -f"
17279 fi
17280 rm -f conf$$.file
17281
17282 # Extract the first word of "msgfmt", so it can be a program name with args.
17283 set dummy msgfmt; ac_word=$2
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17285 $as_echo_n "checking for $ac_word... " >&6; }
17286 if ${ac_cv_path_MSGFMT+:} false; then :
17287   $as_echo_n "(cached) " >&6
17288 else
17289   case "$MSGFMT" in
17290   [\\/]* | ?:[\\/]*)
17291     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17292     ;;
17293   *)
17294     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17295     for ac_dir in $PATH; do
17296       IFS="$ac_save_IFS"
17297       test -z "$ac_dir" && ac_dir=.
17298       for ac_exec_ext in '' $ac_executable_extensions; do
17299         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17300           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17301           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17302      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17303             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17304             break 2
17305           fi
17306         fi
17307       done
17308     done
17309     IFS="$ac_save_IFS"
17310   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17311     ;;
17312 esac
17313 fi
17314 MSGFMT="$ac_cv_path_MSGFMT"
17315 if test "$MSGFMT" != ":"; then
17316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17317 $as_echo "$MSGFMT" >&6; }
17318 else
17319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17320 $as_echo "no" >&6; }
17321 fi
17322
17323   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17324 set dummy gmsgfmt; ac_word=$2
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17326 $as_echo_n "checking for $ac_word... " >&6; }
17327 if ${ac_cv_path_GMSGFMT+:} false; then :
17328   $as_echo_n "(cached) " >&6
17329 else
17330   case $GMSGFMT in
17331   [\\/]* | ?:[\\/]*)
17332   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17333   ;;
17334   *)
17335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17336 for as_dir in $PATH
17337 do
17338   IFS=$as_save_IFS
17339   test -z "$as_dir" && as_dir=.
17340     for ac_exec_ext in '' $ac_executable_extensions; do
17341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17342     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17344     break 2
17345   fi
17346 done
17347   done
17348 IFS=$as_save_IFS
17349
17350   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17351   ;;
17352 esac
17353 fi
17354 GMSGFMT=$ac_cv_path_GMSGFMT
17355 if test -n "$GMSGFMT"; then
17356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17357 $as_echo "$GMSGFMT" >&6; }
17358 else
17359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360 $as_echo "no" >&6; }
17361 fi
17362
17363
17364
17365
17366 # Prepare PATH_SEPARATOR.
17367 # The user is always right.
17368 if test "${PATH_SEPARATOR+set}" != set; then
17369   echo "#! /bin/sh" >conf$$.sh
17370   echo  "exit 0"   >>conf$$.sh
17371   chmod +x conf$$.sh
17372   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17373     PATH_SEPARATOR=';'
17374   else
17375     PATH_SEPARATOR=:
17376   fi
17377   rm -f conf$$.sh
17378 fi
17379
17380 # Find out how to test for executable files. Don't use a zero-byte file,
17381 # as systems may use methods other than mode bits to determine executability.
17382 cat >conf$$.file <<_ASEOF
17383 #! /bin/sh
17384 exit 0
17385 _ASEOF
17386 chmod +x conf$$.file
17387 if test -x conf$$.file >/dev/null 2>&1; then
17388   ac_executable_p="test -x"
17389 else
17390   ac_executable_p="test -f"
17391 fi
17392 rm -f conf$$.file
17393
17394 # Extract the first word of "xgettext", so it can be a program name with args.
17395 set dummy xgettext; ac_word=$2
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17397 $as_echo_n "checking for $ac_word... " >&6; }
17398 if ${ac_cv_path_XGETTEXT+:} false; then :
17399   $as_echo_n "(cached) " >&6
17400 else
17401   case "$XGETTEXT" in
17402   [\\/]* | ?:[\\/]*)
17403     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17404     ;;
17405   *)
17406     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17407     for ac_dir in $PATH; do
17408       IFS="$ac_save_IFS"
17409       test -z "$ac_dir" && ac_dir=.
17410       for ac_exec_ext in '' $ac_executable_extensions; do
17411         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17412           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17413           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17414      (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
17415             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17416             break 2
17417           fi
17418         fi
17419       done
17420     done
17421     IFS="$ac_save_IFS"
17422   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17423     ;;
17424 esac
17425 fi
17426 XGETTEXT="$ac_cv_path_XGETTEXT"
17427 if test "$XGETTEXT" != ":"; then
17428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17429 $as_echo "$XGETTEXT" >&6; }
17430 else
17431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17432 $as_echo "no" >&6; }
17433 fi
17434
17435     rm -f messages.po
17436
17437
17438 # Prepare PATH_SEPARATOR.
17439 # The user is always right.
17440 if test "${PATH_SEPARATOR+set}" != set; then
17441   echo "#! /bin/sh" >conf$$.sh
17442   echo  "exit 0"   >>conf$$.sh
17443   chmod +x conf$$.sh
17444   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17445     PATH_SEPARATOR=';'
17446   else
17447     PATH_SEPARATOR=:
17448   fi
17449   rm -f conf$$.sh
17450 fi
17451
17452 # Find out how to test for executable files. Don't use a zero-byte file,
17453 # as systems may use methods other than mode bits to determine executability.
17454 cat >conf$$.file <<_ASEOF
17455 #! /bin/sh
17456 exit 0
17457 _ASEOF
17458 chmod +x conf$$.file
17459 if test -x conf$$.file >/dev/null 2>&1; then
17460   ac_executable_p="test -x"
17461 else
17462   ac_executable_p="test -f"
17463 fi
17464 rm -f conf$$.file
17465
17466 # Extract the first word of "msgmerge", so it can be a program name with args.
17467 set dummy msgmerge; ac_word=$2
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17469 $as_echo_n "checking for $ac_word... " >&6; }
17470 if ${ac_cv_path_MSGMERGE+:} false; then :
17471   $as_echo_n "(cached) " >&6
17472 else
17473   case "$MSGMERGE" in
17474   [\\/]* | ?:[\\/]*)
17475     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17476     ;;
17477   *)
17478     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17479     for ac_dir in $PATH; do
17480       IFS="$ac_save_IFS"
17481       test -z "$ac_dir" && ac_dir=.
17482       for ac_exec_ext in '' $ac_executable_extensions; do
17483         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17484           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17485           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17486             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17487             break 2
17488           fi
17489         fi
17490       done
17491     done
17492     IFS="$ac_save_IFS"
17493   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17494     ;;
17495 esac
17496 fi
17497 MSGMERGE="$ac_cv_path_MSGMERGE"
17498 if test "$MSGMERGE" != ":"; then
17499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17500 $as_echo "$MSGMERGE" >&6; }
17501 else
17502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17504 fi
17505
17506
17507       if test "$GMSGFMT" != ":"; then
17508             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17509        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17510       : ;
17511     else
17512       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17513       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17514 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17515       GMSGFMT=":"
17516     fi
17517   fi
17518
17519       if test "$XGETTEXT" != ":"; then
17520             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17521        (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
17522       : ;
17523     else
17524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17525 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17526       XGETTEXT=":"
17527     fi
17528         rm -f messages.po
17529   fi
17530
17531   ac_config_commands="$ac_config_commands default-1"
17532
17533
17534
17535       if test "X$prefix" = "XNONE"; then
17536     acl_final_prefix="$ac_default_prefix"
17537   else
17538     acl_final_prefix="$prefix"
17539   fi
17540   if test "X$exec_prefix" = "XNONE"; then
17541     acl_final_exec_prefix='${prefix}'
17542   else
17543     acl_final_exec_prefix="$exec_prefix"
17544   fi
17545   acl_save_prefix="$prefix"
17546   prefix="$acl_final_prefix"
17547   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17548   prefix="$acl_save_prefix"
17549
17550
17551 # Check whether --with-gnu-ld was given.
17552 if test "${with_gnu_ld+set}" = set; then :
17553   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17554 else
17555   with_gnu_ld=no
17556 fi
17557
17558 # Prepare PATH_SEPARATOR.
17559 # The user is always right.
17560 if test "${PATH_SEPARATOR+set}" != set; then
17561   echo "#! /bin/sh" >conf$$.sh
17562   echo  "exit 0"   >>conf$$.sh
17563   chmod +x conf$$.sh
17564   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17565     PATH_SEPARATOR=';'
17566   else
17567     PATH_SEPARATOR=:
17568   fi
17569   rm -f conf$$.sh
17570 fi
17571 ac_prog=ld
17572 if test "$GCC" = yes; then
17573   # Check if gcc -print-prog-name=ld gives a path.
17574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17575 $as_echo_n "checking for ld used by GCC... " >&6; }
17576   case $host in
17577   *-*-mingw*)
17578     # gcc leaves a trailing carriage return which upsets mingw
17579     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17580   *)
17581     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17582   esac
17583   case $ac_prog in
17584     # Accept absolute paths.
17585     [\\/]* | [A-Za-z]:[\\/]*)
17586       re_direlt='/[^/][^/]*/\.\./'
17587       # Canonicalize the path of ld
17588       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17589       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17590         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17591       done
17592       test -z "$LD" && LD="$ac_prog"
17593       ;;
17594   "")
17595     # If it fails, then pretend we aren't using GCC.
17596     ac_prog=ld
17597     ;;
17598   *)
17599     # If it is relative, then search for the first ld in PATH.
17600     with_gnu_ld=unknown
17601     ;;
17602   esac
17603 elif test "$with_gnu_ld" = yes; then
17604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17605 $as_echo_n "checking for GNU ld... " >&6; }
17606 else
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17608 $as_echo_n "checking for non-GNU ld... " >&6; }
17609 fi
17610 if ${acl_cv_path_LD+:} false; then :
17611   $as_echo_n "(cached) " >&6
17612 else
17613   if test -z "$LD"; then
17614   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17615   for ac_dir in $PATH; do
17616     test -z "$ac_dir" && ac_dir=.
17617     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17618       acl_cv_path_LD="$ac_dir/$ac_prog"
17619       # Check to see if the program is GNU ld.  I'd rather use --version,
17620       # but apparently some GNU ld's only accept -v.
17621       # Break only if it was the GNU/non-GNU ld that we prefer.
17622       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17623       *GNU* | *'with BFD'*)
17624         test "$with_gnu_ld" != no && break ;;
17625       *)
17626         test "$with_gnu_ld" != yes && break ;;
17627       esac
17628     fi
17629   done
17630   IFS="$ac_save_ifs"
17631 else
17632   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17633 fi
17634 fi
17635
17636 LD="$acl_cv_path_LD"
17637 if test -n "$LD"; then
17638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17639 $as_echo "$LD" >&6; }
17640 else
17641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17642 $as_echo "no" >&6; }
17643 fi
17644 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17647 if ${acl_cv_prog_gnu_ld+:} false; then :
17648   $as_echo_n "(cached) " >&6
17649 else
17650   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17651 case `$LD -v 2>&1 </dev/null` in
17652 *GNU* | *'with BFD'*)
17653   acl_cv_prog_gnu_ld=yes ;;
17654 *)
17655   acl_cv_prog_gnu_ld=no ;;
17656 esac
17657 fi
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17659 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17660 with_gnu_ld=$acl_cv_prog_gnu_ld
17661
17662
17663
17664
17665                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17666 $as_echo_n "checking for shared library run path origin... " >&6; }
17667 if ${acl_cv_rpath+:} false; then :
17668   $as_echo_n "(cached) " >&6
17669 else
17670
17671     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17672     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17673     . ./conftest.sh
17674     rm -f ./conftest.sh
17675     acl_cv_rpath=done
17676
17677 fi
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17679 $as_echo "$acl_cv_rpath" >&6; }
17680   wl="$acl_cv_wl"
17681   libext="$acl_cv_libext"
17682   shlibext="$acl_cv_shlibext"
17683   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17684   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17685   hardcode_direct="$acl_cv_hardcode_direct"
17686   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17687     # Check whether --enable-rpath was given.
17688 if test "${enable_rpath+set}" = set; then :
17689   enableval=$enable_rpath; :
17690 else
17691   enable_rpath=yes
17692 fi
17693
17694
17695
17696
17697
17698
17699
17700
17701     use_additional=yes
17702
17703   acl_save_prefix="$prefix"
17704   prefix="$acl_final_prefix"
17705   acl_save_exec_prefix="$exec_prefix"
17706   exec_prefix="$acl_final_exec_prefix"
17707
17708     eval additional_includedir=\"$includedir\"
17709     eval additional_libdir=\"$libdir\"
17710
17711   exec_prefix="$acl_save_exec_prefix"
17712   prefix="$acl_save_prefix"
17713
17714
17715 # Check whether --with-libiconv-prefix was given.
17716 if test "${with_libiconv_prefix+set}" = set; then :
17717   withval=$with_libiconv_prefix;
17718     if test "X$withval" = "Xno"; then
17719       use_additional=no
17720     else
17721       if test "X$withval" = "X"; then
17722
17723   acl_save_prefix="$prefix"
17724   prefix="$acl_final_prefix"
17725   acl_save_exec_prefix="$exec_prefix"
17726   exec_prefix="$acl_final_exec_prefix"
17727
17728           eval additional_includedir=\"$includedir\"
17729           eval additional_libdir=\"$libdir\"
17730
17731   exec_prefix="$acl_save_exec_prefix"
17732   prefix="$acl_save_prefix"
17733
17734       else
17735         additional_includedir="$withval/include"
17736         additional_libdir="$withval/lib"
17737       fi
17738     fi
17739
17740 fi
17741
17742       LIBICONV=
17743   LTLIBICONV=
17744   INCICONV=
17745   rpathdirs=
17746   ltrpathdirs=
17747   names_already_handled=
17748   names_next_round='iconv '
17749   while test -n "$names_next_round"; do
17750     names_this_round="$names_next_round"
17751     names_next_round=
17752     for name in $names_this_round; do
17753       already_handled=
17754       for n in $names_already_handled; do
17755         if test "$n" = "$name"; then
17756           already_handled=yes
17757           break
17758         fi
17759       done
17760       if test -z "$already_handled"; then
17761         names_already_handled="$names_already_handled $name"
17762                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17763         eval value=\"\$HAVE_LIB$uppername\"
17764         if test -n "$value"; then
17765           if test "$value" = yes; then
17766             eval value=\"\$LIB$uppername\"
17767             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17768             eval value=\"\$LTLIB$uppername\"
17769             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17770           else
17771                                     :
17772           fi
17773         else
17774                               found_dir=
17775           found_la=
17776           found_so=
17777           found_a=
17778           if test $use_additional = yes; then
17779             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17780               found_dir="$additional_libdir"
17781               found_so="$additional_libdir/lib$name.$shlibext"
17782               if test -f "$additional_libdir/lib$name.la"; then
17783                 found_la="$additional_libdir/lib$name.la"
17784               fi
17785             else
17786               if test -f "$additional_libdir/lib$name.$libext"; then
17787                 found_dir="$additional_libdir"
17788                 found_a="$additional_libdir/lib$name.$libext"
17789                 if test -f "$additional_libdir/lib$name.la"; then
17790                   found_la="$additional_libdir/lib$name.la"
17791                 fi
17792               fi
17793             fi
17794           fi
17795           if test "X$found_dir" = "X"; then
17796             for x in $LDFLAGS $LTLIBICONV; do
17797
17798   acl_save_prefix="$prefix"
17799   prefix="$acl_final_prefix"
17800   acl_save_exec_prefix="$exec_prefix"
17801   exec_prefix="$acl_final_exec_prefix"
17802   eval x=\"$x\"
17803   exec_prefix="$acl_save_exec_prefix"
17804   prefix="$acl_save_prefix"
17805
17806               case "$x" in
17807                 -L*)
17808                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17809                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17810                     found_dir="$dir"
17811                     found_so="$dir/lib$name.$shlibext"
17812                     if test -f "$dir/lib$name.la"; then
17813                       found_la="$dir/lib$name.la"
17814                     fi
17815                   else
17816                     if test -f "$dir/lib$name.$libext"; then
17817                       found_dir="$dir"
17818                       found_a="$dir/lib$name.$libext"
17819                       if test -f "$dir/lib$name.la"; then
17820                         found_la="$dir/lib$name.la"
17821                       fi
17822                     fi
17823                   fi
17824                   ;;
17825               esac
17826               if test "X$found_dir" != "X"; then
17827                 break
17828               fi
17829             done
17830           fi
17831           if test "X$found_dir" != "X"; then
17832                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17833             if test "X$found_so" != "X"; then
17834                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17835                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17836               else
17837                                                                                 haveit=
17838                 for x in $ltrpathdirs; do
17839                   if test "X$x" = "X$found_dir"; then
17840                     haveit=yes
17841                     break
17842                   fi
17843                 done
17844                 if test -z "$haveit"; then
17845                   ltrpathdirs="$ltrpathdirs $found_dir"
17846                 fi
17847                                 if test "$hardcode_direct" = yes; then
17848                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17849                 else
17850                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17851                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17852                                                             haveit=
17853                     for x in $rpathdirs; do
17854                       if test "X$x" = "X$found_dir"; then
17855                         haveit=yes
17856                         break
17857                       fi
17858                     done
17859                     if test -z "$haveit"; then
17860                       rpathdirs="$rpathdirs $found_dir"
17861                     fi
17862                   else
17863                                                                                 haveit=
17864                     for x in $LDFLAGS $LIBICONV; do
17865
17866   acl_save_prefix="$prefix"
17867   prefix="$acl_final_prefix"
17868   acl_save_exec_prefix="$exec_prefix"
17869   exec_prefix="$acl_final_exec_prefix"
17870   eval x=\"$x\"
17871   exec_prefix="$acl_save_exec_prefix"
17872   prefix="$acl_save_prefix"
17873
17874                       if test "X$x" = "X-L$found_dir"; then
17875                         haveit=yes
17876                         break
17877                       fi
17878                     done
17879                     if test -z "$haveit"; then
17880                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17881                     fi
17882                     if test "$hardcode_minus_L" != no; then
17883                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17884                     else
17885                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17886                     fi
17887                   fi
17888                 fi
17889               fi
17890             else
17891               if test "X$found_a" != "X"; then
17892                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17893               else
17894                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17895               fi
17896             fi
17897                         additional_includedir=
17898             case "$found_dir" in
17899               */lib | */lib/)
17900                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17901                 additional_includedir="$basedir/include"
17902                 ;;
17903             esac
17904             if test "X$additional_includedir" != "X"; then
17905                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17906                 haveit=
17907                 if test "X$additional_includedir" = "X/usr/local/include"; then
17908                   if test -n "$GCC"; then
17909                     case $host_os in
17910                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17911                     esac
17912                   fi
17913                 fi
17914                 if test -z "$haveit"; then
17915                   for x in $CPPFLAGS $INCICONV; do
17916
17917   acl_save_prefix="$prefix"
17918   prefix="$acl_final_prefix"
17919   acl_save_exec_prefix="$exec_prefix"
17920   exec_prefix="$acl_final_exec_prefix"
17921   eval x=\"$x\"
17922   exec_prefix="$acl_save_exec_prefix"
17923   prefix="$acl_save_prefix"
17924
17925                     if test "X$x" = "X-I$additional_includedir"; then
17926                       haveit=yes
17927                       break
17928                     fi
17929                   done
17930                   if test -z "$haveit"; then
17931                     if test -d "$additional_includedir"; then
17932                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17933                     fi
17934                   fi
17935                 fi
17936               fi
17937             fi
17938                         if test -n "$found_la"; then
17939                                                         save_libdir="$libdir"
17940               case "$found_la" in
17941                 */* | *\\*) . "$found_la" ;;
17942                 *) . "./$found_la" ;;
17943               esac
17944               libdir="$save_libdir"
17945                             for dep in $dependency_libs; do
17946                 case "$dep" in
17947                   -L*)
17948                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17949                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17950                       haveit=
17951                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17952                         if test -n "$GCC"; then
17953                           case $host_os in
17954                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17955                           esac
17956                         fi
17957                       fi
17958                       if test -z "$haveit"; then
17959                         haveit=
17960                         for x in $LDFLAGS $LIBICONV; do
17961
17962   acl_save_prefix="$prefix"
17963   prefix="$acl_final_prefix"
17964   acl_save_exec_prefix="$exec_prefix"
17965   exec_prefix="$acl_final_exec_prefix"
17966   eval x=\"$x\"
17967   exec_prefix="$acl_save_exec_prefix"
17968   prefix="$acl_save_prefix"
17969
17970                           if test "X$x" = "X-L$additional_libdir"; then
17971                             haveit=yes
17972                             break
17973                           fi
17974                         done
17975                         if test -z "$haveit"; then
17976                           if test -d "$additional_libdir"; then
17977                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17978                           fi
17979                         fi
17980                         haveit=
17981                         for x in $LDFLAGS $LTLIBICONV; do
17982
17983   acl_save_prefix="$prefix"
17984   prefix="$acl_final_prefix"
17985   acl_save_exec_prefix="$exec_prefix"
17986   exec_prefix="$acl_final_exec_prefix"
17987   eval x=\"$x\"
17988   exec_prefix="$acl_save_exec_prefix"
17989   prefix="$acl_save_prefix"
17990
17991                           if test "X$x" = "X-L$additional_libdir"; then
17992                             haveit=yes
17993                             break
17994                           fi
17995                         done
17996                         if test -z "$haveit"; then
17997                           if test -d "$additional_libdir"; then
17998                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17999                           fi
18000                         fi
18001                       fi
18002                     fi
18003                     ;;
18004                   -R*)
18005                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18006                     if test "$enable_rpath" != no; then
18007                                                                   haveit=
18008                       for x in $rpathdirs; do
18009                         if test "X$x" = "X$dir"; then
18010                           haveit=yes
18011                           break
18012                         fi
18013                       done
18014                       if test -z "$haveit"; then
18015                         rpathdirs="$rpathdirs $dir"
18016                       fi
18017                                                                   haveit=
18018                       for x in $ltrpathdirs; do
18019                         if test "X$x" = "X$dir"; then
18020                           haveit=yes
18021                           break
18022                         fi
18023                       done
18024                       if test -z "$haveit"; then
18025                         ltrpathdirs="$ltrpathdirs $dir"
18026                       fi
18027                     fi
18028                     ;;
18029                   -l*)
18030                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18031                     ;;
18032                   *.la)
18033                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18034                     ;;
18035                   *)
18036                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18037                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18038                     ;;
18039                 esac
18040               done
18041             fi
18042           else
18043                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18044             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18045           fi
18046         fi
18047       fi
18048     done
18049   done
18050   if test "X$rpathdirs" != "X"; then
18051     if test -n "$hardcode_libdir_separator"; then
18052                         alldirs=
18053       for found_dir in $rpathdirs; do
18054         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18055       done
18056             acl_save_libdir="$libdir"
18057       libdir="$alldirs"
18058       eval flag=\"$hardcode_libdir_flag_spec\"
18059       libdir="$acl_save_libdir"
18060       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18061     else
18062             for found_dir in $rpathdirs; do
18063         acl_save_libdir="$libdir"
18064         libdir="$found_dir"
18065         eval flag=\"$hardcode_libdir_flag_spec\"
18066         libdir="$acl_save_libdir"
18067         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18068       done
18069     fi
18070   fi
18071   if test "X$ltrpathdirs" != "X"; then
18072             for found_dir in $ltrpathdirs; do
18073       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18074     done
18075   fi
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18095 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18096 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18097   $as_echo_n "(cached) " >&6
18098 else
18099   gt_save_CPPFLAGS="$CPPFLAGS"
18100      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18101      gt_save_LIBS="$LIBS"
18102      LIBS="$LIBS -framework CoreFoundation"
18103      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h.  */
18105 #include <CFPreferences.h>
18106 int
18107 main ()
18108 {
18109 CFPreferencesCopyAppValue(NULL, NULL)
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 if ac_fn_c_try_link "$LINENO"; then :
18115   gt_cv_func_CFPreferencesCopyAppValue=yes
18116 else
18117   gt_cv_func_CFPreferencesCopyAppValue=no
18118 fi
18119 rm -f core conftest.err conftest.$ac_objext \
18120     conftest$ac_exeext conftest.$ac_ext
18121      CPPFLAGS="$gt_save_CPPFLAGS"
18122      LIBS="$gt_save_LIBS"
18123 fi
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18125 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18126   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18127
18128 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18129
18130   fi
18131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18132 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18133 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18134   $as_echo_n "(cached) " >&6
18135 else
18136   gt_save_CPPFLAGS="$CPPFLAGS"
18137      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18138      gt_save_LIBS="$LIBS"
18139      LIBS="$LIBS -framework CoreFoundation"
18140      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h.  */
18142 #include <CFLocale.h>
18143 int
18144 main ()
18145 {
18146 CFLocaleCopyCurrent();
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 if ac_fn_c_try_link "$LINENO"; then :
18152   gt_cv_func_CFLocaleCopyCurrent=yes
18153 else
18154   gt_cv_func_CFLocaleCopyCurrent=no
18155 fi
18156 rm -f core conftest.err conftest.$ac_objext \
18157     conftest$ac_exeext conftest.$ac_ext
18158      CPPFLAGS="$gt_save_CPPFLAGS"
18159      LIBS="$gt_save_LIBS"
18160 fi
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18162 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18163   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18164
18165 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18166
18167   fi
18168   INTL_MACOSX_LIBS=
18169   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18170     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18171   fi
18172
18173
18174
18175
18176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18177 $as_echo_n "checking whether NLS is requested... " >&6; }
18178     # Check whether --enable-nls was given.
18179 if test "${enable_nls+set}" = set; then :
18180   enableval=$enable_nls; USE_NLS=$enableval
18181 else
18182   USE_NLS=yes
18183 fi
18184
18185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18186 $as_echo "$USE_NLS" >&6; }
18187
18188
18189
18190
18191   LIBINTL=
18192   LTLIBINTL=
18193   POSUB=
18194
18195     if test "$USE_NLS" = "yes"; then
18196     gt_use_preinstalled_gnugettext=no
18197
18198
18199
18200
18201
18202
18203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18204 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18205 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18206   $as_echo_n "(cached) " >&6
18207 else
18208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h.  */
18210 #include <libintl.h>
18211 extern int _nl_msg_cat_cntr;
18212 extern int *_nl_domain_bindings;
18213 int
18214 main ()
18215 {
18216 bindtextdomain ("", "");
18217 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 if ac_fn_c_try_link "$LINENO"; then :
18223   gt_cv_func_gnugettext1_libc=yes
18224 else
18225   gt_cv_func_gnugettext1_libc=no
18226 fi
18227 rm -f core conftest.err conftest.$ac_objext \
18228     conftest$ac_exeext conftest.$ac_ext
18229 fi
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18231 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18232
18233         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18234
18235
18236
18237
18238
18239           am_save_CPPFLAGS="$CPPFLAGS"
18240
18241   for element in $INCICONV; do
18242     haveit=
18243     for x in $CPPFLAGS; do
18244
18245   acl_save_prefix="$prefix"
18246   prefix="$acl_final_prefix"
18247   acl_save_exec_prefix="$exec_prefix"
18248   exec_prefix="$acl_final_exec_prefix"
18249   eval x=\"$x\"
18250   exec_prefix="$acl_save_exec_prefix"
18251   prefix="$acl_save_prefix"
18252
18253       if test "X$x" = "X$element"; then
18254         haveit=yes
18255         break
18256       fi
18257     done
18258     if test -z "$haveit"; then
18259       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18260     fi
18261   done
18262
18263
18264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18265 $as_echo_n "checking for iconv... " >&6; }
18266 if ${am_cv_func_iconv+:} false; then :
18267   $as_echo_n "(cached) " >&6
18268 else
18269
18270     am_cv_func_iconv="no, consider installing GNU libiconv"
18271     am_cv_lib_iconv=no
18272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h.  */
18274 #include <stdlib.h>
18275 #include <iconv.h>
18276 int
18277 main ()
18278 {
18279 iconv_t cd = iconv_open("","");
18280        iconv(cd,NULL,NULL,NULL,NULL);
18281        iconv_close(cd);
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 if ac_fn_c_try_link "$LINENO"; then :
18287   am_cv_func_iconv=yes
18288 fi
18289 rm -f core conftest.err conftest.$ac_objext \
18290     conftest$ac_exeext conftest.$ac_ext
18291     if test "$am_cv_func_iconv" != yes; then
18292       am_save_LIBS="$LIBS"
18293       LIBS="$LIBS $LIBICONV"
18294       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h.  */
18296 #include <stdlib.h>
18297 #include <iconv.h>
18298 int
18299 main ()
18300 {
18301 iconv_t cd = iconv_open("","");
18302          iconv(cd,NULL,NULL,NULL,NULL);
18303          iconv_close(cd);
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 if ac_fn_c_try_link "$LINENO"; then :
18309   am_cv_lib_iconv=yes
18310         am_cv_func_iconv=yes
18311 fi
18312 rm -f core conftest.err conftest.$ac_objext \
18313     conftest$ac_exeext conftest.$ac_ext
18314       LIBS="$am_save_LIBS"
18315     fi
18316
18317 fi
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18319 $as_echo "$am_cv_func_iconv" >&6; }
18320   if test "$am_cv_func_iconv" = yes; then
18321
18322 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18323
18324   fi
18325   if test "$am_cv_lib_iconv" = yes; then
18326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18327 $as_echo_n "checking how to link with libiconv... " >&6; }
18328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18329 $as_echo "$LIBICONV" >&6; }
18330   else
18331             CPPFLAGS="$am_save_CPPFLAGS"
18332     LIBICONV=
18333     LTLIBICONV=
18334   fi
18335
18336
18337
18338
18339
18340
18341     use_additional=yes
18342
18343   acl_save_prefix="$prefix"
18344   prefix="$acl_final_prefix"
18345   acl_save_exec_prefix="$exec_prefix"
18346   exec_prefix="$acl_final_exec_prefix"
18347
18348     eval additional_includedir=\"$includedir\"
18349     eval additional_libdir=\"$libdir\"
18350
18351   exec_prefix="$acl_save_exec_prefix"
18352   prefix="$acl_save_prefix"
18353
18354
18355 # Check whether --with-libintl-prefix was given.
18356 if test "${with_libintl_prefix+set}" = set; then :
18357   withval=$with_libintl_prefix;
18358     if test "X$withval" = "Xno"; then
18359       use_additional=no
18360     else
18361       if test "X$withval" = "X"; then
18362
18363   acl_save_prefix="$prefix"
18364   prefix="$acl_final_prefix"
18365   acl_save_exec_prefix="$exec_prefix"
18366   exec_prefix="$acl_final_exec_prefix"
18367
18368           eval additional_includedir=\"$includedir\"
18369           eval additional_libdir=\"$libdir\"
18370
18371   exec_prefix="$acl_save_exec_prefix"
18372   prefix="$acl_save_prefix"
18373
18374       else
18375         additional_includedir="$withval/include"
18376         additional_libdir="$withval/lib"
18377       fi
18378     fi
18379
18380 fi
18381
18382       LIBINTL=
18383   LTLIBINTL=
18384   INCINTL=
18385   rpathdirs=
18386   ltrpathdirs=
18387   names_already_handled=
18388   names_next_round='intl '
18389   while test -n "$names_next_round"; do
18390     names_this_round="$names_next_round"
18391     names_next_round=
18392     for name in $names_this_round; do
18393       already_handled=
18394       for n in $names_already_handled; do
18395         if test "$n" = "$name"; then
18396           already_handled=yes
18397           break
18398         fi
18399       done
18400       if test -z "$already_handled"; then
18401         names_already_handled="$names_already_handled $name"
18402                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18403         eval value=\"\$HAVE_LIB$uppername\"
18404         if test -n "$value"; then
18405           if test "$value" = yes; then
18406             eval value=\"\$LIB$uppername\"
18407             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18408             eval value=\"\$LTLIB$uppername\"
18409             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18410           else
18411                                     :
18412           fi
18413         else
18414                               found_dir=
18415           found_la=
18416           found_so=
18417           found_a=
18418           if test $use_additional = yes; then
18419             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18420               found_dir="$additional_libdir"
18421               found_so="$additional_libdir/lib$name.$shlibext"
18422               if test -f "$additional_libdir/lib$name.la"; then
18423                 found_la="$additional_libdir/lib$name.la"
18424               fi
18425             else
18426               if test -f "$additional_libdir/lib$name.$libext"; then
18427                 found_dir="$additional_libdir"
18428                 found_a="$additional_libdir/lib$name.$libext"
18429                 if test -f "$additional_libdir/lib$name.la"; then
18430                   found_la="$additional_libdir/lib$name.la"
18431                 fi
18432               fi
18433             fi
18434           fi
18435           if test "X$found_dir" = "X"; then
18436             for x in $LDFLAGS $LTLIBINTL; do
18437
18438   acl_save_prefix="$prefix"
18439   prefix="$acl_final_prefix"
18440   acl_save_exec_prefix="$exec_prefix"
18441   exec_prefix="$acl_final_exec_prefix"
18442   eval x=\"$x\"
18443   exec_prefix="$acl_save_exec_prefix"
18444   prefix="$acl_save_prefix"
18445
18446               case "$x" in
18447                 -L*)
18448                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18449                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18450                     found_dir="$dir"
18451                     found_so="$dir/lib$name.$shlibext"
18452                     if test -f "$dir/lib$name.la"; then
18453                       found_la="$dir/lib$name.la"
18454                     fi
18455                   else
18456                     if test -f "$dir/lib$name.$libext"; then
18457                       found_dir="$dir"
18458                       found_a="$dir/lib$name.$libext"
18459                       if test -f "$dir/lib$name.la"; then
18460                         found_la="$dir/lib$name.la"
18461                       fi
18462                     fi
18463                   fi
18464                   ;;
18465               esac
18466               if test "X$found_dir" != "X"; then
18467                 break
18468               fi
18469             done
18470           fi
18471           if test "X$found_dir" != "X"; then
18472                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18473             if test "X$found_so" != "X"; then
18474                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18475                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18476               else
18477                                                                                 haveit=
18478                 for x in $ltrpathdirs; do
18479                   if test "X$x" = "X$found_dir"; then
18480                     haveit=yes
18481                     break
18482                   fi
18483                 done
18484                 if test -z "$haveit"; then
18485                   ltrpathdirs="$ltrpathdirs $found_dir"
18486                 fi
18487                                 if test "$hardcode_direct" = yes; then
18488                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18489                 else
18490                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18491                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18492                                                             haveit=
18493                     for x in $rpathdirs; do
18494                       if test "X$x" = "X$found_dir"; then
18495                         haveit=yes
18496                         break
18497                       fi
18498                     done
18499                     if test -z "$haveit"; then
18500                       rpathdirs="$rpathdirs $found_dir"
18501                     fi
18502                   else
18503                                                                                 haveit=
18504                     for x in $LDFLAGS $LIBINTL; do
18505
18506   acl_save_prefix="$prefix"
18507   prefix="$acl_final_prefix"
18508   acl_save_exec_prefix="$exec_prefix"
18509   exec_prefix="$acl_final_exec_prefix"
18510   eval x=\"$x\"
18511   exec_prefix="$acl_save_exec_prefix"
18512   prefix="$acl_save_prefix"
18513
18514                       if test "X$x" = "X-L$found_dir"; then
18515                         haveit=yes
18516                         break
18517                       fi
18518                     done
18519                     if test -z "$haveit"; then
18520                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18521                     fi
18522                     if test "$hardcode_minus_L" != no; then
18523                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18524                     else
18525                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18526                     fi
18527                   fi
18528                 fi
18529               fi
18530             else
18531               if test "X$found_a" != "X"; then
18532                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18533               else
18534                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18535               fi
18536             fi
18537                         additional_includedir=
18538             case "$found_dir" in
18539               */lib | */lib/)
18540                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18541                 additional_includedir="$basedir/include"
18542                 ;;
18543             esac
18544             if test "X$additional_includedir" != "X"; then
18545                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18546                 haveit=
18547                 if test "X$additional_includedir" = "X/usr/local/include"; then
18548                   if test -n "$GCC"; then
18549                     case $host_os in
18550                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18551                     esac
18552                   fi
18553                 fi
18554                 if test -z "$haveit"; then
18555                   for x in $CPPFLAGS $INCINTL; do
18556
18557   acl_save_prefix="$prefix"
18558   prefix="$acl_final_prefix"
18559   acl_save_exec_prefix="$exec_prefix"
18560   exec_prefix="$acl_final_exec_prefix"
18561   eval x=\"$x\"
18562   exec_prefix="$acl_save_exec_prefix"
18563   prefix="$acl_save_prefix"
18564
18565                     if test "X$x" = "X-I$additional_includedir"; then
18566                       haveit=yes
18567                       break
18568                     fi
18569                   done
18570                   if test -z "$haveit"; then
18571                     if test -d "$additional_includedir"; then
18572                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18573                     fi
18574                   fi
18575                 fi
18576               fi
18577             fi
18578                         if test -n "$found_la"; then
18579                                                         save_libdir="$libdir"
18580               case "$found_la" in
18581                 */* | *\\*) . "$found_la" ;;
18582                 *) . "./$found_la" ;;
18583               esac
18584               libdir="$save_libdir"
18585                             for dep in $dependency_libs; do
18586                 case "$dep" in
18587                   -L*)
18588                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18589                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18590                       haveit=
18591                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18592                         if test -n "$GCC"; then
18593                           case $host_os in
18594                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18595                           esac
18596                         fi
18597                       fi
18598                       if test -z "$haveit"; then
18599                         haveit=
18600                         for x in $LDFLAGS $LIBINTL; do
18601
18602   acl_save_prefix="$prefix"
18603   prefix="$acl_final_prefix"
18604   acl_save_exec_prefix="$exec_prefix"
18605   exec_prefix="$acl_final_exec_prefix"
18606   eval x=\"$x\"
18607   exec_prefix="$acl_save_exec_prefix"
18608   prefix="$acl_save_prefix"
18609
18610                           if test "X$x" = "X-L$additional_libdir"; then
18611                             haveit=yes
18612                             break
18613                           fi
18614                         done
18615                         if test -z "$haveit"; then
18616                           if test -d "$additional_libdir"; then
18617                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18618                           fi
18619                         fi
18620                         haveit=
18621                         for x in $LDFLAGS $LTLIBINTL; do
18622
18623   acl_save_prefix="$prefix"
18624   prefix="$acl_final_prefix"
18625   acl_save_exec_prefix="$exec_prefix"
18626   exec_prefix="$acl_final_exec_prefix"
18627   eval x=\"$x\"
18628   exec_prefix="$acl_save_exec_prefix"
18629   prefix="$acl_save_prefix"
18630
18631                           if test "X$x" = "X-L$additional_libdir"; then
18632                             haveit=yes
18633                             break
18634                           fi
18635                         done
18636                         if test -z "$haveit"; then
18637                           if test -d "$additional_libdir"; then
18638                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18639                           fi
18640                         fi
18641                       fi
18642                     fi
18643                     ;;
18644                   -R*)
18645                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18646                     if test "$enable_rpath" != no; then
18647                                                                   haveit=
18648                       for x in $rpathdirs; do
18649                         if test "X$x" = "X$dir"; then
18650                           haveit=yes
18651                           break
18652                         fi
18653                       done
18654                       if test -z "$haveit"; then
18655                         rpathdirs="$rpathdirs $dir"
18656                       fi
18657                                                                   haveit=
18658                       for x in $ltrpathdirs; do
18659                         if test "X$x" = "X$dir"; then
18660                           haveit=yes
18661                           break
18662                         fi
18663                       done
18664                       if test -z "$haveit"; then
18665                         ltrpathdirs="$ltrpathdirs $dir"
18666                       fi
18667                     fi
18668                     ;;
18669                   -l*)
18670                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18671                     ;;
18672                   *.la)
18673                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18674                     ;;
18675                   *)
18676                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18677                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18678                     ;;
18679                 esac
18680               done
18681             fi
18682           else
18683                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18684             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18685           fi
18686         fi
18687       fi
18688     done
18689   done
18690   if test "X$rpathdirs" != "X"; then
18691     if test -n "$hardcode_libdir_separator"; then
18692                         alldirs=
18693       for found_dir in $rpathdirs; do
18694         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18695       done
18696             acl_save_libdir="$libdir"
18697       libdir="$alldirs"
18698       eval flag=\"$hardcode_libdir_flag_spec\"
18699       libdir="$acl_save_libdir"
18700       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18701     else
18702             for found_dir in $rpathdirs; do
18703         acl_save_libdir="$libdir"
18704         libdir="$found_dir"
18705         eval flag=\"$hardcode_libdir_flag_spec\"
18706         libdir="$acl_save_libdir"
18707         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18708       done
18709     fi
18710   fi
18711   if test "X$ltrpathdirs" != "X"; then
18712             for found_dir in $ltrpathdirs; do
18713       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18714     done
18715   fi
18716
18717           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18718 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18719 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18720   $as_echo_n "(cached) " >&6
18721 else
18722   gt_save_CPPFLAGS="$CPPFLAGS"
18723             CPPFLAGS="$CPPFLAGS $INCINTL"
18724             gt_save_LIBS="$LIBS"
18725             LIBS="$LIBS $LIBINTL"
18726                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h.  */
18728 #include <libintl.h>
18729 extern int _nl_msg_cat_cntr;
18730 extern
18731 #ifdef __cplusplus
18732 "C"
18733 #endif
18734 const char *_nl_expand_alias (const char *);
18735 int
18736 main ()
18737 {
18738 bindtextdomain ("", "");
18739 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18740   ;
18741   return 0;
18742 }
18743 _ACEOF
18744 if ac_fn_c_try_link "$LINENO"; then :
18745   gt_cv_func_gnugettext1_libintl=yes
18746 else
18747   gt_cv_func_gnugettext1_libintl=no
18748 fi
18749 rm -f core conftest.err conftest.$ac_objext \
18750     conftest$ac_exeext conftest.$ac_ext
18751                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18752               LIBS="$LIBS $LIBICONV"
18753               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h.  */
18755 #include <libintl.h>
18756 extern int _nl_msg_cat_cntr;
18757 extern
18758 #ifdef __cplusplus
18759 "C"
18760 #endif
18761 const char *_nl_expand_alias (const char *);
18762 int
18763 main ()
18764 {
18765 bindtextdomain ("", "");
18766 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 if ac_fn_c_try_link "$LINENO"; then :
18772   LIBINTL="$LIBINTL $LIBICONV"
18773                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18774                 gt_cv_func_gnugettext1_libintl=yes
18775
18776 fi
18777 rm -f core conftest.err conftest.$ac_objext \
18778     conftest$ac_exeext conftest.$ac_ext
18779             fi
18780             CPPFLAGS="$gt_save_CPPFLAGS"
18781             LIBS="$gt_save_LIBS"
18782 fi
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18784 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18785         fi
18786
18787                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18788            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18789                 && test "$PACKAGE" != gettext-runtime \
18790                 && test "$PACKAGE" != gettext-tools; }; then
18791           gt_use_preinstalled_gnugettext=yes
18792         else
18793                     LIBINTL=
18794           LTLIBINTL=
18795           INCINTL=
18796         fi
18797
18798
18799
18800     if test -n "$INTL_MACOSX_LIBS"; then
18801       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18802          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18803                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18804         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18805       fi
18806     fi
18807
18808     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18809        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18810
18811 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18812
18813     else
18814       USE_NLS=no
18815     fi
18816   fi
18817
18818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18819 $as_echo_n "checking whether to use NLS... " >&6; }
18820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18821 $as_echo "$USE_NLS" >&6; }
18822   if test "$USE_NLS" = "yes"; then
18823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18824 $as_echo_n "checking where the gettext function comes from... " >&6; }
18825     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18826       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18827         gt_source="external libintl"
18828       else
18829         gt_source="libc"
18830       fi
18831     else
18832       gt_source="included intl directory"
18833     fi
18834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18835 $as_echo "$gt_source" >&6; }
18836   fi
18837
18838   if test "$USE_NLS" = "yes"; then
18839
18840     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18841       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18843 $as_echo_n "checking how to link with libintl... " >&6; }
18844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18845 $as_echo "$LIBINTL" >&6; }
18846
18847   for element in $INCINTL; do
18848     haveit=
18849     for x in $CPPFLAGS; do
18850
18851   acl_save_prefix="$prefix"
18852   prefix="$acl_final_prefix"
18853   acl_save_exec_prefix="$exec_prefix"
18854   exec_prefix="$acl_final_exec_prefix"
18855   eval x=\"$x\"
18856   exec_prefix="$acl_save_exec_prefix"
18857   prefix="$acl_save_prefix"
18858
18859       if test "X$x" = "X$element"; then
18860         haveit=yes
18861         break
18862       fi
18863     done
18864     if test -z "$haveit"; then
18865       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18866     fi
18867   done
18868
18869       fi
18870
18871
18872 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18873
18874
18875 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18876
18877     fi
18878
18879         POSUB=po
18880   fi
18881
18882
18883
18884     INTLLIBS="$LIBINTL"
18885
18886
18887
18888
18889
18890
18891
18892 os_name=`uname -s 2>/dev/null`
18893 if test x${prefix} = xNONE ; then
18894    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18895       sysconfdir=/etc/bacula
18896    fi
18897
18898    if test `eval echo ${libdir}` = NONE/lib ; then
18899       case ${os_name} in
18900       Linux)
18901          os_processor=`uname -p 2>/dev/null`
18902          case ${os_processor} in
18903          x86_64)
18904             libdir=/usr/lib64
18905             ;;
18906          *)
18907             libdir=/usr/lib
18908             ;;
18909          esac
18910          ;;
18911       *)
18912          libdir=/usr/lib
18913          ;;
18914       esac
18915    fi
18916
18917    if test `eval echo ${includedir}` = NONE/include ; then
18918       includedir=/usr/include
18919    fi
18920
18921    if test `eval echo ${datarootdir}` = NONE/share ; then
18922       datarootdir=/usr/share
18923    fi
18924    prefix=
18925 fi
18926
18927 if test x${exec_prefix} = xNONE ; then
18928    exec_prefix=${prefix}
18929 fi
18930
18931 sysconfdir=`eval echo ${sysconfdir}`
18932 datarootdir=`eval echo ${datarootdir}`
18933 docdir=`eval echo ${docdir}`
18934 htmldir=`eval echo ${htmldir}`
18935 libdir=`eval echo ${libdir}`
18936 includedir=`eval echo ${includedir}`
18937 localedir=`eval echo ${datarootdir}/locale`
18938 cat >>confdefs.h <<_ACEOF
18939 #define SYSCONFDIR "$sysconfdir"
18940 _ACEOF
18941
18942 cat >>confdefs.h <<_ACEOF
18943 #define LOCALEDIR "$localedir"
18944 _ACEOF
18945
18946
18947 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18948    sbindir=${exec_prefix}/sbin
18949 fi
18950 sbindir=`eval echo ${sbindir}`
18951
18952 if test x$mandir = x'${prefix}/man' ; then
18953    mandir=/usr/share/man
18954 fi
18955
18956 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18957    htmldir=`eval echo ${docdir}html`
18958 fi
18959
18960 if test x$docdir = x'/usr/share/doc/' ; then
18961    docdir=`eval echo ${docdir}bacula`
18962 fi
18963
18964
18965 for ac_prog in msgfmt
18966 do
18967   # Extract the first word of "$ac_prog", so it can be a program name with args.
18968 set dummy $ac_prog; ac_word=$2
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18970 $as_echo_n "checking for $ac_word... " >&6; }
18971 if ${ac_cv_path_MSGFMT+:} false; then :
18972   $as_echo_n "(cached) " >&6
18973 else
18974   case $MSGFMT in
18975   [\\/]* | ?:[\\/]*)
18976   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18977   ;;
18978   *)
18979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980 for as_dir in $PATH
18981 do
18982   IFS=$as_save_IFS
18983   test -z "$as_dir" && as_dir=.
18984     for ac_exec_ext in '' $ac_executable_extensions; do
18985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18986     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18988     break 2
18989   fi
18990 done
18991   done
18992 IFS=$as_save_IFS
18993
18994   ;;
18995 esac
18996 fi
18997 MSGFMT=$ac_cv_path_MSGFMT
18998 if test -n "$MSGFMT"; then
18999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19000 $as_echo "$MSGFMT" >&6; }
19001 else
19002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003 $as_echo "no" >&6; }
19004 fi
19005
19006
19007   test -n "$MSGFMT" && break
19008 done
19009 test -n "$MSGFMT" || MSGFMT="no"
19010
19011 if test "$MSGFMT" = "no"
19012 then
19013    echo 'msgfmt program not found, disabling NLS !'
19014    USE_NLS=no
19015    USE_INCLUDED_LIBINTL=no
19016 #else
19017
19018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19019 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19020 if ${ac_cv_gnu_library_2+:} false; then :
19021   $as_echo_n "(cached) " >&6
19022 else
19023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h.  */
19025
19026 #include <features.h>
19027 #ifdef __GNU_LIBRARY__
19028  #if (__GLIBC__ >= 2)
19029   Lucky GNU user
19030  #endif
19031 #endif
19032
19033 _ACEOF
19034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19035   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19036   ac_cv_gnu_library_2=yes
19037 else
19038   ac_cv_gnu_library_2=no
19039 fi
19040 rm -f conftest*
19041
19042
19043
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19046 $as_echo "$ac_cv_gnu_library_2" >&6; }
19047
19048     GLIBC2="$ac_cv_gnu_library_2"
19049
19050
19051 if test -n "$ac_tool_prefix"; then
19052   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19053 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19055 $as_echo_n "checking for $ac_word... " >&6; }
19056 if ${ac_cv_prog_RANLIB+:} false; then :
19057   $as_echo_n "(cached) " >&6
19058 else
19059   if test -n "$RANLIB"; then
19060   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19061 else
19062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19063 for as_dir in $PATH
19064 do
19065   IFS=$as_save_IFS
19066   test -z "$as_dir" && as_dir=.
19067     for ac_exec_ext in '' $ac_executable_extensions; do
19068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19069     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19071     break 2
19072   fi
19073 done
19074   done
19075 IFS=$as_save_IFS
19076
19077 fi
19078 fi
19079 RANLIB=$ac_cv_prog_RANLIB
19080 if test -n "$RANLIB"; then
19081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19082 $as_echo "$RANLIB" >&6; }
19083 else
19084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19085 $as_echo "no" >&6; }
19086 fi
19087
19088
19089 fi
19090 if test -z "$ac_cv_prog_RANLIB"; then
19091   ac_ct_RANLIB=$RANLIB
19092   # Extract the first word of "ranlib", so it can be a program name with args.
19093 set dummy ranlib; ac_word=$2
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19095 $as_echo_n "checking for $ac_word... " >&6; }
19096 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19097   $as_echo_n "(cached) " >&6
19098 else
19099   if test -n "$ac_ct_RANLIB"; then
19100   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19101 else
19102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19103 for as_dir in $PATH
19104 do
19105   IFS=$as_save_IFS
19106   test -z "$as_dir" && as_dir=.
19107     for ac_exec_ext in '' $ac_executable_extensions; do
19108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19109     ac_cv_prog_ac_ct_RANLIB="ranlib"
19110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19111     break 2
19112   fi
19113 done
19114   done
19115 IFS=$as_save_IFS
19116
19117 fi
19118 fi
19119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19120 if test -n "$ac_ct_RANLIB"; then
19121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19122 $as_echo "$ac_ct_RANLIB" >&6; }
19123 else
19124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19125 $as_echo "no" >&6; }
19126 fi
19127
19128   if test "x$ac_ct_RANLIB" = x; then
19129     RANLIB=":"
19130   else
19131     case $cross_compiling:$ac_tool_warned in
19132 yes:)
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19135 ac_tool_warned=yes ;;
19136 esac
19137     RANLIB=$ac_ct_RANLIB
19138   fi
19139 else
19140   RANLIB="$ac_cv_prog_RANLIB"
19141 fi
19142
19143
19144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19145 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19146 if ${ac_cv_lib_cposix_strerror+:} false; then :
19147   $as_echo_n "(cached) " >&6
19148 else
19149   ac_check_lib_save_LIBS=$LIBS
19150 LIBS="-lcposix  $LIBS"
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h.  */
19153
19154 /* Override any GCC internal prototype to avoid an error.
19155    Use char because int might match the return type of a GCC
19156    builtin and then its argument prototype would still apply.  */
19157 #ifdef __cplusplus
19158 extern "C"
19159 #endif
19160 char strerror ();
19161 int
19162 main ()
19163 {
19164 return strerror ();
19165   ;
19166   return 0;
19167 }
19168 _ACEOF
19169 if ac_fn_c_try_link "$LINENO"; then :
19170   ac_cv_lib_cposix_strerror=yes
19171 else
19172   ac_cv_lib_cposix_strerror=no
19173 fi
19174 rm -f core conftest.err conftest.$ac_objext \
19175     conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19177 fi
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19179 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19180 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19181   LIBS="$LIBS -lcposix"
19182 fi
19183
19184
19185
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19187 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19188 if ${ac_cv_c_const+:} false; then :
19189   $as_echo_n "(cached) " >&6
19190 else
19191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h.  */
19193
19194 int
19195 main ()
19196 {
19197
19198 #ifndef __cplusplus
19199   /* Ultrix mips cc rejects this sort of thing.  */
19200   typedef int charset[2];
19201   const charset cs = { 0, 0 };
19202   /* SunOS 4.1.1 cc rejects this.  */
19203   char const *const *pcpcc;
19204   char **ppc;
19205   /* NEC SVR4.0.2 mips cc rejects this.  */
19206   struct point {int x, y;};
19207   static struct point const zero = {0,0};
19208   /* AIX XL C 1.02.0.0 rejects this.
19209      It does not let you subtract one const X* pointer from another in
19210      an arm of an if-expression whose if-part is not a constant
19211      expression */
19212   const char *g = "string";
19213   pcpcc = &g + (g ? g-g : 0);
19214   /* HPUX 7.0 cc rejects these. */
19215   ++pcpcc;
19216   ppc = (char**) pcpcc;
19217   pcpcc = (char const *const *) ppc;
19218   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19219     char tx;
19220     char *t = &tx;
19221     char const *s = 0 ? (char *) 0 : (char const *) 0;
19222
19223     *t++ = 0;
19224     if (s) return 0;
19225   }
19226   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19227     int x[] = {25, 17};
19228     const int *foo = &x[0];
19229     ++foo;
19230   }
19231   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19232     typedef const int *iptr;
19233     iptr p = 0;
19234     ++p;
19235   }
19236   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19237        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19238     struct s { int j; const int *ap[3]; } bx;
19239     struct s *b = &bx; b->j = 5;
19240   }
19241   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19242     const int foo = 10;
19243     if (!foo) return 0;
19244   }
19245   return !cs[0] && !zero.x;
19246 #endif
19247
19248   ;
19249   return 0;
19250 }
19251 _ACEOF
19252 if ac_fn_c_try_compile "$LINENO"; then :
19253   ac_cv_c_const=yes
19254 else
19255   ac_cv_c_const=no
19256 fi
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19258 fi
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19260 $as_echo "$ac_cv_c_const" >&6; }
19261 if test $ac_cv_c_const = no; then
19262
19263 $as_echo "#define const /**/" >>confdefs.h
19264
19265 fi
19266
19267
19268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19269 $as_echo_n "checking for signed... " >&6; }
19270 if ${bh_cv_c_signed+:} false; then :
19271   $as_echo_n "(cached) " >&6
19272 else
19273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h.  */
19275
19276 int
19277 main ()
19278 {
19279 signed char x;
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 if ac_fn_c_try_compile "$LINENO"; then :
19285   bh_cv_c_signed=yes
19286 else
19287   bh_cv_c_signed=no
19288 fi
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 fi
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19292 $as_echo "$bh_cv_c_signed" >&6; }
19293   if test $bh_cv_c_signed = no; then
19294
19295 $as_echo "#define signed /**/" >>confdefs.h
19296
19297   fi
19298
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19300 $as_echo_n "checking for inline... " >&6; }
19301 if ${ac_cv_c_inline+:} false; then :
19302   $as_echo_n "(cached) " >&6
19303 else
19304   ac_cv_c_inline=no
19305 for ac_kw in inline __inline__ __inline; do
19306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h.  */
19308 #ifndef __cplusplus
19309 typedef int foo_t;
19310 static $ac_kw foo_t static_foo () {return 0; }
19311 $ac_kw foo_t foo () {return 0; }
19312 #endif
19313
19314 _ACEOF
19315 if ac_fn_c_try_compile "$LINENO"; then :
19316   ac_cv_c_inline=$ac_kw
19317 fi
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319   test "$ac_cv_c_inline" != no && break
19320 done
19321
19322 fi
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19324 $as_echo "$ac_cv_c_inline" >&6; }
19325
19326 case $ac_cv_c_inline in
19327   inline | yes) ;;
19328   *)
19329     case $ac_cv_c_inline in
19330       no) ac_val=;;
19331       *) ac_val=$ac_cv_c_inline;;
19332     esac
19333     cat >>confdefs.h <<_ACEOF
19334 #ifndef __cplusplus
19335 #define inline $ac_val
19336 #endif
19337 _ACEOF
19338     ;;
19339 esac
19340
19341 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19342 if test "x$ac_cv_type_off_t" = xyes; then :
19343
19344 else
19345
19346 cat >>confdefs.h <<_ACEOF
19347 #define off_t long int
19348 _ACEOF
19349
19350 fi
19351
19352 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19353 if test "x$ac_cv_type_size_t" = xyes; then :
19354
19355 else
19356
19357 cat >>confdefs.h <<_ACEOF
19358 #define size_t unsigned int
19359 _ACEOF
19360
19361 fi
19362
19363
19364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19365 $as_echo_n "checking for long long... " >&6; }
19366 if ${ac_cv_type_long_long+:} false; then :
19367   $as_echo_n "(cached) " >&6
19368 else
19369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370 /* end confdefs.h.  */
19371 long long ll = 1LL; int i = 63;
19372 int
19373 main ()
19374 {
19375 long long llmax = (long long) -1;
19376      return ll << i | ll >> i | llmax / ll | llmax % ll;
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 if ac_fn_c_try_link "$LINENO"; then :
19382   ac_cv_type_long_long=yes
19383 else
19384   ac_cv_type_long_long=no
19385 fi
19386 rm -f core conftest.err conftest.$ac_objext \
19387     conftest$ac_exeext conftest.$ac_ext
19388 fi
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19390 $as_echo "$ac_cv_type_long_long" >&6; }
19391   if test $ac_cv_type_long_long = yes; then
19392
19393 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19394
19395   fi
19396
19397
19398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19399 $as_echo_n "checking for long double... " >&6; }
19400 if ${gt_cv_c_long_double+:} false; then :
19401   $as_echo_n "(cached) " >&6
19402 else
19403   if test "$GCC" = yes; then
19404        gt_cv_c_long_double=yes
19405      else
19406        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h.  */
19408
19409          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19410          long double foo = 0.0;
19411          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19412          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19413
19414 int
19415 main ()
19416 {
19417
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 if ac_fn_c_try_compile "$LINENO"; then :
19423   gt_cv_c_long_double=yes
19424 else
19425   gt_cv_c_long_double=no
19426 fi
19427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19428      fi
19429 fi
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19431 $as_echo "$gt_cv_c_long_double" >&6; }
19432   if test $gt_cv_c_long_double = yes; then
19433
19434 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19435
19436   fi
19437
19438
19439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19440 $as_echo_n "checking for wchar_t... " >&6; }
19441 if ${gt_cv_c_wchar_t+:} false; then :
19442   $as_echo_n "(cached) " >&6
19443 else
19444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h.  */
19446 #include <stddef.h>
19447        wchar_t foo = (wchar_t)'\0';
19448 int
19449 main ()
19450 {
19451
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_compile "$LINENO"; then :
19457   gt_cv_c_wchar_t=yes
19458 else
19459   gt_cv_c_wchar_t=no
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462 fi
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19464 $as_echo "$gt_cv_c_wchar_t" >&6; }
19465   if test $gt_cv_c_wchar_t = yes; then
19466
19467 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19468
19469   fi
19470
19471
19472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19473 $as_echo_n "checking for wint_t... " >&6; }
19474 if ${gt_cv_c_wint_t+:} false; then :
19475   $as_echo_n "(cached) " >&6
19476 else
19477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h.  */
19479 #include <wchar.h>
19480        wint_t foo = (wchar_t)'\0';
19481 int
19482 main ()
19483 {
19484
19485   ;
19486   return 0;
19487 }
19488 _ACEOF
19489 if ac_fn_c_try_compile "$LINENO"; then :
19490   gt_cv_c_wint_t=yes
19491 else
19492   gt_cv_c_wint_t=no
19493 fi
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 fi
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19497 $as_echo "$gt_cv_c_wint_t" >&6; }
19498   if test $gt_cv_c_wint_t = yes; then
19499
19500 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19501
19502   fi
19503
19504
19505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19506 $as_echo_n "checking for inttypes.h... " >&6; }
19507 if ${gl_cv_header_inttypes_h+:} false; then :
19508   $as_echo_n "(cached) " >&6
19509 else
19510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h.  */
19512 #include <sys/types.h>
19513 #include <inttypes.h>
19514 int
19515 main ()
19516 {
19517 uintmax_t i = (uintmax_t) -1;
19518   ;
19519   return 0;
19520 }
19521 _ACEOF
19522 if ac_fn_c_try_compile "$LINENO"; then :
19523   gl_cv_header_inttypes_h=yes
19524 else
19525   gl_cv_header_inttypes_h=no
19526 fi
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528 fi
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19530 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19531   if test $gl_cv_header_inttypes_h = yes; then
19532
19533 cat >>confdefs.h <<_ACEOF
19534 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19535 _ACEOF
19536
19537   fi
19538
19539
19540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19541 $as_echo_n "checking for stdint.h... " >&6; }
19542 if ${gl_cv_header_stdint_h+:} false; then :
19543   $as_echo_n "(cached) " >&6
19544 else
19545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h.  */
19547 #include <sys/types.h>
19548 #include <stdint.h>
19549 int
19550 main ()
19551 {
19552 uintmax_t i = (uintmax_t) -1;
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 if ac_fn_c_try_compile "$LINENO"; then :
19558   gl_cv_header_stdint_h=yes
19559 else
19560   gl_cv_header_stdint_h=no
19561 fi
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563 fi
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19565 $as_echo "$gl_cv_header_stdint_h" >&6; }
19566   if test $gl_cv_header_stdint_h = yes; then
19567
19568 cat >>confdefs.h <<_ACEOF
19569 #define HAVE_STDINT_H_WITH_UINTMAX 1
19570 _ACEOF
19571
19572   fi
19573
19574
19575
19576
19577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19578 $as_echo_n "checking for intmax_t... " >&6; }
19579 if ${gt_cv_c_intmax_t+:} false; then :
19580   $as_echo_n "(cached) " >&6
19581 else
19582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h.  */
19584
19585 #include <stddef.h>
19586 #include <stdlib.h>
19587 #if HAVE_STDINT_H_WITH_UINTMAX
19588 #include <stdint.h>
19589 #endif
19590 #if HAVE_INTTYPES_H_WITH_UINTMAX
19591 #include <inttypes.h>
19592 #endif
19593
19594 int
19595 main ()
19596 {
19597 intmax_t x = -1;
19598   ;
19599   return 0;
19600 }
19601 _ACEOF
19602 if ac_fn_c_try_compile "$LINENO"; then :
19603   gt_cv_c_intmax_t=yes
19604 else
19605   gt_cv_c_intmax_t=no
19606 fi
19607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608 fi
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19610 $as_echo "$gt_cv_c_intmax_t" >&6; }
19611   if test $gt_cv_c_intmax_t = yes; then
19612
19613 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19614
19615   fi
19616
19617
19618
19619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19620 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19621 if ${gt_cv_func_printf_posix+:} false; then :
19622   $as_echo_n "(cached) " >&6
19623 else
19624
19625       if test "$cross_compiling" = yes; then :
19626
19627         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628 /* end confdefs.h.  */
19629
19630 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19631   notposix
19632 #endif
19633
19634 _ACEOF
19635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19636   $EGREP "notposix" >/dev/null 2>&1; then :
19637   gt_cv_func_printf_posix="guessing no"
19638 else
19639   gt_cv_func_printf_posix="guessing yes"
19640 fi
19641 rm -f conftest*
19642
19643
19644 else
19645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h.  */
19647
19648 #include <stdio.h>
19649 #include <string.h>
19650 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19651    dollar expansion (possibly an autoconf bug).  */
19652 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19653 static char buf[100];
19654 int main ()
19655 {
19656   sprintf (buf, format, 33, 55);
19657   return (strcmp (buf, "55 33") != 0);
19658 }
19659 _ACEOF
19660 if ac_fn_c_try_run "$LINENO"; then :
19661   gt_cv_func_printf_posix=yes
19662 else
19663   gt_cv_func_printf_posix=no
19664 fi
19665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19666   conftest.$ac_objext conftest.beam conftest.$ac_ext
19667 fi
19668
19669
19670 fi
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19672 $as_echo "$gt_cv_func_printf_posix" >&6; }
19673   case $gt_cv_func_printf_posix in
19674     *yes)
19675
19676 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19677
19678       ;;
19679   esac
19680
19681 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19682 # for constant arguments.  Useless!
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19684 $as_echo_n "checking for working alloca.h... " >&6; }
19685 if ${ac_cv_working_alloca_h+:} false; then :
19686   $as_echo_n "(cached) " >&6
19687 else
19688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h.  */
19690 #include <alloca.h>
19691 int
19692 main ()
19693 {
19694 char *p = (char *) alloca (2 * sizeof (int));
19695                           if (p) return 0;
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 if ac_fn_c_try_link "$LINENO"; then :
19701   ac_cv_working_alloca_h=yes
19702 else
19703   ac_cv_working_alloca_h=no
19704 fi
19705 rm -f core conftest.err conftest.$ac_objext \
19706     conftest$ac_exeext conftest.$ac_ext
19707 fi
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19709 $as_echo "$ac_cv_working_alloca_h" >&6; }
19710 if test $ac_cv_working_alloca_h = yes; then
19711
19712 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19713
19714 fi
19715
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19717 $as_echo_n "checking for alloca... " >&6; }
19718 if ${ac_cv_func_alloca_works+:} false; then :
19719   $as_echo_n "(cached) " >&6
19720 else
19721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h.  */
19723 #ifdef __GNUC__
19724 # define alloca __builtin_alloca
19725 #else
19726 # ifdef _MSC_VER
19727 #  include <malloc.h>
19728 #  define alloca _alloca
19729 # else
19730 #  ifdef HAVE_ALLOCA_H
19731 #   include <alloca.h>
19732 #  else
19733 #   ifdef _AIX
19734  #pragma alloca
19735 #   else
19736 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19737 void *alloca (size_t);
19738 #    endif
19739 #   endif
19740 #  endif
19741 # endif
19742 #endif
19743
19744 int
19745 main ()
19746 {
19747 char *p = (char *) alloca (1);
19748                                     if (p) return 0;
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 if ac_fn_c_try_link "$LINENO"; then :
19754   ac_cv_func_alloca_works=yes
19755 else
19756   ac_cv_func_alloca_works=no
19757 fi
19758 rm -f core conftest.err conftest.$ac_objext \
19759     conftest$ac_exeext conftest.$ac_ext
19760 fi
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19762 $as_echo "$ac_cv_func_alloca_works" >&6; }
19763
19764 if test $ac_cv_func_alloca_works = yes; then
19765
19766 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19767
19768 else
19769   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19770 # that cause trouble.  Some versions do not even contain alloca or
19771 # contain a buggy version.  If you still want to use their alloca,
19772 # use ar to extract alloca.o from them instead of compiling alloca.c.
19773
19774 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19775
19776 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19777
19778
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19780 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19781 if ${ac_cv_os_cray+:} false; then :
19782   $as_echo_n "(cached) " >&6
19783 else
19784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h.  */
19786 #if defined CRAY && ! defined CRAY2
19787 webecray
19788 #else
19789 wenotbecray
19790 #endif
19791
19792 _ACEOF
19793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19794   $EGREP "webecray" >/dev/null 2>&1; then :
19795   ac_cv_os_cray=yes
19796 else
19797   ac_cv_os_cray=no
19798 fi
19799 rm -f conftest*
19800
19801 fi
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19803 $as_echo "$ac_cv_os_cray" >&6; }
19804 if test $ac_cv_os_cray = yes; then
19805   for ac_func in _getb67 GETB67 getb67; do
19806     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19808 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19809
19810 cat >>confdefs.h <<_ACEOF
19811 #define CRAY_STACKSEG_END $ac_func
19812 _ACEOF
19813
19814     break
19815 fi
19816
19817   done
19818 fi
19819
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19821 $as_echo_n "checking stack direction for C alloca... " >&6; }
19822 if ${ac_cv_c_stack_direction+:} false; then :
19823   $as_echo_n "(cached) " >&6
19824 else
19825   if test "$cross_compiling" = yes; then :
19826   ac_cv_c_stack_direction=0
19827 else
19828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h.  */
19830 $ac_includes_default
19831 int
19832 find_stack_direction (int *addr, int depth)
19833 {
19834   int dir, dummy = 0;
19835   if (! addr)
19836     addr = &dummy;
19837   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19838   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19839   return dir + dummy;
19840 }
19841
19842 int
19843 main (int argc, char **argv)
19844 {
19845   return find_stack_direction (0, argc + !argv + 20) < 0;
19846 }
19847 _ACEOF
19848 if ac_fn_c_try_run "$LINENO"; then :
19849   ac_cv_c_stack_direction=1
19850 else
19851   ac_cv_c_stack_direction=-1
19852 fi
19853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19854   conftest.$ac_objext conftest.beam conftest.$ac_ext
19855 fi
19856
19857 fi
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19859 $as_echo "$ac_cv_c_stack_direction" >&6; }
19860 cat >>confdefs.h <<_ACEOF
19861 #define STACK_DIRECTION $ac_cv_c_stack_direction
19862 _ACEOF
19863
19864
19865 fi
19866
19867
19868
19869
19870   for ac_header in $ac_header_list
19871 do :
19872   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19874 "
19875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19876   cat >>confdefs.h <<_ACEOF
19877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19878 _ACEOF
19879
19880 fi
19881
19882 done
19883
19884
19885
19886
19887
19888
19889
19890
19891 for ac_func in getpagesize
19892 do :
19893   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19894 if test "x$ac_cv_func_getpagesize" = xyes; then :
19895   cat >>confdefs.h <<_ACEOF
19896 #define HAVE_GETPAGESIZE 1
19897 _ACEOF
19898
19899 fi
19900 done
19901
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19903 $as_echo_n "checking for working mmap... " >&6; }
19904 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19905   $as_echo_n "(cached) " >&6
19906 else
19907   if test "$cross_compiling" = yes; then :
19908   ac_cv_func_mmap_fixed_mapped=no
19909 else
19910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h.  */
19912 $ac_includes_default
19913 /* malloc might have been renamed as rpl_malloc. */
19914 #undef malloc
19915
19916 /* Thanks to Mike Haertel and Jim Avera for this test.
19917    Here is a matrix of mmap possibilities:
19918         mmap private not fixed
19919         mmap private fixed at somewhere currently unmapped
19920         mmap private fixed at somewhere already mapped
19921         mmap shared not fixed
19922         mmap shared fixed at somewhere currently unmapped
19923         mmap shared fixed at somewhere already mapped
19924    For private mappings, we should verify that changes cannot be read()
19925    back from the file, nor mmap's back from the file at a different
19926    address.  (There have been systems where private was not correctly
19927    implemented like the infamous i386 svr4.0, and systems where the
19928    VM page cache was not coherent with the file system buffer cache
19929    like early versions of FreeBSD and possibly contemporary NetBSD.)
19930    For shared mappings, we should conversely verify that changes get
19931    propagated back to all the places they're supposed to be.
19932
19933    Grep wants private fixed already mapped.
19934    The main things grep needs to know about mmap are:
19935    * does it exist and is it safe to write into the mmap'd area
19936    * how to use it (BSD variants)  */
19937
19938 #include <fcntl.h>
19939 #include <sys/mman.h>
19940
19941 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19942 char *malloc ();
19943 #endif
19944
19945 /* This mess was copied from the GNU getpagesize.h.  */
19946 #ifndef HAVE_GETPAGESIZE
19947 # ifdef _SC_PAGESIZE
19948 #  define getpagesize() sysconf(_SC_PAGESIZE)
19949 # else /* no _SC_PAGESIZE */
19950 #  ifdef HAVE_SYS_PARAM_H
19951 #   include <sys/param.h>
19952 #   ifdef EXEC_PAGESIZE
19953 #    define getpagesize() EXEC_PAGESIZE
19954 #   else /* no EXEC_PAGESIZE */
19955 #    ifdef NBPG
19956 #     define getpagesize() NBPG * CLSIZE
19957 #     ifndef CLSIZE
19958 #      define CLSIZE 1
19959 #     endif /* no CLSIZE */
19960 #    else /* no NBPG */
19961 #     ifdef NBPC
19962 #      define getpagesize() NBPC
19963 #     else /* no NBPC */
19964 #      ifdef PAGESIZE
19965 #       define getpagesize() PAGESIZE
19966 #      endif /* PAGESIZE */
19967 #     endif /* no NBPC */
19968 #    endif /* no NBPG */
19969 #   endif /* no EXEC_PAGESIZE */
19970 #  else /* no HAVE_SYS_PARAM_H */
19971 #   define getpagesize() 8192   /* punt totally */
19972 #  endif /* no HAVE_SYS_PARAM_H */
19973 # endif /* no _SC_PAGESIZE */
19974
19975 #endif /* no HAVE_GETPAGESIZE */
19976
19977 int
19978 main ()
19979 {
19980   char *data, *data2, *data3;
19981   const char *cdata2;
19982   int i, pagesize;
19983   int fd, fd2;
19984
19985   pagesize = getpagesize ();
19986
19987   /* First, make a file with some known garbage in it. */
19988   data = (char *) malloc (pagesize);
19989   if (!data)
19990     return 1;
19991   for (i = 0; i < pagesize; ++i)
19992     *(data + i) = rand ();
19993   umask (0);
19994   fd = creat ("conftest.mmap", 0600);
19995   if (fd < 0)
19996     return 2;
19997   if (write (fd, data, pagesize) != pagesize)
19998     return 3;
19999   close (fd);
20000
20001   /* Next, check that the tail of a page is zero-filled.  File must have
20002      non-zero length, otherwise we risk SIGBUS for entire page.  */
20003   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20004   if (fd2 < 0)
20005     return 4;
20006   cdata2 = "";
20007   if (write (fd2, cdata2, 1) != 1)
20008     return 5;
20009   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20010   if (data2 == MAP_FAILED)
20011     return 6;
20012   for (i = 0; i < pagesize; ++i)
20013     if (*(data2 + i))
20014       return 7;
20015   close (fd2);
20016   if (munmap (data2, pagesize))
20017     return 8;
20018
20019   /* Next, try to mmap the file at a fixed address which already has
20020      something else allocated at it.  If we can, also make sure that
20021      we see the same garbage.  */
20022   fd = open ("conftest.mmap", O_RDWR);
20023   if (fd < 0)
20024     return 9;
20025   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20026                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20027     return 10;
20028   for (i = 0; i < pagesize; ++i)
20029     if (*(data + i) != *(data2 + i))
20030       return 11;
20031
20032   /* Finally, make sure that changes to the mapped area do not
20033      percolate back to the file as seen by read().  (This is a bug on
20034      some variants of i386 svr4.0.)  */
20035   for (i = 0; i < pagesize; ++i)
20036     *(data2 + i) = *(data2 + i) + 1;
20037   data3 = (char *) malloc (pagesize);
20038   if (!data3)
20039     return 12;
20040   if (read (fd, data3, pagesize) != pagesize)
20041     return 13;
20042   for (i = 0; i < pagesize; ++i)
20043     if (*(data + i) != *(data3 + i))
20044       return 14;
20045   close (fd);
20046   return 0;
20047 }
20048 _ACEOF
20049 if ac_fn_c_try_run "$LINENO"; then :
20050   ac_cv_func_mmap_fixed_mapped=yes
20051 else
20052   ac_cv_func_mmap_fixed_mapped=no
20053 fi
20054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20055   conftest.$ac_objext conftest.beam conftest.$ac_ext
20056 fi
20057
20058 fi
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20060 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20061 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20062
20063 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20064
20065 fi
20066 rm -f conftest.mmap conftest.txt
20067
20068
20069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20070 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20071 if ${ac_cv_gnu_library_2_1+:} false; then :
20072   $as_echo_n "(cached) " >&6
20073 else
20074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h.  */
20076
20077 #include <features.h>
20078 #ifdef __GNU_LIBRARY__
20079  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20080   Lucky GNU user
20081  #endif
20082 #endif
20083
20084 _ACEOF
20085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20086   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20087   ac_cv_gnu_library_2_1=yes
20088 else
20089   ac_cv_gnu_library_2_1=no
20090 fi
20091 rm -f conftest*
20092
20093
20094
20095 fi
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20097 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20098
20099     GLIBC21="$ac_cv_gnu_library_2_1"
20100
20101
20102
20103
20104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20105 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20106 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20107   $as_echo_n "(cached) " >&6
20108 else
20109
20110       if test "$cross_compiling" = yes; then :
20111
20112           # Guess based on the CPU.
20113           case "$host_cpu" in
20114             alpha* | i3456786 | m68k | s390*)
20115               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20116             *)
20117               gt_cv_int_divbyzero_sigfpe="guessing no";;
20118           esac
20119
20120 else
20121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h.  */
20123
20124 #include <stdlib.h>
20125 #include <signal.h>
20126
20127 static void
20128 #ifdef __cplusplus
20129 sigfpe_handler (int sig)
20130 #else
20131 sigfpe_handler (sig) int sig;
20132 #endif
20133 {
20134   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20135   exit (sig != SIGFPE);
20136 }
20137
20138 int x = 1;
20139 int y = 0;
20140 int z;
20141 int nan;
20142
20143 int main ()
20144 {
20145   signal (SIGFPE, sigfpe_handler);
20146 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20147 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20148   signal (SIGTRAP, sigfpe_handler);
20149 #endif
20150 /* Linux/SPARC yields signal SIGILL.  */
20151 #if defined (__sparc__) && defined (__linux__)
20152   signal (SIGILL, sigfpe_handler);
20153 #endif
20154
20155   z = x / y;
20156   nan = y / y;
20157   exit (1);
20158 }
20159
20160 _ACEOF
20161 if ac_fn_c_try_run "$LINENO"; then :
20162   gt_cv_int_divbyzero_sigfpe=yes
20163 else
20164   gt_cv_int_divbyzero_sigfpe=no
20165 fi
20166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20167   conftest.$ac_objext conftest.beam conftest.$ac_ext
20168 fi
20169
20170
20171 fi
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20173 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20174   case "$gt_cv_int_divbyzero_sigfpe" in
20175     *yes) value=1;;
20176     *) value=0;;
20177   esac
20178
20179 cat >>confdefs.h <<_ACEOF
20180 #define INTDIV0_RAISES_SIGFPE $value
20181 _ACEOF
20182
20183
20184
20185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20186 $as_echo_n "checking for unsigned long long... " >&6; }
20187 if ${ac_cv_type_unsigned_long_long+:} false; then :
20188   $as_echo_n "(cached) " >&6
20189 else
20190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h.  */
20192 unsigned long long ull = 1ULL; int i = 63;
20193 int
20194 main ()
20195 {
20196 unsigned long long ullmax = (unsigned long long) -1;
20197      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20198   ;
20199   return 0;
20200 }
20201 _ACEOF
20202 if ac_fn_c_try_link "$LINENO"; then :
20203   ac_cv_type_unsigned_long_long=yes
20204 else
20205   ac_cv_type_unsigned_long_long=no
20206 fi
20207 rm -f core conftest.err conftest.$ac_objext \
20208     conftest$ac_exeext conftest.$ac_ext
20209 fi
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20211 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20212   if test $ac_cv_type_unsigned_long_long = yes; then
20213
20214 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20215
20216   fi
20217
20218
20219
20220
20221   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20222
20223     test $ac_cv_type_unsigned_long_long = yes \
20224       && ac_type='unsigned long long' \
20225       || ac_type='unsigned long'
20226
20227 cat >>confdefs.h <<_ACEOF
20228 #define uintmax_t $ac_type
20229 _ACEOF
20230
20231   else
20232
20233 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20234
20235   fi
20236
20237
20238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20239 $as_echo_n "checking for inttypes.h... " >&6; }
20240 if ${gt_cv_header_inttypes_h+:} false; then :
20241   $as_echo_n "(cached) " >&6
20242 else
20243
20244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h.  */
20246 #include <sys/types.h>
20247 #include <inttypes.h>
20248 int
20249 main ()
20250 {
20251
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 if ac_fn_c_try_compile "$LINENO"; then :
20257   gt_cv_header_inttypes_h=yes
20258 else
20259   gt_cv_header_inttypes_h=no
20260 fi
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262
20263 fi
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20265 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20266   if test $gt_cv_header_inttypes_h = yes; then
20267
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_INTTYPES_H 1
20270 _ACEOF
20271
20272   fi
20273
20274
20275
20276   if test $gt_cv_header_inttypes_h = yes; then
20277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20278 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20279 if ${gt_cv_inttypes_pri_broken+:} false; then :
20280   $as_echo_n "(cached) " >&6
20281 else
20282
20283         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h.  */
20285 #include <inttypes.h>
20286 #ifdef PRId32
20287 char *p = PRId32;
20288 #endif
20289
20290 int
20291 main ()
20292 {
20293
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 if ac_fn_c_try_compile "$LINENO"; then :
20299   gt_cv_inttypes_pri_broken=no
20300 else
20301   gt_cv_inttypes_pri_broken=yes
20302 fi
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304
20305 fi
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20307 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20308   fi
20309   if test "$gt_cv_inttypes_pri_broken" = yes; then
20310
20311 cat >>confdefs.h <<_ACEOF
20312 #define PRI_MACROS_BROKEN 1
20313 _ACEOF
20314
20315   fi
20316
20317
20318   for ac_header in stdint.h
20319 do :
20320   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20321 if test "x$ac_cv_header_stdint_h" = xyes; then :
20322   cat >>confdefs.h <<_ACEOF
20323 #define HAVE_STDINT_H 1
20324 _ACEOF
20325
20326 fi
20327
20328 done
20329
20330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20331 $as_echo_n "checking for SIZE_MAX... " >&6; }
20332   result=
20333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334 /* end confdefs.h.  */
20335
20336 #include <limits.h>
20337 #if HAVE_STDINT_H
20338 #include <stdint.h>
20339 #endif
20340 #ifdef SIZE_MAX
20341 Found it
20342 #endif
20343
20344 _ACEOF
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346   $EGREP "Found it" >/dev/null 2>&1; then :
20347   result=yes
20348 fi
20349 rm -f conftest*
20350
20351   if test -z "$result"; then
20352                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20353
20354 else
20355   result=?
20356 fi
20357
20358
20359     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20360
20361 else
20362   result=?
20363 fi
20364
20365
20366     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20367
20368 else
20369   result=?
20370 fi
20371
20372
20373     if test "$fits_in_uint" = 1; then
20374                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h.  */
20376 #include <stddef.h>
20377         extern size_t foo;
20378         extern unsigned long foo;
20379
20380 int
20381 main ()
20382 {
20383
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 if ac_fn_c_try_compile "$LINENO"; then :
20389   fits_in_uint=0
20390 fi
20391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20392     fi
20393     if test -z "$result"; then
20394       if test "$fits_in_uint" = 1; then
20395         result="$res_hi$res_lo"U
20396       else
20397         result="$res_hi$res_lo"UL
20398       fi
20399     else
20400             result='~(size_t)0'
20401     fi
20402   fi
20403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20404 $as_echo "$result" >&6; }
20405   if test "$result" != yes; then
20406
20407 cat >>confdefs.h <<_ACEOF
20408 #define SIZE_MAX $result
20409 _ACEOF
20410
20411   fi
20412
20413
20414
20415
20416   for ac_header in stdint.h
20417 do :
20418   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20419 if test "x$ac_cv_header_stdint_h" = xyes; then :
20420   cat >>confdefs.h <<_ACEOF
20421 #define HAVE_STDINT_H 1
20422 _ACEOF
20423
20424 fi
20425
20426 done
20427
20428
20429
20430
20431
20432
20433
20434
20435   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20436 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20437
20438 else
20439
20440 $as_echo "#define ptrdiff_t long" >>confdefs.h
20441
20442
20443 fi
20444
20445   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20446 stdlib.h string.h unistd.h sys/param.h
20447 do :
20448   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20451   cat >>confdefs.h <<_ACEOF
20452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20453 _ACEOF
20454
20455 fi
20456
20457 done
20458
20459   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20460 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20461 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20462 __fsetlocking
20463 do :
20464   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20467   cat >>confdefs.h <<_ACEOF
20468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20469 _ACEOF
20470
20471 fi
20472 done
20473
20474
20475
20476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20477 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20478 if ${ac_cv_have_decl__snprintf+:} false; then :
20479   $as_echo_n "(cached) " >&6
20480 else
20481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h.  */
20483 #include <stdio.h>
20484 int
20485 main ()
20486 {
20487
20488 #ifndef _snprintf
20489   char *p = (char *) _snprintf;
20490 #endif
20491
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 if ac_fn_c_try_compile "$LINENO"; then :
20497   ac_cv_have_decl__snprintf=yes
20498 else
20499   ac_cv_have_decl__snprintf=no
20500 fi
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 fi
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20504 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20505   if test $ac_cv_have_decl__snprintf = yes; then
20506     gt_value=1
20507   else
20508     gt_value=0
20509   fi
20510
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_DECL__SNPRINTF $gt_value
20513 _ACEOF
20514
20515
20516
20517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20518 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20519 if ${ac_cv_have_decl__snwprintf+:} false; then :
20520   $as_echo_n "(cached) " >&6
20521 else
20522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h.  */
20524 #include <stdio.h>
20525 int
20526 main ()
20527 {
20528
20529 #ifndef _snwprintf
20530   char *p = (char *) _snwprintf;
20531 #endif
20532
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 if ac_fn_c_try_compile "$LINENO"; then :
20538   ac_cv_have_decl__snwprintf=yes
20539 else
20540   ac_cv_have_decl__snwprintf=no
20541 fi
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543 fi
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20545 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20546   if test $ac_cv_have_decl__snwprintf = yes; then
20547     gt_value=1
20548   else
20549     gt_value=0
20550   fi
20551
20552 cat >>confdefs.h <<_ACEOF
20553 #define HAVE_DECL__SNWPRINTF $gt_value
20554 _ACEOF
20555
20556
20557
20558
20559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20560 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20561 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20562   $as_echo_n "(cached) " >&6
20563 else
20564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h.  */
20566 #include <stdio.h>
20567 int
20568 main ()
20569 {
20570
20571 #ifndef feof_unlocked
20572   char *p = (char *) feof_unlocked;
20573 #endif
20574
20575   ;
20576   return 0;
20577 }
20578 _ACEOF
20579 if ac_fn_c_try_compile "$LINENO"; then :
20580   ac_cv_have_decl_feof_unlocked=yes
20581 else
20582   ac_cv_have_decl_feof_unlocked=no
20583 fi
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585 fi
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20587 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20588   if test $ac_cv_have_decl_feof_unlocked = yes; then
20589     gt_value=1
20590   else
20591     gt_value=0
20592   fi
20593
20594 cat >>confdefs.h <<_ACEOF
20595 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20596 _ACEOF
20597
20598
20599
20600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20601 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20602 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20603   $as_echo_n "(cached) " >&6
20604 else
20605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h.  */
20607 #include <stdio.h>
20608 int
20609 main ()
20610 {
20611
20612 #ifndef fgets_unlocked
20613   char *p = (char *) fgets_unlocked;
20614 #endif
20615
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 if ac_fn_c_try_compile "$LINENO"; then :
20621   ac_cv_have_decl_fgets_unlocked=yes
20622 else
20623   ac_cv_have_decl_fgets_unlocked=no
20624 fi
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20628 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20629   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20630     gt_value=1
20631   else
20632     gt_value=0
20633   fi
20634
20635 cat >>confdefs.h <<_ACEOF
20636 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20637 _ACEOF
20638
20639
20640
20641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20642 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20643 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20644   $as_echo_n "(cached) " >&6
20645 else
20646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h.  */
20648 #include <stdio.h>
20649 int
20650 main ()
20651 {
20652
20653 #ifndef getc_unlocked
20654   char *p = (char *) getc_unlocked;
20655 #endif
20656
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 if ac_fn_c_try_compile "$LINENO"; then :
20662   ac_cv_have_decl_getc_unlocked=yes
20663 else
20664   ac_cv_have_decl_getc_unlocked=no
20665 fi
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 fi
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20669 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20670   if test $ac_cv_have_decl_getc_unlocked = yes; then
20671     gt_value=1
20672   else
20673     gt_value=0
20674   fi
20675
20676 cat >>confdefs.h <<_ACEOF
20677 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20678 _ACEOF
20679
20680
20681
20682   case $gt_cv_func_printf_posix in
20683     *yes) HAVE_POSIX_PRINTF=1 ;;
20684     *) HAVE_POSIX_PRINTF=0 ;;
20685   esac
20686
20687   if test "$ac_cv_func_asprintf" = yes; then
20688     HAVE_ASPRINTF=1
20689   else
20690     HAVE_ASPRINTF=0
20691   fi
20692
20693   if test "$ac_cv_func_snprintf" = yes; then
20694     HAVE_SNPRINTF=1
20695   else
20696     HAVE_SNPRINTF=0
20697   fi
20698
20699   if test "$ac_cv_func_wprintf" = yes; then
20700     HAVE_WPRINTF=1
20701   else
20702     HAVE_WPRINTF=0
20703   fi
20704
20705
20706
20707
20708
20709
20710
20711           am_save_CPPFLAGS="$CPPFLAGS"
20712
20713   for element in $INCICONV; do
20714     haveit=
20715     for x in $CPPFLAGS; do
20716
20717   acl_save_prefix="$prefix"
20718   prefix="$acl_final_prefix"
20719   acl_save_exec_prefix="$exec_prefix"
20720   exec_prefix="$acl_final_exec_prefix"
20721   eval x=\"$x\"
20722   exec_prefix="$acl_save_exec_prefix"
20723   prefix="$acl_save_prefix"
20724
20725       if test "X$x" = "X$element"; then
20726         haveit=yes
20727         break
20728       fi
20729     done
20730     if test -z "$haveit"; then
20731       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20732     fi
20733   done
20734
20735
20736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20737 $as_echo_n "checking for iconv... " >&6; }
20738 if ${am_cv_func_iconv+:} false; then :
20739   $as_echo_n "(cached) " >&6
20740 else
20741
20742     am_cv_func_iconv="no, consider installing GNU libiconv"
20743     am_cv_lib_iconv=no
20744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h.  */
20746 #include <stdlib.h>
20747 #include <iconv.h>
20748 int
20749 main ()
20750 {
20751 iconv_t cd = iconv_open("","");
20752        iconv(cd,NULL,NULL,NULL,NULL);
20753        iconv_close(cd);
20754   ;
20755   return 0;
20756 }
20757 _ACEOF
20758 if ac_fn_c_try_link "$LINENO"; then :
20759   am_cv_func_iconv=yes
20760 fi
20761 rm -f core conftest.err conftest.$ac_objext \
20762     conftest$ac_exeext conftest.$ac_ext
20763     if test "$am_cv_func_iconv" != yes; then
20764       am_save_LIBS="$LIBS"
20765       LIBS="$LIBS $LIBICONV"
20766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h.  */
20768 #include <stdlib.h>
20769 #include <iconv.h>
20770 int
20771 main ()
20772 {
20773 iconv_t cd = iconv_open("","");
20774          iconv(cd,NULL,NULL,NULL,NULL);
20775          iconv_close(cd);
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 if ac_fn_c_try_link "$LINENO"; then :
20781   am_cv_lib_iconv=yes
20782         am_cv_func_iconv=yes
20783 fi
20784 rm -f core conftest.err conftest.$ac_objext \
20785     conftest$ac_exeext conftest.$ac_ext
20786       LIBS="$am_save_LIBS"
20787     fi
20788
20789 fi
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20791 $as_echo "$am_cv_func_iconv" >&6; }
20792   if test "$am_cv_func_iconv" = yes; then
20793
20794 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20795
20796   fi
20797   if test "$am_cv_lib_iconv" = yes; then
20798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20799 $as_echo_n "checking how to link with libiconv... " >&6; }
20800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20801 $as_echo "$LIBICONV" >&6; }
20802   else
20803             CPPFLAGS="$am_save_CPPFLAGS"
20804     LIBICONV=
20805     LTLIBICONV=
20806   fi
20807
20808
20809
20810   if test "$am_cv_func_iconv" = yes; then
20811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20812 $as_echo_n "checking for iconv declaration... " >&6; }
20813     if ${am_cv_proto_iconv+:} false; then :
20814   $as_echo_n "(cached) " >&6
20815 else
20816
20817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h.  */
20819
20820 #include <stdlib.h>
20821 #include <iconv.h>
20822 extern
20823 #ifdef __cplusplus
20824 "C"
20825 #endif
20826 #if defined(__STDC__) || defined(__cplusplus)
20827 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20828 #else
20829 size_t iconv();
20830 #endif
20831
20832 int
20833 main ()
20834 {
20835
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 if ac_fn_c_try_compile "$LINENO"; then :
20841   am_cv_proto_iconv_arg1=""
20842 else
20843   am_cv_proto_iconv_arg1="const"
20844 fi
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846       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);"
20847 fi
20848
20849     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20851          }$am_cv_proto_iconv" >&5
20852 $as_echo "${ac_t:-
20853          }$am_cv_proto_iconv" >&6; }
20854
20855 cat >>confdefs.h <<_ACEOF
20856 #define ICONV_CONST $am_cv_proto_iconv_arg1
20857 _ACEOF
20858
20859   fi
20860
20861
20862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20863 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20864 if ${am_cv_langinfo_codeset+:} false; then :
20865   $as_echo_n "(cached) " >&6
20866 else
20867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h.  */
20869 #include <langinfo.h>
20870 int
20871 main ()
20872 {
20873 char* cs = nl_langinfo(CODESET);
20874   ;
20875   return 0;
20876 }
20877 _ACEOF
20878 if ac_fn_c_try_link "$LINENO"; then :
20879   am_cv_langinfo_codeset=yes
20880 else
20881   am_cv_langinfo_codeset=no
20882 fi
20883 rm -f core conftest.err conftest.$ac_objext \
20884     conftest$ac_exeext conftest.$ac_ext
20885
20886 fi
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20888 $as_echo "$am_cv_langinfo_codeset" >&6; }
20889   if test $am_cv_langinfo_codeset = yes; then
20890
20891 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20892
20893   fi
20894
20895   if test $ac_cv_header_locale_h = yes; then
20896
20897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20898 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20899 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20900   $as_echo_n "(cached) " >&6
20901 else
20902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h.  */
20904 #include <locale.h>
20905 int
20906 main ()
20907 {
20908 return LC_MESSAGES
20909   ;
20910   return 0;
20911 }
20912 _ACEOF
20913 if ac_fn_c_try_link "$LINENO"; then :
20914   gt_cv_val_LC_MESSAGES=yes
20915 else
20916   gt_cv_val_LC_MESSAGES=no
20917 fi
20918 rm -f core conftest.err conftest.$ac_objext \
20919     conftest$ac_exeext conftest.$ac_ext
20920 fi
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20922 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20923   if test $gt_cv_val_LC_MESSAGES = yes; then
20924
20925 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20926
20927   fi
20928
20929   fi
20930
20931   if test -n "$INTL_MACOSX_LIBS"; then
20932     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20933   fi
20934
20935                       for ac_prog in bison
20936 do
20937   # Extract the first word of "$ac_prog", so it can be a program name with args.
20938 set dummy $ac_prog; ac_word=$2
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20940 $as_echo_n "checking for $ac_word... " >&6; }
20941 if ${ac_cv_prog_INTLBISON+:} false; then :
20942   $as_echo_n "(cached) " >&6
20943 else
20944   if test -n "$INTLBISON"; then
20945   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20946 else
20947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20948 for as_dir in $PATH
20949 do
20950   IFS=$as_save_IFS
20951   test -z "$as_dir" && as_dir=.
20952     for ac_exec_ext in '' $ac_executable_extensions; do
20953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20954     ac_cv_prog_INTLBISON="$ac_prog"
20955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20956     break 2
20957   fi
20958 done
20959   done
20960 IFS=$as_save_IFS
20961
20962 fi
20963 fi
20964 INTLBISON=$ac_cv_prog_INTLBISON
20965 if test -n "$INTLBISON"; then
20966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20967 $as_echo "$INTLBISON" >&6; }
20968 else
20969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20971 fi
20972
20973
20974   test -n "$INTLBISON" && break
20975 done
20976
20977   if test -z "$INTLBISON"; then
20978     ac_verc_fail=yes
20979   else
20980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20981 $as_echo_n "checking version of bison... " >&6; }
20982     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20983     case $ac_prog_version in
20984       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20985       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20986          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20987       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20988     esac
20989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20990 $as_echo "$ac_prog_version" >&6; }
20991   fi
20992   if test $ac_verc_fail = yes; then
20993     INTLBISON=:
20994   fi
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21012 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21013 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21014   $as_echo_n "(cached) " >&6
21015 else
21016   gt_save_CPPFLAGS="$CPPFLAGS"
21017      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21018      gt_save_LIBS="$LIBS"
21019      LIBS="$LIBS -framework CoreFoundation"
21020      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h.  */
21022 #include <CFPreferences.h>
21023 int
21024 main ()
21025 {
21026 CFPreferencesCopyAppValue(NULL, NULL)
21027   ;
21028   return 0;
21029 }
21030 _ACEOF
21031 if ac_fn_c_try_link "$LINENO"; then :
21032   gt_cv_func_CFPreferencesCopyAppValue=yes
21033 else
21034   gt_cv_func_CFPreferencesCopyAppValue=no
21035 fi
21036 rm -f core conftest.err conftest.$ac_objext \
21037     conftest$ac_exeext conftest.$ac_ext
21038      CPPFLAGS="$gt_save_CPPFLAGS"
21039      LIBS="$gt_save_LIBS"
21040 fi
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21042 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21043   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21044
21045 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21046
21047   fi
21048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21049 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21050 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21051   $as_echo_n "(cached) " >&6
21052 else
21053   gt_save_CPPFLAGS="$CPPFLAGS"
21054      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21055      gt_save_LIBS="$LIBS"
21056      LIBS="$LIBS -framework CoreFoundation"
21057      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058 /* end confdefs.h.  */
21059 #include <CFLocale.h>
21060 int
21061 main ()
21062 {
21063 CFLocaleCopyCurrent();
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 if ac_fn_c_try_link "$LINENO"; then :
21069   gt_cv_func_CFLocaleCopyCurrent=yes
21070 else
21071   gt_cv_func_CFLocaleCopyCurrent=no
21072 fi
21073 rm -f core conftest.err conftest.$ac_objext \
21074     conftest$ac_exeext conftest.$ac_ext
21075      CPPFLAGS="$gt_save_CPPFLAGS"
21076      LIBS="$gt_save_LIBS"
21077 fi
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21079 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21080   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21081
21082 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21083
21084   fi
21085   INTL_MACOSX_LIBS=
21086   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21087     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21088   fi
21089
21090
21091
21092
21093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21094 $as_echo_n "checking whether NLS is requested... " >&6; }
21095     # Check whether --enable-nls was given.
21096 if test "${enable_nls+set}" = set; then :
21097   enableval=$enable_nls; USE_NLS=$enableval
21098 else
21099   USE_NLS=yes
21100 fi
21101
21102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21103 $as_echo "$USE_NLS" >&6; }
21104
21105
21106
21107
21108     BUILD_INCLUDED_LIBINTL=no
21109     USE_INCLUDED_LIBINTL=no
21110
21111   LIBINTL=
21112   LTLIBINTL=
21113   POSUB=
21114
21115     if test "$USE_NLS" = "yes"; then
21116     gt_use_preinstalled_gnugettext=no
21117
21118       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21119 $as_echo_n "checking whether included gettext is requested... " >&6; }
21120
21121 # Check whether --with-included-gettext was given.
21122 if test "${with_included_gettext+set}" = set; then :
21123   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21124 else
21125   nls_cv_force_use_gnu_gettext=no
21126 fi
21127
21128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21129 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21130
21131       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21132       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21133
21134
21135
21136
21137
21138
21139         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21140 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21141 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21142   $as_echo_n "(cached) " >&6
21143 else
21144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h.  */
21146 #include <libintl.h>
21147 extern int _nl_msg_cat_cntr;
21148 extern int *_nl_domain_bindings;
21149 int
21150 main ()
21151 {
21152 bindtextdomain ("", "");
21153 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 if ac_fn_c_try_link "$LINENO"; then :
21159   gt_cv_func_gnugettext1_libc=yes
21160 else
21161   gt_cv_func_gnugettext1_libc=no
21162 fi
21163 rm -f core conftest.err conftest.$ac_objext \
21164     conftest$ac_exeext conftest.$ac_ext
21165 fi
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21167 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21168
21169         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21170
21171
21172
21173     use_additional=yes
21174
21175   acl_save_prefix="$prefix"
21176   prefix="$acl_final_prefix"
21177   acl_save_exec_prefix="$exec_prefix"
21178   exec_prefix="$acl_final_exec_prefix"
21179
21180     eval additional_includedir=\"$includedir\"
21181     eval additional_libdir=\"$libdir\"
21182
21183   exec_prefix="$acl_save_exec_prefix"
21184   prefix="$acl_save_prefix"
21185
21186
21187 # Check whether --with-libintl-prefix was given.
21188 if test "${with_libintl_prefix+set}" = set; then :
21189   withval=$with_libintl_prefix;
21190     if test "X$withval" = "Xno"; then
21191       use_additional=no
21192     else
21193       if test "X$withval" = "X"; then
21194
21195   acl_save_prefix="$prefix"
21196   prefix="$acl_final_prefix"
21197   acl_save_exec_prefix="$exec_prefix"
21198   exec_prefix="$acl_final_exec_prefix"
21199
21200           eval additional_includedir=\"$includedir\"
21201           eval additional_libdir=\"$libdir\"
21202
21203   exec_prefix="$acl_save_exec_prefix"
21204   prefix="$acl_save_prefix"
21205
21206       else
21207         additional_includedir="$withval/include"
21208         additional_libdir="$withval/lib"
21209       fi
21210     fi
21211
21212 fi
21213
21214       LIBINTL=
21215   LTLIBINTL=
21216   INCINTL=
21217   rpathdirs=
21218   ltrpathdirs=
21219   names_already_handled=
21220   names_next_round='intl '
21221   while test -n "$names_next_round"; do
21222     names_this_round="$names_next_round"
21223     names_next_round=
21224     for name in $names_this_round; do
21225       already_handled=
21226       for n in $names_already_handled; do
21227         if test "$n" = "$name"; then
21228           already_handled=yes
21229           break
21230         fi
21231       done
21232       if test -z "$already_handled"; then
21233         names_already_handled="$names_already_handled $name"
21234                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21235         eval value=\"\$HAVE_LIB$uppername\"
21236         if test -n "$value"; then
21237           if test "$value" = yes; then
21238             eval value=\"\$LIB$uppername\"
21239             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21240             eval value=\"\$LTLIB$uppername\"
21241             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21242           else
21243                                     :
21244           fi
21245         else
21246                               found_dir=
21247           found_la=
21248           found_so=
21249           found_a=
21250           if test $use_additional = yes; then
21251             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21252               found_dir="$additional_libdir"
21253               found_so="$additional_libdir/lib$name.$shlibext"
21254               if test -f "$additional_libdir/lib$name.la"; then
21255                 found_la="$additional_libdir/lib$name.la"
21256               fi
21257             else
21258               if test -f "$additional_libdir/lib$name.$libext"; then
21259                 found_dir="$additional_libdir"
21260                 found_a="$additional_libdir/lib$name.$libext"
21261                 if test -f "$additional_libdir/lib$name.la"; then
21262                   found_la="$additional_libdir/lib$name.la"
21263                 fi
21264               fi
21265             fi
21266           fi
21267           if test "X$found_dir" = "X"; then
21268             for x in $LDFLAGS $LTLIBINTL; do
21269
21270   acl_save_prefix="$prefix"
21271   prefix="$acl_final_prefix"
21272   acl_save_exec_prefix="$exec_prefix"
21273   exec_prefix="$acl_final_exec_prefix"
21274   eval x=\"$x\"
21275   exec_prefix="$acl_save_exec_prefix"
21276   prefix="$acl_save_prefix"
21277
21278               case "$x" in
21279                 -L*)
21280                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21281                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21282                     found_dir="$dir"
21283                     found_so="$dir/lib$name.$shlibext"
21284                     if test -f "$dir/lib$name.la"; then
21285                       found_la="$dir/lib$name.la"
21286                     fi
21287                   else
21288                     if test -f "$dir/lib$name.$libext"; then
21289                       found_dir="$dir"
21290                       found_a="$dir/lib$name.$libext"
21291                       if test -f "$dir/lib$name.la"; then
21292                         found_la="$dir/lib$name.la"
21293                       fi
21294                     fi
21295                   fi
21296                   ;;
21297               esac
21298               if test "X$found_dir" != "X"; then
21299                 break
21300               fi
21301             done
21302           fi
21303           if test "X$found_dir" != "X"; then
21304                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21305             if test "X$found_so" != "X"; then
21306                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21307                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21308               else
21309                                                                                 haveit=
21310                 for x in $ltrpathdirs; do
21311                   if test "X$x" = "X$found_dir"; then
21312                     haveit=yes
21313                     break
21314                   fi
21315                 done
21316                 if test -z "$haveit"; then
21317                   ltrpathdirs="$ltrpathdirs $found_dir"
21318                 fi
21319                                 if test "$hardcode_direct" = yes; then
21320                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21321                 else
21322                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21323                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21324                                                             haveit=
21325                     for x in $rpathdirs; do
21326                       if test "X$x" = "X$found_dir"; then
21327                         haveit=yes
21328                         break
21329                       fi
21330                     done
21331                     if test -z "$haveit"; then
21332                       rpathdirs="$rpathdirs $found_dir"
21333                     fi
21334                   else
21335                                                                                 haveit=
21336                     for x in $LDFLAGS $LIBINTL; do
21337
21338   acl_save_prefix="$prefix"
21339   prefix="$acl_final_prefix"
21340   acl_save_exec_prefix="$exec_prefix"
21341   exec_prefix="$acl_final_exec_prefix"
21342   eval x=\"$x\"
21343   exec_prefix="$acl_save_exec_prefix"
21344   prefix="$acl_save_prefix"
21345
21346                       if test "X$x" = "X-L$found_dir"; then
21347                         haveit=yes
21348                         break
21349                       fi
21350                     done
21351                     if test -z "$haveit"; then
21352                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21353                     fi
21354                     if test "$hardcode_minus_L" != no; then
21355                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21356                     else
21357                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21358                     fi
21359                   fi
21360                 fi
21361               fi
21362             else
21363               if test "X$found_a" != "X"; then
21364                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21365               else
21366                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21367               fi
21368             fi
21369                         additional_includedir=
21370             case "$found_dir" in
21371               */lib | */lib/)
21372                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21373                 additional_includedir="$basedir/include"
21374                 ;;
21375             esac
21376             if test "X$additional_includedir" != "X"; then
21377                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21378                 haveit=
21379                 if test "X$additional_includedir" = "X/usr/local/include"; then
21380                   if test -n "$GCC"; then
21381                     case $host_os in
21382                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21383                     esac
21384                   fi
21385                 fi
21386                 if test -z "$haveit"; then
21387                   for x in $CPPFLAGS $INCINTL; do
21388
21389   acl_save_prefix="$prefix"
21390   prefix="$acl_final_prefix"
21391   acl_save_exec_prefix="$exec_prefix"
21392   exec_prefix="$acl_final_exec_prefix"
21393   eval x=\"$x\"
21394   exec_prefix="$acl_save_exec_prefix"
21395   prefix="$acl_save_prefix"
21396
21397                     if test "X$x" = "X-I$additional_includedir"; then
21398                       haveit=yes
21399                       break
21400                     fi
21401                   done
21402                   if test -z "$haveit"; then
21403                     if test -d "$additional_includedir"; then
21404                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21405                     fi
21406                   fi
21407                 fi
21408               fi
21409             fi
21410                         if test -n "$found_la"; then
21411                                                         save_libdir="$libdir"
21412               case "$found_la" in
21413                 */* | *\\*) . "$found_la" ;;
21414                 *) . "./$found_la" ;;
21415               esac
21416               libdir="$save_libdir"
21417                             for dep in $dependency_libs; do
21418                 case "$dep" in
21419                   -L*)
21420                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21421                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21422                       haveit=
21423                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21424                         if test -n "$GCC"; then
21425                           case $host_os in
21426                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21427                           esac
21428                         fi
21429                       fi
21430                       if test -z "$haveit"; then
21431                         haveit=
21432                         for x in $LDFLAGS $LIBINTL; do
21433
21434   acl_save_prefix="$prefix"
21435   prefix="$acl_final_prefix"
21436   acl_save_exec_prefix="$exec_prefix"
21437   exec_prefix="$acl_final_exec_prefix"
21438   eval x=\"$x\"
21439   exec_prefix="$acl_save_exec_prefix"
21440   prefix="$acl_save_prefix"
21441
21442                           if test "X$x" = "X-L$additional_libdir"; then
21443                             haveit=yes
21444                             break
21445                           fi
21446                         done
21447                         if test -z "$haveit"; then
21448                           if test -d "$additional_libdir"; then
21449                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21450                           fi
21451                         fi
21452                         haveit=
21453                         for x in $LDFLAGS $LTLIBINTL; do
21454
21455   acl_save_prefix="$prefix"
21456   prefix="$acl_final_prefix"
21457   acl_save_exec_prefix="$exec_prefix"
21458   exec_prefix="$acl_final_exec_prefix"
21459   eval x=\"$x\"
21460   exec_prefix="$acl_save_exec_prefix"
21461   prefix="$acl_save_prefix"
21462
21463                           if test "X$x" = "X-L$additional_libdir"; then
21464                             haveit=yes
21465                             break
21466                           fi
21467                         done
21468                         if test -z "$haveit"; then
21469                           if test -d "$additional_libdir"; then
21470                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21471                           fi
21472                         fi
21473                       fi
21474                     fi
21475                     ;;
21476                   -R*)
21477                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21478                     if test "$enable_rpath" != no; then
21479                                                                   haveit=
21480                       for x in $rpathdirs; do
21481                         if test "X$x" = "X$dir"; then
21482                           haveit=yes
21483                           break
21484                         fi
21485                       done
21486                       if test -z "$haveit"; then
21487                         rpathdirs="$rpathdirs $dir"
21488                       fi
21489                                                                   haveit=
21490                       for x in $ltrpathdirs; do
21491                         if test "X$x" = "X$dir"; then
21492                           haveit=yes
21493                           break
21494                         fi
21495                       done
21496                       if test -z "$haveit"; then
21497                         ltrpathdirs="$ltrpathdirs $dir"
21498                       fi
21499                     fi
21500                     ;;
21501                   -l*)
21502                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21503                     ;;
21504                   *.la)
21505                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21506                     ;;
21507                   *)
21508                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21509                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21510                     ;;
21511                 esac
21512               done
21513             fi
21514           else
21515                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21516             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21517           fi
21518         fi
21519       fi
21520     done
21521   done
21522   if test "X$rpathdirs" != "X"; then
21523     if test -n "$hardcode_libdir_separator"; then
21524                         alldirs=
21525       for found_dir in $rpathdirs; do
21526         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21527       done
21528             acl_save_libdir="$libdir"
21529       libdir="$alldirs"
21530       eval flag=\"$hardcode_libdir_flag_spec\"
21531       libdir="$acl_save_libdir"
21532       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21533     else
21534             for found_dir in $rpathdirs; do
21535         acl_save_libdir="$libdir"
21536         libdir="$found_dir"
21537         eval flag=\"$hardcode_libdir_flag_spec\"
21538         libdir="$acl_save_libdir"
21539         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21540       done
21541     fi
21542   fi
21543   if test "X$ltrpathdirs" != "X"; then
21544             for found_dir in $ltrpathdirs; do
21545       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21546     done
21547   fi
21548
21549           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21550 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21551 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21552   $as_echo_n "(cached) " >&6
21553 else
21554   gt_save_CPPFLAGS="$CPPFLAGS"
21555             CPPFLAGS="$CPPFLAGS $INCINTL"
21556             gt_save_LIBS="$LIBS"
21557             LIBS="$LIBS $LIBINTL"
21558                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h.  */
21560 #include <libintl.h>
21561 extern int _nl_msg_cat_cntr;
21562 extern
21563 #ifdef __cplusplus
21564 "C"
21565 #endif
21566 const char *_nl_expand_alias (const char *);
21567 int
21568 main ()
21569 {
21570 bindtextdomain ("", "");
21571 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 if ac_fn_c_try_link "$LINENO"; then :
21577   gt_cv_func_gnugettext1_libintl=yes
21578 else
21579   gt_cv_func_gnugettext1_libintl=no
21580 fi
21581 rm -f core conftest.err conftest.$ac_objext \
21582     conftest$ac_exeext conftest.$ac_ext
21583                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21584               LIBS="$LIBS $LIBICONV"
21585               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h.  */
21587 #include <libintl.h>
21588 extern int _nl_msg_cat_cntr;
21589 extern
21590 #ifdef __cplusplus
21591 "C"
21592 #endif
21593 const char *_nl_expand_alias (const char *);
21594 int
21595 main ()
21596 {
21597 bindtextdomain ("", "");
21598 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21599   ;
21600   return 0;
21601 }
21602 _ACEOF
21603 if ac_fn_c_try_link "$LINENO"; then :
21604   LIBINTL="$LIBINTL $LIBICONV"
21605                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21606                 gt_cv_func_gnugettext1_libintl=yes
21607
21608 fi
21609 rm -f core conftest.err conftest.$ac_objext \
21610     conftest$ac_exeext conftest.$ac_ext
21611             fi
21612             CPPFLAGS="$gt_save_CPPFLAGS"
21613             LIBS="$gt_save_LIBS"
21614 fi
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21616 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21617         fi
21618
21619                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21620            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21621                 && test "$PACKAGE" != gettext-runtime \
21622                 && test "$PACKAGE" != gettext-tools; }; then
21623           gt_use_preinstalled_gnugettext=yes
21624         else
21625                     LIBINTL=
21626           LTLIBINTL=
21627           INCINTL=
21628         fi
21629
21630
21631         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21632                               nls_cv_use_gnu_gettext=yes
21633         fi
21634       fi
21635
21636       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21637                 BUILD_INCLUDED_LIBINTL=yes
21638         USE_INCLUDED_LIBINTL=yes
21639         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21640         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21641         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21642       fi
21643
21644       CATOBJEXT=
21645       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21646          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21647                 CATOBJEXT=.gmo
21648       fi
21649
21650
21651     if test -n "$INTL_MACOSX_LIBS"; then
21652       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21653          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21654                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21655         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21656       fi
21657     fi
21658
21659     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21660        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21661
21662 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21663
21664     else
21665       USE_NLS=no
21666     fi
21667   fi
21668
21669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21670 $as_echo_n "checking whether to use NLS... " >&6; }
21671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21672 $as_echo "$USE_NLS" >&6; }
21673   if test "$USE_NLS" = "yes"; then
21674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21675 $as_echo_n "checking where the gettext function comes from... " >&6; }
21676     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21677       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21678         gt_source="external libintl"
21679       else
21680         gt_source="libc"
21681       fi
21682     else
21683       gt_source="included intl directory"
21684     fi
21685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21686 $as_echo "$gt_source" >&6; }
21687   fi
21688
21689   if test "$USE_NLS" = "yes"; then
21690
21691     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21692       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21694 $as_echo_n "checking how to link with libintl... " >&6; }
21695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21696 $as_echo "$LIBINTL" >&6; }
21697
21698   for element in $INCINTL; do
21699     haveit=
21700     for x in $CPPFLAGS; do
21701
21702   acl_save_prefix="$prefix"
21703   prefix="$acl_final_prefix"
21704   acl_save_exec_prefix="$exec_prefix"
21705   exec_prefix="$acl_final_exec_prefix"
21706   eval x=\"$x\"
21707   exec_prefix="$acl_save_exec_prefix"
21708   prefix="$acl_save_prefix"
21709
21710       if test "X$x" = "X$element"; then
21711         haveit=yes
21712         break
21713       fi
21714     done
21715     if test -z "$haveit"; then
21716       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21717     fi
21718   done
21719
21720       fi
21721
21722
21723 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21724
21725
21726 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21727
21728     fi
21729
21730         POSUB=po
21731   fi
21732
21733
21734             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21735       BUILD_INCLUDED_LIBINTL=yes
21736     fi
21737
21738
21739
21740
21741
21742         nls_cv_header_intl=
21743     nls_cv_header_libgt=
21744
21745         DATADIRNAME=share
21746
21747
21748         INSTOBJEXT=.mo
21749
21750
21751         GENCAT=gencat
21752
21753
21754         INTLOBJS=
21755     if test "$USE_INCLUDED_LIBINTL" = yes; then
21756       INTLOBJS="\$(GETTOBJS)"
21757     fi
21758
21759
21760         INTL_LIBTOOL_SUFFIX_PREFIX=
21761
21762
21763
21764     INTLLIBS="$LIBINTL"
21765
21766
21767
21768
21769
21770
21771 fi
21772
21773 support_smartalloc=yes
21774 support_readline=yes
21775 support_lzo=yes
21776 support_conio=yes
21777 support_bat=no
21778 support_tls=no
21779 support_crypto=no
21780 support_static_tools=no
21781 support_static_fd=no
21782 support_static_sd=no
21783 support_static_dir=no
21784 support_static_cons=no
21785 build_client_only=no
21786 build_dird=yes
21787 build_stored=yes
21788 db_backends=""
21789 batch_insert_db_backends=""
21790 support_lockmgr=no
21791
21792
21793 # Check whether --enable-bat was given.
21794 if test "${enable_bat+set}" = set; then :
21795   enableval=$enable_bat;
21796        if test x$enableval = xyes; then
21797
21798 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21799
21800           support_bat=yes
21801        fi
21802
21803
21804 fi
21805
21806
21807 BAT_DIR=
21808 if test x$support_bat = xyes; then
21809    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21810    pkg=$?
21811    if test $pkg = 0; then
21812       BAT_DIR=src/qt-console
21813    else
21814       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21815    fi
21816 fi
21817
21818 got_qwt=no
21819 QWT_INC=
21820 QWT_LDFLAGS=
21821 QWT_LIB=
21822 QWT=
21823 no_qwt=no
21824
21825
21826
21827
21828
21829
21830
21831
21832 # Check whether --enable-smartalloc was given.
21833 if test "${enable_smartalloc+set}" = set; then :
21834   enableval=$enable_smartalloc;
21835        if test x$enableval = xno; then
21836           support_smartalloc=no
21837        fi
21838
21839
21840 fi
21841
21842
21843 if test x$support_smartalloc = xyes; then
21844
21845 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21846
21847 fi
21848
21849 # Check whether --enable-lockmgr was given.
21850 if test "${enable_lockmgr+set}" = set; then :
21851   enableval=$enable_lockmgr;
21852        if test x$enableval = xyes; then
21853           support_lockmgr=yes
21854        fi
21855
21856
21857 fi
21858
21859
21860 if test x$support_lockmgr = xyes; then
21861
21862 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21863
21864 fi
21865
21866
21867 # Check whether --enable-static-tools was given.
21868 if test "${enable_static_tools+set}" = set; then :
21869   enableval=$enable_static_tools;
21870        if test x$enableval = xyes; then
21871           if test x$use_libtool = xyes; then
21872              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21873   please rerun configure with --disable-libtool" "$LINENO" 5
21874           fi
21875           support_static_tools=yes
21876        fi
21877
21878
21879 fi
21880
21881
21882 TTOOL_LDFLAGS=
21883 if test x$support_static_tools = xyes; then
21884    TTOOL_LDFLAGS="-static"
21885 fi
21886
21887
21888 # Check whether --enable-static-fd was given.
21889 if test "${enable_static_fd+set}" = set; then :
21890   enableval=$enable_static_fd;
21891        if test x$enableval = xyes; then
21892           if test x$use_libtool = xyes; then
21893              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21894   please rerun configure with --disable-libtool" "$LINENO" 5
21895           fi
21896           support_static_fd=yes
21897        fi
21898
21899
21900 fi
21901
21902
21903 STATIC_FD=
21904 if test x$support_static_fd = xyes; then
21905    STATIC_FD="static-bacula-fd"
21906 fi
21907
21908
21909 # Check whether --enable-static-sd was given.
21910 if test "${enable_static_sd+set}" = set; then :
21911   enableval=$enable_static_sd;
21912        if test x$enableval = xyes; then
21913           if test x$use_libtool = xyes; then
21914              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21915   please rerun configure with --disable-libtool" "$LINENO" 5
21916           fi
21917           support_static_sd=yes
21918        fi
21919
21920
21921 fi
21922
21923
21924 STATIC_SD=
21925 if test x$support_static_sd = xyes; then
21926    STATIC_SD="static-bacula-sd"
21927 fi
21928
21929
21930 # Check whether --enable-static-dir was given.
21931 if test "${enable_static_dir+set}" = set; then :
21932   enableval=$enable_static_dir;
21933        if test x$enableval = xyes; then
21934           if test x$use_libtool = xyes; then
21935              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21936   please rerun configure with --disable-libtool" "$LINENO" 5
21937           fi
21938           support_static_dir=yes
21939        fi
21940
21941
21942 fi
21943
21944
21945 STATIC_DIR=
21946 if test x$support_static_dir = xyes; then
21947    STATIC_DIR="static-bacula-dir"
21948 fi
21949
21950
21951 # Check whether --enable-static-cons was given.
21952 if test "${enable_static_cons+set}" = set; then :
21953   enableval=$enable_static_cons;
21954        if test x$enableval = xyes; then
21955           if test x$use_libtool = xyes; then
21956              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21957   please rerun configure with --disable-libtool" "$LINENO" 5
21958           fi
21959           support_static_cons=yes
21960        fi
21961
21962
21963 fi
21964
21965
21966 STATIC_CONS=
21967 if test x$support_static_cons = xyes; then
21968    STATIC_CONS="static-bconsole"
21969 fi
21970
21971
21972 # Check whether --enable-client-only was given.
21973 if test "${enable_client_only+set}" = set; then :
21974   enableval=$enable_client_only;
21975        if test x$enableval = xyes; then
21976           build_client_only=yes
21977           db_backends="None"
21978           DB_BACKENDS="none"
21979        fi
21980
21981
21982 fi
21983
21984 if test x$build_client_only = xno; then
21985    ALL_DIRS="subdirs"
21986 else
21987    ALL_DIRS=""
21988 fi
21989
21990
21991 # Check whether --enable-build-dird was given.
21992 if test "${enable_build_dird+set}" = set; then :
21993   enableval=$enable_build_dird;
21994        if test x$enableval = xno; then
21995           build_dird=no
21996        fi
21997
21998
21999 fi
22000
22001
22002 DIRD_DIR="src/dird"
22003 DIR_TOOLS="DIRTOOLS"
22004
22005
22006
22007
22008 # Check whether --enable-build-stored was given.
22009 if test "${enable_build_stored+set}" = set; then :
22010   enableval=$enable_build_stored;
22011       if test x$enableval = xno; then
22012          build_stored=no
22013       fi
22014
22015
22016 fi
22017
22018 if test x$build_stored = xyes; then
22019    STORED_DIR="src/stored"
22020 else
22021    STORED_DIR=""
22022 fi
22023
22024
22025 # Check whether --enable-conio was given.
22026 if test "${enable_conio+set}" = set; then :
22027   enableval=$enable_conio;
22028        if test x$enableval = xno; then
22029           support_conio=no
22030        fi
22031
22032
22033 fi
22034
22035
22036
22037 support_ipv6=yes
22038 # Check whether --enable-ipv6 was given.
22039 if test "${enable_ipv6+set}" = set; then :
22040   enableval=$enable_ipv6;
22041        if test x$enableval = xno; then
22042           support_ipv6=no
22043        fi
22044
22045
22046 fi
22047
22048
22049 if test x$support_ipv6 = xyes; then
22050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h.  */
22052  #include <sys/types.h>
22053 #include <sys/socket.h>
22054 #include <netinet/in.h>
22055 int
22056 main ()
22057 {
22058 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22059   ;
22060   return 0;
22061 }
22062 _ACEOF
22063 if ac_fn_c_try_link "$LINENO"; then :
22064   support_in6addr_any=yes
22065 else
22066   support_in6addr_any=no
22067 fi
22068 rm -f core conftest.err conftest.$ac_objext \
22069     conftest$ac_exeext conftest.$ac_ext
22070
22071    if test x$support_in6addr_any = xno ; then
22072        in6addr_any="const struct in6_addr in6addr_any"
22073    else
22074        in6addr_any="1"
22075    fi
22076
22077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h.  */
22079  #include <sys/types.h>
22080 #include <sys/socket.h>
22081 #include <netinet/in.h>
22082 int
22083 main ()
22084 {
22085 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22086   ;
22087   return 0;
22088 }
22089 _ACEOF
22090 if ac_fn_c_try_link "$LINENO"; then :
22091   support_ipv6=yes
22092 else
22093   support_ipv6=no
22094 fi
22095 rm -f core conftest.err conftest.$ac_objext \
22096     conftest$ac_exeext conftest.$ac_ext
22097 fi
22098
22099 if test x$support_ipv6 = xyes; then
22100
22101 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22102
22103
22104    if test x$support_in6addr_any = xno ; then
22105
22106 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22107
22108    fi
22109 fi
22110
22111 TERM_LIB=""
22112 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22113 if test "x$ac_cv_header_curses_h" = xyes; then :
22114
22115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22116 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22117 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22118   $as_echo_n "(cached) " >&6
22119 else
22120   ac_check_lib_save_LIBS=$LIBS
22121 LIBS="-ltinfo  $LIBS"
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h.  */
22124
22125 /* Override any GCC internal prototype to avoid an error.
22126    Use char because int might match the return type of a GCC
22127    builtin and then its argument prototype would still apply.  */
22128 #ifdef __cplusplus
22129 extern "C"
22130 #endif
22131 char tgetent ();
22132 int
22133 main ()
22134 {
22135 return tgetent ();
22136   ;
22137   return 0;
22138 }
22139 _ACEOF
22140 if ac_fn_c_try_link "$LINENO"; then :
22141   ac_cv_lib_tinfo_tgetent=yes
22142 else
22143   ac_cv_lib_tinfo_tgetent=no
22144 fi
22145 rm -f core conftest.err conftest.$ac_objext \
22146     conftest$ac_exeext conftest.$ac_ext
22147 LIBS=$ac_check_lib_save_LIBS
22148 fi
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22150 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22151 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22152    TERM_LIB="-ltinfo"
22153 else
22154
22155       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22156 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22157 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22158   $as_echo_n "(cached) " >&6
22159 else
22160   ac_check_lib_save_LIBS=$LIBS
22161 LIBS="-lncurses  $LIBS"
22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h.  */
22164
22165 /* Override any GCC internal prototype to avoid an error.
22166    Use char because int might match the return type of a GCC
22167    builtin and then its argument prototype would still apply.  */
22168 #ifdef __cplusplus
22169 extern "C"
22170 #endif
22171 char tgetent ();
22172 int
22173 main ()
22174 {
22175 return tgetent ();
22176   ;
22177   return 0;
22178 }
22179 _ACEOF
22180 if ac_fn_c_try_link "$LINENO"; then :
22181   ac_cv_lib_ncurses_tgetent=yes
22182 else
22183   ac_cv_lib_ncurses_tgetent=no
22184 fi
22185 rm -f core conftest.err conftest.$ac_objext \
22186     conftest$ac_exeext conftest.$ac_ext
22187 LIBS=$ac_check_lib_save_LIBS
22188 fi
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22190 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22191 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22192    TERM_LIB="-lncurses"
22193 else
22194
22195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22196 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22197 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22198   $as_echo_n "(cached) " >&6
22199 else
22200   ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-ltermcap  $LIBS"
22202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203 /* end confdefs.h.  */
22204
22205 /* Override any GCC internal prototype to avoid an error.
22206    Use char because int might match the return type of a GCC
22207    builtin and then its argument prototype would still apply.  */
22208 #ifdef __cplusplus
22209 extern "C"
22210 #endif
22211 char tgetent ();
22212 int
22213 main ()
22214 {
22215 return tgetent ();
22216   ;
22217   return 0;
22218 }
22219 _ACEOF
22220 if ac_fn_c_try_link "$LINENO"; then :
22221   ac_cv_lib_termcap_tgetent=yes
22222 else
22223   ac_cv_lib_termcap_tgetent=no
22224 fi
22225 rm -f core conftest.err conftest.$ac_objext \
22226     conftest$ac_exeext conftest.$ac_ext
22227 LIBS=$ac_check_lib_save_LIBS
22228 fi
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22230 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22231 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22232    TERM_LIB="-ltermcap"
22233 fi
22234
22235
22236 fi
22237
22238
22239 fi
22240
22241
22242 else
22243     for ac_header in curses.h
22244 do :
22245   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22246 if test "x$ac_cv_header_curses_h" = xyes; then :
22247   cat >>confdefs.h <<_ACEOF
22248 #define HAVE_CURSES_H 1
22249 _ACEOF
22250
22251 fi
22252
22253 done
22254
22255      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22256 if test "x$ac_cv_header_term_h" = xyes; then :
22257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22258 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22259 if ${ac_cv_lib_curses_tgetent+:} false; then :
22260   $as_echo_n "(cached) " >&6
22261 else
22262   ac_check_lib_save_LIBS=$LIBS
22263 LIBS="-lcurses  $LIBS"
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h.  */
22266
22267 /* Override any GCC internal prototype to avoid an error.
22268    Use char because int might match the return type of a GCC
22269    builtin and then its argument prototype would still apply.  */
22270 #ifdef __cplusplus
22271 extern "C"
22272 #endif
22273 char tgetent ();
22274 int
22275 main ()
22276 {
22277 return tgetent ();
22278   ;
22279   return 0;
22280 }
22281 _ACEOF
22282 if ac_fn_c_try_link "$LINENO"; then :
22283   ac_cv_lib_curses_tgetent=yes
22284 else
22285   ac_cv_lib_curses_tgetent=no
22286 fi
22287 rm -f core conftest.err conftest.$ac_objext \
22288     conftest$ac_exeext conftest.$ac_ext
22289 LIBS=$ac_check_lib_save_LIBS
22290 fi
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22292 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22293 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22294    TERM_LIB="-lcurses"
22295 fi
22296
22297
22298 fi
22299
22300
22301
22302 fi
22303
22304
22305
22306
22307 got_conio="no"
22308 if test x$support_conio = xyes; then
22309    if test x$TERM_LIB != x; then
22310       CONS_LIBS=$TERM_LIB
22311       CONS_OBJ="conio.o"
22312       CONS_SRC="conio.c"
22313       got_conio="yes"
22314       support_readline=no
22315
22316 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22317
22318    else
22319       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22320    fi
22321 fi
22322
22323
22324 # Check whether --enable-readline was given.
22325 if test "${enable_readline+set}" = set; then :
22326   enableval=$enable_readline;
22327        if test x$enableval = xno; then
22328           support_readline=no
22329        fi
22330
22331
22332 fi
22333
22334
22335 got_readline="no"
22336 READLINE_SRC=
22337 if test x$support_readline = xyes; then
22338
22339 # Check whether --with-readline was given.
22340 if test "${with_readline+set}" = set; then :
22341   withval=$with_readline;
22342           case "$with_readline" in
22343           no)
22344              :
22345              ;;
22346           yes|*)
22347              if test -f ${with_readline}/readline.h; then
22348                 CONS_INC="-I${with_readline}"
22349                 CONS_LDFLAGS="-L$with_readline"
22350              elif test -f ${with_readline}/include/readline/readline.h; then
22351                 CONS_INC="-I${with_readline}/include/readline"
22352                 CONS_LDFLAGS="-L${with_readline}/lib"
22353                 with_readline="${with_readline}/include/readline"
22354              else
22355                 with_readline="/usr/include/readline"
22356              fi
22357
22358              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22359 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22361
22362
22363 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22364
22365                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22366                     got_readline="yes"
22367
22368 else
22369
22370                     echo " "
22371                     echo "readline.h not found. readline turned off ..."
22372                     echo " "
22373
22374
22375 fi
22376
22377
22378              ;;
22379           esac
22380
22381 else
22382
22383                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22384 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22385
22386
22387 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22388
22389                 got_readline="yes"
22390                 CONS_INC="-I/usr/include/readline"
22391                 CONS_LIBS="-lreadline ${TERM_LIB}"
22392
22393 else
22394
22395                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22396 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22397 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22398
22399
22400 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22401
22402                         got_readline="yes"
22403                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22404                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22405                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22406                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22407
22408 else
22409
22410                         echo " "
22411                         echo "readline.h not found. readline turned off ..."
22412                         echo " "
22413
22414
22415 fi
22416
22417
22418
22419
22420 fi
22421
22422
22423
22424
22425 fi
22426
22427 fi
22428
22429
22430
22431
22432
22433
22434
22435
22436 MAKE_SHELL=/bin/sh
22437
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22439 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22440 if ${ac_cv_header_stat_broken+:} false; then :
22441   $as_echo_n "(cached) " >&6
22442 else
22443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h.  */
22445 #include <sys/types.h>
22446 #include <sys/stat.h>
22447
22448 #if defined S_ISBLK && defined S_IFDIR
22449 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22450 #endif
22451
22452 #if defined S_ISBLK && defined S_IFCHR
22453 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22454 #endif
22455
22456 #if defined S_ISLNK && defined S_IFREG
22457 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22458 #endif
22459
22460 #if defined S_ISSOCK && defined S_IFREG
22461 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22462 #endif
22463
22464 _ACEOF
22465 if ac_fn_c_try_compile "$LINENO"; then :
22466   ac_cv_header_stat_broken=no
22467 else
22468   ac_cv_header_stat_broken=yes
22469 fi
22470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 fi
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22473 $as_echo "$ac_cv_header_stat_broken" >&6; }
22474 if test $ac_cv_header_stat_broken = yes; then
22475
22476 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22477
22478 fi
22479
22480 ac_header_dirent=no
22481 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22482   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22484 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22485 if eval \${$as_ac_Header+:} false; then :
22486   $as_echo_n "(cached) " >&6
22487 else
22488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h.  */
22490 #include <sys/types.h>
22491 #include <$ac_hdr>
22492
22493 int
22494 main ()
22495 {
22496 if ((DIR *) 0)
22497 return 0;
22498   ;
22499   return 0;
22500 }
22501 _ACEOF
22502 if ac_fn_c_try_compile "$LINENO"; then :
22503   eval "$as_ac_Header=yes"
22504 else
22505   eval "$as_ac_Header=no"
22506 fi
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 fi
22509 eval ac_res=\$$as_ac_Header
22510                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22511 $as_echo "$ac_res" >&6; }
22512 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22513   cat >>confdefs.h <<_ACEOF
22514 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22515 _ACEOF
22516
22517 ac_header_dirent=$ac_hdr; break
22518 fi
22519
22520 done
22521 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22522 if test $ac_header_dirent = dirent.h; then
22523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22524 $as_echo_n "checking for library containing opendir... " >&6; }
22525 if ${ac_cv_search_opendir+:} false; then :
22526   $as_echo_n "(cached) " >&6
22527 else
22528   ac_func_search_save_LIBS=$LIBS
22529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22530 /* end confdefs.h.  */
22531
22532 /* Override any GCC internal prototype to avoid an error.
22533    Use char because int might match the return type of a GCC
22534    builtin and then its argument prototype would still apply.  */
22535 #ifdef __cplusplus
22536 extern "C"
22537 #endif
22538 char opendir ();
22539 int
22540 main ()
22541 {
22542 return opendir ();
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 for ac_lib in '' dir; do
22548   if test -z "$ac_lib"; then
22549     ac_res="none required"
22550   else
22551     ac_res=-l$ac_lib
22552     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22553   fi
22554   if ac_fn_c_try_link "$LINENO"; then :
22555   ac_cv_search_opendir=$ac_res
22556 fi
22557 rm -f core conftest.err conftest.$ac_objext \
22558     conftest$ac_exeext
22559   if ${ac_cv_search_opendir+:} false; then :
22560   break
22561 fi
22562 done
22563 if ${ac_cv_search_opendir+:} false; then :
22564
22565 else
22566   ac_cv_search_opendir=no
22567 fi
22568 rm conftest.$ac_ext
22569 LIBS=$ac_func_search_save_LIBS
22570 fi
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22572 $as_echo "$ac_cv_search_opendir" >&6; }
22573 ac_res=$ac_cv_search_opendir
22574 if test "$ac_res" != no; then :
22575   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22576
22577 fi
22578
22579 else
22580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22581 $as_echo_n "checking for library containing opendir... " >&6; }
22582 if ${ac_cv_search_opendir+:} false; then :
22583   $as_echo_n "(cached) " >&6
22584 else
22585   ac_func_search_save_LIBS=$LIBS
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587 /* end confdefs.h.  */
22588
22589 /* Override any GCC internal prototype to avoid an error.
22590    Use char because int might match the return type of a GCC
22591    builtin and then its argument prototype would still apply.  */
22592 #ifdef __cplusplus
22593 extern "C"
22594 #endif
22595 char opendir ();
22596 int
22597 main ()
22598 {
22599 return opendir ();
22600   ;
22601   return 0;
22602 }
22603 _ACEOF
22604 for ac_lib in '' x; do
22605   if test -z "$ac_lib"; then
22606     ac_res="none required"
22607   else
22608     ac_res=-l$ac_lib
22609     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22610   fi
22611   if ac_fn_c_try_link "$LINENO"; then :
22612   ac_cv_search_opendir=$ac_res
22613 fi
22614 rm -f core conftest.err conftest.$ac_objext \
22615     conftest$ac_exeext
22616   if ${ac_cv_search_opendir+:} false; then :
22617   break
22618 fi
22619 done
22620 if ${ac_cv_search_opendir+:} false; then :
22621
22622 else
22623   ac_cv_search_opendir=no
22624 fi
22625 rm conftest.$ac_ext
22626 LIBS=$ac_func_search_save_LIBS
22627 fi
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22629 $as_echo "$ac_cv_search_opendir" >&6; }
22630 ac_res=$ac_cv_search_opendir
22631 if test "$ac_res" != no; then :
22632   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22633
22634 fi
22635
22636 fi
22637
22638 for ac_func in strcasecmp select setenv putenv tcgetattr
22639 do :
22640   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22643   cat >>confdefs.h <<_ACEOF
22644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22645 _ACEOF
22646
22647 fi
22648 done
22649
22650 for ac_func in lstat lchown lchmod futimes fchmod fchown
22651 do :
22652   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22655   cat >>confdefs.h <<_ACEOF
22656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22657 _ACEOF
22658
22659 fi
22660 done
22661
22662 for ac_func in nanosleep nl_langinfo
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 be64toh htobe64
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_header in varargs.h
22687 do :
22688   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22689 if test "x$ac_cv_header_varargs_h" = xyes; then :
22690   cat >>confdefs.h <<_ACEOF
22691 #define HAVE_VARARGS_H 1
22692 _ACEOF
22693
22694 fi
22695
22696 done
22697
22698
22699
22700 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22701 if test "x$ac_cv_func_socket" = xyes; then :
22702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22703 $as_echo "using libc's socket" >&6; }
22704 else
22705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22706 $as_echo_n "checking for socket in -lxnet... " >&6; }
22707 if ${ac_cv_lib_xnet_socket+:} false; then :
22708   $as_echo_n "(cached) " >&6
22709 else
22710   ac_check_lib_save_LIBS=$LIBS
22711 LIBS="-lxnet  $LIBS"
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h.  */
22714
22715 /* Override any GCC internal prototype to avoid an error.
22716    Use char because int might match the return type of a GCC
22717    builtin and then its argument prototype would still apply.  */
22718 #ifdef __cplusplus
22719 extern "C"
22720 #endif
22721 char socket ();
22722 int
22723 main ()
22724 {
22725 return socket ();
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 if ac_fn_c_try_link "$LINENO"; then :
22731   ac_cv_lib_xnet_socket=yes
22732 else
22733   ac_cv_lib_xnet_socket=no
22734 fi
22735 rm -f core conftest.err conftest.$ac_objext \
22736     conftest$ac_exeext conftest.$ac_ext
22737 LIBS=$ac_check_lib_save_LIBS
22738 fi
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22740 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22741 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22742   cat >>confdefs.h <<_ACEOF
22743 #define HAVE_LIBXNET 1
22744 _ACEOF
22745
22746   LIBS="-lxnet $LIBS"
22747
22748 fi
22749
22750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22751 $as_echo_n "checking for socket in -lsocket... " >&6; }
22752 if ${ac_cv_lib_socket_socket+:} false; then :
22753   $as_echo_n "(cached) " >&6
22754 else
22755   ac_check_lib_save_LIBS=$LIBS
22756 LIBS="-lsocket  $LIBS"
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h.  */
22759
22760 /* Override any GCC internal prototype to avoid an error.
22761    Use char because int might match the return type of a GCC
22762    builtin and then its argument prototype would still apply.  */
22763 #ifdef __cplusplus
22764 extern "C"
22765 #endif
22766 char socket ();
22767 int
22768 main ()
22769 {
22770 return socket ();
22771   ;
22772   return 0;
22773 }
22774 _ACEOF
22775 if ac_fn_c_try_link "$LINENO"; then :
22776   ac_cv_lib_socket_socket=yes
22777 else
22778   ac_cv_lib_socket_socket=no
22779 fi
22780 rm -f core conftest.err conftest.$ac_objext \
22781     conftest$ac_exeext conftest.$ac_ext
22782 LIBS=$ac_check_lib_save_LIBS
22783 fi
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22785 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22786 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22787   cat >>confdefs.h <<_ACEOF
22788 #define HAVE_LIBSOCKET 1
22789 _ACEOF
22790
22791   LIBS="-lsocket $LIBS"
22792
22793 fi
22794
22795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22796 $as_echo_n "checking for socket in -linet... " >&6; }
22797 if ${ac_cv_lib_inet_socket+:} false; then :
22798   $as_echo_n "(cached) " >&6
22799 else
22800   ac_check_lib_save_LIBS=$LIBS
22801 LIBS="-linet  $LIBS"
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h.  */
22804
22805 /* Override any GCC internal prototype to avoid an error.
22806    Use char because int might match the return type of a GCC
22807    builtin and then its argument prototype would still apply.  */
22808 #ifdef __cplusplus
22809 extern "C"
22810 #endif
22811 char socket ();
22812 int
22813 main ()
22814 {
22815 return socket ();
22816   ;
22817   return 0;
22818 }
22819 _ACEOF
22820 if ac_fn_c_try_link "$LINENO"; then :
22821   ac_cv_lib_inet_socket=yes
22822 else
22823   ac_cv_lib_inet_socket=no
22824 fi
22825 rm -f core conftest.err conftest.$ac_objext \
22826     conftest$ac_exeext conftest.$ac_ext
22827 LIBS=$ac_check_lib_save_LIBS
22828 fi
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22830 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22831 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22832   cat >>confdefs.h <<_ACEOF
22833 #define HAVE_LIBINET 1
22834 _ACEOF
22835
22836   LIBS="-linet $LIBS"
22837
22838 fi
22839
22840 fi
22841
22842
22843 TCPW_MSG="no"
22844 WRAPLIBS=""
22845
22846 # Check whether --with-tcp-wrappers was given.
22847 if test "${with_tcp_wrappers+set}" = set; then :
22848   withval=$with_tcp_wrappers;
22849        if test "x$withval" != "xno" ; then
22850           saved_LIBS="$LIBS"
22851           LIBS="$saved_LIBS -lwrap"
22852           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22853 $as_echo_n "checking for library containing nanosleep... " >&6; }
22854 if ${ac_cv_search_nanosleep+:} false; then :
22855   $as_echo_n "(cached) " >&6
22856 else
22857   ac_func_search_save_LIBS=$LIBS
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h.  */
22860
22861 /* Override any GCC internal prototype to avoid an error.
22862    Use char because int might match the return type of a GCC
22863    builtin and then its argument prototype would still apply.  */
22864 #ifdef __cplusplus
22865 extern "C"
22866 #endif
22867 char nanosleep ();
22868 int
22869 main ()
22870 {
22871 return nanosleep ();
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 for ac_lib in '' rt; do
22877   if test -z "$ac_lib"; then
22878     ac_res="none required"
22879   else
22880     ac_res=-l$ac_lib
22881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22882   fi
22883   if ac_fn_c_try_link "$LINENO"; then :
22884   ac_cv_search_nanosleep=$ac_res
22885 fi
22886 rm -f core conftest.err conftest.$ac_objext \
22887     conftest$ac_exeext
22888   if ${ac_cv_search_nanosleep+:} false; then :
22889   break
22890 fi
22891 done
22892 if ${ac_cv_search_nanosleep+:} false; then :
22893
22894 else
22895   ac_cv_search_nanosleep=no
22896 fi
22897 rm conftest.$ac_ext
22898 LIBS=$ac_func_search_save_LIBS
22899 fi
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22901 $as_echo "$ac_cv_search_nanosleep" >&6; }
22902 ac_res=$ac_cv_search_nanosleep
22903 if test "$ac_res" != no; then :
22904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22905
22906 fi
22907
22908           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22909 $as_echo_n "checking for libwrap... " >&6; }
22910           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h.  */
22912
22913                #include <sys/types.h>
22914                #include <tcpd.h>
22915                int deny_severity = 0;
22916                int allow_severity = 0;
22917                struct request_info *req;
22918
22919 int
22920 main ()
22921 {
22922
22923                 hosts_access(req);
22924
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 if ac_fn_c_try_link "$LINENO"; then :
22930
22931                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22932 $as_echo "yes" >&6; }
22933
22934 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22935
22936                  TCPW_MSG="yes"
22937                  LIBS="$saved_LIBS"
22938                  WRAPLIBS="-lwrap"
22939
22940 else
22941
22942                  LIBS="$saved_LIBS -lwrap -lnsl"
22943                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22944                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945 /* end confdefs.h.  */
22946
22947                        #include <sys/types.h>
22948                        #include <tcpd.h>
22949                        int deny_severity = 0;
22950                        int allow_severity = 0;
22951                        struct request_info *req;
22952
22953 int
22954 main ()
22955 {
22956
22957                        hosts_access(req);
22958
22959   ;
22960   return 0;
22961 }
22962 _ACEOF
22963 if ac_fn_c_try_link "$LINENO"; then :
22964
22965                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22966 $as_echo "yes" >&6; }
22967
22968 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22969
22970                       TCPW_MSG="yes"
22971                       LIBS="$saved_LIBS"
22972                       WRAPLIBS="-lwrap"
22973
22974 else
22975
22976                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22977
22978
22979 fi
22980 rm -f core conftest.err conftest.$ac_objext \
22981     conftest$ac_exeext conftest.$ac_ext
22982
22983
22984 fi
22985 rm -f core conftest.err conftest.$ac_objext \
22986     conftest$ac_exeext conftest.$ac_ext
22987        fi
22988
22989
22990 fi
22991
22992
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22994 $as_echo_n "checking for OpenSSL... " >&6; }
22995
22996 # Check whether --with-openssl was given.
22997 if test "${with_openssl+set}" = set; then :
22998   withval=$with_openssl;
22999         with_openssl_directory=${withval}
23000
23001
23002 fi
23003
23004
23005 if test "x$with_openssl_directory" != "xno"; then
23006    OPENSSL_LIBS="-lssl -lcrypto"
23007    OPENSSL_INC=""
23008
23009    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23010       #
23011       # Make sure the $with_openssl_directory also makes sense
23012       #
23013       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23014          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23015          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23016       fi
23017    fi
23018
23019    saved_LIBS="${LIBS}"
23020    saved_CFLAGS="${CFLAGS}"
23021    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23022    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23023
23024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23025 /* end confdefs.h.  */
23026
23027           #include <openssl/ssl.h>
23028
23029 int
23030 main ()
23031 {
23032
23033            CRYPTO_set_id_callback(NULL);
23034
23035   ;
23036   return 0;
23037 }
23038 _ACEOF
23039 if ac_fn_c_try_link "$LINENO"; then :
23040
23041           support_tls="yes"
23042           support_crypto="yes"
23043
23044 else
23045
23046           support_tls="no"
23047           support_crypto="no"
23048
23049
23050 fi
23051 rm -f core conftest.err conftest.$ac_objext \
23052     conftest$ac_exeext conftest.$ac_ext
23053
23054    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h.  */
23056
23057           #include <openssl/evp.h>
23058
23059 int
23060 main ()
23061 {
23062
23063           EVP_sha512();
23064
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 if ac_fn_c_try_link "$LINENO"; then :
23070
23071           ac_cv_openssl_sha2="yes"
23072
23073 else
23074
23075           ac_cv_openssl_sha2="no"
23076
23077
23078 fi
23079 rm -f core conftest.err conftest.$ac_objext \
23080     conftest$ac_exeext conftest.$ac_ext
23081
23082                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h.  */
23084
23085           #include <openssl/evp.h>
23086
23087 int
23088 main ()
23089 {
23090
23091           EVP_aes_192_cbc();
23092
23093   ;
23094   return 0;
23095 }
23096 _ACEOF
23097 if ac_fn_c_try_link "$LINENO"; then :
23098
23099           ac_cv_openssl_export="no"
23100
23101 else
23102
23103           ac_cv_openssl_export="yes"
23104
23105
23106 fi
23107 rm -f core conftest.err conftest.$ac_objext \
23108     conftest$ac_exeext conftest.$ac_ext
23109
23110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23111 $as_echo "$support_tls" >&6; }
23112    if test "$support_tls" = "yes"; then
23113
23114 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23115
23116
23117 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23118
23119
23120 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23121
23122    fi
23123
23124    if test "$ac_cv_openssl_sha2" = "yes"; then
23125
23126 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23127
23128    fi
23129
23130    if test "$ac_cv_openssl_export" = "yes"; then
23131
23132 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23133
23134    fi
23135
23136    if test "$support_crypto" = "yes"; then
23137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23138 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23139 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23140   $as_echo_n "(cached) " >&6
23141 else
23142   ac_check_lib_save_LIBS=$LIBS
23143 LIBS="-lcrypto  $LIBS"
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h.  */
23146
23147 /* Override any GCC internal prototype to avoid an error.
23148    Use char because int might match the return type of a GCC
23149    builtin and then its argument prototype would still apply.  */
23150 #ifdef __cplusplus
23151 extern "C"
23152 #endif
23153 char EVP_PKEY_encrypt_old ();
23154 int
23155 main ()
23156 {
23157 return EVP_PKEY_encrypt_old ();
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 if ac_fn_c_try_link "$LINENO"; then :
23163   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23164 else
23165   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23166 fi
23167 rm -f core conftest.err conftest.$ac_objext \
23168     conftest$ac_exeext conftest.$ac_ext
23169 LIBS=$ac_check_lib_save_LIBS
23170 fi
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23172 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23173 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23174
23175 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23176
23177 fi
23178
23179    fi
23180
23181    LIBS="${saved_LIBS}"
23182    CFLAGS="${saved_CFLAGS}"
23183 else
23184    support_tls="no"
23185    support_crypto="no"
23186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23187 $as_echo "$support_tls" >&6; }
23188 fi
23189
23190 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23191    OPENSSL_LIBS=""
23192    OPENSSL_INC=""
23193 fi
23194
23195
23196
23197
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23199 $as_echo_n "checking for library containing dlopen... " >&6; }
23200 if ${ac_cv_search_dlopen+:} false; then :
23201   $as_echo_n "(cached) " >&6
23202 else
23203   ac_func_search_save_LIBS=$LIBS
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205 /* end confdefs.h.  */
23206
23207 /* Override any GCC internal prototype to avoid an error.
23208    Use char because int might match the return type of a GCC
23209    builtin and then its argument prototype would still apply.  */
23210 #ifdef __cplusplus
23211 extern "C"
23212 #endif
23213 char dlopen ();
23214 int
23215 main ()
23216 {
23217 return dlopen ();
23218   ;
23219   return 0;
23220 }
23221 _ACEOF
23222 for ac_lib in '' dl; do
23223   if test -z "$ac_lib"; then
23224     ac_res="none required"
23225   else
23226     ac_res=-l$ac_lib
23227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23228   fi
23229   if ac_fn_c_try_link "$LINENO"; then :
23230   ac_cv_search_dlopen=$ac_res
23231 fi
23232 rm -f core conftest.err conftest.$ac_objext \
23233     conftest$ac_exeext
23234   if ${ac_cv_search_dlopen+:} false; then :
23235   break
23236 fi
23237 done
23238 if ${ac_cv_search_dlopen+:} false; then :
23239
23240 else
23241   ac_cv_search_dlopen=no
23242 fi
23243 rm conftest.$ac_ext
23244 LIBS=$ac_func_search_save_LIBS
23245 fi
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23247 $as_echo "$ac_cv_search_dlopen" >&6; }
23248 ac_res=$ac_cv_search_dlopen
23249 if test "$ac_res" != no; then :
23250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23251
23252 fi
23253
23254
23255 working_dir=`eval echo /opt/bacula/working`
23256
23257 # Check whether --with-working-dir was given.
23258 if test "${with_working_dir+set}" = set; then :
23259   withval=$with_working_dir;
23260        if test "x$withval" != "xno" ; then
23261          working_dir=$withval
23262        fi
23263
23264
23265 fi
23266
23267
23268
23269
23270 archivedir=/tmp
23271
23272 # Check whether --with-archivedir was given.
23273 if test "${with_archivedir+set}" = set; then :
23274   withval=$with_archivedir;
23275        if test "x$withval" != "xno" ; then
23276           archivedir=$withval
23277        fi
23278
23279
23280 fi
23281
23282
23283
23284
23285 basename=`hostname`
23286
23287 # Check whether --with-basename was given.
23288 if test "${with_basename+set}" = set; then :
23289   withval=$with_basename;
23290        if test "x$withval" != "xno" ; then
23291           basename=$withval
23292        fi
23293
23294
23295 fi
23296
23297
23298
23299
23300 hostname=`uname -n | cut -d '.' -f 1`
23301 if test x${hostname} = x ; then
23302   hostname="localhost"
23303 fi
23304 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23305 if test ! $? = 0; then
23306   hostname="localhost"
23307 fi
23308
23309 # Check whether --with-hostname was given.
23310 if test "${with_hostname+set}" = set; then :
23311   withval=$with_hostname;
23312        if test "x$withval" != "xno" ; then
23313          hostname=$withval
23314        fi
23315
23316
23317 fi
23318
23319
23320
23321
23322
23323 scriptdir=`eval echo ${sysconfdir}`
23324
23325 # Check whether --with-scriptdir was given.
23326 if test "${with_scriptdir+set}" = set; then :
23327   withval=$with_scriptdir;
23328        if test "x$withval" != "xno" ; then
23329           scriptdir=$withval
23330        fi
23331
23332
23333 fi
23334
23335
23336
23337
23338
23339 bsrdir=`eval echo /opt/bacula/bsr`
23340
23341 # Check whether --with-bsrdir was given.
23342 if test "${with_bsrdir+set}" = set; then :
23343   withval=$with_bsrdir;
23344        if test "x$withval" != "xno" ; then
23345           bsrdir=$withval
23346        fi
23347
23348
23349 fi
23350
23351
23352
23353
23354 logdir=`eval echo /opt/bacula/log`
23355
23356 # Check whether --with-logdir was given.
23357 if test "${with_logdir+set}" = set; then :
23358   withval=$with_logdir;
23359        if test "x$withval" != "xno" ; then
23360           logdir=$withval
23361        fi
23362
23363
23364 fi
23365
23366
23367
23368
23369
23370 # ------------------------------------------
23371 # Where to place plugindir (plugin files)
23372 # ------------------------------------------
23373 plugindir=`eval echo ${libdir}`
23374
23375 # Check whether --with-plugindir was given.
23376 if test "${with_plugindir+set}" = set; then :
23377   withval=$with_plugindir;
23378        if test "x$withval" != "xno" ; then
23379           plugindir=$withval
23380        fi
23381
23382
23383 fi
23384
23385
23386
23387
23388
23389 dump_email=root@localhost
23390
23391 # Check whether --with-dump-email was given.
23392 if test "${with_dump_email+set}" = set; then :
23393   withval=$with_dump_email;
23394        if test "x$withval" != "xno" ; then
23395           dump_email=$withval
23396        fi
23397
23398
23399 fi
23400
23401
23402
23403
23404 job_email=root@localhost
23405
23406 # Check whether --with-job-email was given.
23407 if test "${with_job_email+set}" = set; then :
23408   withval=$with_job_email;
23409        if test "x$withval" != "xno" ; then
23410           job_email=$withval
23411        fi
23412
23413
23414 fi
23415
23416
23417
23418
23419 smtp_host=localhost
23420
23421 # Check whether --with-smtp_host was given.
23422 if test "${with_smtp_host+set}" = set; then :
23423   withval=$with_smtp_host;
23424        if test "x$withval" != "xno" ; then
23425           smtp_host=$withval
23426        fi
23427
23428
23429 fi
23430
23431
23432
23433
23434 piddir=/var/run
23435
23436 # Check whether --with-pid-dir was given.
23437 if test "${with_pid_dir+set}" = set; then :
23438   withval=$with_pid_dir;
23439        if test "x$withval" != "xno" ; then
23440           piddir=$withval
23441        fi
23442
23443
23444 fi
23445
23446
23447 cat >>confdefs.h <<_ACEOF
23448 #define _PATH_BACULA_PIDDIR "$piddir"
23449 _ACEOF
23450
23451
23452
23453 subsysdir=/var/run/subsys
23454 if test -d /var/run/subsys; then
23455    subsysdir=/var/run/subsys
23456 elif test -d /var/lock/subsys; then
23457    subsysdir=/var/lock/subsys
23458 else
23459    subsysdir=/var/run/subsys
23460 fi
23461
23462 # Check whether --with-subsys-dir was given.
23463 if test "${with_subsys_dir+set}" = set; then :
23464   withval=$with_subsys_dir;
23465        if test "x$withval" != "xno" ; then
23466           subsysdir=$withval
23467        fi
23468
23469
23470 fi
23471
23472
23473
23474
23475 baseport=9101
23476
23477 # Check whether --with-baseport was given.
23478 if test "${with_baseport+set}" = set; then :
23479   withval=$with_baseport;
23480        if test "x$withval" != "xno" ; then
23481           baseport=$withval
23482        fi
23483
23484
23485 fi
23486
23487
23488
23489 dir_port=`expr $baseport`
23490 fd_port=`expr $baseport + 1`
23491 sd_port=`expr $fd_port + 1`
23492
23493
23494
23495
23496
23497 dir_password=
23498
23499 # Check whether --with-dir-password was given.
23500 if test "${with_dir_password+set}" = set; then :
23501   withval=$with_dir_password;
23502        if test "x$withval" != "xno" ; then
23503           dir_password=$withval
23504        fi
23505
23506
23507 fi
23508
23509
23510 if test "x$dir_password" = "x" ; then
23511    if test "x$OPENSSL" = "xnone" ; then
23512       key=`autoconf/randpass 33`
23513    else
23514       key=`openssl rand -base64 33`
23515    fi
23516    dir_password=$key
23517 fi
23518
23519 fd_password=
23520
23521 # Check whether --with-fd-password was given.
23522 if test "${with_fd_password+set}" = set; then :
23523   withval=$with_fd_password;
23524        if test "x$withval" != "xno" ; then
23525           fd_password=$withval
23526        fi
23527
23528
23529 fi
23530
23531
23532 if test "x$fd_password" = "x" ; then
23533    if test "x$OPENSSL" = "xnone" ; then
23534       key=`autoconf/randpass 37`
23535    else
23536       key=`openssl rand -base64 33`
23537    fi
23538    fd_password=$key
23539 fi
23540
23541 sd_password=
23542
23543 # Check whether --with-sd-password was given.
23544 if test "${with_sd_password+set}" = set; then :
23545   withval=$with_sd_password;
23546        if test "x$withval" != "xno" ; then
23547           sd_password=$withval
23548        fi
23549
23550
23551 fi
23552
23553
23554 if test "x$sd_password" = "x" ; then
23555    if test "x$OPENSSL" = "xnone" ; then
23556       key=`autoconf/randpass 41`
23557    else
23558       key=`openssl rand -base64 33`
23559    fi
23560    sd_password=$key
23561 fi
23562
23563 mon_dir_password=
23564
23565 # Check whether --with-mon-dir-password was given.
23566 if test "${with_mon_dir_password+set}" = set; then :
23567   withval=$with_mon_dir_password;
23568        if test "x$withval" != "xno" ; then
23569           mon_dir_password=$withval
23570        fi
23571
23572
23573 fi
23574
23575
23576 if test "x$mon_dir_password" = "x" ; then
23577    if test "x$OPENSSL" = "xnone" ; then
23578       key=`autoconf/randpass 33`
23579    else
23580       key=`openssl rand -base64 33`
23581    fi
23582    mon_dir_password=$key
23583 fi
23584
23585 mon_fd_password=
23586
23587 # Check whether --with-mon-fd-password was given.
23588 if test "${with_mon_fd_password+set}" = set; then :
23589   withval=$with_mon_fd_password;
23590        if test "x$withval" != "xno" ; then
23591           mon_fd_password=$withval
23592        fi
23593
23594
23595 fi
23596
23597
23598 if test "x$mon_fd_password" = "x" ; then
23599    if test "x$OPENSSL" = "xnone" ; then
23600       key=`autoconf/randpass 37`
23601    else
23602       key=`openssl rand -base64 33`
23603    fi
23604    mon_fd_password=$key
23605 fi
23606
23607 mon_sd_password=
23608
23609 # Check whether --with-mon-sd-password was given.
23610 if test "${with_mon_sd_password+set}" = set; then :
23611   withval=$with_mon_sd_password;
23612        if test "x$withval" != "xno" ; then
23613           mon_sd_password=$withval
23614        fi
23615
23616
23617 fi
23618
23619
23620 if test "x$mon_sd_password" = "x" ; then
23621    if test "x$OPENSSL" = "xnone" ; then
23622       key=`autoconf/randpass 41`
23623    else
23624       key=`openssl rand -base64 33`
23625    fi
23626    mon_sd_password=$key
23627 fi
23628
23629
23630
23631
23632
23633
23634
23635
23636 db_name=bacula
23637
23638 # Check whether --with-db_name was given.
23639 if test "${with_db_name+set}" = set; then :
23640   withval=$with_db_name;
23641        if test "x$withval" != "x" ; then
23642           db_name=$withval
23643        fi
23644
23645
23646 fi
23647
23648
23649
23650 db_user=bacula
23651
23652 # Check whether --with-db_user was given.
23653 if test "${with_db_user+set}" = set; then :
23654   withval=$with_db_user;
23655        if test "x$withval" != "x" ; then
23656           db_user=$withval
23657        fi
23658
23659
23660 fi
23661
23662
23663
23664 db_password=
23665
23666 # Check whether --with-db_password was given.
23667 if test "${with_db_password+set}" = set; then :
23668   withval=$with_db_password;
23669        if test "x$withval" != "x" ; then
23670           db_password=$withval
23671        fi
23672
23673
23674 fi
23675
23676
23677
23678 db_port=" "
23679
23680 # Check whether --with-db_port was given.
23681 if test "${with_db_port+set}" = set; then :
23682   withval=$with_db_port;
23683        if test "x$withval" != "x" ; then
23684           db_port=$withval
23685        fi
23686
23687
23688 fi
23689
23690
23691
23692 db_ssl_options=
23693
23694 # Check whether --with-db_ssl_options was given.
23695 if test "${with_db_ssl_options+set}" = set; then :
23696   withval=$with_db_ssl_options;
23697        if test "x$withval" != "x" ; then
23698          db_ssl_options=$withval
23699        fi
23700
23701
23702 fi
23703
23704
23705
23706 #
23707 # Handle users and groups for each daemon
23708 #
23709 dir_user=
23710
23711 # Check whether --with-dir_user was given.
23712 if test "${with_dir_user+set}" = set; then :
23713   withval=$with_dir_user;
23714        if test "x$withval" != "x" ; then
23715            dir_user=$withval
23716        fi
23717
23718
23719 fi
23720
23721
23722 dir_group=
23723
23724 # Check whether --with-dir_group was given.
23725 if test "${with_dir_group+set}" = set; then :
23726   withval=$with_dir_group;
23727        if test "x$withval" != "x" ; then
23728           dir_group=$withval
23729        fi
23730
23731
23732 fi
23733
23734
23735 sd_user=
23736
23737 # Check whether --with-sd_user was given.
23738 if test "${with_sd_user+set}" = set; then :
23739   withval=$with_sd_user;
23740        if test "x$withval" != "x" ; then
23741           sd_user=$withval
23742        fi
23743
23744
23745 fi
23746
23747
23748 sd_group=
23749
23750 # Check whether --with-sd_group was given.
23751 if test "${with_sd_group+set}" = set; then :
23752   withval=$with_sd_group;
23753        if test "x$withval" != "x" ; then
23754           sd_group=$withval
23755        fi
23756
23757
23758 fi
23759
23760
23761 fd_user=
23762
23763 # Check whether --with-fd_user was given.
23764 if test "${with_fd_user+set}" = set; then :
23765   withval=$with_fd_user;
23766        if test "x$withval" != "x" ; then
23767           fd_user=$withval
23768        fi
23769
23770
23771 fi
23772
23773
23774 fd_group=
23775
23776 # Check whether --with-fd_group was given.
23777 if test "${with_fd_group+set}" = set; then :
23778   withval=$with_fd_group;
23779        if test "x$withval" != "x" ; then
23780           fd_group=$withval
23781        fi
23782
23783
23784 fi
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794 SBINPERM=0750
23795
23796 # Check whether --with-sbin-perm was given.
23797 if test "${with_sbin_perm+set}" = set; then :
23798   withval=$with_sbin_perm;
23799        if test "x$withval" != "x" ; then
23800           SBINPERM=$withval
23801        fi
23802
23803
23804 fi
23805
23806
23807
23808
23809 support_batch_insert=yes
23810 # Check whether --enable-batch-insert was given.
23811 if test "${enable_batch_insert+set}" = set; then :
23812   enableval=$enable_batch_insert;
23813        if test x$enableval = xno; then
23814           support_batch_insert=no
23815        fi
23816
23817
23818 fi
23819
23820
23821 if test x$support_batch_insert = xyes; then
23822
23823 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23824
23825 fi
23826
23827
23828 uncomment_dbi="#"
23829
23830
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23832 $as_echo_n "checking for PostgreSQL support... " >&6; }
23833
23834 # Check whether --with-postgresql was given.
23835 if test "${with_postgresql+set}" = set; then :
23836   withval=$with_postgresql;
23837   if test "$withval" != "no"; then
23838       if test "$withval" = "yes"; then
23839           PG_CONFIG=`which pg_config 2>/dev/null`
23840           if test -n "$PG_CONFIG"; then
23841               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23842               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23843               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23844           elif test -f /usr/local/include/libpq-fe.h; then
23845               POSTGRESQL_INCDIR=/usr/local/include
23846               if test -d /usr/local/lib64; then
23847                  POSTGRESQL_LIBDIR=/usr/local/lib64
23848               else
23849                  POSTGRESQL_LIBDIR=/usr/local/lib
23850               fi
23851               POSTGRESQL_BINDIR=/usr/local/bin
23852           elif test -f /usr/include/libpq-fe.h; then
23853               POSTGRESQL_INCDIR=/usr/include
23854               if test -d /usr/lib64; then
23855                  POSTGRESQL_LIBDIR=/usr/lib64
23856               else
23857                  POSTGRESQL_LIBDIR=/usr/lib
23858               fi
23859               POSTGRESQL_BINDIR=/usr/bin
23860           elif test -f /usr/include/pgsql/libpq-fe.h; then
23861               POSTGRESQL_INCDIR=/usr/include/pgsql
23862               if test -d /usr/lib64/pgsql; then
23863                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23864               else
23865                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23866               fi
23867               POSTGRESQL_BINDIR=/usr/bin
23868           elif test -f /usr/include/postgresql/libpq-fe.h; then
23869               POSTGRESQL_INCDIR=/usr/include/postgresql
23870               if test -d /usr/lib64/postgresql; then
23871                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23872               else
23873                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23874               fi
23875               POSTGRESQL_BINDIR=/usr/bin
23876           else
23877               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23878 $as_echo "no" >&6; }
23879               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23880           fi
23881       elif test -f $withval/include/libpq-fe.h; then
23882           POSTGRESQL_INCDIR=$withval/include
23883           POSTGRESQL_LIBDIR=$withval/lib
23884           POSTGRESQL_BINDIR=$withval/bin
23885       elif test -f $withval/include/postgresql/libpq-fe.h; then
23886           POSTGRESQL_INCDIR=$withval/include/postgresql
23887           if test -d $withval/lib64; then
23888               POSTGRESQL_LIBDIR=$withval/lib64
23889           else
23890               POSTGRESQL_LIBDIR=$withval/lib
23891           fi
23892           POSTGRESQL_BINDIR=$withval/bin
23893       else
23894           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23897       fi
23898
23899 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23900
23901      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23902 $as_echo "yes" >&6; }
23903
23904      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23905      if test x$use_libtool != xno; then
23906         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23907      else
23908         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23909      fi
23910      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23911 if test "x$ac_cv_func_crypt" = xyes; then :
23912
23913 else
23914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23915 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23916 if ${ac_cv_lib_crypt_crypt+:} false; then :
23917   $as_echo_n "(cached) " >&6
23918 else
23919   ac_check_lib_save_LIBS=$LIBS
23920 LIBS="-lcrypt  $LIBS"
23921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23922 /* end confdefs.h.  */
23923
23924 /* Override any GCC internal prototype to avoid an error.
23925    Use char because int might match the return type of a GCC
23926    builtin and then its argument prototype would still apply.  */
23927 #ifdef __cplusplus
23928 extern "C"
23929 #endif
23930 char crypt ();
23931 int
23932 main ()
23933 {
23934 return crypt ();
23935   ;
23936   return 0;
23937 }
23938 _ACEOF
23939 if ac_fn_c_try_link "$LINENO"; then :
23940   ac_cv_lib_crypt_crypt=yes
23941 else
23942   ac_cv_lib_crypt_crypt=no
23943 fi
23944 rm -f core conftest.err conftest.$ac_objext \
23945     conftest$ac_exeext conftest.$ac_ext
23946 LIBS=$ac_check_lib_save_LIBS
23947 fi
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23949 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23950 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23951   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23952 fi
23953
23954 fi
23955
23956      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23957      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23958
23959      if test -z "${db_backends}"; then
23960          db_backends="PostgreSQL"
23961      else
23962          db_backends="${db_backends} PostgreSQL"
23963      fi
23964      if test -z "${DB_BACKENDS}"; then
23965          DB_BACKENDS="postgresql"
23966      else
23967          DB_BACKENDS="${DB_BACKENDS} postgresql"
23968      fi
23969
23970                     if test "x$support_batch_insert" = "xyes"; then
23971                   saved_LDFLAGS="${LDFLAGS}"
23972          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23973          saved_LIBS="${LIBS}"
23974          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23975             LIBS="${saved_LIBS} -lcrypt"
23976          fi
23977
23978          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23979 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23980 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23981   $as_echo_n "(cached) " >&6
23982 else
23983   ac_check_lib_save_LIBS=$LIBS
23984 LIBS="-lpq  $LIBS"
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h.  */
23987
23988 /* Override any GCC internal prototype to avoid an error.
23989    Use char because int might match the return type of a GCC
23990    builtin and then its argument prototype would still apply.  */
23991 #ifdef __cplusplus
23992 extern "C"
23993 #endif
23994 char PQisthreadsafe ();
23995 int
23996 main ()
23997 {
23998 return PQisthreadsafe ();
23999   ;
24000   return 0;
24001 }
24002 _ACEOF
24003 if ac_fn_c_try_link "$LINENO"; then :
24004   ac_cv_lib_pq_PQisthreadsafe=yes
24005 else
24006   ac_cv_lib_pq_PQisthreadsafe=no
24007 fi
24008 rm -f core conftest.err conftest.$ac_objext \
24009     conftest$ac_exeext conftest.$ac_ext
24010 LIBS=$ac_check_lib_save_LIBS
24011 fi
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24013 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24014 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24015
24016 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24017
24018 fi
24019
24020          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24021 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24022 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24023   $as_echo_n "(cached) " >&6
24024 else
24025   ac_check_lib_save_LIBS=$LIBS
24026 LIBS="-lpq  $LIBS"
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h.  */
24029
24030 /* Override any GCC internal prototype to avoid an error.
24031    Use char because int might match the return type of a GCC
24032    builtin and then its argument prototype would still apply.  */
24033 #ifdef __cplusplus
24034 extern "C"
24035 #endif
24036 char PQputCopyData ();
24037 int
24038 main ()
24039 {
24040 return PQputCopyData ();
24041   ;
24042   return 0;
24043 }
24044 _ACEOF
24045 if ac_fn_c_try_link "$LINENO"; then :
24046   ac_cv_lib_pq_PQputCopyData=yes
24047 else
24048   ac_cv_lib_pq_PQputCopyData=no
24049 fi
24050 rm -f core conftest.err conftest.$ac_objext \
24051     conftest$ac_exeext conftest.$ac_ext
24052 LIBS=$ac_check_lib_save_LIBS
24053 fi
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24055 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24056 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24057
24058 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24059
24060 fi
24061
24062          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24063              if test $support_batch_insert = yes ; then
24064
24065 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24066
24067                  if test -z "${batch_insert_db_backends}"; then
24068                      batch_insert_db_backends="PostgreSQL"
24069                  else
24070                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24071                  fi
24072              fi
24073          fi
24074
24075          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24076          then
24077              echo "WARNING: Your PostgreSQL client library is too old to detect "
24078              echo "if it was compiled with --enable-thread-safety, consider to "
24079              echo "upgrade it in order to avoid problems with Batch insert mode"
24080          fi
24081
24082                   LDFLAGS="${saved_LDFLAGS}"
24083          LIBS="${saved_LIBS}"
24084      fi
24085   else
24086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24087 $as_echo "no" >&6; }
24088   fi
24089
24090 else
24091
24092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24093 $as_echo "no" >&6; }
24094
24095 fi
24096
24097
24098
24099
24100
24101
24102
24103
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24105 $as_echo_n "checking for MySQL support... " >&6; }
24106
24107 # Check whether --with-mysql was given.
24108 if test "${with_mysql+set}" = set; then :
24109   withval=$with_mysql;
24110   HAVE_LIBSR="no"
24111   if test "$withval" != "no"; then
24112      if test "$withval" = "yes"; then
24113         MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24114         if test "x${MYSQL_CONFIG}" != x; then
24115            MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24116            ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24117            if test $? = 0; then
24118               MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24119               MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24120               HAVE_LIBSR="yes"
24121            else
24122               ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24123               if test $? = 0 ; then
24124                  MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24125                  MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24126               fi
24127            fi
24128         fi
24129         # if something wrong fall back to old method
24130         if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24131            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24132               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24133               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24134                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24135                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24136               else
24137                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24138               fi
24139               MYSQL_BINDIR=/usr/local/mysql/bin
24140            elif test -f /usr/include/mysql/mysql.h; then
24141               MYSQL_INCDIR=/usr/include/mysql
24142               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24143                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24144                  MYSQL_LIBDIR=/usr/lib64/mysql
24145               elif test -f /usr/lib64/libmysqlclient_r.a \
24146                         -o -f /usr/lib64/libmysqlclient_r.so; then
24147                  MYSQL_LIBDIR=/usr/lib64
24148               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24149                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24150                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24151               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24152                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24153                  MYSQL_LIBDIR=/usr/lib/mysql
24154               else
24155                  MYSQL_LIBDIR=/usr/lib
24156               fi
24157               MYSQL_BINDIR=/usr/bin
24158            elif test -f /usr/include/mysql.h; then
24159               MYSQL_INCDIR=/usr/include
24160               if test -f /usr/lib64/libmysqlclient_r.a \
24161                       -o -f /usr/lib64/libmysqlclient_r.so; then
24162                  MYSQL_LIBDIR=/usr/lib64
24163               else
24164                  MYSQL_LIBDIR=/usr/lib
24165               fi
24166               MYSQL_BINDIR=/usr/bin
24167            elif test -f /usr/local/include/mysql/mysql.h; then
24168               MYSQL_INCDIR=/usr/local/include/mysql
24169               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24170                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24171                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24172               else
24173                  MYSQL_LIBDIR=/usr/local/lib/mysql
24174               fi
24175               MYSQL_BINDIR=/usr/local/bin
24176            elif test -f /usr/local/include/mysql.h; then
24177               MYSQL_INCDIR=/usr/local/include
24178               if test -f /usr/local/lib64/libmysqlclient_r.a \
24179                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24180                  MYSQL_LIBDIR=/usr/local/lib64
24181               else
24182                  MYSQL_LIBDIR=/usr/local/lib
24183               fi
24184               MYSQL_BINDIR=/usr/local/bin
24185            else
24186               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24187 $as_echo "no" >&6; }
24188               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24189            fi
24190         fi
24191      else
24192         if test -f $withval/include/mysql/mysql.h; then
24193            MYSQL_INCDIR=$withval/include/mysql
24194            if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24195                 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24196               MYSQL_LIBDIR=$withval/lib64/mysql
24197            elif test -f $withval/lib64/libmysqlclient_r.a \
24198                 -o -f $withval/lib64/libmysqlclient_r.so; then
24199               MYSQL_LIBDIR=$withval/lib64
24200            elif test -f $withval/lib/libmysqlclient_r.a \
24201                 -o -f $withval/lib/libmysqlclient_r.so; then
24202               MYSQL_LIBDIR=$withval/lib
24203            else
24204               MYSQL_LIBDIR=$withval/lib/mysql
24205            fi
24206            MYSQL_BINDIR=$withval/bin
24207         elif test -f $withval/include/mysql.h; then
24208            MYSQL_INCDIR=$withval/include
24209            if test -f $withval/lib64/libmysqlclient_r.a \
24210                 -o -f $withval/lib64/libmysqlclient_r.so; then
24211               MYSQL_LIBDIR=$withval/lib64
24212            else
24213               MYSQL_LIBDIR=$withval/lib
24214            fi
24215            MYSQL_BINDIR=$withval/bin
24216         elif test -f $withval/mysql.h; then
24217                       MYSQL_INCDIR=$withval
24218            { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24219 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24220            case $MYSQL_INCDIR in
24221               *mysql55*)
24222                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24223 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24224                                     if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24225                        -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24226                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24227 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24228                      MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24229                   fi
24230                   MYSQL_BINDIR=$prefix/lib/mysql55/bin
24231               ;;
24232               *mysql51*)
24233                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24234 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24235                                     if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24236                        -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24237                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24238 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24239                      MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24240                   fi
24241                   MYSQL_BINDIR=$prefix/lib/mysql51/bin
24242               ;;
24243            esac
24244            if test -z "${MYSQL_LIBDIR}" ; then
24245               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24246 $as_echo "no" >&6; }
24247               as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24248            fi
24249         else
24250            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24251 $as_echo "no" >&6; }
24252            as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24253         fi
24254      fi
24255      if test "x${MYSQL_LIBDIR}" != x; then
24256         MYSQL_INCLUDE=-I$MYSQL_INCDIR
24257         if test "x$HAVE_LIBSR" = "xyes"; then
24258            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24259            MYSQL_LIBS="$MYSQL_LIBDIR"
24260            MYSQL_INCLUDE="$MYSQL_INCDIR"
24261
24262 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24263
24264            if test -z "${batch_insert_db_backends}"; then
24265               batch_insert_db_backends="MySQL"
24266            else
24267               batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24268            fi
24269         elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24270                -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24271            if test x$use_libtool != xno; then
24272               MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24273            else
24274               MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24275            fi
24276            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24277         fi
24278         if test "x${MYSQL_LIBS}" = x; then
24279            MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24280         fi
24281
24282
24283 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24284
24285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24286 $as_echo "yes" >&6; }
24287
24288         if test -z "${db_backends}" ; then
24289             db_backends="MySQL"
24290         else
24291             db_backends="${db_backends} MySQL"
24292         fi
24293         if test -z "${DB_BACKENDS}" ; then
24294             DB_BACKENDS="mysql"
24295         else
24296             DB_BACKENDS="${DB_BACKENDS} mysql"
24297         fi
24298
24299                                 if test "x$HAVE_LIBSR" = "xno"; then
24300           if test "x$support_batch_insert" = "xyes"; then
24301                         saved_LDFLAGS="${LDFLAGS}"
24302             LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24303             saved_LIBS="${LIBS}"
24304             LIBS="${saved_LIBS} -lz"
24305
24306             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24307 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24308 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24309   $as_echo_n "(cached) " >&6
24310 else
24311   ac_check_lib_save_LIBS=$LIBS
24312 LIBS="-lmysqlclient_r  $LIBS"
24313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24314 /* end confdefs.h.  */
24315
24316 /* Override any GCC internal prototype to avoid an error.
24317    Use char because int might match the return type of a GCC
24318    builtin and then its argument prototype would still apply.  */
24319 #ifdef __cplusplus
24320 extern "C"
24321 #endif
24322 char mysql_thread_safe ();
24323 int
24324 main ()
24325 {
24326 return mysql_thread_safe ();
24327   ;
24328   return 0;
24329 }
24330 _ACEOF
24331 if ac_fn_c_try_link "$LINENO"; then :
24332   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24333 else
24334   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24335 fi
24336 rm -f core conftest.err conftest.$ac_objext \
24337     conftest$ac_exeext conftest.$ac_ext
24338 LIBS=$ac_check_lib_save_LIBS
24339 fi
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24341 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24342 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24343
24344 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24345
24346 fi
24347
24348             if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24349                 if test -z "${batch_insert_db_backends}"; then
24350                     batch_insert_db_backends="MySQL"
24351                 else
24352                     batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24353                 fi
24354             fi
24355
24356                         LDFLAGS="${saved_LDFLAGS}"
24357             LIBS="${saved_LIBS}"
24358           fi
24359         fi
24360      else
24361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24362 $as_echo "no" >&6; }
24363      fi
24364   fi
24365
24366 else
24367
24368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24369 $as_echo "no" >&6; }
24370
24371 fi
24372
24373
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24375 $as_echo_n "checking for MySQL embedded support... " >&6; }
24376
24377 # Check whether --with-embedded-mysql was given.
24378 if test "${with_embedded_mysql+set}" = set; then :
24379   withval=$with_embedded_mysql;
24380   if test "$withval" != "no"; then
24381         if test "$withval" = "yes"; then
24382                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24383                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24384                         if test -d /usr/local/mysql/lib64/mysql; then
24385                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24386                         else
24387                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24388                         fi
24389                         MYSQL_BINDIR=/usr/local/mysql/bin
24390                 elif test -f /usr/include/mysql/mysql.h; then
24391                         MYSQL_INCDIR=/usr/include/mysql
24392                         if test -d /usr/lib64/mysql; then
24393                                 MYSQL_LIBDIR=/usr/lib64/mysql
24394                         else
24395                                 MYSQL_LIBDIR=/usr/lib/mysql
24396                         fi
24397                         MYSQL_BINDIR=/usr/bin
24398                 elif test -f /usr/include/mysql.h; then
24399                         MYSQL_INCDIR=/usr/include
24400                         if test -d /usr/lib64; then
24401                                 MYSQL_LIBDIR=/usr/lib64
24402                         else
24403                                 MYSQL_LIBDIR=/usr/lib
24404                         fi
24405                         MYSQL_BINDIR=/usr/bin
24406                 elif test -f /usr/local/include/mysql/mysql.h; then
24407                         MYSQL_INCDIR=/usr/local/include/mysql
24408                         if test -d /usr/local/lib64/mysql; then
24409                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24410                         else
24411                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24412                         fi
24413                         MYSQL_BINDIR=/usr/local/bin
24414                 elif test -f /usr/local/include/mysql.h; then
24415                         MYSQL_INCDIR=/usr/local/include
24416                         if test -d /usr/local/lib64; then
24417                                 MYSQL_LIBDIR=/usr/local/lib64
24418                         else
24419                                 MYSQL_LIBDIR=/usr/local/lib
24420                         fi
24421                         MYSQL_BINDIR=/usr/local/bin
24422                 else
24423                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24424 $as_echo "no" >&6; }
24425                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24426                 fi
24427         else
24428                 if test -f $withval/include/mysql/mysql.h; then
24429                         MYSQL_INCDIR=$withval/include/mysql
24430                         if test -d $withval/lib64/mysql; then
24431                                 MYSQL_LIBDIR=$withval/lib64/mysql
24432                         else
24433                                 MYSQL_LIBDIR=$withval/lib/mysql
24434                         fi
24435                         MYSQL_BINDIR=$withval/bin
24436                 elif test -f $withval/include/mysql.h; then
24437                         MYSQL_INCDIR=$withval/include
24438                         if test -d $withval/lib64; then
24439                                 MYSQL_LIBDIR=$withval/lib64
24440                         else
24441                                 MYSQL_LIBDIR=$withval/lib
24442                         fi
24443                         MYSQL_BINDIR=$withval/bin
24444                 else
24445                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24446 $as_echo "no" >&6; }
24447                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24448                 fi
24449         fi
24450      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24451      if test x$use_libtool != xno; then
24452         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24453      else
24454         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24455      fi
24456      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24457      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24458
24459
24460 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24461
24462
24463 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24464
24465      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24466 $as_echo "yes" >&6; }
24467
24468      if test -z "${db_backends}"; then
24469          db_backends="MySQL"
24470      else
24471          db_backends="${db_backends} MySQL"
24472      fi
24473      if test -z "${DB_BACKENDS}"; then
24474          DB_BACKENDS="mysql"
24475      else
24476          DB_BACKENDS="${DB_BACKENDS} mysql"
24477      fi
24478
24479                     if test "x$support_batch_insert" = "xyes"; then
24480                   saved_LDFLAGS="${LDFLAGS}"
24481          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24482          saved_LIBS="${LIBS}"
24483          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24484
24485          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24486 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24487 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24488   $as_echo_n "(cached) " >&6
24489 else
24490   ac_check_lib_save_LIBS=$LIBS
24491 LIBS="-lmysqlclient_r  $LIBS"
24492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24493 /* end confdefs.h.  */
24494
24495 /* Override any GCC internal prototype to avoid an error.
24496    Use char because int might match the return type of a GCC
24497    builtin and then its argument prototype would still apply.  */
24498 #ifdef __cplusplus
24499 extern "C"
24500 #endif
24501 char mysql_thread_safe ();
24502 int
24503 main ()
24504 {
24505 return mysql_thread_safe ();
24506   ;
24507   return 0;
24508 }
24509 _ACEOF
24510 if ac_fn_c_try_link "$LINENO"; then :
24511   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24512 else
24513   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24514 fi
24515 rm -f core conftest.err conftest.$ac_objext \
24516     conftest$ac_exeext conftest.$ac_ext
24517 LIBS=$ac_check_lib_save_LIBS
24518 fi
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24520 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24521 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24522
24523 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24524
24525 fi
24526
24527          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24528              if test -z "${batch_insert_db_backends}"; then
24529                  batch_insert_db_backends="MySQL"
24530              else
24531                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24532              fi
24533          fi
24534
24535                   LDFLAGS="${saved_LDFLAGS}"
24536          LIBS="${saved_LIBS}"
24537      fi
24538   else
24539      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24540 $as_echo "no" >&6; }
24541   fi
24542
24543 else
24544
24545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24546 $as_echo "no" >&6; }
24547
24548 fi
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24559 $as_echo_n "checking for SQLite3 support... " >&6; }
24560
24561 # Check whether --with-sqlite3 was given.
24562 if test "${with_sqlite3+set}" = set; then :
24563   withval=$with_sqlite3;
24564   if test "$withval" != "no"; then
24565      if test "$withval" = "yes"; then
24566         if test -f /usr/local/include/sqlite3.h; then
24567            SQLITE_INCDIR=/usr/local/include
24568            if test -d /usr/local/lib64; then
24569               SQLITE_LIBDIR=/usr/local/lib64
24570            else
24571               SQLITE_LIBDIR=/usr/local/lib
24572            fi
24573            SQLITE_BINDIR=/usr/local/bin
24574         elif test -f /usr/include/sqlite3.h; then
24575            SQLITE_INCDIR=/usr/include
24576            if test -d /usr/lib64; then
24577               SQLITE_LIBDIR=/usr/lib64
24578            else
24579               SQLITE_LIBDIR=/usr/lib
24580            fi
24581            SQLITE_BINDIR=/usr/bin
24582         elif test -f $prefix/include/sqlite3.h; then
24583            SQLITE_INCDIR=$prefix/include
24584            if test -d $prefix/lib64; then
24585               SQLITE_LIBDIR=$prefix/lib64
24586            else
24587               SQLITE_LIBDIR=$prefix/lib
24588            fi
24589            SQLITE_BINDIR=$prefix/bin
24590         else
24591            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24592 $as_echo "no" >&6; }
24593            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24594         fi
24595      else
24596         if test -f $withval/sqlite3.h; then
24597            SQLITE_INCDIR=$withval
24598            SQLITE_LIBDIR=$withval
24599            SQLITE_BINDIR=$withval
24600         elif test -f $withval/include/sqlite3.h; then
24601            SQLITE_INCDIR=$withval/include
24602            if test -d $withval/lib64; then
24603               SQLITE_LIBDIR=$withval/lib64
24604            else
24605               SQLITE_LIBDIR=$withval/lib
24606            fi
24607            SQLITE_BINDIR=$withval/bin
24608         else
24609            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24610 $as_echo "no" >&6; }
24611            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24612         fi
24613      fi
24614      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24615      if test x$use_libtool != xno; then
24616         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24617      else
24618         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24619      fi
24620      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24621      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24622
24623
24624 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24625
24626      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24627 $as_echo "yes" >&6; }
24628
24629      if test -z "${db_backends}"; then
24630          db_backends="SQLite3"
24631      else
24632          db_backends="${db_backends} SQLite3"
24633      fi
24634      if test -z "${DB_BACKENDS}"; then
24635          DB_BACKENDS="sqlite3"
24636      else
24637          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24638      fi
24639
24640                     if test "x$support_batch_insert" = "xyes"; then
24641                   saved_LDFLAGS="${LDFLAGS}"
24642          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24643
24644          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24645 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24646 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24647   $as_echo_n "(cached) " >&6
24648 else
24649   ac_check_lib_save_LIBS=$LIBS
24650 LIBS="-lsqlite3  $LIBS"
24651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24652 /* end confdefs.h.  */
24653
24654 /* Override any GCC internal prototype to avoid an error.
24655    Use char because int might match the return type of a GCC
24656    builtin and then its argument prototype would still apply.  */
24657 #ifdef __cplusplus
24658 extern "C"
24659 #endif
24660 char sqlite3_threadsafe ();
24661 int
24662 main ()
24663 {
24664 return sqlite3_threadsafe ();
24665   ;
24666   return 0;
24667 }
24668 _ACEOF
24669 if ac_fn_c_try_link "$LINENO"; then :
24670   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24671 else
24672   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24673 fi
24674 rm -f core conftest.err conftest.$ac_objext \
24675     conftest$ac_exeext conftest.$ac_ext
24676 LIBS=$ac_check_lib_save_LIBS
24677 fi
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24679 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24680 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24681
24682 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24683
24684 fi
24685
24686          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24687              if test -z "${batch_insert_db_backends}"; then
24688                  batch_insert_db_backends="SQLite3"
24689              else
24690                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24691              fi
24692          fi
24693
24694                   LDFLAGS="${saved_LDFLAGS}"
24695      fi
24696   else
24697      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24698 $as_echo "no" >&6; }
24699   fi
24700
24701 else
24702
24703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24704 $as_echo "no" >&6; }
24705
24706 fi
24707
24708
24709
24710
24711
24712
24713
24714 if test -z "${batch_insert_db_backends}"; then
24715    batch_insert_db_backends="None"
24716 fi
24717
24718 if test "x${db_backends}" = "x" ; then
24719    echo " "
24720    echo " "
24721    echo "You have not specified either --enable-client-only or one of the"
24722    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24723    echo "This is not permitted. Please reconfigure."
24724    echo " "
24725    echo "Aborting the configuration ..."
24726    echo " "
24727    echo " "
24728    exit 1
24729 fi
24730
24731 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24732    1)
24733       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24734       if test x$use_libtool = xno; then
24735          SHARED_CATALOG_TARGETS=""
24736       else
24737          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24738       fi
24739       ;;
24740    *)
24741                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24742
24743                         if test x$use_libtool = xno; then
24744          echo " "
24745          echo " "
24746          echo "You have specified two or more of the"
24747          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24748          echo "This is not permitted when not using libtool Please reconfigure."
24749          echo " "
24750          echo "Aborting the configuration ..."
24751          echo " "
24752          echo " "
24753          exit 1
24754       fi
24755
24756       SHARED_CATALOG_TARGETS=""
24757       for db_type in ${DB_BACKENDS}
24758       do
24759          if test -z "${SHARED_CATALOG_TARGETS}"; then
24760             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24761          else
24762             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24763          fi
24764       done
24765       ;;
24766 esac
24767
24768 if test x$use_libtool = xyes; then
24769    DB_LIBS=""
24770 fi
24771
24772
24773
24774
24775
24776
24777
24778 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24779
24780
24781 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24782    if test -z "$CCOPTS"; then
24783       CCOPTS='-g -O2 -Wall'
24784    fi
24785    CFLAGS="$CCOPTS"
24786 fi
24787
24788
24789
24790 largefile_support="no"
24791
24792    # Check whether --enable-largefile was given.
24793 if test "${enable_largefile+set}" = set; then :
24794   enableval=$enable_largefile;
24795 fi
24796
24797    if test "$enable_largefile" != no; then
24798      if test -n "$ac_tool_prefix"; then
24799   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24800 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24802 $as_echo_n "checking for $ac_word... " >&6; }
24803 if ${ac_cv_prog_GETCONF+:} false; then :
24804   $as_echo_n "(cached) " >&6
24805 else
24806   if test -n "$GETCONF"; then
24807   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24808 else
24809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24810 for as_dir in $PATH
24811 do
24812   IFS=$as_save_IFS
24813   test -z "$as_dir" && as_dir=.
24814     for ac_exec_ext in '' $ac_executable_extensions; do
24815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24816     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24818     break 2
24819   fi
24820 done
24821   done
24822 IFS=$as_save_IFS
24823
24824 fi
24825 fi
24826 GETCONF=$ac_cv_prog_GETCONF
24827 if test -n "$GETCONF"; then
24828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24829 $as_echo "$GETCONF" >&6; }
24830 else
24831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24832 $as_echo "no" >&6; }
24833 fi
24834
24835
24836 fi
24837 if test -z "$ac_cv_prog_GETCONF"; then
24838   ac_ct_GETCONF=$GETCONF
24839   # Extract the first word of "getconf", so it can be a program name with args.
24840 set dummy getconf; ac_word=$2
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24842 $as_echo_n "checking for $ac_word... " >&6; }
24843 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24844   $as_echo_n "(cached) " >&6
24845 else
24846   if test -n "$ac_ct_GETCONF"; then
24847   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24848 else
24849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24850 for as_dir in $PATH
24851 do
24852   IFS=$as_save_IFS
24853   test -z "$as_dir" && as_dir=.
24854     for ac_exec_ext in '' $ac_executable_extensions; do
24855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24856     ac_cv_prog_ac_ct_GETCONF="getconf"
24857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24858     break 2
24859   fi
24860 done
24861   done
24862 IFS=$as_save_IFS
24863
24864 fi
24865 fi
24866 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24867 if test -n "$ac_ct_GETCONF"; then
24868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24869 $as_echo "$ac_ct_GETCONF" >&6; }
24870 else
24871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 $as_echo "no" >&6; }
24873 fi
24874
24875   if test "x$ac_ct_GETCONF" = x; then
24876     GETCONF=""
24877   else
24878     case $cross_compiling:$ac_tool_warned in
24879 yes:)
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24882 ac_tool_warned=yes ;;
24883 esac
24884     GETCONF=$ac_ct_GETCONF
24885   fi
24886 else
24887   GETCONF="$ac_cv_prog_GETCONF"
24888 fi
24889
24890      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24891 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24892 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24893   $as_echo_n "(cached) " >&6
24894 else
24895   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24896         ac_cv_sys_largefile_CFLAGS=no
24897         case "$host_os" in
24898            # IRIX 6.2 and later require cc -n32.
24899            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24900              if test "$GCC" != yes; then
24901                ac_cv_sys_largefile_CFLAGS=-n32
24902              fi
24903              ac_save_CC="$CC"
24904              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24905              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24906 /* end confdefs.h.  */
24907
24908 int
24909 main ()
24910 {
24911
24912   ;
24913   return 0;
24914 }
24915 _ACEOF
24916 if ac_fn_c_try_link "$LINENO"; then :
24917
24918 else
24919   ac_cv_sys_largefile_CFLAGS=no
24920 fi
24921 rm -f core conftest.err conftest.$ac_objext \
24922     conftest$ac_exeext conftest.$ac_ext
24923              CC="$ac_save_CC"
24924            esac
24925       }
24926 fi
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24928 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24929      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24930 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24931 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24932   $as_echo_n "(cached) " >&6
24933 else
24934   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24935         ac_cv_sys_largefile_LDFLAGS=no
24936
24937       }
24938 fi
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24940 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24941      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24942 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24943 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24944   $as_echo_n "(cached) " >&6
24945 else
24946   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24947         ac_cv_sys_largefile_LIBS=no
24948
24949       }
24950 fi
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24952 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24953
24954      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24955        case "$ac_flag" in
24956        no) ;;
24957        -D_FILE_OFFSET_BITS=*) ;;
24958        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24959        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24960        -D?* | -I?*)
24961          case "$ac_flag" in
24962    no) ;;
24963    ?*)
24964      case "$CPPFLAGS" in
24965      '') CPPFLAGS="$ac_flag" ;;
24966      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24967      esac ;;
24968    esac ;;
24969        *)
24970          case "$ac_flag" in
24971    no) ;;
24972    ?*)
24973      case "$CFLAGS" in
24974      '') CFLAGS="$ac_flag" ;;
24975      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24976      esac ;;
24977    esac ;;
24978        esac
24979      done
24980      case "$ac_cv_sys_largefile_LDFLAGS" in
24981    no) ;;
24982    ?*)
24983      case "$LDFLAGS" in
24984      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24985      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24986      esac ;;
24987    esac
24988      case "$ac_cv_sys_largefile_LIBS" in
24989    no) ;;
24990    ?*)
24991      case "$LIBS" in
24992      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24993      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24994      esac ;;
24995    esac
24996      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24997 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24998 if ${ac_cv_sys_file_offset_bits+:} false; then :
24999   $as_echo_n "(cached) " >&6
25000 else
25001   ac_cv_sys_file_offset_bits=no
25002       ac_cv_sys_file_offset_bits=64
25003       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25004         case "$ac_flag" in
25005         -D_FILE_OFFSET_BITS)
25006           ac_cv_sys_file_offset_bits=1 ;;
25007         -D_FILE_OFFSET_BITS=*)
25008           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25009         esac
25010       done
25011
25012 fi
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25014 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25015    if test "$ac_cv_sys_file_offset_bits" != no; then
25016
25017 cat >>confdefs.h <<_ACEOF
25018 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25019 _ACEOF
25020
25021    fi
25022      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25023 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25024 if ${ac_cv_sys_largefile_source+:} false; then :
25025   $as_echo_n "(cached) " >&6
25026 else
25027   ac_cv_sys_largefile_source=no
25028       ac_cv_sys_largefile_source=1
25029       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25030         case "$ac_flag" in
25031         -D_LARGEFILE_SOURCE)
25032           ac_cv_sys_largefile_source=1 ;;
25033         -D_LARGEFILE_SOURCE=*)
25034           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25035         esac
25036       done
25037
25038 fi
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25040 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25041    if test "$ac_cv_sys_largefile_source" != no; then
25042
25043 cat >>confdefs.h <<_ACEOF
25044 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25045 _ACEOF
25046
25047    fi
25048      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25049 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25050 if ${ac_cv_sys_large_files+:} false; then :
25051   $as_echo_n "(cached) " >&6
25052 else
25053   ac_cv_sys_large_files=no
25054       ac_cv_sys_large_files=1
25055       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25056         case "$ac_flag" in
25057         -D_LARGE_FILES)
25058           ac_cv_sys_large_files=1 ;;
25059         -D_LARGE_FILES=*)
25060           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25061         esac
25062       done
25063
25064 fi
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25066 $as_echo "$ac_cv_sys_large_files" >&6; }
25067    if test "$ac_cv_sys_large_files" != no; then
25068
25069 cat >>confdefs.h <<_ACEOF
25070 #define _LARGE_FILES $ac_cv_sys_large_files
25071 _ACEOF
25072
25073    fi
25074    fi
25075
25076
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25078 $as_echo_n "checking for X... " >&6; }
25079
25080
25081 # Check whether --with-x was given.
25082 if test "${with_x+set}" = set; then :
25083   withval=$with_x;
25084 fi
25085
25086 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25087 if test "x$with_x" = xno; then
25088   # The user explicitly disabled X.
25089   have_x=disabled
25090 else
25091   case $x_includes,$x_libraries in #(
25092     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25093     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25094   $as_echo_n "(cached) " >&6
25095 else
25096   # One or both of the vars are not set, and there is no cached value.
25097 ac_x_includes=no ac_x_libraries=no
25098 rm -f -r conftest.dir
25099 if mkdir conftest.dir; then
25100   cd conftest.dir
25101   cat >Imakefile <<'_ACEOF'
25102 incroot:
25103         @echo incroot='${INCROOT}'
25104 usrlibdir:
25105         @echo usrlibdir='${USRLIBDIR}'
25106 libdir:
25107         @echo libdir='${LIBDIR}'
25108 _ACEOF
25109   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25110     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25111     for ac_var in incroot usrlibdir libdir; do
25112       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25113     done
25114     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25115     for ac_extension in a so sl dylib la dll; do
25116       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25117          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25118         ac_im_usrlibdir=$ac_im_libdir; break
25119       fi
25120     done
25121     # Screen out bogus values from the imake configuration.  They are
25122     # bogus both because they are the default anyway, and because
25123     # using them would break gcc on systems where it needs fixed includes.
25124     case $ac_im_incroot in
25125         /usr/include) ac_x_includes= ;;
25126         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25127     esac
25128     case $ac_im_usrlibdir in
25129         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25130         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25131     esac
25132   fi
25133   cd ..
25134   rm -f -r conftest.dir
25135 fi
25136
25137 # Standard set of common directories for X headers.
25138 # Check X11 before X11Rn because it is often a symlink to the current release.
25139 ac_x_header_dirs='
25140 /usr/X11/include
25141 /usr/X11R7/include
25142 /usr/X11R6/include
25143 /usr/X11R5/include
25144 /usr/X11R4/include
25145
25146 /usr/include/X11
25147 /usr/include/X11R7
25148 /usr/include/X11R6
25149 /usr/include/X11R5
25150 /usr/include/X11R4
25151
25152 /usr/local/X11/include
25153 /usr/local/X11R7/include
25154 /usr/local/X11R6/include
25155 /usr/local/X11R5/include
25156 /usr/local/X11R4/include
25157
25158 /usr/local/include/X11
25159 /usr/local/include/X11R7
25160 /usr/local/include/X11R6
25161 /usr/local/include/X11R5
25162 /usr/local/include/X11R4
25163
25164 /usr/X386/include
25165 /usr/x386/include
25166 /usr/XFree86/include/X11
25167
25168 /usr/include
25169 /usr/local/include
25170 /usr/unsupported/include
25171 /usr/athena/include
25172 /usr/local/x11r5/include
25173 /usr/lpp/Xamples/include
25174
25175 /usr/openwin/include
25176 /usr/openwin/share/include'
25177
25178 if test "$ac_x_includes" = no; then
25179   # Guess where to find include files, by looking for Xlib.h.
25180   # First, try using that file with no special directory specified.
25181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25182 /* end confdefs.h.  */
25183 #include <X11/Xlib.h>
25184 _ACEOF
25185 if ac_fn_c_try_cpp "$LINENO"; then :
25186   # We can compile using X headers with no special include directory.
25187 ac_x_includes=
25188 else
25189   for ac_dir in $ac_x_header_dirs; do
25190   if test -r "$ac_dir/X11/Xlib.h"; then
25191     ac_x_includes=$ac_dir
25192     break
25193   fi
25194 done
25195 fi
25196 rm -f conftest.err conftest.i conftest.$ac_ext
25197 fi # $ac_x_includes = no
25198
25199 if test "$ac_x_libraries" = no; then
25200   # Check for the libraries.
25201   # See if we find them without any special options.
25202   # Don't add to $LIBS permanently.
25203   ac_save_LIBS=$LIBS
25204   LIBS="-lX11 $LIBS"
25205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h.  */
25207 #include <X11/Xlib.h>
25208 int
25209 main ()
25210 {
25211 XrmInitialize ()
25212   ;
25213   return 0;
25214 }
25215 _ACEOF
25216 if ac_fn_c_try_link "$LINENO"; then :
25217   LIBS=$ac_save_LIBS
25218 # We can link X programs with no special library path.
25219 ac_x_libraries=
25220 else
25221   LIBS=$ac_save_LIBS
25222 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25223 do
25224   # Don't even attempt the hair of trying to link an X program!
25225   for ac_extension in a so sl dylib la dll; do
25226     if test -r "$ac_dir/libX11.$ac_extension"; then
25227       ac_x_libraries=$ac_dir
25228       break 2
25229     fi
25230   done
25231 done
25232 fi
25233 rm -f core conftest.err conftest.$ac_objext \
25234     conftest$ac_exeext conftest.$ac_ext
25235 fi # $ac_x_libraries = no
25236
25237 case $ac_x_includes,$ac_x_libraries in #(
25238   no,* | *,no | *\'*)
25239     # Didn't find X, or a directory has "'" in its name.
25240     ac_cv_have_x="have_x=no";; #(
25241   *)
25242     # Record where we found X for the cache.
25243     ac_cv_have_x="have_x=yes\
25244         ac_x_includes='$ac_x_includes'\
25245         ac_x_libraries='$ac_x_libraries'"
25246 esac
25247 fi
25248 ;; #(
25249     *) have_x=yes;;
25250   esac
25251   eval "$ac_cv_have_x"
25252 fi # $with_x != no
25253
25254 if test "$have_x" != yes; then
25255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25256 $as_echo "$have_x" >&6; }
25257   no_x=yes
25258 else
25259   # If each of the values was on the command line, it overrides each guess.
25260   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25261   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25262   # Update the cache value to reflect the command line values.
25263   ac_cv_have_x="have_x=yes\
25264         ac_x_includes='$x_includes'\
25265         ac_x_libraries='$x_libraries'"
25266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25267 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25268 fi
25269
25270 if test "$no_x" = yes; then
25271   # Not all programs may use this symbol, but it does not hurt to define it.
25272
25273 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25274
25275   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25276 else
25277   if test -n "$x_includes"; then
25278     X_CFLAGS="$X_CFLAGS -I$x_includes"
25279   fi
25280
25281   # It would also be nice to do this for all -L options, not just this one.
25282   if test -n "$x_libraries"; then
25283     X_LIBS="$X_LIBS -L$x_libraries"
25284     # For Solaris; some versions of Sun CC require a space after -R and
25285     # others require no space.  Words are not sufficient . . . .
25286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25287 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25288     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25289     ac_xsave_c_werror_flag=$ac_c_werror_flag
25290     ac_c_werror_flag=yes
25291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25292 /* end confdefs.h.  */
25293
25294 int
25295 main ()
25296 {
25297
25298   ;
25299   return 0;
25300 }
25301 _ACEOF
25302 if ac_fn_c_try_link "$LINENO"; then :
25303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25304 $as_echo "no" >&6; }
25305        X_LIBS="$X_LIBS -R$x_libraries"
25306 else
25307   LIBS="$ac_xsave_LIBS -R $x_libraries"
25308        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h.  */
25310
25311 int
25312 main ()
25313 {
25314
25315   ;
25316   return 0;
25317 }
25318 _ACEOF
25319 if ac_fn_c_try_link "$LINENO"; then :
25320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25321 $as_echo "yes" >&6; }
25322           X_LIBS="$X_LIBS -R $x_libraries"
25323 else
25324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25325 $as_echo "neither works" >&6; }
25326 fi
25327 rm -f core conftest.err conftest.$ac_objext \
25328     conftest$ac_exeext conftest.$ac_ext
25329 fi
25330 rm -f core conftest.err conftest.$ac_objext \
25331     conftest$ac_exeext conftest.$ac_ext
25332     ac_c_werror_flag=$ac_xsave_c_werror_flag
25333     LIBS=$ac_xsave_LIBS
25334   fi
25335
25336   # Check for system-dependent libraries X programs must link with.
25337   # Do this before checking for the system-independent R6 libraries
25338   # (-lICE), since we may need -lsocket or whatever for X linking.
25339
25340   if test "$ISC" = yes; then
25341     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25342   else
25343     # Martyn Johnson says this is needed for Ultrix, if the X
25344     # libraries were built with DECnet support.  And Karl Berry says
25345     # the Alpha needs dnet_stub (dnet does not exist).
25346     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25347     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25348 /* end confdefs.h.  */
25349
25350 /* Override any GCC internal prototype to avoid an error.
25351    Use char because int might match the return type of a GCC
25352    builtin and then its argument prototype would still apply.  */
25353 #ifdef __cplusplus
25354 extern "C"
25355 #endif
25356 char XOpenDisplay ();
25357 int
25358 main ()
25359 {
25360 return XOpenDisplay ();
25361   ;
25362   return 0;
25363 }
25364 _ACEOF
25365 if ac_fn_c_try_link "$LINENO"; then :
25366
25367 else
25368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25369 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25370 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25371   $as_echo_n "(cached) " >&6
25372 else
25373   ac_check_lib_save_LIBS=$LIBS
25374 LIBS="-ldnet  $LIBS"
25375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25376 /* end confdefs.h.  */
25377
25378 /* Override any GCC internal prototype to avoid an error.
25379    Use char because int might match the return type of a GCC
25380    builtin and then its argument prototype would still apply.  */
25381 #ifdef __cplusplus
25382 extern "C"
25383 #endif
25384 char dnet_ntoa ();
25385 int
25386 main ()
25387 {
25388 return dnet_ntoa ();
25389   ;
25390   return 0;
25391 }
25392 _ACEOF
25393 if ac_fn_c_try_link "$LINENO"; then :
25394   ac_cv_lib_dnet_dnet_ntoa=yes
25395 else
25396   ac_cv_lib_dnet_dnet_ntoa=no
25397 fi
25398 rm -f core conftest.err conftest.$ac_objext \
25399     conftest$ac_exeext conftest.$ac_ext
25400 LIBS=$ac_check_lib_save_LIBS
25401 fi
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25403 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25404 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25405   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25406 fi
25407
25408     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25409       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25410 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25411 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25412   $as_echo_n "(cached) " >&6
25413 else
25414   ac_check_lib_save_LIBS=$LIBS
25415 LIBS="-ldnet_stub  $LIBS"
25416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25417 /* end confdefs.h.  */
25418
25419 /* Override any GCC internal prototype to avoid an error.
25420    Use char because int might match the return type of a GCC
25421    builtin and then its argument prototype would still apply.  */
25422 #ifdef __cplusplus
25423 extern "C"
25424 #endif
25425 char dnet_ntoa ();
25426 int
25427 main ()
25428 {
25429 return dnet_ntoa ();
25430   ;
25431   return 0;
25432 }
25433 _ACEOF
25434 if ac_fn_c_try_link "$LINENO"; then :
25435   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25436 else
25437   ac_cv_lib_dnet_stub_dnet_ntoa=no
25438 fi
25439 rm -f core conftest.err conftest.$ac_objext \
25440     conftest$ac_exeext conftest.$ac_ext
25441 LIBS=$ac_check_lib_save_LIBS
25442 fi
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25444 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25445 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25446   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25447 fi
25448
25449     fi
25450 fi
25451 rm -f core conftest.err conftest.$ac_objext \
25452     conftest$ac_exeext conftest.$ac_ext
25453     LIBS="$ac_xsave_LIBS"
25454
25455     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25456     # to get the SysV transport functions.
25457     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25458     # needs -lnsl.
25459     # The nsl library prevents programs from opening the X display
25460     # on Irix 5.2, according to T.E. Dickey.
25461     # The functions gethostbyname, getservbyname, and inet_addr are
25462     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25463     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25464 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25465
25466 fi
25467
25468     if test $ac_cv_func_gethostbyname = no; then
25469       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25470 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25471 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25472   $as_echo_n "(cached) " >&6
25473 else
25474   ac_check_lib_save_LIBS=$LIBS
25475 LIBS="-lnsl  $LIBS"
25476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25477 /* end confdefs.h.  */
25478
25479 /* Override any GCC internal prototype to avoid an error.
25480    Use char because int might match the return type of a GCC
25481    builtin and then its argument prototype would still apply.  */
25482 #ifdef __cplusplus
25483 extern "C"
25484 #endif
25485 char gethostbyname ();
25486 int
25487 main ()
25488 {
25489 return gethostbyname ();
25490   ;
25491   return 0;
25492 }
25493 _ACEOF
25494 if ac_fn_c_try_link "$LINENO"; then :
25495   ac_cv_lib_nsl_gethostbyname=yes
25496 else
25497   ac_cv_lib_nsl_gethostbyname=no
25498 fi
25499 rm -f core conftest.err conftest.$ac_objext \
25500     conftest$ac_exeext conftest.$ac_ext
25501 LIBS=$ac_check_lib_save_LIBS
25502 fi
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25504 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25505 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25506   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25507 fi
25508
25509       if test $ac_cv_lib_nsl_gethostbyname = no; then
25510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25511 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25512 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25513   $as_echo_n "(cached) " >&6
25514 else
25515   ac_check_lib_save_LIBS=$LIBS
25516 LIBS="-lbsd  $LIBS"
25517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25518 /* end confdefs.h.  */
25519
25520 /* Override any GCC internal prototype to avoid an error.
25521    Use char because int might match the return type of a GCC
25522    builtin and then its argument prototype would still apply.  */
25523 #ifdef __cplusplus
25524 extern "C"
25525 #endif
25526 char gethostbyname ();
25527 int
25528 main ()
25529 {
25530 return gethostbyname ();
25531   ;
25532   return 0;
25533 }
25534 _ACEOF
25535 if ac_fn_c_try_link "$LINENO"; then :
25536   ac_cv_lib_bsd_gethostbyname=yes
25537 else
25538   ac_cv_lib_bsd_gethostbyname=no
25539 fi
25540 rm -f core conftest.err conftest.$ac_objext \
25541     conftest$ac_exeext conftest.$ac_ext
25542 LIBS=$ac_check_lib_save_LIBS
25543 fi
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25545 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25546 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25547   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25548 fi
25549
25550       fi
25551     fi
25552
25553     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25554     # socket/setsockopt and other routines are undefined under SCO ODT
25555     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25556     # on later versions), says Simon Leinen: it contains gethostby*
25557     # variants that don't use the name server (or something).  -lsocket
25558     # must be given before -lnsl if both are needed.  We assume that
25559     # if connect needs -lnsl, so does gethostbyname.
25560     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25561 if test "x$ac_cv_func_connect" = xyes; then :
25562
25563 fi
25564
25565     if test $ac_cv_func_connect = no; then
25566       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25567 $as_echo_n "checking for connect in -lsocket... " >&6; }
25568 if ${ac_cv_lib_socket_connect+:} false; then :
25569   $as_echo_n "(cached) " >&6
25570 else
25571   ac_check_lib_save_LIBS=$LIBS
25572 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h.  */
25575
25576 /* Override any GCC internal prototype to avoid an error.
25577    Use char because int might match the return type of a GCC
25578    builtin and then its argument prototype would still apply.  */
25579 #ifdef __cplusplus
25580 extern "C"
25581 #endif
25582 char connect ();
25583 int
25584 main ()
25585 {
25586 return connect ();
25587   ;
25588   return 0;
25589 }
25590 _ACEOF
25591 if ac_fn_c_try_link "$LINENO"; then :
25592   ac_cv_lib_socket_connect=yes
25593 else
25594   ac_cv_lib_socket_connect=no
25595 fi
25596 rm -f core conftest.err conftest.$ac_objext \
25597     conftest$ac_exeext conftest.$ac_ext
25598 LIBS=$ac_check_lib_save_LIBS
25599 fi
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25601 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25602 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25603   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25604 fi
25605
25606     fi
25607
25608     # Guillermo Gomez says -lposix is necessary on A/UX.
25609     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25610 if test "x$ac_cv_func_remove" = xyes; then :
25611
25612 fi
25613
25614     if test $ac_cv_func_remove = no; then
25615       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25616 $as_echo_n "checking for remove in -lposix... " >&6; }
25617 if ${ac_cv_lib_posix_remove+:} false; then :
25618   $as_echo_n "(cached) " >&6
25619 else
25620   ac_check_lib_save_LIBS=$LIBS
25621 LIBS="-lposix  $LIBS"
25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h.  */
25624
25625 /* Override any GCC internal prototype to avoid an error.
25626    Use char because int might match the return type of a GCC
25627    builtin and then its argument prototype would still apply.  */
25628 #ifdef __cplusplus
25629 extern "C"
25630 #endif
25631 char remove ();
25632 int
25633 main ()
25634 {
25635 return remove ();
25636   ;
25637   return 0;
25638 }
25639 _ACEOF
25640 if ac_fn_c_try_link "$LINENO"; then :
25641   ac_cv_lib_posix_remove=yes
25642 else
25643   ac_cv_lib_posix_remove=no
25644 fi
25645 rm -f core conftest.err conftest.$ac_objext \
25646     conftest$ac_exeext conftest.$ac_ext
25647 LIBS=$ac_check_lib_save_LIBS
25648 fi
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25650 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25651 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25652   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25653 fi
25654
25655     fi
25656
25657     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25658     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25659 if test "x$ac_cv_func_shmat" = xyes; then :
25660
25661 fi
25662
25663     if test $ac_cv_func_shmat = no; then
25664       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25665 $as_echo_n "checking for shmat in -lipc... " >&6; }
25666 if ${ac_cv_lib_ipc_shmat+:} false; then :
25667   $as_echo_n "(cached) " >&6
25668 else
25669   ac_check_lib_save_LIBS=$LIBS
25670 LIBS="-lipc  $LIBS"
25671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h.  */
25673
25674 /* Override any GCC internal prototype to avoid an error.
25675    Use char because int might match the return type of a GCC
25676    builtin and then its argument prototype would still apply.  */
25677 #ifdef __cplusplus
25678 extern "C"
25679 #endif
25680 char shmat ();
25681 int
25682 main ()
25683 {
25684 return shmat ();
25685   ;
25686   return 0;
25687 }
25688 _ACEOF
25689 if ac_fn_c_try_link "$LINENO"; then :
25690   ac_cv_lib_ipc_shmat=yes
25691 else
25692   ac_cv_lib_ipc_shmat=no
25693 fi
25694 rm -f core conftest.err conftest.$ac_objext \
25695     conftest$ac_exeext conftest.$ac_ext
25696 LIBS=$ac_check_lib_save_LIBS
25697 fi
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25699 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25700 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25701   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25702 fi
25703
25704     fi
25705   fi
25706
25707   # Check for libraries that X11R6 Xt/Xaw programs need.
25708   ac_save_LDFLAGS=$LDFLAGS
25709   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25710   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25711   # check for ICE first), but we must link in the order -lSM -lICE or
25712   # we get undefined symbols.  So assume we have SM if we have ICE.
25713   # These have to be linked with before -lX11, unlike the other
25714   # libraries we check for below, so use a different variable.
25715   # John Interrante, Karl Berry
25716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25717 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25718 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25719   $as_echo_n "(cached) " >&6
25720 else
25721   ac_check_lib_save_LIBS=$LIBS
25722 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25724 /* end confdefs.h.  */
25725
25726 /* Override any GCC internal prototype to avoid an error.
25727    Use char because int might match the return type of a GCC
25728    builtin and then its argument prototype would still apply.  */
25729 #ifdef __cplusplus
25730 extern "C"
25731 #endif
25732 char IceConnectionNumber ();
25733 int
25734 main ()
25735 {
25736 return IceConnectionNumber ();
25737   ;
25738   return 0;
25739 }
25740 _ACEOF
25741 if ac_fn_c_try_link "$LINENO"; then :
25742   ac_cv_lib_ICE_IceConnectionNumber=yes
25743 else
25744   ac_cv_lib_ICE_IceConnectionNumber=no
25745 fi
25746 rm -f core conftest.err conftest.$ac_objext \
25747     conftest$ac_exeext conftest.$ac_ext
25748 LIBS=$ac_check_lib_save_LIBS
25749 fi
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25751 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25752 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25753   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25754 fi
25755
25756   LDFLAGS=$ac_save_LDFLAGS
25757
25758 fi
25759
25760
25761 for ac_header in \
25762    assert.h \
25763    fcntl.h \
25764    grp.h \
25765    pwd.h \
25766    libc.h \
25767    limits.h \
25768    stdarg.h \
25769    stdlib.h \
25770    stdint.h \
25771    inttypes.h \
25772    string.h \
25773    strings.h \
25774    termios.h \
25775    termcap.h \
25776    term.h \
25777    unistd.h \
25778    sys/bitypes.h \
25779    sys/byteorder.h \
25780    sys/ioctl.h \
25781    sys/select.h \
25782    sys/socket.h \
25783    sys/sockio.h \
25784    sys/stat.h \
25785    sys/time.h \
25786    sys/types.h \
25787    arpa/nameser.h \
25788    mtio.h \
25789    sys/mtio.h \
25790    sys/tape.h \
25791    regex.h \
25792
25793 do :
25794   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25795 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25797   cat >>confdefs.h <<_ACEOF
25798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25799 _ACEOF
25800
25801 fi
25802
25803 done
25804
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25806 $as_echo_n "checking for ANSI C header files... " >&6; }
25807 if ${ac_cv_header_stdc+:} false; then :
25808   $as_echo_n "(cached) " >&6
25809 else
25810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812 #include <stdlib.h>
25813 #include <stdarg.h>
25814 #include <string.h>
25815 #include <float.h>
25816
25817 int
25818 main ()
25819 {
25820
25821   ;
25822   return 0;
25823 }
25824 _ACEOF
25825 if ac_fn_c_try_compile "$LINENO"; then :
25826   ac_cv_header_stdc=yes
25827 else
25828   ac_cv_header_stdc=no
25829 fi
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831
25832 if test $ac_cv_header_stdc = yes; then
25833   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835 /* end confdefs.h.  */
25836 #include <string.h>
25837
25838 _ACEOF
25839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25840   $EGREP "memchr" >/dev/null 2>&1; then :
25841
25842 else
25843   ac_cv_header_stdc=no
25844 fi
25845 rm -f conftest*
25846
25847 fi
25848
25849 if test $ac_cv_header_stdc = yes; then
25850   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852 /* end confdefs.h.  */
25853 #include <stdlib.h>
25854
25855 _ACEOF
25856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25857   $EGREP "free" >/dev/null 2>&1; then :
25858
25859 else
25860   ac_cv_header_stdc=no
25861 fi
25862 rm -f conftest*
25863
25864 fi
25865
25866 if test $ac_cv_header_stdc = yes; then
25867   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25868   if test "$cross_compiling" = yes; then :
25869   :
25870 else
25871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25872 /* end confdefs.h.  */
25873 #include <ctype.h>
25874 #include <stdlib.h>
25875 #if ((' ' & 0x0FF) == 0x020)
25876 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25877 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25878 #else
25879 # define ISLOWER(c) \
25880                    (('a' <= (c) && (c) <= 'i') \
25881                      || ('j' <= (c) && (c) <= 'r') \
25882                      || ('s' <= (c) && (c) <= 'z'))
25883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25884 #endif
25885
25886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25887 int
25888 main ()
25889 {
25890   int i;
25891   for (i = 0; i < 256; i++)
25892     if (XOR (islower (i), ISLOWER (i))
25893         || toupper (i) != TOUPPER (i))
25894       return 2;
25895   return 0;
25896 }
25897 _ACEOF
25898 if ac_fn_c_try_run "$LINENO"; then :
25899
25900 else
25901   ac_cv_header_stdc=no
25902 fi
25903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25904   conftest.$ac_objext conftest.beam conftest.$ac_ext
25905 fi
25906
25907 fi
25908 fi
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25910 $as_echo "$ac_cv_header_stdc" >&6; }
25911 if test $ac_cv_header_stdc = yes; then
25912
25913 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25914
25915 fi
25916
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25918 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25919 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25920   $as_echo_n "(cached) " >&6
25921 else
25922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25923 /* end confdefs.h.  */
25924 #include <sys/types.h>
25925 int
25926 main ()
25927 {
25928 return makedev(0, 0);
25929   ;
25930   return 0;
25931 }
25932 _ACEOF
25933 if ac_fn_c_try_link "$LINENO"; then :
25934   ac_cv_header_sys_types_h_makedev=yes
25935 else
25936   ac_cv_header_sys_types_h_makedev=no
25937 fi
25938 rm -f core conftest.err conftest.$ac_objext \
25939     conftest$ac_exeext conftest.$ac_ext
25940
25941 fi
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25943 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25944
25945 if test $ac_cv_header_sys_types_h_makedev = no; then
25946 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25947 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25948
25949 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25950
25951 fi
25952
25953
25954
25955   if test $ac_cv_header_sys_mkdev_h = no; then
25956     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25957 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25958
25959 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25960
25961 fi
25962
25963
25964   fi
25965 fi
25966
25967 ac_header_dirent=no
25968 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25969   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25971 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25972 if eval \${$as_ac_Header+:} false; then :
25973   $as_echo_n "(cached) " >&6
25974 else
25975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25976 /* end confdefs.h.  */
25977 #include <sys/types.h>
25978 #include <$ac_hdr>
25979
25980 int
25981 main ()
25982 {
25983 if ((DIR *) 0)
25984 return 0;
25985   ;
25986   return 0;
25987 }
25988 _ACEOF
25989 if ac_fn_c_try_compile "$LINENO"; then :
25990   eval "$as_ac_Header=yes"
25991 else
25992   eval "$as_ac_Header=no"
25993 fi
25994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995 fi
25996 eval ac_res=\$$as_ac_Header
25997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25998 $as_echo "$ac_res" >&6; }
25999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26000   cat >>confdefs.h <<_ACEOF
26001 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26002 _ACEOF
26003
26004 ac_header_dirent=$ac_hdr; break
26005 fi
26006
26007 done
26008 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26009 if test $ac_header_dirent = dirent.h; then
26010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26011 $as_echo_n "checking for library containing opendir... " >&6; }
26012 if ${ac_cv_search_opendir+:} false; then :
26013   $as_echo_n "(cached) " >&6
26014 else
26015   ac_func_search_save_LIBS=$LIBS
26016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26017 /* end confdefs.h.  */
26018
26019 /* Override any GCC internal prototype to avoid an error.
26020    Use char because int might match the return type of a GCC
26021    builtin and then its argument prototype would still apply.  */
26022 #ifdef __cplusplus
26023 extern "C"
26024 #endif
26025 char opendir ();
26026 int
26027 main ()
26028 {
26029 return opendir ();
26030   ;
26031   return 0;
26032 }
26033 _ACEOF
26034 for ac_lib in '' dir; do
26035   if test -z "$ac_lib"; then
26036     ac_res="none required"
26037   else
26038     ac_res=-l$ac_lib
26039     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26040   fi
26041   if ac_fn_c_try_link "$LINENO"; then :
26042   ac_cv_search_opendir=$ac_res
26043 fi
26044 rm -f core conftest.err conftest.$ac_objext \
26045     conftest$ac_exeext
26046   if ${ac_cv_search_opendir+:} false; then :
26047   break
26048 fi
26049 done
26050 if ${ac_cv_search_opendir+:} false; then :
26051
26052 else
26053   ac_cv_search_opendir=no
26054 fi
26055 rm conftest.$ac_ext
26056 LIBS=$ac_func_search_save_LIBS
26057 fi
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26059 $as_echo "$ac_cv_search_opendir" >&6; }
26060 ac_res=$ac_cv_search_opendir
26061 if test "$ac_res" != no; then :
26062   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26063
26064 fi
26065
26066 else
26067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26068 $as_echo_n "checking for library containing opendir... " >&6; }
26069 if ${ac_cv_search_opendir+:} false; then :
26070   $as_echo_n "(cached) " >&6
26071 else
26072   ac_func_search_save_LIBS=$LIBS
26073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26074 /* end confdefs.h.  */
26075
26076 /* Override any GCC internal prototype to avoid an error.
26077    Use char because int might match the return type of a GCC
26078    builtin and then its argument prototype would still apply.  */
26079 #ifdef __cplusplus
26080 extern "C"
26081 #endif
26082 char opendir ();
26083 int
26084 main ()
26085 {
26086 return opendir ();
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 for ac_lib in '' x; do
26092   if test -z "$ac_lib"; then
26093     ac_res="none required"
26094   else
26095     ac_res=-l$ac_lib
26096     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26097   fi
26098   if ac_fn_c_try_link "$LINENO"; then :
26099   ac_cv_search_opendir=$ac_res
26100 fi
26101 rm -f core conftest.err conftest.$ac_objext \
26102     conftest$ac_exeext
26103   if ${ac_cv_search_opendir+:} false; then :
26104   break
26105 fi
26106 done
26107 if ${ac_cv_search_opendir+:} false; then :
26108
26109 else
26110   ac_cv_search_opendir=no
26111 fi
26112 rm conftest.$ac_ext
26113 LIBS=$ac_func_search_save_LIBS
26114 fi
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26116 $as_echo "$ac_cv_search_opendir" >&6; }
26117 ac_res=$ac_cv_search_opendir
26118 if test "$ac_res" != no; then :
26119   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26120
26121 fi
26122
26123 fi
26124
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26126 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26127 if ${ac_cv_header_stat_broken+:} false; then :
26128   $as_echo_n "(cached) " >&6
26129 else
26130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26131 /* end confdefs.h.  */
26132 #include <sys/types.h>
26133 #include <sys/stat.h>
26134
26135 #if defined S_ISBLK && defined S_IFDIR
26136 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26137 #endif
26138
26139 #if defined S_ISBLK && defined S_IFCHR
26140 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26141 #endif
26142
26143 #if defined S_ISLNK && defined S_IFREG
26144 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26145 #endif
26146
26147 #if defined S_ISSOCK && defined S_IFREG
26148 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26149 #endif
26150
26151 _ACEOF
26152 if ac_fn_c_try_compile "$LINENO"; then :
26153   ac_cv_header_stat_broken=no
26154 else
26155   ac_cv_header_stat_broken=yes
26156 fi
26157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26158 fi
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26160 $as_echo "$ac_cv_header_stat_broken" >&6; }
26161 if test $ac_cv_header_stat_broken = yes; then
26162
26163 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26164
26165 fi
26166
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26168 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26169 if ${ac_cv_header_sys_wait_h+:} false; then :
26170   $as_echo_n "(cached) " >&6
26171 else
26172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26173 /* end confdefs.h.  */
26174 #include <sys/types.h>
26175 #include <sys/wait.h>
26176 #ifndef WEXITSTATUS
26177 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26178 #endif
26179 #ifndef WIFEXITED
26180 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26181 #endif
26182
26183 int
26184 main ()
26185 {
26186   int s;
26187   wait (&s);
26188   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26189   ;
26190   return 0;
26191 }
26192 _ACEOF
26193 if ac_fn_c_try_compile "$LINENO"; then :
26194   ac_cv_header_sys_wait_h=yes
26195 else
26196   ac_cv_header_sys_wait_h=no
26197 fi
26198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199 fi
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26201 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26202 if test $ac_cv_header_sys_wait_h = yes; then
26203
26204 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26205
26206 fi
26207
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26209 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26210 if ${ac_cv_header_time+:} false; then :
26211   $as_echo_n "(cached) " >&6
26212 else
26213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214 /* end confdefs.h.  */
26215 #include <sys/types.h>
26216 #include <sys/time.h>
26217 #include <time.h>
26218
26219 int
26220 main ()
26221 {
26222 if ((struct tm *) 0)
26223 return 0;
26224   ;
26225   return 0;
26226 }
26227 _ACEOF
26228 if ac_fn_c_try_compile "$LINENO"; then :
26229   ac_cv_header_time=yes
26230 else
26231   ac_cv_header_time=no
26232 fi
26233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234 fi
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26236 $as_echo "$ac_cv_header_time" >&6; }
26237 if test $ac_cv_header_time = yes; then
26238
26239 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26240
26241 fi
26242
26243 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26244 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26245
26246 cat >>confdefs.h <<_ACEOF
26247 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26248 _ACEOF
26249
26250
26251 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26252
26253 fi
26254
26255
26256 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26257 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26258
26259 cat >>confdefs.h <<_ACEOF
26260 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26261 _ACEOF
26262
26263
26264 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26265
26266 else
26267   case " $LIBOBJS " in
26268   *" fileblocks.$ac_objext "* ) ;;
26269   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26270  ;;
26271 esac
26272
26273 fi
26274
26275
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26277 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26278 if ${ac_cv_struct_tm+:} false; then :
26279   $as_echo_n "(cached) " >&6
26280 else
26281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282 /* end confdefs.h.  */
26283 #include <sys/types.h>
26284 #include <time.h>
26285
26286 int
26287 main ()
26288 {
26289 struct tm tm;
26290                                      int *p = &tm.tm_sec;
26291                                      return !p;
26292   ;
26293   return 0;
26294 }
26295 _ACEOF
26296 if ac_fn_c_try_compile "$LINENO"; then :
26297   ac_cv_struct_tm=time.h
26298 else
26299   ac_cv_struct_tm=sys/time.h
26300 fi
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 fi
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26304 $as_echo "$ac_cv_struct_tm" >&6; }
26305 if test $ac_cv_struct_tm = sys/time.h; then
26306
26307 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26308
26309 fi
26310
26311 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26312 #include <$ac_cv_struct_tm>
26313
26314 "
26315 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26316
26317 cat >>confdefs.h <<_ACEOF
26318 #define HAVE_STRUCT_TM_TM_ZONE 1
26319 _ACEOF
26320
26321
26322 fi
26323
26324 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26325
26326 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26327
26328 else
26329   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26330 "
26331 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26332   ac_have_decl=1
26333 else
26334   ac_have_decl=0
26335 fi
26336
26337 cat >>confdefs.h <<_ACEOF
26338 #define HAVE_DECL_TZNAME $ac_have_decl
26339 _ACEOF
26340
26341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26342 $as_echo_n "checking for tzname... " >&6; }
26343 if ${ac_cv_var_tzname+:} false; then :
26344   $as_echo_n "(cached) " >&6
26345 else
26346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26347 /* end confdefs.h.  */
26348 #include <time.h>
26349 #if !HAVE_DECL_TZNAME
26350 extern char *tzname[];
26351 #endif
26352
26353 int
26354 main ()
26355 {
26356 return tzname[0][0];
26357   ;
26358   return 0;
26359 }
26360 _ACEOF
26361 if ac_fn_c_try_link "$LINENO"; then :
26362   ac_cv_var_tzname=yes
26363 else
26364   ac_cv_var_tzname=no
26365 fi
26366 rm -f core conftest.err conftest.$ac_objext \
26367     conftest$ac_exeext conftest.$ac_ext
26368 fi
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26370 $as_echo "$ac_cv_var_tzname" >&6; }
26371   if test $ac_cv_var_tzname = yes; then
26372
26373 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26374
26375   fi
26376 fi
26377
26378
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26380 $as_echo_n "checking for utime.h... " >&6; }
26381 if ${ba_cv_header_utime_h+:} false; then :
26382   $as_echo_n "(cached) " >&6
26383 else
26384
26385        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26386 /* end confdefs.h.  */
26387
26388               #include <sys/types.h>
26389               #include <utime.h>
26390
26391 int
26392 main ()
26393 {
26394
26395               struct utimbuf foo
26396
26397   ;
26398   return 0;
26399 }
26400 _ACEOF
26401 if ac_fn_c_try_compile "$LINENO"; then :
26402
26403               ba_cv_header_utime_h=yes
26404
26405 else
26406
26407               ba_cv_header_utime_h=no
26408
26409
26410 fi
26411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26412
26413
26414 fi
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26416 $as_echo "$ba_cv_header_utime_h" >&6; }
26417 test $ba_cv_header_utime_h = yes &&
26418 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26419
26420
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26422 $as_echo_n "checking for socklen_t... " >&6; }
26423 if ${ba_cv_header_socklen_t+:} false; then :
26424   $as_echo_n "(cached) " >&6
26425 else
26426
26427        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h.  */
26429
26430               #include <sys/types.h>
26431               #include <sys/socket.h>
26432
26433 int
26434 main ()
26435 {
26436
26437               socklen_t x
26438
26439   ;
26440   return 0;
26441 }
26442 _ACEOF
26443 if ac_fn_c_try_compile "$LINENO"; then :
26444
26445              ba_cv_header_socklen_t=yes
26446
26447 else
26448
26449              ba_cv_header_socklen_t=no
26450
26451
26452 fi
26453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26454
26455
26456 fi
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26458 $as_echo "$ba_cv_header_socklen_t" >&6; }
26459 test $ba_cv_header_socklen_t = yes &&
26460 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26461
26462
26463 ac_ext=cpp
26464 ac_cpp='$CXXCPP $CPPFLAGS'
26465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26468
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26470 $as_echo_n "checking for ioctl_req_t... " >&6; }
26471 if ${ba_cv_header_ioctl_req_t+:} false; then :
26472   $as_echo_n "(cached) " >&6
26473 else
26474
26475        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26476 /* end confdefs.h.  */
26477
26478               #include <unistd.h>
26479               #include <sys/types.h>
26480               #include <sys/ioctl.h>
26481
26482 int
26483 main ()
26484 {
26485
26486               int (*d_ioctl)(int fd, unsigned long int request, ...);
26487               d_ioctl = ::ioctl;
26488
26489   ;
26490   return 0;
26491 }
26492 _ACEOF
26493 if ac_fn_cxx_try_compile "$LINENO"; then :
26494
26495              ba_cv_header_ioctl_req_t=yes
26496
26497 else
26498
26499              ba_cv_header_ioctl_req_t=no
26500
26501
26502 fi
26503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26504
26505
26506 fi
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26508 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26509 test $ba_cv_header_ioctl_req_t = yes &&
26510 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26511
26512
26513 ac_ext=c
26514 ac_cpp='$CPP $CPPFLAGS'
26515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26518
26519
26520 ac_ext=cpp
26521 ac_cpp='$CXXCPP $CPPFLAGS'
26522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26525
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26527 $as_echo_n "checking for typeof... " >&6; }
26528 if ${ba_cv_have_typeof+:} false; then :
26529   $as_echo_n "(cached) " >&6
26530 else
26531
26532        if test "$cross_compiling" = yes; then :
26533
26534               ba_cv_have_typeof=no
26535
26536
26537 else
26538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26539 /* end confdefs.h.  */
26540
26541               main(){char *a = 0; a = (typeof a)a;}
26542
26543 _ACEOF
26544 if ac_fn_cxx_try_run "$LINENO"; then :
26545
26546               ba_cv_have_typeof=yes
26547
26548 else
26549
26550               ba_cv_have_typeof=no
26551
26552 fi
26553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26554   conftest.$ac_objext conftest.beam conftest.$ac_ext
26555 fi
26556
26557
26558
26559 fi
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26561 $as_echo "$ba_cv_have_typeof" >&6; }
26562 test $ba_cv_have_typeof = yes &&
26563 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26564
26565 ac_ext=c
26566 ac_cpp='$CPP $CPPFLAGS'
26567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26570
26571
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26573 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26574 if ${ac_cv_c_const+:} false; then :
26575   $as_echo_n "(cached) " >&6
26576 else
26577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26578 /* end confdefs.h.  */
26579
26580 int
26581 main ()
26582 {
26583
26584 #ifndef __cplusplus
26585   /* Ultrix mips cc rejects this sort of thing.  */
26586   typedef int charset[2];
26587   const charset cs = { 0, 0 };
26588   /* SunOS 4.1.1 cc rejects this.  */
26589   char const *const *pcpcc;
26590   char **ppc;
26591   /* NEC SVR4.0.2 mips cc rejects this.  */
26592   struct point {int x, y;};
26593   static struct point const zero = {0,0};
26594   /* AIX XL C 1.02.0.0 rejects this.
26595      It does not let you subtract one const X* pointer from another in
26596      an arm of an if-expression whose if-part is not a constant
26597      expression */
26598   const char *g = "string";
26599   pcpcc = &g + (g ? g-g : 0);
26600   /* HPUX 7.0 cc rejects these. */
26601   ++pcpcc;
26602   ppc = (char**) pcpcc;
26603   pcpcc = (char const *const *) ppc;
26604   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26605     char tx;
26606     char *t = &tx;
26607     char const *s = 0 ? (char *) 0 : (char const *) 0;
26608
26609     *t++ = 0;
26610     if (s) return 0;
26611   }
26612   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26613     int x[] = {25, 17};
26614     const int *foo = &x[0];
26615     ++foo;
26616   }
26617   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26618     typedef const int *iptr;
26619     iptr p = 0;
26620     ++p;
26621   }
26622   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26623        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26624     struct s { int j; const int *ap[3]; } bx;
26625     struct s *b = &bx; b->j = 5;
26626   }
26627   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26628     const int foo = 10;
26629     if (!foo) return 0;
26630   }
26631   return !cs[0] && !zero.x;
26632 #endif
26633
26634   ;
26635   return 0;
26636 }
26637 _ACEOF
26638 if ac_fn_c_try_compile "$LINENO"; then :
26639   ac_cv_c_const=yes
26640 else
26641   ac_cv_c_const=no
26642 fi
26643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26644 fi
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26646 $as_echo "$ac_cv_c_const" >&6; }
26647 if test $ac_cv_c_const = no; then
26648
26649 $as_echo "#define const /**/" >>confdefs.h
26650
26651 fi
26652
26653
26654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26655 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26656 if ${ac_cv_c_bigendian+:} false; then :
26657   $as_echo_n "(cached) " >&6
26658 else
26659   ac_cv_c_bigendian=unknown
26660     # See if we're dealing with a universal compiler.
26661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26662 /* end confdefs.h.  */
26663 #ifndef __APPLE_CC__
26664                not a universal capable compiler
26665              #endif
26666              typedef int dummy;
26667
26668 _ACEOF
26669 if ac_fn_c_try_compile "$LINENO"; then :
26670
26671         # Check for potential -arch flags.  It is not universal unless
26672         # there are at least two -arch flags with different values.
26673         ac_arch=
26674         ac_prev=
26675         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26676          if test -n "$ac_prev"; then
26677            case $ac_word in
26678              i?86 | x86_64 | ppc | ppc64)
26679                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26680                  ac_arch=$ac_word
26681                else
26682                  ac_cv_c_bigendian=universal
26683                  break
26684                fi
26685                ;;
26686            esac
26687            ac_prev=
26688          elif test "x$ac_word" = "x-arch"; then
26689            ac_prev=arch
26690          fi
26691        done
26692 fi
26693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26694     if test $ac_cv_c_bigendian = unknown; then
26695       # See if sys/param.h defines the BYTE_ORDER macro.
26696       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26697 /* end confdefs.h.  */
26698 #include <sys/types.h>
26699              #include <sys/param.h>
26700
26701 int
26702 main ()
26703 {
26704 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26705                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26706                      && LITTLE_ENDIAN)
26707               bogus endian macros
26708              #endif
26709
26710   ;
26711   return 0;
26712 }
26713 _ACEOF
26714 if ac_fn_c_try_compile "$LINENO"; then :
26715   # It does; now see whether it defined to BIG_ENDIAN or not.
26716          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h.  */
26718 #include <sys/types.h>
26719                 #include <sys/param.h>
26720
26721 int
26722 main ()
26723 {
26724 #if BYTE_ORDER != BIG_ENDIAN
26725                  not big endian
26726                 #endif
26727
26728   ;
26729   return 0;
26730 }
26731 _ACEOF
26732 if ac_fn_c_try_compile "$LINENO"; then :
26733   ac_cv_c_bigendian=yes
26734 else
26735   ac_cv_c_bigendian=no
26736 fi
26737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26738 fi
26739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26740     fi
26741     if test $ac_cv_c_bigendian = unknown; then
26742       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26743       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26744 /* end confdefs.h.  */
26745 #include <limits.h>
26746
26747 int
26748 main ()
26749 {
26750 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26751               bogus endian macros
26752              #endif
26753
26754   ;
26755   return 0;
26756 }
26757 _ACEOF
26758 if ac_fn_c_try_compile "$LINENO"; then :
26759   # It does; now see whether it defined to _BIG_ENDIAN or not.
26760          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761 /* end confdefs.h.  */
26762 #include <limits.h>
26763
26764 int
26765 main ()
26766 {
26767 #ifndef _BIG_ENDIAN
26768                  not big endian
26769                 #endif
26770
26771   ;
26772   return 0;
26773 }
26774 _ACEOF
26775 if ac_fn_c_try_compile "$LINENO"; then :
26776   ac_cv_c_bigendian=yes
26777 else
26778   ac_cv_c_bigendian=no
26779 fi
26780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781 fi
26782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26783     fi
26784     if test $ac_cv_c_bigendian = unknown; then
26785       # Compile a test program.
26786       if test "$cross_compiling" = yes; then :
26787   # Try to guess by grepping values from an object file.
26788          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26789 /* end confdefs.h.  */
26790 short int ascii_mm[] =
26791                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26792                 short int ascii_ii[] =
26793                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26794                 int use_ascii (int i) {
26795                   return ascii_mm[i] + ascii_ii[i];
26796                 }
26797                 short int ebcdic_ii[] =
26798                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26799                 short int ebcdic_mm[] =
26800                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26801                 int use_ebcdic (int i) {
26802                   return ebcdic_mm[i] + ebcdic_ii[i];
26803                 }
26804                 extern int foo;
26805
26806 int
26807 main ()
26808 {
26809 return use_ascii (foo) == use_ebcdic (foo);
26810   ;
26811   return 0;
26812 }
26813 _ACEOF
26814 if ac_fn_c_try_compile "$LINENO"; then :
26815   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26816               ac_cv_c_bigendian=yes
26817             fi
26818             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26819               if test "$ac_cv_c_bigendian" = unknown; then
26820                 ac_cv_c_bigendian=no
26821               else
26822                 # finding both strings is unlikely to happen, but who knows?
26823                 ac_cv_c_bigendian=unknown
26824               fi
26825             fi
26826 fi
26827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26828 else
26829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h.  */
26831 $ac_includes_default
26832 int
26833 main ()
26834 {
26835
26836              /* Are we little or big endian?  From Harbison&Steele.  */
26837              union
26838              {
26839                long int l;
26840                char c[sizeof (long int)];
26841              } u;
26842              u.l = 1;
26843              return u.c[sizeof (long int) - 1] == 1;
26844
26845   ;
26846   return 0;
26847 }
26848 _ACEOF
26849 if ac_fn_c_try_run "$LINENO"; then :
26850   ac_cv_c_bigendian=no
26851 else
26852   ac_cv_c_bigendian=yes
26853 fi
26854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26855   conftest.$ac_objext conftest.beam conftest.$ac_ext
26856 fi
26857
26858     fi
26859 fi
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26861 $as_echo "$ac_cv_c_bigendian" >&6; }
26862  case $ac_cv_c_bigendian in #(
26863    yes)
26864
26865 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26866 ;; #(
26867    no)
26868
26869 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26870  ;; #(
26871    universal)
26872
26873 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26874
26875      ;; #(
26876    *)
26877      as_fn_error $? "unknown endianness
26878  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26879  esac
26880
26881
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26883 $as_echo_n "checking how to get filesystem type... " >&6; }
26884 fstype=no
26885 # The order of these tests is important.
26886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26887 /* end confdefs.h.  */
26888
26889        #include <sys/statvfs.h>
26890        #include <sys/fstyp.h>
26891
26892 _ACEOF
26893 if ac_fn_c_try_cpp "$LINENO"; then :
26894   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26895  fstype=SVR4
26896
26897 fi
26898 rm -f conftest.err conftest.i conftest.$ac_ext
26899 if test $fstype = no; then
26900    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h.  */
26902
26903           #include <sys/statfs.h>
26904           #include <sys/fstyp.h>
26905
26906 _ACEOF
26907 if ac_fn_c_try_cpp "$LINENO"; then :
26908   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26909  fstype=SVR3
26910
26911 fi
26912 rm -f conftest.err conftest.i conftest.$ac_ext
26913 fi
26914 if test $fstype = no; then
26915    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26916 /* end confdefs.h.  */
26917
26918           #include <sys/statfs.h>
26919           #include <sys/vmount.h>
26920
26921 _ACEOF
26922 if ac_fn_c_try_cpp "$LINENO"; then :
26923   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26924  fstype=AIX
26925
26926 fi
26927 rm -f conftest.err conftest.i conftest.$ac_ext
26928 fi
26929 if test $fstype = no; then
26930    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26931 /* end confdefs.h.  */
26932
26933           #include <mntent.h>
26934
26935 _ACEOF
26936 if ac_fn_c_try_cpp "$LINENO"; then :
26937   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26938  fstype=4.3BSD
26939
26940 fi
26941 rm -f conftest.err conftest.i conftest.$ac_ext
26942 fi
26943 if test $fstype = no; then
26944    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945 /* end confdefs.h.  */
26946 #include <sys/mount.h>
26947
26948 _ACEOF
26949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26950   $EGREP "f_type;" >/dev/null 2>&1; then :
26951   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26952  fstype=4.4BSD/OSF1
26953 fi
26954 rm -f conftest*
26955
26956 fi
26957 if test $fstype = no; then
26958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h.  */
26960
26961           #include <sys/mount.h>
26962           #include <sys/fs_types.h>
26963
26964 _ACEOF
26965 if ac_fn_c_try_cpp "$LINENO"; then :
26966   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26967  fstype=Ultrix
26968
26969 fi
26970 rm -f conftest.err conftest.i conftest.$ac_ext
26971 fi
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26973 $as_echo "$fstype" >&6; }
26974
26975 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26976 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26977
26978 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26979
26980 fi
26981
26982
26983
26984 ac_ext=cpp
26985 ac_cpp='$CXXCPP $CPPFLAGS'
26986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26989
26990 for ac_func in backtrace
26991 do :
26992   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26993 if test "x$ac_cv_func_backtrace" = xyes; then :
26994   cat >>confdefs.h <<_ACEOF
26995 #define HAVE_BACKTRACE 1
26996 _ACEOF
26997
26998 fi
26999 done
27000
27001 ac_ext=c
27002 ac_cpp='$CPP $CPPFLAGS'
27003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27006
27007
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27009 $as_echo_n "checking return type of signal handlers... " >&6; }
27010 if ${ac_cv_type_signal+:} false; then :
27011   $as_echo_n "(cached) " >&6
27012 else
27013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27014 /* end confdefs.h.  */
27015 #include <sys/types.h>
27016 #include <signal.h>
27017
27018 int
27019 main ()
27020 {
27021 return *(signal (0, 0)) (0) == 1;
27022   ;
27023   return 0;
27024 }
27025 _ACEOF
27026 if ac_fn_c_try_compile "$LINENO"; then :
27027   ac_cv_type_signal=int
27028 else
27029   ac_cv_type_signal=void
27030 fi
27031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27032 fi
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27034 $as_echo "$ac_cv_type_signal" >&6; }
27035
27036 cat >>confdefs.h <<_ACEOF
27037 #define RETSIGTYPE $ac_cv_type_signal
27038 _ACEOF
27039
27040
27041
27042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27043 $as_echo_n "checking for type of signal functions... " >&6; }
27044   if ${bash_cv_signal_vintage+:} false; then :
27045   $as_echo_n "(cached) " >&6
27046 else
27047
27048     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27049 /* end confdefs.h.  */
27050 #include <signal.h>
27051 int
27052 main ()
27053 {
27054
27055       sigset_t ss;
27056       struct sigaction sa;
27057       sigemptyset(&ss); sigsuspend(&ss);
27058       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27059       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27060
27061   ;
27062   return 0;
27063 }
27064 _ACEOF
27065 if ac_fn_c_try_link "$LINENO"; then :
27066   bash_cv_signal_vintage="posix"
27067 else
27068
27069       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27070 /* end confdefs.h.  */
27071 #include <signal.h>
27072 int
27073 main ()
27074 {
27075
27076           int mask = sigmask(SIGINT);
27077           sigsetmask(mask); sigblock(mask); sigpause(mask);
27078
27079   ;
27080   return 0;
27081 }
27082 _ACEOF
27083 if ac_fn_c_try_link "$LINENO"; then :
27084   bash_cv_signal_vintage="4.2bsd"
27085 else
27086
27087         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27088 /* end confdefs.h.  */
27089
27090           #include <signal.h>
27091           RETSIGTYPE foo() { }
27092 int
27093 main ()
27094 {
27095
27096                   int mask = sigmask(SIGINT);
27097                   sigset(SIGINT, foo); sigrelse(SIGINT);
27098                   sighold(SIGINT); sigpause(SIGINT);
27099
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 if ac_fn_c_try_link "$LINENO"; then :
27105   bash_cv_signal_vintage="svr3"
27106 else
27107   bash_cv_signal_vintage="v7"
27108
27109 fi
27110 rm -f core conftest.err conftest.$ac_objext \
27111     conftest$ac_exeext conftest.$ac_ext
27112
27113 fi
27114 rm -f core conftest.err conftest.$ac_objext \
27115     conftest$ac_exeext conftest.$ac_ext
27116
27117 fi
27118 rm -f core conftest.err conftest.$ac_objext \
27119     conftest$ac_exeext conftest.$ac_ext
27120
27121 fi
27122
27123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27124 $as_echo "$bash_cv_signal_vintage" >&6; }
27125   if test "$bash_cv_signal_vintage" = "posix"; then
27126     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27127
27128   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27129     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27130
27131   elif test "$bash_cv_signal_vintage" = "svr3"; then
27132     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27133
27134   fi
27135
27136 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27137 if test "x$ac_cv_type_mode_t" = xyes; then :
27138
27139 else
27140
27141 cat >>confdefs.h <<_ACEOF
27142 #define mode_t int
27143 _ACEOF
27144
27145 fi
27146
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27148 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27149 if ${ac_cv_type_uid_t+:} false; then :
27150   $as_echo_n "(cached) " >&6
27151 else
27152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27153 /* end confdefs.h.  */
27154 #include <sys/types.h>
27155
27156 _ACEOF
27157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27158   $EGREP "uid_t" >/dev/null 2>&1; then :
27159   ac_cv_type_uid_t=yes
27160 else
27161   ac_cv_type_uid_t=no
27162 fi
27163 rm -f conftest*
27164
27165 fi
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27167 $as_echo "$ac_cv_type_uid_t" >&6; }
27168 if test $ac_cv_type_uid_t = no; then
27169
27170 $as_echo "#define uid_t int" >>confdefs.h
27171
27172
27173 $as_echo "#define gid_t int" >>confdefs.h
27174
27175 fi
27176
27177 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27178 if test "x$ac_cv_type_size_t" = xyes; then :
27179
27180 else
27181
27182 cat >>confdefs.h <<_ACEOF
27183 #define size_t unsigned int
27184 _ACEOF
27185
27186 fi
27187
27188 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27189 if test "x$ac_cv_type_pid_t" = xyes; then :
27190
27191 else
27192
27193 cat >>confdefs.h <<_ACEOF
27194 #define pid_t int
27195 _ACEOF
27196
27197 fi
27198
27199 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27200 if test "x$ac_cv_type_off_t" = xyes; then :
27201
27202 else
27203
27204 cat >>confdefs.h <<_ACEOF
27205 #define off_t long int
27206 _ACEOF
27207
27208 fi
27209
27210
27211   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27212 if test "x$ac_cv_type_intptr_t" = xyes; then :
27213
27214 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27215
27216 else
27217   for ac_type in 'int' 'long int' 'long long int'; do
27218        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27219 /* end confdefs.h.  */
27220 $ac_includes_default
27221 int
27222 main ()
27223 {
27224 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27225 test_array [0] = 0;
27226 return test_array [0];
27227
27228   ;
27229   return 0;
27230 }
27231 _ACEOF
27232 if ac_fn_c_try_compile "$LINENO"; then :
27233
27234 cat >>confdefs.h <<_ACEOF
27235 #define intptr_t $ac_type
27236 _ACEOF
27237
27238           ac_type=
27239 fi
27240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27241        test -z "$ac_type" && break
27242      done
27243 fi
27244
27245
27246
27247   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27248 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27249
27250 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27251
27252 else
27253   for ac_type in 'unsigned int' 'unsigned long int' \
27254         'unsigned long long int'; do
27255        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27256 /* end confdefs.h.  */
27257 $ac_includes_default
27258 int
27259 main ()
27260 {
27261 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27262 test_array [0] = 0;
27263 return test_array [0];
27264
27265   ;
27266   return 0;
27267 }
27268 _ACEOF
27269 if ac_fn_c_try_compile "$LINENO"; then :
27270
27271 cat >>confdefs.h <<_ACEOF
27272 #define uintptr_t $ac_type
27273 _ACEOF
27274
27275           ac_type=
27276 fi
27277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27278        test -z "$ac_type" && break
27279      done
27280 fi
27281
27282
27283 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27284 if test "x$ac_cv_type_ino_t" = xyes; then :
27285
27286 else
27287
27288 cat >>confdefs.h <<_ACEOF
27289 #define ino_t unsigned long
27290 _ACEOF
27291
27292 fi
27293
27294 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27295 if test "x$ac_cv_type_dev_t" = xyes; then :
27296
27297 else
27298
27299 cat >>confdefs.h <<_ACEOF
27300 #define dev_t unsigned long
27301 _ACEOF
27302
27303 fi
27304
27305 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27306 if test "x$ac_cv_type_daddr_t" = xyes; then :
27307
27308 else
27309
27310 cat >>confdefs.h <<_ACEOF
27311 #define daddr_t long
27312 _ACEOF
27313
27314 fi
27315
27316 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27317 if test "x$ac_cv_type_major_t" = xyes; then :
27318
27319 else
27320
27321 cat >>confdefs.h <<_ACEOF
27322 #define major_t int
27323 _ACEOF
27324
27325 fi
27326
27327 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27328 if test "x$ac_cv_type_minor_t" = xyes; then :
27329
27330 else
27331
27332 cat >>confdefs.h <<_ACEOF
27333 #define minor_t int
27334 _ACEOF
27335
27336 fi
27337
27338 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27339 if test "x$ac_cv_type_ssize_t" = xyes; then :
27340
27341 else
27342
27343 cat >>confdefs.h <<_ACEOF
27344 #define ssize_t int
27345 _ACEOF
27346
27347 fi
27348
27349 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27350 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27351
27352 cat >>confdefs.h <<_ACEOF
27353 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27354 _ACEOF
27355
27356
27357 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27358
27359 else
27360   case " $LIBOBJS " in
27361   *" fileblocks.$ac_objext "* ) ;;
27362   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27363  ;;
27364 esac
27365
27366 fi
27367
27368
27369 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27370 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27371
27372 cat >>confdefs.h <<_ACEOF
27373 #define HAVE_STRUCT_STAT_ST_RDEV 1
27374 _ACEOF
27375
27376
27377 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27378
27379 fi
27380
27381
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27383 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27384 if ${ac_cv_struct_tm+:} false; then :
27385   $as_echo_n "(cached) " >&6
27386 else
27387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h.  */
27389 #include <sys/types.h>
27390 #include <time.h>
27391
27392 int
27393 main ()
27394 {
27395 struct tm tm;
27396                                      int *p = &tm.tm_sec;
27397                                      return !p;
27398   ;
27399   return 0;
27400 }
27401 _ACEOF
27402 if ac_fn_c_try_compile "$LINENO"; then :
27403   ac_cv_struct_tm=time.h
27404 else
27405   ac_cv_struct_tm=sys/time.h
27406 fi
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408 fi
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27410 $as_echo "$ac_cv_struct_tm" >&6; }
27411 if test $ac_cv_struct_tm = sys/time.h; then
27412
27413 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27414
27415 fi
27416
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27418 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27419 if ${ac_cv_c_const+:} false; then :
27420   $as_echo_n "(cached) " >&6
27421 else
27422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27423 /* end confdefs.h.  */
27424
27425 int
27426 main ()
27427 {
27428
27429 #ifndef __cplusplus
27430   /* Ultrix mips cc rejects this sort of thing.  */
27431   typedef int charset[2];
27432   const charset cs = { 0, 0 };
27433   /* SunOS 4.1.1 cc rejects this.  */
27434   char const *const *pcpcc;
27435   char **ppc;
27436   /* NEC SVR4.0.2 mips cc rejects this.  */
27437   struct point {int x, y;};
27438   static struct point const zero = {0,0};
27439   /* AIX XL C 1.02.0.0 rejects this.
27440      It does not let you subtract one const X* pointer from another in
27441      an arm of an if-expression whose if-part is not a constant
27442      expression */
27443   const char *g = "string";
27444   pcpcc = &g + (g ? g-g : 0);
27445   /* HPUX 7.0 cc rejects these. */
27446   ++pcpcc;
27447   ppc = (char**) pcpcc;
27448   pcpcc = (char const *const *) ppc;
27449   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27450     char tx;
27451     char *t = &tx;
27452     char const *s = 0 ? (char *) 0 : (char const *) 0;
27453
27454     *t++ = 0;
27455     if (s) return 0;
27456   }
27457   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27458     int x[] = {25, 17};
27459     const int *foo = &x[0];
27460     ++foo;
27461   }
27462   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27463     typedef const int *iptr;
27464     iptr p = 0;
27465     ++p;
27466   }
27467   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27468        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27469     struct s { int j; const int *ap[3]; } bx;
27470     struct s *b = &bx; b->j = 5;
27471   }
27472   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27473     const int foo = 10;
27474     if (!foo) return 0;
27475   }
27476   return !cs[0] && !zero.x;
27477 #endif
27478
27479   ;
27480   return 0;
27481 }
27482 _ACEOF
27483 if ac_fn_c_try_compile "$LINENO"; then :
27484   ac_cv_c_const=yes
27485 else
27486   ac_cv_c_const=no
27487 fi
27488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27489 fi
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27491 $as_echo "$ac_cv_c_const" >&6; }
27492 if test $ac_cv_c_const = no; then
27493
27494 $as_echo "#define const /**/" >>confdefs.h
27495
27496 fi
27497
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27499 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27500 if ${ac_cv_c_restrict+:} false; then :
27501   $as_echo_n "(cached) " >&6
27502 else
27503   ac_cv_c_restrict=no
27504    # The order here caters to the fact that C++ does not require restrict.
27505    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27506      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27507 /* end confdefs.h.  */
27508 typedef int * int_ptr;
27509         int foo (int_ptr $ac_kw ip) {
27510         return ip[0];
27511        }
27512 int
27513 main ()
27514 {
27515 int s[1];
27516         int * $ac_kw t = s;
27517         t[0] = 0;
27518         return foo(t)
27519   ;
27520   return 0;
27521 }
27522 _ACEOF
27523 if ac_fn_c_try_compile "$LINENO"; then :
27524   ac_cv_c_restrict=$ac_kw
27525 fi
27526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27527      test "$ac_cv_c_restrict" != no && break
27528    done
27529
27530 fi
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27532 $as_echo "$ac_cv_c_restrict" >&6; }
27533
27534  case $ac_cv_c_restrict in
27535    restrict) ;;
27536    no) $as_echo "#define restrict /**/" >>confdefs.h
27537  ;;
27538    *)  cat >>confdefs.h <<_ACEOF
27539 #define restrict $ac_cv_c_restrict
27540 _ACEOF
27541  ;;
27542  esac
27543
27544
27545 # The cast to long int works around a bug in the HP C Compiler
27546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27548 # This bug is HP SR number 8606223364.
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27550 $as_echo_n "checking size of char... " >&6; }
27551 if ${ac_cv_sizeof_char+:} false; then :
27552   $as_echo_n "(cached) " >&6
27553 else
27554   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27555
27556 else
27557   if test "$ac_cv_type_char" = yes; then
27558      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27560 as_fn_error 77 "cannot compute sizeof (char)
27561 See \`config.log' for more details" "$LINENO" 5; }
27562    else
27563      ac_cv_sizeof_char=0
27564    fi
27565 fi
27566
27567 fi
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27569 $as_echo "$ac_cv_sizeof_char" >&6; }
27570
27571
27572
27573 cat >>confdefs.h <<_ACEOF
27574 #define SIZEOF_CHAR $ac_cv_sizeof_char
27575 _ACEOF
27576
27577
27578 # The cast to long int works around a bug in the HP C Compiler
27579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27581 # This bug is HP SR number 8606223364.
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27583 $as_echo_n "checking size of short int... " >&6; }
27584 if ${ac_cv_sizeof_short_int+:} false; then :
27585   $as_echo_n "(cached) " >&6
27586 else
27587   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27588
27589 else
27590   if test "$ac_cv_type_short_int" = yes; then
27591      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27593 as_fn_error 77 "cannot compute sizeof (short int)
27594 See \`config.log' for more details" "$LINENO" 5; }
27595    else
27596      ac_cv_sizeof_short_int=0
27597    fi
27598 fi
27599
27600 fi
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27602 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27603
27604
27605
27606 cat >>confdefs.h <<_ACEOF
27607 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27608 _ACEOF
27609
27610
27611 # The cast to long int works around a bug in the HP C Compiler
27612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27614 # This bug is HP SR number 8606223364.
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27616 $as_echo_n "checking size of int... " >&6; }
27617 if ${ac_cv_sizeof_int+:} false; then :
27618   $as_echo_n "(cached) " >&6
27619 else
27620   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27621
27622 else
27623   if test "$ac_cv_type_int" = yes; then
27624      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27626 as_fn_error 77 "cannot compute sizeof (int)
27627 See \`config.log' for more details" "$LINENO" 5; }
27628    else
27629      ac_cv_sizeof_int=0
27630    fi
27631 fi
27632
27633 fi
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27635 $as_echo "$ac_cv_sizeof_int" >&6; }
27636
27637
27638
27639 cat >>confdefs.h <<_ACEOF
27640 #define SIZEOF_INT $ac_cv_sizeof_int
27641 _ACEOF
27642
27643
27644 # The cast to long int works around a bug in the HP C Compiler
27645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27647 # This bug is HP SR number 8606223364.
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27649 $as_echo_n "checking size of long int... " >&6; }
27650 if ${ac_cv_sizeof_long_int+:} false; then :
27651   $as_echo_n "(cached) " >&6
27652 else
27653   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27654
27655 else
27656   if test "$ac_cv_type_long_int" = yes; then
27657      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27659 as_fn_error 77 "cannot compute sizeof (long int)
27660 See \`config.log' for more details" "$LINENO" 5; }
27661    else
27662      ac_cv_sizeof_long_int=0
27663    fi
27664 fi
27665
27666 fi
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27668 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27669
27670
27671
27672 cat >>confdefs.h <<_ACEOF
27673 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27674 _ACEOF
27675
27676
27677 # The cast to long int works around a bug in the HP C Compiler
27678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27680 # This bug is HP SR number 8606223364.
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27682 $as_echo_n "checking size of long long int... " >&6; }
27683 if ${ac_cv_sizeof_long_long_int+:} false; then :
27684   $as_echo_n "(cached) " >&6
27685 else
27686   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27687
27688 else
27689   if test "$ac_cv_type_long_long_int" = yes; then
27690      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27692 as_fn_error 77 "cannot compute sizeof (long long int)
27693 See \`config.log' for more details" "$LINENO" 5; }
27694    else
27695      ac_cv_sizeof_long_long_int=0
27696    fi
27697 fi
27698
27699 fi
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27701 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27702
27703
27704
27705 cat >>confdefs.h <<_ACEOF
27706 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27707 _ACEOF
27708
27709
27710 # The cast to long int works around a bug in the HP C Compiler
27711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27713 # This bug is HP SR number 8606223364.
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27715 $as_echo_n "checking size of int *... " >&6; }
27716 if ${ac_cv_sizeof_int_p+:} false; then :
27717   $as_echo_n "(cached) " >&6
27718 else
27719   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27720
27721 else
27722   if test "$ac_cv_type_int_p" = yes; then
27723      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27725 as_fn_error 77 "cannot compute sizeof (int *)
27726 See \`config.log' for more details" "$LINENO" 5; }
27727    else
27728      ac_cv_sizeof_int_p=0
27729    fi
27730 fi
27731
27732 fi
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27734 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27735
27736
27737
27738 cat >>confdefs.h <<_ACEOF
27739 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27740 _ACEOF
27741
27742
27743
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27745 $as_echo_n "checking for u_int type... " >&6; }
27746 if ${ac_cv_have_u_int+:} false; then :
27747   $as_echo_n "(cached) " >&6
27748 else
27749
27750        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27751 /* end confdefs.h.  */
27752
27753               #include <sys/types.h>
27754
27755 int
27756 main ()
27757 {
27758
27759               u_int a; a = 1;
27760
27761   ;
27762   return 0;
27763 }
27764 _ACEOF
27765 if ac_fn_c_try_compile "$LINENO"; then :
27766
27767               ac_cv_have_u_int="yes"
27768
27769 else
27770
27771               ac_cv_have_u_int="no"
27772
27773
27774 fi
27775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27776
27777
27778 fi
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27780 $as_echo "$ac_cv_have_u_int" >&6; }
27781 if test "x$ac_cv_have_u_int" = "xyes" ; then
27782    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27783
27784    have_u_int=1
27785 fi
27786
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27788 $as_echo_n "checking for intmax_t type... " >&6; }
27789 if ${ac_cv_have_intmax_t+:} false; then :
27790   $as_echo_n "(cached) " >&6
27791 else
27792
27793        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27794 /* end confdefs.h.  */
27795
27796               #include <sys/types.h>
27797
27798 int
27799 main ()
27800 {
27801
27802               intmax_t a; a = 1;
27803
27804   ;
27805   return 0;
27806 }
27807 _ACEOF
27808 if ac_fn_c_try_compile "$LINENO"; then :
27809
27810               ac_cv_have_intmax_t="yes"
27811
27812 else
27813
27814               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27815 /* end confdefs.h.  */
27816
27817                      #include <stdint.h>
27818
27819 int
27820 main ()
27821 {
27822
27823                      intmax_t a; a = 1;
27824
27825   ;
27826   return 0;
27827 }
27828 _ACEOF
27829 if ac_fn_c_try_compile "$LINENO"; then :
27830
27831                      ac_cv_have_intmax_t="yes"
27832
27833 else
27834
27835                      ac_cv_have_intmax_t="no"
27836
27837
27838 fi
27839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27840
27841
27842 fi
27843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27844
27845
27846 fi
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27848 $as_echo "$ac_cv_have_intmax_t" >&6; }
27849 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27850    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27851
27852    have_intmax_t=1
27853 fi
27854
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27856 $as_echo_n "checking for u_intmax_t type... " >&6; }
27857 if ${ac_cv_have_u_intmax_t+:} false; then :
27858   $as_echo_n "(cached) " >&6
27859 else
27860
27861        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27862 /* end confdefs.h.  */
27863
27864               #include <sys/types.h>
27865
27866 int
27867 main ()
27868 {
27869
27870               u_intmax_t a; a = 1;
27871
27872   ;
27873   return 0;
27874 }
27875 _ACEOF
27876 if ac_fn_c_try_compile "$LINENO"; then :
27877
27878               ac_cv_have_u_intmax_t="yes"
27879
27880 else
27881
27882               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27883 /* end confdefs.h.  */
27884
27885                      #include <stdint.h>
27886
27887 int
27888 main ()
27889 {
27890
27891                     u_intmax_t a; a = 1;
27892
27893   ;
27894   return 0;
27895 }
27896 _ACEOF
27897 if ac_fn_c_try_compile "$LINENO"; then :
27898
27899                     ac_cv_have_u_intmax_t="yes"
27900
27901 else
27902
27903                     ac_cv_have_u_intmax_t="no"
27904
27905
27906 fi
27907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27908
27909
27910 fi
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912
27913
27914 fi
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27916 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27917 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27918    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27919
27920    have_u_intmax_t=1
27921 fi
27922
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27924 $as_echo_n "checking for intXX_t types... " >&6; }
27925 if ${ac_cv_have_intxx_t+:} false; then :
27926   $as_echo_n "(cached) " >&6
27927 else
27928
27929        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27930 /* end confdefs.h.  */
27931
27932               #include <sys/types.h>
27933
27934 int
27935 main ()
27936 {
27937
27938               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27939
27940   ;
27941   return 0;
27942 }
27943 _ACEOF
27944 if ac_fn_c_try_compile "$LINENO"; then :
27945
27946               ac_cv_have_intxx_t="yes"
27947
27948 else
27949
27950               ac_cv_have_intxx_t="no"
27951
27952
27953 fi
27954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27955
27956
27957 fi
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27959 $as_echo "$ac_cv_have_intxx_t" >&6; }
27960 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27961    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27962
27963    have_intxx_t=1
27964 fi
27965
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27967 $as_echo_n "checking for int64_t type... " >&6; }
27968 if ${ac_cv_have_int64_t+:} false; then :
27969   $as_echo_n "(cached) " >&6
27970 else
27971
27972        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27973 /* end confdefs.h.  */
27974
27975               #include <sys/types.h>
27976
27977 int
27978 main ()
27979 {
27980
27981               int64_t a; a = 1;
27982
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 if ac_fn_c_try_compile "$LINENO"; then :
27988
27989               ac_cv_have_int64_t="yes"
27990
27991 else
27992
27993               ac_cv_have_int64_t="no"
27994
27995
27996 fi
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998
27999
28000 fi
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28002 $as_echo "$ac_cv_have_int64_t" >&6; }
28003 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28004    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28005
28006    have_int64_t=1
28007 fi
28008
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28010 $as_echo_n "checking for u_intXX_t types... " >&6; }
28011 if ${ac_cv_have_u_intxx_t+:} false; then :
28012   $as_echo_n "(cached) " >&6
28013 else
28014
28015        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28016 /* end confdefs.h.  */
28017
28018               #include <sys/types.h>
28019
28020 int
28021 main ()
28022 {
28023
28024               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28025
28026   ;
28027   return 0;
28028 }
28029 _ACEOF
28030 if ac_fn_c_try_compile "$LINENO"; then :
28031
28032              ac_cv_have_u_intxx_t="yes"
28033
28034 else
28035
28036              ac_cv_have_u_intxx_t="no"
28037
28038
28039 fi
28040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28041
28042
28043 fi
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28045 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28046 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28047    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28048
28049    have_u_intxx_t=1
28050 fi
28051
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28053 $as_echo_n "checking for u_int64_t types... " >&6; }
28054 if ${ac_cv_have_u_int64_t+:} false; then :
28055   $as_echo_n "(cached) " >&6
28056 else
28057
28058        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28059 /* end confdefs.h.  */
28060
28061               #include <sys/types.h>
28062
28063 int
28064 main ()
28065 {
28066
28067               u_int64_t a; a = 1;
28068
28069   ;
28070   return 0;
28071 }
28072 _ACEOF
28073 if ac_fn_c_try_compile "$LINENO"; then :
28074
28075              ac_cv_have_u_int64_t="yes"
28076
28077 else
28078
28079              ac_cv_have_u_int64_t="no"
28080
28081
28082 fi
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084
28085
28086 fi
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28088 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28089 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28090    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28091
28092    have_u_int64_t=1
28093 fi
28094
28095 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28096     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28097 then
28098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28099 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28101 /* end confdefs.h.  */
28102
28103           #include <sys/bitypes.h>
28104
28105 int
28106 main ()
28107 {
28108
28109           int8_t a; int16_t b; int32_t c;
28110           u_int8_t e; u_int16_t f; u_int32_t g;
28111           a = b = c = e = f = g = 1;
28112
28113   ;
28114   return 0;
28115 }
28116 _ACEOF
28117 if ac_fn_c_try_compile "$LINENO"; then :
28118
28119           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28120
28121           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28122
28123           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28124
28125           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28126 $as_echo "yes" >&6; }
28127
28128 else
28129
28130           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28131 $as_echo "no" >&6; }
28132
28133
28134 fi
28135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28136 fi
28137
28138 if test -z "$have_u_intxx_t" ; then
28139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28140 $as_echo_n "checking for uintXX_t types... " >&6; }
28141 if ${ac_cv_have_uintxx_t+:} false; then :
28142   $as_echo_n "(cached) " >&6
28143 else
28144
28145           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28146 /* end confdefs.h.  */
28147
28148                  #include <sys/types.h>
28149
28150 int
28151 main ()
28152 {
28153
28154                  uint8_t a; uint16_t b;
28155                  uint32_t c; a = b = c = 1;
28156
28157   ;
28158   return 0;
28159 }
28160 _ACEOF
28161 if ac_fn_c_try_compile "$LINENO"; then :
28162
28163                 ac_cv_have_uintxx_t="yes"
28164
28165 else
28166
28167                 ac_cv_have_uintxx_t="no"
28168
28169
28170 fi
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28172
28173
28174 fi
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28176 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28177    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28178       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28179
28180    fi
28181 fi
28182
28183 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28184     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28185 then
28186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28187 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28189 /* end confdefs.h.  */
28190
28191           #include <sys/bitypes.h>
28192
28193 int
28194 main ()
28195 {
28196
28197           int64_t a; u_int64_t b;
28198           a = b = 1;
28199
28200   ;
28201   return 0;
28202 }
28203 _ACEOF
28204 if ac_fn_c_try_compile "$LINENO"; then :
28205
28206           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28207
28208           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28209
28210           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28211 $as_echo "yes" >&6; }
28212
28213 else
28214
28215           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28216 $as_echo "no" >&6; }
28217
28218
28219 fi
28220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28221 fi
28222
28223 if (test -z "$have_uintxx_t" && \
28224     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28225 then
28226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28227 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28228    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28229 /* end confdefs.h.  */
28230
28231           #include <sys/bitypes.h>
28232
28233 int
28234 main ()
28235 {
28236
28237           uint8_t a; uint16_t b;
28238           uint32_t c; a = b = c = 1;
28239
28240   ;
28241   return 0;
28242 }
28243 _ACEOF
28244 if ac_fn_c_try_compile "$LINENO"; then :
28245
28246           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28247
28248           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28249 $as_echo "yes" >&6; }
28250
28251 else
28252
28253           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28254 $as_echo "no" >&6; }
28255
28256
28257 fi
28258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28259 fi
28260
28261 for ac_func in \
28262    fork \
28263    getcwd \
28264    gethostname \
28265    getpid \
28266    gettimeofday \
28267    setpgid \
28268    setpgrp \
28269    setsid \
28270    signal \
28271    strerror \
28272    strncmp \
28273    strncpy \
28274    vfprintf \
28275
28276 do :
28277   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28279 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28280   cat >>confdefs.h <<_ACEOF
28281 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28282 _ACEOF
28283
28284 else
28285   echo 'configure: cannot find needed function.'; exit 1
28286
28287 fi
28288 done
28289
28290
28291 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28292
28293 "
28294 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28295
28296 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28297
28298 fi
28299
28300
28301 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28302
28303 "
28304 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28305
28306 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28307
28308 fi
28309
28310
28311 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28312 if test "x$ac_cv_func_closefrom" = xyes; then :
28313
28314 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28315
28316 fi
28317
28318 for ac_func in getpagesize
28319 do :
28320   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28321 if test "x$ac_cv_func_getpagesize" = xyes; then :
28322   cat >>confdefs.h <<_ACEOF
28323 #define HAVE_GETPAGESIZE 1
28324 _ACEOF
28325
28326 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28327
28328 fi
28329 done
28330
28331 for ac_func in malloc_trim
28332 do :
28333   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28334 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28335   cat >>confdefs.h <<_ACEOF
28336 #define HAVE_MALLOC_TRIM 1
28337 _ACEOF
28338
28339 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28340
28341 fi
28342 done
28343
28344
28345 for ac_func in fchdir
28346 do :
28347   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28348 if test "x$ac_cv_func_fchdir" = xyes; then :
28349   cat >>confdefs.h <<_ACEOF
28350 #define HAVE_FCHDIR 1
28351 _ACEOF
28352  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28353
28354 fi
28355 done
28356
28357 for ac_func in strtoll
28358 do :
28359   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28360 if test "x$ac_cv_func_strtoll" = xyes; then :
28361   cat >>confdefs.h <<_ACEOF
28362 #define HAVE_STRTOLL 1
28363 _ACEOF
28364  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28365
28366 fi
28367 done
28368
28369 for ac_func in posix_fadvise
28370 do :
28371   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28372 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28373   cat >>confdefs.h <<_ACEOF
28374 #define HAVE_POSIX_FADVISE 1
28375 _ACEOF
28376
28377 fi
28378 done
28379
28380 for ac_func in posix_fallocate
28381 do :
28382   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28383 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28384   cat >>confdefs.h <<_ACEOF
28385 #define HAVE_POSIX_FALLOCATE 1
28386 _ACEOF
28387
28388 fi
28389 done
28390
28391 for ac_func in fdatasync
28392 do :
28393   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28394 if test "x$ac_cv_func_fdatasync" = xyes; then :
28395   cat >>confdefs.h <<_ACEOF
28396 #define HAVE_FDATASYNC 1
28397 _ACEOF
28398
28399 fi
28400 done
28401
28402
28403 for ac_func in chflags
28404 do :
28405   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28406 if test "x$ac_cv_func_chflags" = xyes; then :
28407   cat >>confdefs.h <<_ACEOF
28408 #define HAVE_CHFLAGS 1
28409 _ACEOF
28410
28411 fi
28412 done
28413
28414
28415 for ac_func in snprintf vsnprintf gethostid fseeko
28416 do :
28417   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28419 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28420   cat >>confdefs.h <<_ACEOF
28421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28422 _ACEOF
28423
28424 fi
28425 done
28426
28427
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28429 $as_echo_n "checking for va_copy... " >&6; }
28430 if ${ba_cv_va_copy+:} false; then :
28431   $as_echo_n "(cached) " >&6
28432 else
28433
28434        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28435 /* end confdefs.h.  */
28436
28437               #include <stdarg.h>
28438               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28439               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28440
28441 int
28442 main ()
28443 {
28444
28445               call_use_va_copy(1,2,3)
28446
28447   ;
28448   return 0;
28449 }
28450 _ACEOF
28451 if ac_fn_c_try_link "$LINENO"; then :
28452
28453               ba_cv_va_copy=yes
28454
28455 else
28456
28457               ba_cv_va_copy=no
28458
28459
28460 fi
28461 rm -f core conftest.err conftest.$ac_objext \
28462     conftest$ac_exeext conftest.$ac_ext
28463
28464
28465 fi
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28467 $as_echo "$ba_cv_va_copy" >&6; }
28468 test $ba_cv_va_copy = yes &&
28469 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28470
28471
28472 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28473 do :
28474   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28475 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28476 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28477   cat >>confdefs.h <<_ACEOF
28478 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28479 _ACEOF
28480
28481 fi
28482 done
28483
28484
28485 # If resolver functions are not in libc check for -lnsl or -lresolv.
28486 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28487 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28489 $as_echo "using libc's resolver" >&6; }
28490 else
28491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28492 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28493 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28494   $as_echo_n "(cached) " >&6
28495 else
28496   ac_check_lib_save_LIBS=$LIBS
28497 LIBS="-lnsl  $LIBS"
28498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28499 /* end confdefs.h.  */
28500
28501 /* Override any GCC internal prototype to avoid an error.
28502    Use char because int might match the return type of a GCC
28503    builtin and then its argument prototype would still apply.  */
28504 #ifdef __cplusplus
28505 extern "C"
28506 #endif
28507 char gethostbyname_r ();
28508 int
28509 main ()
28510 {
28511 return gethostbyname_r ();
28512   ;
28513   return 0;
28514 }
28515 _ACEOF
28516 if ac_fn_c_try_link "$LINENO"; then :
28517   ac_cv_lib_nsl_gethostbyname_r=yes
28518 else
28519   ac_cv_lib_nsl_gethostbyname_r=no
28520 fi
28521 rm -f core conftest.err conftest.$ac_objext \
28522     conftest$ac_exeext conftest.$ac_ext
28523 LIBS=$ac_check_lib_save_LIBS
28524 fi
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28526 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28527 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28528   cat >>confdefs.h <<_ACEOF
28529 #define HAVE_LIBNSL 1
28530 _ACEOF
28531
28532   LIBS="-lnsl $LIBS"
28533
28534 fi
28535
28536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28537 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28538 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28539   $as_echo_n "(cached) " >&6
28540 else
28541   ac_check_lib_save_LIBS=$LIBS
28542 LIBS="-lresolv  $LIBS"
28543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28544 /* end confdefs.h.  */
28545
28546 /* Override any GCC internal prototype to avoid an error.
28547    Use char because int might match the return type of a GCC
28548    builtin and then its argument prototype would still apply.  */
28549 #ifdef __cplusplus
28550 extern "C"
28551 #endif
28552 char gethostbyname_r ();
28553 int
28554 main ()
28555 {
28556 return gethostbyname_r ();
28557   ;
28558   return 0;
28559 }
28560 _ACEOF
28561 if ac_fn_c_try_link "$LINENO"; then :
28562   ac_cv_lib_resolv_gethostbyname_r=yes
28563 else
28564   ac_cv_lib_resolv_gethostbyname_r=no
28565 fi
28566 rm -f core conftest.err conftest.$ac_objext \
28567     conftest$ac_exeext conftest.$ac_ext
28568 LIBS=$ac_check_lib_save_LIBS
28569 fi
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28571 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28572 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28573   cat >>confdefs.h <<_ACEOF
28574 #define HAVE_LIBRESOLV 1
28575 _ACEOF
28576
28577   LIBS="-lresolv $LIBS"
28578
28579 fi
28580
28581 fi
28582
28583
28584 for ac_func in inet_pton
28585 do :
28586   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28587 if test "x$ac_cv_func_inet_pton" = xyes; then :
28588   cat >>confdefs.h <<_ACEOF
28589 #define HAVE_INET_PTON 1
28590 _ACEOF
28591  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28592
28593 fi
28594 done
28595
28596 for ac_func in inet_ntop
28597 do :
28598   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28599 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28600   cat >>confdefs.h <<_ACEOF
28601 #define HAVE_INET_NTOP 1
28602 _ACEOF
28603  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28604
28605 fi
28606 done
28607
28608 for ac_func in gethostbyname2
28609 do :
28610   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28611 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28612   cat >>confdefs.h <<_ACEOF
28613 #define HAVE_GETHOSTBYNAME2 1
28614 _ACEOF
28615  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28616
28617 fi
28618 done
28619
28620 for ac_func in getnameinfo
28621 do :
28622   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28623 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28624   cat >>confdefs.h <<_ACEOF
28625 #define HAVE_GETNAMEINFO 1
28626 _ACEOF
28627  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28628
28629 fi
28630 done
28631
28632
28633
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28635 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28636 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28637   $as_echo_n "(cached) " >&6
28638 else
28639
28640        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641 /* end confdefs.h.  */
28642
28643               #include <sys/socket.h>
28644
28645 int
28646 main ()
28647 {
28648
28649               struct sockaddr s; s.sa_len;
28650
28651   ;
28652   return 0;
28653 }
28654 _ACEOF
28655 if ac_fn_c_try_compile "$LINENO"; then :
28656
28657              ac_cv_struct_sockaddr_sa_len=yes
28658
28659 else
28660   ac_cv_struct_sockaddr_sa_len=no
28661
28662
28663 fi
28664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28665
28666
28667 fi
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28669 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28670
28671 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28672
28673 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28674
28675 fi
28676
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28678 $as_echo_n "checking for working getaddrinfo... " >&6; }
28679 if ${ac_cv_working_getaddrinfo+:} false; then :
28680   $as_echo_n "(cached) " >&6
28681 else
28682
28683        if test "$cross_compiling" = yes; then :
28684
28685               ac_cv_working_getaddrinfo="yes"
28686
28687
28688 else
28689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28690 /* end confdefs.h.  */
28691
28692               #include <netdb.h>
28693               #include <string.h>
28694               #include <sys/types.h>
28695               #include <sys/socket.h>
28696
28697               void main(void) {
28698                   struct addrinfo hints, *ai;
28699                   int error;
28700
28701                   memset(&hints, 0, sizeof(hints));
28702                   hints.ai_family = AF_UNSPEC;
28703                   hints.ai_socktype = SOCK_STREAM;
28704                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28705                   if (error) {
28706                       exit(1);
28707                   }
28708                   if (ai->ai_addr->sa_family != AF_INET) {
28709                       exit(1);
28710                   }
28711                   exit(0);
28712               }
28713
28714 _ACEOF
28715 if ac_fn_c_try_run "$LINENO"; then :
28716
28717               ac_cv_working_getaddrinfo="yes"
28718
28719 else
28720
28721               ac_cv_working_getaddrinfo="no"
28722
28723 fi
28724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28725   conftest.$ac_objext conftest.beam conftest.$ac_ext
28726 fi
28727
28728
28729
28730 fi
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28732 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28733 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28734 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28735
28736 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28737
28738 fi
28739
28740
28741 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28742   if test "$ac_cv_func_gai_strerror" != "yes"; then
28743     ac_cv_working_getaddrinfo="no"
28744   else
28745
28746 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28747
28748   fi
28749 fi
28750
28751 for ac_func in strftime
28752 do :
28753   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28754 if test "x$ac_cv_func_strftime" = xyes; then :
28755   cat >>confdefs.h <<_ACEOF
28756 #define HAVE_STRFTIME 1
28757 _ACEOF
28758
28759 else
28760   # strftime is in -lintl on SCO UNIX.
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28762 $as_echo_n "checking for strftime in -lintl... " >&6; }
28763 if ${ac_cv_lib_intl_strftime+:} false; then :
28764   $as_echo_n "(cached) " >&6
28765 else
28766   ac_check_lib_save_LIBS=$LIBS
28767 LIBS="-lintl  $LIBS"
28768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28769 /* end confdefs.h.  */
28770
28771 /* Override any GCC internal prototype to avoid an error.
28772    Use char because int might match the return type of a GCC
28773    builtin and then its argument prototype would still apply.  */
28774 #ifdef __cplusplus
28775 extern "C"
28776 #endif
28777 char strftime ();
28778 int
28779 main ()
28780 {
28781 return strftime ();
28782   ;
28783   return 0;
28784 }
28785 _ACEOF
28786 if ac_fn_c_try_link "$LINENO"; then :
28787   ac_cv_lib_intl_strftime=yes
28788 else
28789   ac_cv_lib_intl_strftime=no
28790 fi
28791 rm -f core conftest.err conftest.$ac_objext \
28792     conftest$ac_exeext conftest.$ac_ext
28793 LIBS=$ac_check_lib_save_LIBS
28794 fi
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28796 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28797 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28798   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28799
28800 LIBS="-lintl $LIBS"
28801 fi
28802
28803 fi
28804 done
28805
28806 for ac_func in vprintf
28807 do :
28808   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28809 if test "x$ac_cv_func_vprintf" = xyes; then :
28810   cat >>confdefs.h <<_ACEOF
28811 #define HAVE_VPRINTF 1
28812 _ACEOF
28813
28814 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28815 if test "x$ac_cv_func__doprnt" = xyes; then :
28816
28817 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28818
28819 fi
28820
28821 fi
28822 done
28823
28824
28825 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28826 # for constant arguments.  Useless!
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28828 $as_echo_n "checking for working alloca.h... " >&6; }
28829 if ${ac_cv_working_alloca_h+:} false; then :
28830   $as_echo_n "(cached) " >&6
28831 else
28832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28833 /* end confdefs.h.  */
28834 #include <alloca.h>
28835 int
28836 main ()
28837 {
28838 char *p = (char *) alloca (2 * sizeof (int));
28839                           if (p) return 0;
28840   ;
28841   return 0;
28842 }
28843 _ACEOF
28844 if ac_fn_c_try_link "$LINENO"; then :
28845   ac_cv_working_alloca_h=yes
28846 else
28847   ac_cv_working_alloca_h=no
28848 fi
28849 rm -f core conftest.err conftest.$ac_objext \
28850     conftest$ac_exeext conftest.$ac_ext
28851 fi
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28853 $as_echo "$ac_cv_working_alloca_h" >&6; }
28854 if test $ac_cv_working_alloca_h = yes; then
28855
28856 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28857
28858 fi
28859
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28861 $as_echo_n "checking for alloca... " >&6; }
28862 if ${ac_cv_func_alloca_works+:} false; then :
28863   $as_echo_n "(cached) " >&6
28864 else
28865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866 /* end confdefs.h.  */
28867 #ifdef __GNUC__
28868 # define alloca __builtin_alloca
28869 #else
28870 # ifdef _MSC_VER
28871 #  include <malloc.h>
28872 #  define alloca _alloca
28873 # else
28874 #  ifdef HAVE_ALLOCA_H
28875 #   include <alloca.h>
28876 #  else
28877 #   ifdef _AIX
28878  #pragma alloca
28879 #   else
28880 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28881 void *alloca (size_t);
28882 #    endif
28883 #   endif
28884 #  endif
28885 # endif
28886 #endif
28887
28888 int
28889 main ()
28890 {
28891 char *p = (char *) alloca (1);
28892                                     if (p) return 0;
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 if ac_fn_c_try_link "$LINENO"; then :
28898   ac_cv_func_alloca_works=yes
28899 else
28900   ac_cv_func_alloca_works=no
28901 fi
28902 rm -f core conftest.err conftest.$ac_objext \
28903     conftest$ac_exeext conftest.$ac_ext
28904 fi
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28906 $as_echo "$ac_cv_func_alloca_works" >&6; }
28907
28908 if test $ac_cv_func_alloca_works = yes; then
28909
28910 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28911
28912 else
28913   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28914 # that cause trouble.  Some versions do not even contain alloca or
28915 # contain a buggy version.  If you still want to use their alloca,
28916 # use ar to extract alloca.o from them instead of compiling alloca.c.
28917
28918 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28919
28920 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28921
28922
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28924 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28925 if ${ac_cv_os_cray+:} false; then :
28926   $as_echo_n "(cached) " >&6
28927 else
28928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28929 /* end confdefs.h.  */
28930 #if defined CRAY && ! defined CRAY2
28931 webecray
28932 #else
28933 wenotbecray
28934 #endif
28935
28936 _ACEOF
28937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28938   $EGREP "webecray" >/dev/null 2>&1; then :
28939   ac_cv_os_cray=yes
28940 else
28941   ac_cv_os_cray=no
28942 fi
28943 rm -f conftest*
28944
28945 fi
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28947 $as_echo "$ac_cv_os_cray" >&6; }
28948 if test $ac_cv_os_cray = yes; then
28949   for ac_func in _getb67 GETB67 getb67; do
28950     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28953
28954 cat >>confdefs.h <<_ACEOF
28955 #define CRAY_STACKSEG_END $ac_func
28956 _ACEOF
28957
28958     break
28959 fi
28960
28961   done
28962 fi
28963
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28965 $as_echo_n "checking stack direction for C alloca... " >&6; }
28966 if ${ac_cv_c_stack_direction+:} false; then :
28967   $as_echo_n "(cached) " >&6
28968 else
28969   if test "$cross_compiling" = yes; then :
28970   ac_cv_c_stack_direction=0
28971 else
28972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28973 /* end confdefs.h.  */
28974 $ac_includes_default
28975 int
28976 find_stack_direction (int *addr, int depth)
28977 {
28978   int dir, dummy = 0;
28979   if (! addr)
28980     addr = &dummy;
28981   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28982   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28983   return dir + dummy;
28984 }
28985
28986 int
28987 main (int argc, char **argv)
28988 {
28989   return find_stack_direction (0, argc + !argv + 20) < 0;
28990 }
28991 _ACEOF
28992 if ac_fn_c_try_run "$LINENO"; then :
28993   ac_cv_c_stack_direction=1
28994 else
28995   ac_cv_c_stack_direction=-1
28996 fi
28997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28998   conftest.$ac_objext conftest.beam conftest.$ac_ext
28999 fi
29000
29001 fi
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29003 $as_echo "$ac_cv_c_stack_direction" >&6; }
29004 cat >>confdefs.h <<_ACEOF
29005 #define STACK_DIRECTION $ac_cv_c_stack_direction
29006 _ACEOF
29007
29008
29009 fi
29010
29011 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29012 # -lseq on Dynix/PTX, -lgen on Unixware.
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29014 $as_echo_n "checking for library containing getmntent... " >&6; }
29015 if ${ac_cv_search_getmntent+:} false; then :
29016   $as_echo_n "(cached) " >&6
29017 else
29018   ac_func_search_save_LIBS=$LIBS
29019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29020 /* end confdefs.h.  */
29021
29022 /* Override any GCC internal prototype to avoid an error.
29023    Use char because int might match the return type of a GCC
29024    builtin and then its argument prototype would still apply.  */
29025 #ifdef __cplusplus
29026 extern "C"
29027 #endif
29028 char getmntent ();
29029 int
29030 main ()
29031 {
29032 return getmntent ();
29033   ;
29034   return 0;
29035 }
29036 _ACEOF
29037 for ac_lib in '' sun seq gen; do
29038   if test -z "$ac_lib"; then
29039     ac_res="none required"
29040   else
29041     ac_res=-l$ac_lib
29042     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29043   fi
29044   if ac_fn_c_try_link "$LINENO"; then :
29045   ac_cv_search_getmntent=$ac_res
29046 fi
29047 rm -f core conftest.err conftest.$ac_objext \
29048     conftest$ac_exeext
29049   if ${ac_cv_search_getmntent+:} false; then :
29050   break
29051 fi
29052 done
29053 if ${ac_cv_search_getmntent+:} false; then :
29054
29055 else
29056   ac_cv_search_getmntent=no
29057 fi
29058 rm conftest.$ac_ext
29059 LIBS=$ac_func_search_save_LIBS
29060 fi
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29062 $as_echo "$ac_cv_search_getmntent" >&6; }
29063 ac_res=$ac_cv_search_getmntent
29064 if test "$ac_res" != no; then :
29065   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29066   ac_cv_func_getmntent=yes
29067
29068 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29069
29070 else
29071   ac_cv_func_getmntent=no
29072 fi
29073
29074
29075 for ac_func in getmntinfo
29076 do :
29077   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29078 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29079   cat >>confdefs.h <<_ACEOF
29080 #define HAVE_GETMNTINFO 1
29081 _ACEOF
29082  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29083
29084 fi
29085 done
29086
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29088 $as_echo_n "checking whether closedir returns void... " >&6; }
29089 if ${ac_cv_func_closedir_void+:} false; then :
29090   $as_echo_n "(cached) " >&6
29091 else
29092   if test "$cross_compiling" = yes; then :
29093   ac_cv_func_closedir_void=yes
29094 else
29095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29096 /* end confdefs.h.  */
29097 $ac_includes_default
29098 #include <$ac_header_dirent>
29099 #ifndef __cplusplus
29100 int closedir ();
29101 #endif
29102
29103 int
29104 main ()
29105 {
29106 return closedir (opendir (".")) != 0;
29107   ;
29108   return 0;
29109 }
29110 _ACEOF
29111 if ac_fn_c_try_run "$LINENO"; then :
29112   ac_cv_func_closedir_void=no
29113 else
29114   ac_cv_func_closedir_void=yes
29115 fi
29116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29117   conftest.$ac_objext conftest.beam conftest.$ac_ext
29118 fi
29119
29120 fi
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29122 $as_echo "$ac_cv_func_closedir_void" >&6; }
29123 if test $ac_cv_func_closedir_void = yes; then
29124
29125 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29126
29127 fi
29128
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29130 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29131 if ${ac_cv_func_setpgrp_void+:} false; then :
29132   $as_echo_n "(cached) " >&6
29133 else
29134   if test "$cross_compiling" = yes; then :
29135   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29136 else
29137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29138 /* end confdefs.h.  */
29139 $ac_includes_default
29140 int
29141 main ()
29142 {
29143 /* If this system has a BSD-style setpgrp which takes arguments,
29144   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29145   exit successfully. */
29146   return setpgrp (1,1) != -1;
29147   ;
29148   return 0;
29149 }
29150 _ACEOF
29151 if ac_fn_c_try_run "$LINENO"; then :
29152   ac_cv_func_setpgrp_void=no
29153 else
29154   ac_cv_func_setpgrp_void=yes
29155 fi
29156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29157   conftest.$ac_objext conftest.beam conftest.$ac_ext
29158 fi
29159
29160 fi
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29162 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29163 if test $ac_cv_func_setpgrp_void = yes; then
29164
29165 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29166
29167 fi
29168             # AC_FUNC_FNMATCH    dnl use local version
29169
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29171 $as_echo_n "checking for gettext in -lintl... " >&6; }
29172 if ${ac_cv_lib_intl_gettext+:} false; then :
29173   $as_echo_n "(cached) " >&6
29174 else
29175   ac_check_lib_save_LIBS=$LIBS
29176 LIBS="-lintl  $LIBS"
29177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29178 /* end confdefs.h.  */
29179
29180 /* Override any GCC internal prototype to avoid an error.
29181    Use char because int might match the return type of a GCC
29182    builtin and then its argument prototype would still apply.  */
29183 #ifdef __cplusplus
29184 extern "C"
29185 #endif
29186 char gettext ();
29187 int
29188 main ()
29189 {
29190 return gettext ();
29191   ;
29192   return 0;
29193 }
29194 _ACEOF
29195 if ac_fn_c_try_link "$LINENO"; then :
29196   ac_cv_lib_intl_gettext=yes
29197 else
29198   ac_cv_lib_intl_gettext=no
29199 fi
29200 rm -f core conftest.err conftest.$ac_objext \
29201     conftest$ac_exeext conftest.$ac_ext
29202 LIBS=$ac_check_lib_save_LIBS
29203 fi
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29205 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29206 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29207   LIBS="$LIBS -lintl"
29208 fi
29209
29210
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29212 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29213 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29214   $as_echo_n "(cached) " >&6
29215 else
29216   ac_check_lib_save_LIBS=$LIBS
29217 LIBS="-lsun  $LIBS"
29218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29219 /* end confdefs.h.  */
29220
29221 /* Override any GCC internal prototype to avoid an error.
29222    Use char because int might match the return type of a GCC
29223    builtin and then its argument prototype would still apply.  */
29224 #ifdef __cplusplus
29225 extern "C"
29226 #endif
29227 char getpwnam ();
29228 int
29229 main ()
29230 {
29231 return getpwnam ();
29232   ;
29233   return 0;
29234 }
29235 _ACEOF
29236 if ac_fn_c_try_link "$LINENO"; then :
29237   ac_cv_lib_sun_getpwnam=yes
29238 else
29239   ac_cv_lib_sun_getpwnam=no
29240 fi
29241 rm -f core conftest.err conftest.$ac_objext \
29242     conftest$ac_exeext conftest.$ac_ext
29243 LIBS=$ac_check_lib_save_LIBS
29244 fi
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29246 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29247 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29248   cat >>confdefs.h <<_ACEOF
29249 #define HAVE_LIBSUN 1
29250 _ACEOF
29251
29252   LIBS="-lsun $LIBS"
29253
29254 fi
29255
29256
29257 for ac_header in zlib.h
29258 do :
29259   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29260 if test "x$ac_cv_header_zlib_h" = xyes; then :
29261   cat >>confdefs.h <<_ACEOF
29262 #define HAVE_ZLIB_H 1
29263 _ACEOF
29264
29265 fi
29266
29267 done
29268
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29270 $as_echo_n "checking for deflate in -lz... " >&6; }
29271 if ${ac_cv_lib_z_deflate+:} false; then :
29272   $as_echo_n "(cached) " >&6
29273 else
29274   ac_check_lib_save_LIBS=$LIBS
29275 LIBS="-lz  $LIBS"
29276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29277 /* end confdefs.h.  */
29278
29279 /* Override any GCC internal prototype to avoid an error.
29280    Use char because int might match the return type of a GCC
29281    builtin and then its argument prototype would still apply.  */
29282 #ifdef __cplusplus
29283 extern "C"
29284 #endif
29285 char deflate ();
29286 int
29287 main ()
29288 {
29289 return deflate ();
29290   ;
29291   return 0;
29292 }
29293 _ACEOF
29294 if ac_fn_c_try_link "$LINENO"; then :
29295   ac_cv_lib_z_deflate=yes
29296 else
29297   ac_cv_lib_z_deflate=no
29298 fi
29299 rm -f core conftest.err conftest.$ac_objext \
29300     conftest$ac_exeext conftest.$ac_ext
29301 LIBS=$ac_check_lib_save_LIBS
29302 fi
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29304 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29305 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29306   ZLIBS="-lz"
29307 fi
29308
29309 have_zlib=no
29310 if test x$ZLIBS = x-lz; then
29311    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29312
29313    have_zlib=yes
29314 fi
29315
29316
29317 AFS_CFLAGS=""
29318 AFS_LIBS=""
29319 support_afs=auto
29320 # Check whether --enable-afs was given.
29321 if test "${enable_afs+set}" = set; then :
29322   enableval=$enable_afs;
29323        if test x$enableval = xyes; then
29324           support_afs=yes
29325        elif test x$enableval = xno; then
29326           support_afs=no
29327        fi
29328
29329
29330 fi
29331
29332
29333 have_afs=no
29334 if test x$support_afs = xyes -o x$support_afs = xauto; then
29335
29336 # Check whether --with-afsdir was given.
29337 if test "${with_afsdir+set}" = set; then :
29338   withval=$with_afsdir; with_afsdir=$withval
29339
29340 fi
29341
29342
29343             if test x$with_afsdir = x; then
29344       for root in /usr /usr/local; do
29345          if test -d ${root}/include/afs/ ; then
29346             with_afsdir=${root}
29347             break
29348          fi
29349          if test -d ${root}/include/openafs/afs/ ; then
29350             with_afsdir=${root}
29351             break
29352          fi
29353       done
29354    fi
29355
29356    if test -d ${with_afsdir}/include/afs/ ; then
29357       AFS_CFLAGS="-I${with_afsdir}/include"
29358    else
29359       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29360          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29361       fi
29362    fi
29363
29364    saved_CFLAGS="${CFLAGS}"
29365    saved_CPPFLAGS="${CPPFLAGS}"
29366    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29367    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29368
29369    for ac_header in afs/afsint.h
29370 do :
29371   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29372 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29373   cat >>confdefs.h <<_ACEOF
29374 #define HAVE_AFS_AFSINT_H 1
29375 _ACEOF
29376
29377 fi
29378
29379 done
29380
29381    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29382 /* end confdefs.h.  */
29383
29384           #include <afs/afsint.h>
29385           #include <afs/venus.h>
29386
29387 _ACEOF
29388 if ac_fn_c_try_cpp "$LINENO"; then :
29389
29390 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29391
29392
29393 fi
29394 rm -f conftest.err conftest.i conftest.$ac_ext
29395
29396    CFLAGS="${saved_CFLAGS}"
29397    CPPFLAGS="${saved_CPPFLAGS}"
29398
29399             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29400 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29401    for dir in ${with_afsdir}/lib \
29402               ${with_afsdir}/lib/afs \
29403               ${with_afsdir}/lib/openafs \
29404               ${with_afsdir}/lib64 \
29405               ${with_afsdir}/lib64/afs \
29406               ${with_afsdir}/lib64/openafs
29407    do
29408       for arch_type in .a .so
29409       do
29410          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29411          pkg=$?
29412          if test $pkg = 0; then
29413             have_afs=yes
29414             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29415             break
29416          fi
29417       done
29418    done
29419
29420    if test $have_afs = yes; then
29421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29422 $as_echo "yes" >&6; }
29423    else
29424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29425 $as_echo "no" >&6; }
29426    fi
29427
29428    if test x$support_afs = xyes -a $have_afs != yes; then
29429       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29430   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29431    else
29432       if test $have_afs = yes; then
29433
29434 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29435
29436
29437 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29438
29439       fi
29440    fi
29441 fi
29442
29443
29444
29445
29446 # Check whether --enable-lzo was given.
29447 if test "${enable_lzo+set}" = set; then :
29448   enableval=$enable_lzo;
29449        if test x$enableval = xno; then
29450           support_lzo=no
29451        fi
29452
29453
29454 fi
29455
29456
29457 LZO_INC=
29458 LZO_LIBS=
29459 LZO_LDFLAGS=
29460
29461 have_lzo="no"
29462 if test x$support_lzo = xyes; then
29463
29464 # Check whether --with-lzo was given.
29465 if test "${with_lzo+set}" = set; then :
29466   withval=$with_lzo;
29467           case "$with_lzo" in
29468           no)
29469              :
29470              ;;
29471           yes|*)
29472              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29473                 LZO_INC="-I${with_lzo}/include"
29474                 LZO_LDFLAGS="-L${with_lzo}/lib"
29475                 with_lzo="${with_lzo}/include"
29476              else
29477                 with_lzo="/usr/include"
29478              fi
29479
29480              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29481 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29483
29484
29485 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29486
29487                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29488                     have_lzo="yes"
29489
29490 else
29491
29492                     echo " "
29493                     echo "lzoconf.h not found. lzo turned off ..."
29494                     echo " "
29495
29496
29497 fi
29498
29499
29500              ;;
29501           esac
29502
29503 else
29504
29505          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29506 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29507
29508             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29509 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29510
29511                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29512 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29513 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29514   $as_echo_n "(cached) " >&6
29515 else
29516   ac_check_lib_save_LIBS=$LIBS
29517 LIBS="-llzo2  $LIBS"
29518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29519 /* end confdefs.h.  */
29520
29521 /* Override any GCC internal prototype to avoid an error.
29522    Use char because int might match the return type of a GCC
29523    builtin and then its argument prototype would still apply.  */
29524 #ifdef __cplusplus
29525 extern "C"
29526 #endif
29527 char lzo1x_1_compress ();
29528 int
29529 main ()
29530 {
29531 return lzo1x_1_compress ();
29532   ;
29533   return 0;
29534 }
29535 _ACEOF
29536 if ac_fn_c_try_link "$LINENO"; then :
29537   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29538 else
29539   ac_cv_lib_lzo2_lzo1x_1_compress=no
29540 fi
29541 rm -f core conftest.err conftest.$ac_objext \
29542     conftest$ac_exeext conftest.$ac_ext
29543 LIBS=$ac_check_lib_save_LIBS
29544 fi
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29546 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29547 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29548
29549                  LZO_LIBS="-llzo2"
29550
29551 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29552
29553                  have_lzo=yes
29554
29555 fi
29556
29557
29558 fi
29559
29560
29561
29562 fi
29563
29564
29565
29566 fi
29567
29568 fi
29569
29570
29571
29572
29573
29574 support_acl=auto
29575 # Check whether --enable-acl was given.
29576 if test "${enable_acl+set}" = set; then :
29577   enableval=$enable_acl;
29578        if test x$enableval = xyes; then
29579           support_acl=yes
29580        elif test x$enableval = xno; then
29581           support_acl=no
29582        fi
29583
29584
29585 fi
29586
29587
29588 have_acl=no
29589 have_extended_acl=no
29590 if test x$support_acl = xyes -o x$support_acl = xauto; then
29591    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29592 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29593
29594 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29595
29596 fi
29597
29598
29599
29600             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29601 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29602
29603           have_acl=yes
29604
29605
29606 fi
29607
29608
29609             if test $have_acl = no; then
29610       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29611 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29612 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29613   $as_echo_n "(cached) " >&6
29614 else
29615   ac_check_lib_save_LIBS=$LIBS
29616 LIBS="-lacl  $LIBS"
29617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29618 /* end confdefs.h.  */
29619
29620 /* Override any GCC internal prototype to avoid an error.
29621    Use char because int might match the return type of a GCC
29622    builtin and then its argument prototype would still apply.  */
29623 #ifdef __cplusplus
29624 extern "C"
29625 #endif
29626 char acl_get_file ();
29627 int
29628 main ()
29629 {
29630 return acl_get_file ();
29631   ;
29632   return 0;
29633 }
29634 _ACEOF
29635 if ac_fn_c_try_link "$LINENO"; then :
29636   ac_cv_lib_acl_acl_get_file=yes
29637 else
29638   ac_cv_lib_acl_acl_get_file=no
29639 fi
29640 rm -f core conftest.err conftest.$ac_objext \
29641     conftest$ac_exeext conftest.$ac_ext
29642 LIBS=$ac_check_lib_save_LIBS
29643 fi
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29645 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29646 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29647
29648              have_acl=yes
29649              if test $have_afs = yes; then
29650                                                                 if test -d /usr/lib64/; then
29651                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29652                 else
29653                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29654                 fi
29655              else
29656                 FDLIBS="-lacl $FDLIBS"
29657              fi
29658
29659
29660 fi
29661
29662    fi
29663
29664                if test $have_acl = no -a \
29665            x${HAVE_OSF1_OS_TRUE} = x; then
29666       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29667 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29668 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29669   $as_echo_n "(cached) " >&6
29670 else
29671   ac_check_lib_save_LIBS=$LIBS
29672 LIBS="-lpacl  $LIBS"
29673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29674 /* end confdefs.h.  */
29675
29676 /* Override any GCC internal prototype to avoid an error.
29677    Use char because int might match the return type of a GCC
29678    builtin and then its argument prototype would still apply.  */
29679 #ifdef __cplusplus
29680 extern "C"
29681 #endif
29682 char acl_get_file ();
29683 int
29684 main ()
29685 {
29686 return acl_get_file ();
29687   ;
29688   return 0;
29689 }
29690 _ACEOF
29691 if ac_fn_c_try_link "$LINENO"; then :
29692   ac_cv_lib_pacl_acl_get_file=yes
29693 else
29694   ac_cv_lib_pacl_acl_get_file=no
29695 fi
29696 rm -f core conftest.err conftest.$ac_objext \
29697     conftest$ac_exeext conftest.$ac_ext
29698 LIBS=$ac_check_lib_save_LIBS
29699 fi
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29701 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29702 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29703
29704              have_acl=yes
29705              FDLIBS="-lpacl $FDLIBS"
29706
29707
29708 fi
29709
29710
29711       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29712 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29713       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29714       if test $? = 0; then
29715
29716 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29717
29718          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29719 $as_echo "yes" >&6; }
29720       else
29721          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29722 $as_echo "no" >&6; }
29723       fi
29724    fi
29725
29726             if test $have_acl = yes -a \
29727            x${HAVE_DARWIN_OS_TRUE} = x; then
29728       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29729 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29730       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29731       if test $? = 0; then
29732
29733 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29734
29735          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29736 $as_echo "yes" >&6; }
29737       else
29738          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29739 $as_echo "no" >&6; }
29740       fi
29741    fi
29742
29743             if test $have_acl = yes -a \
29744            x${HAVE_FREEBSD_OS_TRUE} = x; then
29745       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29746 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29747       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29748       if test $? = 0; then
29749
29750 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29751
29752          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29753 $as_echo "yes" >&6; }
29754       else
29755          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29756 $as_echo "no" >&6; }
29757       fi
29758    fi
29759
29760             if test $have_acl = no -a \
29761            x${HAVE_SUN_OS_TRUE} = x; then
29762       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29763 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29764 if ${ac_cv_lib_sec_acltotext+:} false; then :
29765   $as_echo_n "(cached) " >&6
29766 else
29767   ac_check_lib_save_LIBS=$LIBS
29768 LIBS="-lsec  $LIBS"
29769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29770 /* end confdefs.h.  */
29771
29772 /* Override any GCC internal prototype to avoid an error.
29773    Use char because int might match the return type of a GCC
29774    builtin and then its argument prototype would still apply.  */
29775 #ifdef __cplusplus
29776 extern "C"
29777 #endif
29778 char acltotext ();
29779 int
29780 main ()
29781 {
29782 return acltotext ();
29783   ;
29784   return 0;
29785 }
29786 _ACEOF
29787 if ac_fn_c_try_link "$LINENO"; then :
29788   ac_cv_lib_sec_acltotext=yes
29789 else
29790   ac_cv_lib_sec_acltotext=no
29791 fi
29792 rm -f core conftest.err conftest.$ac_objext \
29793     conftest$ac_exeext conftest.$ac_ext
29794 LIBS=$ac_check_lib_save_LIBS
29795 fi
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29797 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29798 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29799
29800              have_acl=yes
29801              FDLIBS="-lsec $FDLIBS"
29802
29803              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29804 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29805 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29806   $as_echo_n "(cached) " >&6
29807 else
29808   ac_check_lib_save_LIBS=$LIBS
29809 LIBS="-lsec  $LIBS"
29810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29811 /* end confdefs.h.  */
29812
29813 /* Override any GCC internal prototype to avoid an error.
29814    Use char because int might match the return type of a GCC
29815    builtin and then its argument prototype would still apply.  */
29816 #ifdef __cplusplus
29817 extern "C"
29818 #endif
29819 char acl_totext ();
29820 int
29821 main ()
29822 {
29823 return acl_totext ();
29824   ;
29825   return 0;
29826 }
29827 _ACEOF
29828 if ac_fn_c_try_link "$LINENO"; then :
29829   ac_cv_lib_sec_acl_totext=yes
29830 else
29831   ac_cv_lib_sec_acl_totext=no
29832 fi
29833 rm -f core conftest.err conftest.$ac_objext \
29834     conftest$ac_exeext conftest.$ac_ext
29835 LIBS=$ac_check_lib_save_LIBS
29836 fi
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29838 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29839 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29840
29841                     have_extended_acl=yes
29842
29843
29844 fi
29845
29846
29847
29848 fi
29849
29850    fi
29851
29852             if test $have_acl = no -a \
29853            x${HAVE_AIX_OS_TRUE} = x; then
29854       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29855 if test "x$ac_cv_func_acl_get" = xyes; then :
29856
29857              have_acl=yes
29858
29859              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29860 if test "x$ac_cv_func_aclx_get" = xyes; then :
29861
29862                     have_extended_acl=yes
29863
29864
29865 fi
29866
29867
29868
29869 fi
29870
29871    fi
29872
29873    if test x$support_acl = xyes -a $have_acl != yes; then
29874       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29875   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29876    else
29877       if test $have_acl = yes; then
29878
29879 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29880
29881       fi
29882
29883       if test $have_extended_acl = yes; then
29884
29885 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29886
29887       fi
29888    fi
29889 fi
29890
29891 support_xattr=auto
29892 # Check whether --enable-xattr was given.
29893 if test "${enable_xattr+set}" = set; then :
29894   enableval=$enable_xattr;
29895        if test x$enableval = xyes; then
29896           support_xattr=yes
29897        elif test x$enableval = xno; then
29898           support_xattr=no
29899        fi
29900
29901
29902 fi
29903
29904
29905 have_xattr=no
29906 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29907                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29908            x${HAVE_NETBSD_OS_TRUE} = x -o \
29909            x${HAVE_OPENBSD_OS_TRUE} = x; then
29910       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29911 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29912
29913 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29914
29915 fi
29916
29917
29918       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29919 if test "x$ac_cv_header_libutil_h" = xyes; then :
29920
29921 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29922
29923 fi
29924
29925
29926       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29927 do :
29928   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29931   cat >>confdefs.h <<_ACEOF
29932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29933 _ACEOF
29934
29935              have_xattr=yes
29936
29937 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29938
29939
29940 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29941
29942
29943 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29944
29945
29946
29947 fi
29948 done
29949
29950
29951       if test $have_xattr = no; then
29952          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29953 do :
29954   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29957   cat >>confdefs.h <<_ACEOF
29958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29959 _ACEOF
29960
29961                 have_xattr=yes
29962
29963 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29964
29965
29966 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29967
29968
29969 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29970
29971
29972
29973 fi
29974 done
29975
29976       fi
29977
29978       if test $have_xattr = yes; then
29979          have_extattr_string_in_libc=no
29980          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29981 do :
29982   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29985   cat >>confdefs.h <<_ACEOF
29986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29987 _ACEOF
29988
29989                 have_extattr_string_in_libc=yes
29990
29991 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29992
29993
29994 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29995
29996
29997
29998 fi
29999 done
30000
30001
30002                                  if test $have_extattr_string_in_libc = no; then
30003             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30004 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30005 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30006   $as_echo_n "(cached) " >&6
30007 else
30008   ac_check_lib_save_LIBS=$LIBS
30009 LIBS="-lutil  $LIBS"
30010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30011 /* end confdefs.h.  */
30012
30013 /* Override any GCC internal prototype to avoid an error.
30014    Use char because int might match the return type of a GCC
30015    builtin and then its argument prototype would still apply.  */
30016 #ifdef __cplusplus
30017 extern "C"
30018 #endif
30019 char extattr_namespace_to_string extattr_string_to_namespace ();
30020 int
30021 main ()
30022 {
30023 return extattr_namespace_to_string extattr_string_to_namespace ();
30024   ;
30025   return 0;
30026 }
30027 _ACEOF
30028 if ac_fn_c_try_link "$LINENO"; then :
30029   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30030 else
30031   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30032 fi
30033 rm -f core conftest.err conftest.$ac_objext \
30034     conftest$ac_exeext conftest.$ac_ext
30035 LIBS=$ac_check_lib_save_LIBS
30036 fi
30037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30038 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30039 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30040
30041
30042 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30043
30044
30045 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30046
30047                    FDLIBS="-lutil $FDLIBS"
30048
30049
30050 fi
30051
30052          fi
30053       fi
30054    fi
30055
30056                if test $have_xattr = no -a \
30057            x${HAVE_AIX_OS_TRUE} = x; then
30058       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30059 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30060
30061 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30062
30063 fi
30064
30065
30066       for ac_func in llistea lgetea lsetea
30067 do :
30068   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30069 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30070 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30071   cat >>confdefs.h <<_ACEOF
30072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30073 _ACEOF
30074
30075              have_xattr=yes
30076
30077 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30078
30079
30080 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30081
30082
30083 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30084
30085
30086
30087 fi
30088 done
30089
30090
30091       if test $have_xattr = no; then
30092          for ac_func in listea getea setea
30093 do :
30094   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30096 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30097   cat >>confdefs.h <<_ACEOF
30098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30099 _ACEOF
30100
30101                 have_xattr=yes
30102
30103 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30104
30105
30106 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30107
30108
30109 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30110
30111
30112
30113 fi
30114 done
30115
30116       fi
30117    fi
30118
30119                if test $have_xattr = no -a \
30120            x${HAVE_OSF1_OS_TRUE} = x; then
30121       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30122 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30123
30124 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30125
30126 fi
30127
30128
30129       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30130 do :
30131   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30133 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30134   cat >>confdefs.h <<_ACEOF
30135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30136 _ACEOF
30137
30138              have_xattr=yes
30139
30140 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30141
30142
30143 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30144
30145
30146 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30147
30148
30149 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30150
30151
30152 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30153
30154
30155
30156 fi
30157 done
30158
30159    fi
30160
30161                if test $have_xattr = no -a \
30162            x${HAVE_SUN_OS_TRUE} = x; then
30163       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30164 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30165
30166 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30167
30168 fi
30169
30170
30171       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30172 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30173
30174 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30175
30176 fi
30177
30178
30179       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30180 if test "x$ac_cv_header_attr_h" = xyes; then :
30181
30182 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30183
30184 fi
30185
30186
30187
30188       for ac_func in openat fstatat unlinkat fchownat futimesat
30189 do :
30190   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30193   cat >>confdefs.h <<_ACEOF
30194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30195 _ACEOF
30196
30197              have_xattr=yes
30198
30199 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30200
30201
30202 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30203
30204
30205 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30206
30207
30208 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30209
30210
30211 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30212
30213
30214
30215 fi
30216 done
30217
30218
30219       if test $have_xattr = yes; then
30220          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30221 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30222 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30223   $as_echo_n "(cached) " >&6
30224 else
30225   ac_check_lib_save_LIBS=$LIBS
30226 LIBS="-lnvpair  $LIBS"
30227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30228 /* end confdefs.h.  */
30229
30230 /* Override any GCC internal prototype to avoid an error.
30231    Use char because int might match the return type of a GCC
30232    builtin and then its argument prototype would still apply.  */
30233 #ifdef __cplusplus
30234 extern "C"
30235 #endif
30236 char nvlist_next_nvpair ();
30237 int
30238 main ()
30239 {
30240 return nvlist_next_nvpair ();
30241   ;
30242   return 0;
30243 }
30244 _ACEOF
30245 if ac_fn_c_try_link "$LINENO"; then :
30246   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30247 else
30248   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30249 fi
30250 rm -f core conftest.err conftest.$ac_objext \
30251     conftest$ac_exeext conftest.$ac_ext
30252 LIBS=$ac_check_lib_save_LIBS
30253 fi
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30255 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30256 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30257
30258
30259 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30260
30261                 FDLIBS="-lnvpair $FDLIBS"
30262
30263
30264 fi
30265
30266       fi
30267    fi
30268
30269             if test $have_xattr = no; then
30270       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30271 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30272
30273 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30274
30275 fi
30276
30277
30278       for ac_func in llistxattr lgetxattr lsetxattr
30279 do :
30280   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30282 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30283   cat >>confdefs.h <<_ACEOF
30284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30285 _ACEOF
30286
30287              have_xattr=yes
30288
30289 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30290
30291
30292 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30293
30294
30295 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30296
30297
30298
30299 fi
30300 done
30301
30302
30303       if test $have_xattr = no; then
30304          for ac_func in listxattr getxattr setxattr
30305 do :
30306   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30309   cat >>confdefs.h <<_ACEOF
30310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30311 _ACEOF
30312
30313                 have_xattr=yes
30314
30315 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30316
30317
30318 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30319
30320
30321 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30322
30323
30324
30325 fi
30326 done
30327
30328       fi
30329    fi
30330
30331    if test x$support_xattr = xyes -a $have_xattr != yes; then
30332       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30333   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30334    else
30335       if test $have_xattr = yes; then
30336
30337 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30338
30339       fi
30340    fi
30341 fi
30342
30343 PTHREAD_LIB=""
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30345 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30346 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30347   $as_echo_n "(cached) " >&6
30348 else
30349   ac_check_lib_save_LIBS=$LIBS
30350 LIBS="-lpthread  $LIBS"
30351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30352 /* end confdefs.h.  */
30353
30354 /* Override any GCC internal prototype to avoid an error.
30355    Use char because int might match the return type of a GCC
30356    builtin and then its argument prototype would still apply.  */
30357 #ifdef __cplusplus
30358 extern "C"
30359 #endif
30360 char pthread_create ();
30361 int
30362 main ()
30363 {
30364 return pthread_create ();
30365   ;
30366   return 0;
30367 }
30368 _ACEOF
30369 if ac_fn_c_try_link "$LINENO"; then :
30370   ac_cv_lib_pthread_pthread_create=yes
30371 else
30372   ac_cv_lib_pthread_pthread_create=no
30373 fi
30374 rm -f core conftest.err conftest.$ac_objext \
30375     conftest$ac_exeext conftest.$ac_ext
30376 LIBS=$ac_check_lib_save_LIBS
30377 fi
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30379 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30380 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30381   PTHREAD_LIB="-lpthread"
30382 else
30383
30384        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30385 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30386 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30387   $as_echo_n "(cached) " >&6
30388 else
30389   ac_check_lib_save_LIBS=$LIBS
30390 LIBS="-lpthreads  $LIBS"
30391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30392 /* end confdefs.h.  */
30393
30394 /* Override any GCC internal prototype to avoid an error.
30395    Use char because int might match the return type of a GCC
30396    builtin and then its argument prototype would still apply.  */
30397 #ifdef __cplusplus
30398 extern "C"
30399 #endif
30400 char pthread_create ();
30401 int
30402 main ()
30403 {
30404 return pthread_create ();
30405   ;
30406   return 0;
30407 }
30408 _ACEOF
30409 if ac_fn_c_try_link "$LINENO"; then :
30410   ac_cv_lib_pthreads_pthread_create=yes
30411 else
30412   ac_cv_lib_pthreads_pthread_create=no
30413 fi
30414 rm -f core conftest.err conftest.$ac_objext \
30415     conftest$ac_exeext conftest.$ac_ext
30416 LIBS=$ac_check_lib_save_LIBS
30417 fi
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30419 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30420 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30421   PTHREAD_LIB="-lpthreads"
30422 else
30423
30424               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30425 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30426 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30427   $as_echo_n "(cached) " >&6
30428 else
30429   ac_check_lib_save_LIBS=$LIBS
30430 LIBS="-lc_r  $LIBS"
30431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30432 /* end confdefs.h.  */
30433
30434 /* Override any GCC internal prototype to avoid an error.
30435    Use char because int might match the return type of a GCC
30436    builtin and then its argument prototype would still apply.  */
30437 #ifdef __cplusplus
30438 extern "C"
30439 #endif
30440 char pthread_create ();
30441 int
30442 main ()
30443 {
30444 return pthread_create ();
30445   ;
30446   return 0;
30447 }
30448 _ACEOF
30449 if ac_fn_c_try_link "$LINENO"; then :
30450   ac_cv_lib_c_r_pthread_create=yes
30451 else
30452   ac_cv_lib_c_r_pthread_create=no
30453 fi
30454 rm -f core conftest.err conftest.$ac_objext \
30455     conftest$ac_exeext conftest.$ac_ext
30456 LIBS=$ac_check_lib_save_LIBS
30457 fi
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30459 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30460 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30461   PTHREAD_LIB="-lc_r"
30462 else
30463
30464                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30465 if test "x$ac_cv_func_pthread_create" = xyes; then :
30466
30467 fi
30468
30469
30470
30471 fi
30472
30473
30474
30475 fi
30476
30477
30478
30479 fi
30480
30481
30482 for ac_header in sys/prctl.h sys/capability.h
30483 do :
30484   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30485 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30487   cat >>confdefs.h <<_ACEOF
30488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30489 _ACEOF
30490
30491 fi
30492
30493 done
30494
30495 for ac_func in prctl setreuid
30496 do :
30497   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30500   cat >>confdefs.h <<_ACEOF
30501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30502 _ACEOF
30503
30504 fi
30505 done
30506
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30508 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30509 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30510   $as_echo_n "(cached) " >&6
30511 else
30512   ac_check_lib_save_LIBS=$LIBS
30513 LIBS="-lcap  $LIBS"
30514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30515 /* end confdefs.h.  */
30516
30517 /* Override any GCC internal prototype to avoid an error.
30518    Use char because int might match the return type of a GCC
30519    builtin and then its argument prototype would still apply.  */
30520 #ifdef __cplusplus
30521 extern "C"
30522 #endif
30523 char cap_set_proc ();
30524 int
30525 main ()
30526 {
30527 return cap_set_proc ();
30528   ;
30529   return 0;
30530 }
30531 _ACEOF
30532 if ac_fn_c_try_link "$LINENO"; then :
30533   ac_cv_lib_cap_cap_set_proc=yes
30534 else
30535   ac_cv_lib_cap_cap_set_proc=no
30536 fi
30537 rm -f core conftest.err conftest.$ac_objext \
30538     conftest$ac_exeext conftest.$ac_ext
30539 LIBS=$ac_check_lib_save_LIBS
30540 fi
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30542 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30543 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30544   CAP_LIBS="-lcap"
30545 else
30546   CAP_LIBS=
30547 fi
30548
30549 if test x$CAP_LIBS = x-lcap; then
30550
30551 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30552
30553 fi
30554
30555
30556
30557 $as_echo "#define FDLIBS 1" >>confdefs.h
30558
30559
30560 CFLAGS=${CFLAGS--O}
30561
30562 if test x$have_gcc = xyes ; then
30563    CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30564    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30565 fi
30566 LDFLAGS=${LDFLAGS--O}
30567 CPPFLAGS="$CPPFLAGS"
30568 CFLAGS="$CFLAGS"
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584 OBJLIST=
30585
30586
30587 lld="lld"
30588 llu="llu"
30589
30590 WCFLAGS=
30591 WLDFLAGS=
30592
30593 PSCMD="ps -e"
30594 WIN32=
30595 MACOSX=
30596 COMPRESS_MANPAGES=yes
30597
30598 case "$DISTNAME" in
30599 aix)
30600    DISTVER=`uname -r`
30601    PSCMD="ps -e -o pid,comm"
30602    PFILES="${PFILES} platforms/aix/Makefile"
30603    TAPEDRIVE="/dev/rmt0.1"
30604   ;;
30605 alpha)
30606    DISTVER=`uname -r`
30607    PTHREAD_LIB="-lpthread -lexc"
30608    if test "${CC}" = "gcc" ; then
30609       lld="lld"
30610       llu="llu"
30611    else
30612       lld="ld"
30613       llu="lu"
30614    fi
30615    TAPEDRIVE="/dev/nrmt0"
30616   ;;
30617 bsdi)
30618    DISTVER=`uname -a |awk '{print $3}'`
30619    TAPEDRIVE="/dev/nrmt0"
30620    PTHREAD_LIB="-pthread"
30621    CFLAGS="${CFLAGS} -pthread"
30622    PSCMD="ps -ax -o pid,command"
30623    lld="qd"
30624    llu="qu"
30625    PFILES="${PFILES} \
30626        platforms/bsdi/Makefile \
30627        platforms/bsdi/bacula-fd \
30628        platforms/bsdi/bacula-sd \
30629        platforms/bsdi/bacula-dir"
30630    largefile_support="yes"
30631   ;;
30632 cygwin)
30633    DISTVER=`uname -a |awk '{print $3}'`
30634    TAPEDRIVE="/dev/nrst0"
30635    WIN32=win32
30636    WCFLAGS="-mwindows"
30637    WLDFLAGS="-mwindows"
30638   ;;
30639 darwin)
30640    DISTVER=`uname -r`
30641    TAPEDRIVE="/dev/nst0"
30642    PSCMD="ps -e -o pid,command"
30643    MACOSX=macosx
30644    PFILES="${PFILES} \
30645       platforms/darwin/Makefile"
30646   ;;
30647 osx)
30648    DISTVER=`uname -r`
30649    TAPEDRIVE="/dev/nst0"
30650    PSCMD="ps -e -o pid,command"
30651    MACOSX=macosx
30652    PFILES="${PFILES} \
30653       platforms/osx/Makefile"
30654   ;;
30655 debian)
30656    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30657       DISTNAME="ubuntu"
30658    fi
30659    DISTVER=`cat /etc/debian_version`
30660    if test -f /etc/lsb-release ; then
30661       . /etc/lsb-release
30662       if test "x$DISTRIB_ID" != "x" ; then
30663          DISTNAME=$DISTRIB_ID
30664       fi
30665       if test "x$DISTRIB_RELEASE" != "x" ; then
30666          DISTVER=$DISTRIB_RELEASE
30667       fi
30668    fi
30669    if test "$DISTNAME" = "Ubuntu" ; then
30670       DISTNAME="ubuntu"
30671    fi
30672    TAPEDRIVE="/dev/nst0"
30673    PSCMD="ps -e -o pid,command"
30674    if test "$DISTNAME" = "ubuntu" ; then
30675       PFILES="${PFILES} \
30676          platforms/ubuntu/Makefile \
30677          platforms/ubuntu/bacula-fd \
30678          platforms/ubuntu/bacula-sd \
30679          platforms/ubuntu/bacula-dir"
30680    else
30681       PFILES="${PFILES} \
30682          platforms/debian/Makefile \
30683          platforms/debian/bacula-fd \
30684          platforms/debian/bacula-sd \
30685          platforms/debian/bacula-dir"
30686    fi
30687   ;;
30688 freebsd)
30689    DISTVER=`uname -a |awk '{print $3}'`
30690    VER=`echo $DISTVER | cut -c 1`
30691    if test x$VER = x4 ; then
30692       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30693       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30694    fi
30695    lld="qd"
30696    llu="qu"
30697    TAPEDRIVE="/dev/nrsa0"
30698    PSCMD="ps -ax -o pid,command"
30699    PFILES="${PFILES} \
30700        platforms/freebsd/Makefile \
30701        platforms/freebsd/bacula-fd \
30702        platforms/freebsd/bacula-sd \
30703        platforms/freebsd/bacula-dir"
30704    largefile_support="yes"
30705   ;;
30706 hurd)
30707    DISTVER=`uname -r`
30708    TAPEDRIVE="/dev/nst0"
30709    PSCMD="ps -e -o pid,command"
30710    PFILES="${PFILES} \
30711        platforms/hurd/Makefile \
30712        platforms/hurd/bacula-fd \
30713        platforms/hurd/bacula-sd \
30714        platforms/hurd/bacula-dir"
30715   ;;
30716 hpux)
30717    PSCMD="UNIX95=1; ps -e -o pid,comm"
30718    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30719    DISTVER=`uname -r`
30720    TAPEDRIVE="/dev/rmt/0hnb"
30721    PTHREAD_LIB="-lpthread"
30722    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30723
30724   ;;
30725 irix)
30726    DISTVER=`uname -r`
30727    TAPEDRIVE="/dev/rmt/0cbn"
30728    PSCMD="ps -e -o pid,comm"
30729    PFILES="${PFILES} \
30730        platforms/irix/Makefile \
30731        platforms/irix/bacula-fd \
30732        platforms/irix/bacula-sd \
30733        platforms/irix/bacula-dir"
30734   ;;
30735 netbsd)
30736    DISTVER=`uname -a |awk '{print $3}'`
30737    lld="qd"
30738    llu="qu"
30739    TAPEDRIVE="/dev/nrst0"
30740    PSCMD="ps -ax -o pid,command"
30741    PTHREAD_LIB="-pthread"
30742    CFLAGS="${CFLAGS} -pthread"
30743   ;;
30744 openbsd)
30745    DISTVER=`uname -a |awk '{print $3}'`
30746    lld="qd"
30747    llu="qu"
30748    TAPEDRIVE="/dev/nrst0"
30749    PSCMD="ps -ax -o pid,command"
30750    PTHREAD_LIB="-pthread"
30751    CFLAGS="${CFLAGS} -pthread"
30752    PFILES="${PFILES} \
30753        platforms/openbsd/Makefile \
30754        platforms/openbsd/bacula-fd \
30755        platforms/openbsd/bacula-sd \
30756        platforms/openbsd/bacula-dir"
30757   ;;
30758 redhat)
30759    if test -f /etc/whitebox-release ; then
30760       f=/etc/whitebox-release
30761    else
30762       f=/etc/redhat-release
30763    fi
30764    if test `cat $f | grep release |\
30765          cut -f 3 -d ' '`x = "Enterprise"x ; then
30766       DISTVER="Enterprise "`cat $f | grep release |\
30767           cut -f 6 -d ' '`
30768    else
30769        DISTVER=`cat /etc/redhat-release | grep release |\
30770            cut -f 5 -d ' '`
30771    fi
30772    TAPEDRIVE="/dev/nst0"
30773    PSCMD="ps -e -o pid,command"
30774    PFILES="${PFILES} \
30775        platforms/redhat/Makefile \
30776        platforms/redhat/bacula-fd \
30777        platforms/redhat/bacula-sd \
30778        platforms/redhat/bacula-dir
30779        "
30780   ;;
30781 mandrake)
30782    DISTVER=`cat /etc/mandrake-release | grep release |\
30783       cut -f 5 -d ' '`
30784    TAPEDRIVE="/dev/nst0"
30785    PSCMD="ps -e -o pid,command"
30786    PFILES="${PFILES} \
30787        platforms/mandrake/Makefile \
30788        platforms/mandrake/bacula-fd \
30789        platforms/mandrake/bacula-sd \
30790        platforms/mandrake/bacula-dir \
30791        "
30792   ;;
30793 gentoo)
30794    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30795    TAPEDRIVE="/dev/nst0"
30796    PSCMD="ps -e -o pid,command"
30797    PFILES="${PFILES} \
30798        platforms/gentoo/Makefile \
30799     platforms/gentoo/bacula-init \
30800        platforms/gentoo/bacula-fd \
30801        platforms/gentoo/bacula-sd \
30802        platforms/gentoo/bacula-dir"
30803   ;;
30804 slackware)
30805    DISTVER=`cat /etc/slackware-version`
30806    TAPEDRIVE="/dev/nst0"
30807    PSCMD="ps -e -o pid,command"
30808    PFILES="${PFILES} \
30809        platforms/slackware/Makefile \
30810        platforms/slackware/rc.bacula-fd \
30811        platforms/slackware/rc.bacula-sd \
30812        platforms/slackware/rc.bacula-dir\
30813        platforms/slackware/functions.bacula"
30814   ;;
30815 solaris)
30816    DISTVER=`uname -r`
30817    TAPEDRIVE="/dev/rmt/0cbn"
30818    PSCMD="ps -e -o pid,comm"
30819    PFILES="${PFILES} \
30820        platforms/solaris/Makefile \
30821        platforms/solaris/bacula-fd \
30822        platforms/solaris/bacula-sd \
30823        platforms/solaris/bacula-dir"
30824    COMPRESS_MANPAGES=
30825    case ${DISTVER} in
30826    5.5|5.6)
30827       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30828
30829       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30830
30831       ;;
30832    5.7|5.8)
30833       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30834
30835       ;;
30836    *)
30837       ;;
30838    esac
30839    LIBS="$LIBS -lresolv -lrt"
30840   ;;
30841 suse)
30842    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30843        cut -f 3 -d ' '`
30844    TAPEDRIVE="/dev/nst0"
30845    PSCMD="ps -e -o pid,command"
30846    PFILES="${PFILES} \
30847        platforms/suse/Makefile \
30848        platforms/suse/bacula-fd \
30849        platforms/suse/bacula-sd \
30850        platforms/suse/bacula-dir \
30851        platforms/suse/bacula"
30852   ;;
30853 suse5)
30854    DISTNAME=suse
30855    DISTVER=5.x
30856    TAPEDRIVE="/dev/nst0"
30857    PSCMD="ps -e -o pid,command"
30858    PFILES="${PFILES} \
30859        platforms/suse/Makefile \
30860        platforms/suse/bacula-fd \
30861        platforms/suse/bacula-sd \
30862        platforms/suse/bacula-dir"
30863   ;;
30864 unknown)
30865    DISTVER=unknown
30866    TAPEDRIVE="/dev/nst0"
30867   ;;
30868 *)
30869   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30870   ;;
30871 esac
30872
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30874 $as_echo_n "checking for systemd support... " >&6; }
30875
30876 # Check whether --with-systemd was given.
30877 if test "${with_systemd+set}" = set; then :
30878   withval=$with_systemd;
30879        if test "$withval" != "no"; then
30880            if test "$withval" = "yes"; then
30881                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30882            else
30883                SYSTEMD_UNITDIR="${withval}"
30884            fi
30885
30886            PFILES="${PFILES} \
30887                    platforms/systemd/Makefile \
30888                    platforms/systemd/bacula.conf \
30889                    platforms/systemd/bacula-dir.service \
30890                    platforms/systemd/bacula-fd.service \
30891                    platforms/systemd/bacula-sd.service"
30892
30893 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30894
30895            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30896 $as_echo "yes" >&6; }
30897            support_systemd="yes"
30898        else
30899            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30900 $as_echo "no" >&6; }
30901            support_systemd="no"
30902        fi
30903
30904 else
30905
30906        support_systemd="no"
30907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30908 $as_echo "no" >&6; }
30909
30910
30911 fi
30912
30913
30914
30915
30916
30917 LIBS="$PTHREAD_LIB $LIBS"
30918
30919 cat >>confdefs.h <<_ACEOF
30920 #define lld "$lld"
30921 _ACEOF
30922
30923 cat >>confdefs.h <<_ACEOF
30924 #define llu "$llu"
30925 _ACEOF
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935 MCOMMON=./autoconf/Make.common
30936
30937
30938 if test "x${subsysdir}" = "x${sbindir}" ; then
30939    echo " "
30940    echo " "
30941    echo "You have set both --sbindir and --with-subsys-dir"
30942    echo "  equal to: ${subsysdir} "
30943    echo "This is not permitted. Please reconfigure."
30944    echo " "
30945    echo "Aborting configuration ..."
30946    echo " "
30947    echo " "
30948    exit 1
30949 fi
30950
30951
30952 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/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"
30953
30954 ac_config_commands="$ac_config_commands default"
30955
30956 cat >confcache <<\_ACEOF
30957 # This file is a shell script that caches the results of configure
30958 # tests run on this system so they can be shared between configure
30959 # scripts and configure runs, see configure's option --config-cache.
30960 # It is not useful on other systems.  If it contains results you don't
30961 # want to keep, you may remove or edit it.
30962 #
30963 # config.status only pays attention to the cache file if you give it
30964 # the --recheck option to rerun configure.
30965 #
30966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30968 # following values.
30969
30970 _ACEOF
30971
30972 # The following way of writing the cache mishandles newlines in values,
30973 # but we know of no workaround that is simple, portable, and efficient.
30974 # So, we kill variables containing newlines.
30975 # Ultrix sh set writes to stderr and can't be redirected directly,
30976 # and sets the high bit in the cache file unless we assign to the vars.
30977 (
30978   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30979     eval ac_val=\$$ac_var
30980     case $ac_val in #(
30981     *${as_nl}*)
30982       case $ac_var in #(
30983       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30985       esac
30986       case $ac_var in #(
30987       _ | IFS | as_nl) ;; #(
30988       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30989       *) { eval $ac_var=; unset $ac_var;} ;;
30990       esac ;;
30991     esac
30992   done
30993
30994   (set) 2>&1 |
30995     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30996     *${as_nl}ac_space=\ *)
30997       # `set' does not quote correctly, so add quotes: double-quote
30998       # substitution turns \\\\ into \\, and sed turns \\ into \.
30999       sed -n \
31000         "s/'/'\\\\''/g;
31001           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31002       ;; #(
31003     *)
31004       # `set' quotes correctly as required by POSIX, so do not add quotes.
31005       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31006       ;;
31007     esac |
31008     sort
31009 ) |
31010   sed '
31011      /^ac_cv_env_/b end
31012      t clear
31013      :clear
31014      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31015      t end
31016      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31017      :end' >>confcache
31018 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31019   if test -w "$cache_file"; then
31020     if test "x$cache_file" != "x/dev/null"; then
31021       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31022 $as_echo "$as_me: updating cache $cache_file" >&6;}
31023       if test ! -f "$cache_file" || test -h "$cache_file"; then
31024         cat confcache >"$cache_file"
31025       else
31026         case $cache_file in #(
31027         */* | ?:*)
31028           mv -f confcache "$cache_file"$$ &&
31029           mv -f "$cache_file"$$ "$cache_file" ;; #(
31030         *)
31031           mv -f confcache "$cache_file" ;;
31032         esac
31033       fi
31034     fi
31035   else
31036     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31037 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31038   fi
31039 fi
31040 rm -f confcache
31041
31042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31043 # Let make expand exec_prefix.
31044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31045
31046 DEFS=-DHAVE_CONFIG_H
31047
31048 ac_libobjs=
31049 ac_ltlibobjs=
31050 U=
31051 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31052   # 1. Remove the extension, and $U if already installed.
31053   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31054   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31055   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31056   #    will be set to the directory where LIBOBJS objects are built.
31057   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31058   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31059 done
31060 LIBOBJS=$ac_libobjs
31061
31062 LTLIBOBJS=$ac_ltlibobjs
31063
31064
31065
31066
31067 : "${CONFIG_STATUS=./config.status}"
31068 ac_write_fail=0
31069 ac_clean_files_save=$ac_clean_files
31070 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31072 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31073 as_write_fail=0
31074 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31075 #! $SHELL
31076 # Generated by $as_me.
31077 # Run this file to recreate the current configuration.
31078 # Compiler output produced by configure, useful for debugging
31079 # configure, is in config.log if it exists.
31080
31081 debug=false
31082 ac_cs_recheck=false
31083 ac_cs_silent=false
31084
31085 SHELL=\${CONFIG_SHELL-$SHELL}
31086 export SHELL
31087 _ASEOF
31088 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31089 ## -------------------- ##
31090 ## M4sh Initialization. ##
31091 ## -------------------- ##
31092
31093 # Be more Bourne compatible
31094 DUALCASE=1; export DUALCASE # for MKS sh
31095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31096   emulate sh
31097   NULLCMD=:
31098   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31099   # is contrary to our usage.  Disable this feature.
31100   alias -g '${1+"$@"}'='"$@"'
31101   setopt NO_GLOB_SUBST
31102 else
31103   case `(set -o) 2>/dev/null` in #(
31104   *posix*) :
31105     set -o posix ;; #(
31106   *) :
31107      ;;
31108 esac
31109 fi
31110
31111
31112 as_nl='
31113 '
31114 export as_nl
31115 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31116 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31119 # Prefer a ksh shell builtin over an external printf program on Solaris,
31120 # but without wasting forks for bash or zsh.
31121 if test -z "$BASH_VERSION$ZSH_VERSION" \
31122     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31123   as_echo='print -r --'
31124   as_echo_n='print -rn --'
31125 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31126   as_echo='printf %s\n'
31127   as_echo_n='printf %s'
31128 else
31129   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31130     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31131     as_echo_n='/usr/ucb/echo -n'
31132   else
31133     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31134     as_echo_n_body='eval
31135       arg=$1;
31136       case $arg in #(
31137       *"$as_nl"*)
31138         expr "X$arg" : "X\\(.*\\)$as_nl";
31139         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31140       esac;
31141       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31142     '
31143     export as_echo_n_body
31144     as_echo_n='sh -c $as_echo_n_body as_echo'
31145   fi
31146   export as_echo_body
31147   as_echo='sh -c $as_echo_body as_echo'
31148 fi
31149
31150 # The user is always right.
31151 if test "${PATH_SEPARATOR+set}" != set; then
31152   PATH_SEPARATOR=:
31153   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31154     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31155       PATH_SEPARATOR=';'
31156   }
31157 fi
31158
31159
31160 # IFS
31161 # We need space, tab and new line, in precisely that order.  Quoting is
31162 # there to prevent editors from complaining about space-tab.
31163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31164 # splitting by setting IFS to empty value.)
31165 IFS=" ""        $as_nl"
31166
31167 # Find who we are.  Look in the path if we contain no directory separator.
31168 as_myself=
31169 case $0 in #((
31170   *[\\/]* ) as_myself=$0 ;;
31171   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31172 for as_dir in $PATH
31173 do
31174   IFS=$as_save_IFS
31175   test -z "$as_dir" && as_dir=.
31176     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31177   done
31178 IFS=$as_save_IFS
31179
31180      ;;
31181 esac
31182 # We did not find ourselves, most probably we were run as `sh COMMAND'
31183 # in which case we are not to be found in the path.
31184 if test "x$as_myself" = x; then
31185   as_myself=$0
31186 fi
31187 if test ! -f "$as_myself"; then
31188   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31189   exit 1
31190 fi
31191
31192 # Unset variables that we do not need and which cause bugs (e.g. in
31193 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31194 # suppresses any "Segmentation fault" message there.  '((' could
31195 # trigger a bug in pdksh 5.2.14.
31196 for as_var in BASH_ENV ENV MAIL MAILPATH
31197 do eval test x\${$as_var+set} = xset \
31198   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31199 done
31200 PS1='$ '
31201 PS2='> '
31202 PS4='+ '
31203
31204 # NLS nuisances.
31205 LC_ALL=C
31206 export LC_ALL
31207 LANGUAGE=C
31208 export LANGUAGE
31209
31210 # CDPATH.
31211 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31212
31213
31214 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31215 # ----------------------------------------
31216 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31217 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31218 # script with STATUS, using 1 if that was 0.
31219 as_fn_error ()
31220 {
31221   as_status=$1; test $as_status -eq 0 && as_status=1
31222   if test "$4"; then
31223     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31224     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31225   fi
31226   $as_echo "$as_me: error: $2" >&2
31227   as_fn_exit $as_status
31228 } # as_fn_error
31229
31230
31231 # as_fn_set_status STATUS
31232 # -----------------------
31233 # Set $? to STATUS, without forking.
31234 as_fn_set_status ()
31235 {
31236   return $1
31237 } # as_fn_set_status
31238
31239 # as_fn_exit STATUS
31240 # -----------------
31241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31242 as_fn_exit ()
31243 {
31244   set +e
31245   as_fn_set_status $1
31246   exit $1
31247 } # as_fn_exit
31248
31249 # as_fn_unset VAR
31250 # ---------------
31251 # Portably unset VAR.
31252 as_fn_unset ()
31253 {
31254   { eval $1=; unset $1;}
31255 }
31256 as_unset=as_fn_unset
31257 # as_fn_append VAR VALUE
31258 # ----------------------
31259 # Append the text in VALUE to the end of the definition contained in VAR. Take
31260 # advantage of any shell optimizations that allow amortized linear growth over
31261 # repeated appends, instead of the typical quadratic growth present in naive
31262 # implementations.
31263 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31264   eval 'as_fn_append ()
31265   {
31266     eval $1+=\$2
31267   }'
31268 else
31269   as_fn_append ()
31270   {
31271     eval $1=\$$1\$2
31272   }
31273 fi # as_fn_append
31274
31275 # as_fn_arith ARG...
31276 # ------------------
31277 # Perform arithmetic evaluation on the ARGs, and store the result in the
31278 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31279 # must be portable across $(()) and expr.
31280 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31281   eval 'as_fn_arith ()
31282   {
31283     as_val=$(( $* ))
31284   }'
31285 else
31286   as_fn_arith ()
31287   {
31288     as_val=`expr "$@" || test $? -eq 1`
31289   }
31290 fi # as_fn_arith
31291
31292
31293 if expr a : '\(a\)' >/dev/null 2>&1 &&
31294    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31295   as_expr=expr
31296 else
31297   as_expr=false
31298 fi
31299
31300 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31301   as_basename=basename
31302 else
31303   as_basename=false
31304 fi
31305
31306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31307   as_dirname=dirname
31308 else
31309   as_dirname=false
31310 fi
31311
31312 as_me=`$as_basename -- "$0" ||
31313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31314          X"$0" : 'X\(//\)$' \| \
31315          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31316 $as_echo X/"$0" |
31317     sed '/^.*\/\([^/][^/]*\)\/*$/{
31318             s//\1/
31319             q
31320           }
31321           /^X\/\(\/\/\)$/{
31322             s//\1/
31323             q
31324           }
31325           /^X\/\(\/\).*/{
31326             s//\1/
31327             q
31328           }
31329           s/.*/./; q'`
31330
31331 # Avoid depending upon Character Ranges.
31332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31335 as_cr_digits='0123456789'
31336 as_cr_alnum=$as_cr_Letters$as_cr_digits
31337
31338 ECHO_C= ECHO_N= ECHO_T=
31339 case `echo -n x` in #(((((
31340 -n*)
31341   case `echo 'xy\c'` in
31342   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31343   xy)  ECHO_C='\c';;
31344   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31345        ECHO_T=' ';;
31346   esac;;
31347 *)
31348   ECHO_N='-n';;
31349 esac
31350
31351 rm -f conf$$ conf$$.exe conf$$.file
31352 if test -d conf$$.dir; then
31353   rm -f conf$$.dir/conf$$.file
31354 else
31355   rm -f conf$$.dir
31356   mkdir conf$$.dir 2>/dev/null
31357 fi
31358 if (echo >conf$$.file) 2>/dev/null; then
31359   if ln -s conf$$.file conf$$ 2>/dev/null; then
31360     as_ln_s='ln -s'
31361     # ... but there are two gotchas:
31362     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31363     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31364     # In both cases, we have to default to `cp -pR'.
31365     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31366       as_ln_s='cp -pR'
31367   elif ln conf$$.file conf$$ 2>/dev/null; then
31368     as_ln_s=ln
31369   else
31370     as_ln_s='cp -pR'
31371   fi
31372 else
31373   as_ln_s='cp -pR'
31374 fi
31375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31376 rmdir conf$$.dir 2>/dev/null
31377
31378
31379 # as_fn_mkdir_p
31380 # -------------
31381 # Create "$as_dir" as a directory, including parents if necessary.
31382 as_fn_mkdir_p ()
31383 {
31384
31385   case $as_dir in #(
31386   -*) as_dir=./$as_dir;;
31387   esac
31388   test -d "$as_dir" || eval $as_mkdir_p || {
31389     as_dirs=
31390     while :; do
31391       case $as_dir in #(
31392       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31393       *) as_qdir=$as_dir;;
31394       esac
31395       as_dirs="'$as_qdir' $as_dirs"
31396       as_dir=`$as_dirname -- "$as_dir" ||
31397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31398          X"$as_dir" : 'X\(//\)[^/]' \| \
31399          X"$as_dir" : 'X\(//\)$' \| \
31400          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31401 $as_echo X"$as_dir" |
31402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31403             s//\1/
31404             q
31405           }
31406           /^X\(\/\/\)[^/].*/{
31407             s//\1/
31408             q
31409           }
31410           /^X\(\/\/\)$/{
31411             s//\1/
31412             q
31413           }
31414           /^X\(\/\).*/{
31415             s//\1/
31416             q
31417           }
31418           s/.*/./; q'`
31419       test -d "$as_dir" && break
31420     done
31421     test -z "$as_dirs" || eval "mkdir $as_dirs"
31422   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31423
31424
31425 } # as_fn_mkdir_p
31426 if mkdir -p . 2>/dev/null; then
31427   as_mkdir_p='mkdir -p "$as_dir"'
31428 else
31429   test -d ./-p && rmdir ./-p
31430   as_mkdir_p=false
31431 fi
31432
31433
31434 # as_fn_executable_p FILE
31435 # -----------------------
31436 # Test if FILE is an executable regular file.
31437 as_fn_executable_p ()
31438 {
31439   test -f "$1" && test -x "$1"
31440 } # as_fn_executable_p
31441 as_test_x='test -x'
31442 as_executable_p=as_fn_executable_p
31443
31444 # Sed expression to map a string onto a valid CPP name.
31445 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31446
31447 # Sed expression to map a string onto a valid variable name.
31448 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31449
31450
31451 exec 6>&1
31452 ## ----------------------------------- ##
31453 ## Main body of $CONFIG_STATUS script. ##
31454 ## ----------------------------------- ##
31455 _ASEOF
31456 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31457
31458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31459 # Save the log message, to keep $0 and so on meaningful, and to
31460 # report actual input values of CONFIG_FILES etc. instead of their
31461 # values after options handling.
31462 ac_log="
31463 This file was extended by bacula $as_me 7.4.4, which was
31464 generated by GNU Autoconf 2.69.  Invocation command line was
31465
31466   CONFIG_FILES    = $CONFIG_FILES
31467   CONFIG_HEADERS  = $CONFIG_HEADERS
31468   CONFIG_LINKS    = $CONFIG_LINKS
31469   CONFIG_COMMANDS = $CONFIG_COMMANDS
31470   $ $0 $@
31471
31472 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31473 "
31474
31475 _ACEOF
31476
31477 case $ac_config_files in *"
31478 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31479 esac
31480
31481 case $ac_config_headers in *"
31482 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31483 esac
31484
31485
31486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31487 # Files that config.status was made for.
31488 config_files="$ac_config_files"
31489 config_headers="$ac_config_headers"
31490 config_commands="$ac_config_commands"
31491
31492 _ACEOF
31493
31494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31495 ac_cs_usage="\
31496 \`$as_me' instantiates files and other configuration actions
31497 from templates according to the current configuration.  Unless the files
31498 and actions are specified as TAGs, all are instantiated by default.
31499
31500 Usage: $0 [OPTION]... [TAG]...
31501
31502   -h, --help       print this help, then exit
31503   -V, --version    print version number and configuration settings, then exit
31504       --config     print configuration, then exit
31505   -q, --quiet, --silent
31506                    do not print progress messages
31507   -d, --debug      don't remove temporary files
31508       --recheck    update $as_me by reconfiguring in the same conditions
31509       --file=FILE[:TEMPLATE]
31510                    instantiate the configuration file FILE
31511       --header=FILE[:TEMPLATE]
31512                    instantiate the configuration header FILE
31513
31514 Configuration files:
31515 $config_files
31516
31517 Configuration headers:
31518 $config_headers
31519
31520 Configuration commands:
31521 $config_commands
31522
31523 Report bugs to the package provider."
31524
31525 _ACEOF
31526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31527 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31528 ac_cs_version="\\
31529 bacula config.status 7.4.4
31530 configured by $0, generated by GNU Autoconf 2.69,
31531   with options \\"\$ac_cs_config\\"
31532
31533 Copyright (C) 2012 Free Software Foundation, Inc.
31534 This config.status script is free software; the Free Software Foundation
31535 gives unlimited permission to copy, distribute and modify it."
31536
31537 ac_pwd='$ac_pwd'
31538 srcdir='$srcdir'
31539 INSTALL='$INSTALL'
31540 AWK='$AWK'
31541 test -n "\$AWK" || AWK=awk
31542 _ACEOF
31543
31544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31545 # The default lists apply if the user does not specify any file.
31546 ac_need_defaults=:
31547 while test $# != 0
31548 do
31549   case $1 in
31550   --*=?*)
31551     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31552     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31553     ac_shift=:
31554     ;;
31555   --*=)
31556     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31557     ac_optarg=
31558     ac_shift=:
31559     ;;
31560   *)
31561     ac_option=$1
31562     ac_optarg=$2
31563     ac_shift=shift
31564     ;;
31565   esac
31566
31567   case $ac_option in
31568   # Handling of the options.
31569   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31570     ac_cs_recheck=: ;;
31571   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31572     $as_echo "$ac_cs_version"; exit ;;
31573   --config | --confi | --conf | --con | --co | --c )
31574     $as_echo "$ac_cs_config"; exit ;;
31575   --debug | --debu | --deb | --de | --d | -d )
31576     debug=: ;;
31577   --file | --fil | --fi | --f )
31578     $ac_shift
31579     case $ac_optarg in
31580     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31581     '') as_fn_error $? "missing file argument" ;;
31582     esac
31583     as_fn_append CONFIG_FILES " '$ac_optarg'"
31584     ac_need_defaults=false;;
31585   --header | --heade | --head | --hea )
31586     $ac_shift
31587     case $ac_optarg in
31588     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31589     esac
31590     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31591     ac_need_defaults=false;;
31592   --he | --h)
31593     # Conflict between --help and --header
31594     as_fn_error $? "ambiguous option: \`$1'
31595 Try \`$0 --help' for more information.";;
31596   --help | --hel | -h )
31597     $as_echo "$ac_cs_usage"; exit ;;
31598   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31599   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31600     ac_cs_silent=: ;;
31601
31602   # This is an error.
31603   -*) as_fn_error $? "unrecognized option: \`$1'
31604 Try \`$0 --help' for more information." ;;
31605
31606   *) as_fn_append ac_config_targets " $1"
31607      ac_need_defaults=false ;;
31608
31609   esac
31610   shift
31611 done
31612
31613 ac_configure_extra_args=
31614
31615 if $ac_cs_silent; then
31616   exec 6>/dev/null
31617   ac_configure_extra_args="$ac_configure_extra_args --silent"
31618 fi
31619
31620 _ACEOF
31621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31622 if \$ac_cs_recheck; then
31623   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31624   shift
31625   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31626   CONFIG_SHELL='$SHELL'
31627   export CONFIG_SHELL
31628   exec "\$@"
31629 fi
31630
31631 _ACEOF
31632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31633 exec 5>>config.log
31634 {
31635   echo
31636   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31637 ## Running $as_me. ##
31638 _ASBOX
31639   $as_echo "$ac_log"
31640 } >&5
31641
31642 _ACEOF
31643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31644 #
31645 # INIT-COMMANDS
31646 #
31647
31648
31649 # The HP-UX ksh and POSIX shell print the target directory to stdout
31650 # if CDPATH is set.
31651 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31652
31653 sed_quote_subst='$sed_quote_subst'
31654 double_quote_subst='$double_quote_subst'
31655 delay_variable_subst='$delay_variable_subst'
31656 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31657 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31658 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31659 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31660 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31661 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31662 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31663 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31664 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31665 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31666 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31667 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31668 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31669 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31670 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31671 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31672 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31673 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31674 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31675 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31676 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31677 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31678 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31679 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31680 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31681 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31682 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31683 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31684 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31685 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31686 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31687 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31688 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31689 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31690 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31691 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31692 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31693 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31694 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31695 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31696 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31697 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31698 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31699 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31700 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31701 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31702 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31703 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31704 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31705 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31706 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31707 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31708 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31709 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31712 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"`'
31713 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31714 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31715 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31716 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31717 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31718 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31719 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31720 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31721 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31722 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31723 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31724 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31725 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31726 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31727 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31728 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31729 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31730 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31731 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31732 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31733 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31734 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31735 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31736 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31737 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31738 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31739 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31740 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31741 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31742 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31743 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31744 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31745 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31746 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31747 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31748 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31749 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31750 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31751 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31752 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31753 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31754 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31755 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31756 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31757 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31758 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31759 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31760 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31761 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31762 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31763 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31764 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31765 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31766 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31767 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31768 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31769 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31770 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31771 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31772 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31773 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31774 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31775 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31776 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31777 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31778 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31779 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31780 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31781 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31782 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31783 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31784 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31785 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31786 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31787 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31788 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31789 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31790 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31791 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31792 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31793 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31794 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31795 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31796 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31797 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31798 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31799 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31800 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31801 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31802 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31803 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31804 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31805 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31806 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31807 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31808 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31809 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31810 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31811 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31812 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31813 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31814 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31815 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31816 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31817 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31818 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31819 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31820 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31821 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31822 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31823 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31824 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31825 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31826 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31827 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31828 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31829 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31830 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31831 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31832 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31833 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31834 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31835 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31836 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31837 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31838 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31839 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31840
31841 LTCC='$LTCC'
31842 LTCFLAGS='$LTCFLAGS'
31843 compiler='$compiler_DEFAULT'
31844
31845 # A function that is used when there is no print builtin or printf.
31846 func_fallback_echo ()
31847 {
31848   eval 'cat <<_LTECHO_EOF
31849 \$1
31850 _LTECHO_EOF'
31851 }
31852
31853 # Quote evaled strings.
31854 for var in SHELL \
31855 ECHO \
31856 PATH_SEPARATOR \
31857 SED \
31858 GREP \
31859 EGREP \
31860 FGREP \
31861 LD \
31862 NM \
31863 LN_S \
31864 lt_SP2NL \
31865 lt_NL2SP \
31866 reload_flag \
31867 OBJDUMP \
31868 deplibs_check_method \
31869 file_magic_cmd \
31870 file_magic_glob \
31871 want_nocaseglob \
31872 DLLTOOL \
31873 sharedlib_from_linklib_cmd \
31874 AR \
31875 AR_FLAGS \
31876 archiver_list_spec \
31877 STRIP \
31878 RANLIB \
31879 CC \
31880 CFLAGS \
31881 compiler \
31882 lt_cv_sys_global_symbol_pipe \
31883 lt_cv_sys_global_symbol_to_cdecl \
31884 lt_cv_sys_global_symbol_to_c_name_address \
31885 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31886 nm_file_list_spec \
31887 lt_prog_compiler_no_builtin_flag \
31888 lt_prog_compiler_pic \
31889 lt_prog_compiler_wl \
31890 lt_prog_compiler_static \
31891 lt_cv_prog_compiler_c_o \
31892 need_locks \
31893 MANIFEST_TOOL \
31894 DSYMUTIL \
31895 NMEDIT \
31896 LIPO \
31897 OTOOL \
31898 OTOOL64 \
31899 shrext_cmds \
31900 export_dynamic_flag_spec \
31901 whole_archive_flag_spec \
31902 compiler_needs_object \
31903 with_gnu_ld \
31904 allow_undefined_flag \
31905 no_undefined_flag \
31906 hardcode_libdir_flag_spec \
31907 hardcode_libdir_separator \
31908 exclude_expsyms \
31909 include_expsyms \
31910 file_list_spec \
31911 variables_saved_for_relink \
31912 libname_spec \
31913 library_names_spec \
31914 soname_spec \
31915 install_override_mode \
31916 finish_eval \
31917 old_striplib \
31918 striplib \
31919 compiler_lib_search_dirs \
31920 predep_objects \
31921 postdep_objects \
31922 predeps \
31923 postdeps \
31924 compiler_lib_search_path \
31925 LD_CXX \
31926 reload_flag_CXX \
31927 compiler_CXX \
31928 lt_prog_compiler_no_builtin_flag_CXX \
31929 lt_prog_compiler_pic_CXX \
31930 lt_prog_compiler_wl_CXX \
31931 lt_prog_compiler_static_CXX \
31932 lt_cv_prog_compiler_c_o_CXX \
31933 export_dynamic_flag_spec_CXX \
31934 whole_archive_flag_spec_CXX \
31935 compiler_needs_object_CXX \
31936 with_gnu_ld_CXX \
31937 allow_undefined_flag_CXX \
31938 no_undefined_flag_CXX \
31939 hardcode_libdir_flag_spec_CXX \
31940 hardcode_libdir_separator_CXX \
31941 exclude_expsyms_CXX \
31942 include_expsyms_CXX \
31943 file_list_spec_CXX \
31944 compiler_lib_search_dirs_CXX \
31945 predep_objects_CXX \
31946 postdep_objects_CXX \
31947 predeps_CXX \
31948 postdeps_CXX \
31949 compiler_lib_search_path_CXX; do
31950     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31951     *[\\\\\\\`\\"\\\$]*)
31952       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31953       ;;
31954     *)
31955       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31956       ;;
31957     esac
31958 done
31959
31960 # Double-quote double-evaled strings.
31961 for var in reload_cmds \
31962 old_postinstall_cmds \
31963 old_postuninstall_cmds \
31964 old_archive_cmds \
31965 extract_expsyms_cmds \
31966 old_archive_from_new_cmds \
31967 old_archive_from_expsyms_cmds \
31968 archive_cmds \
31969 archive_expsym_cmds \
31970 module_cmds \
31971 module_expsym_cmds \
31972 export_symbols_cmds \
31973 prelink_cmds \
31974 postlink_cmds \
31975 postinstall_cmds \
31976 postuninstall_cmds \
31977 finish_cmds \
31978 sys_lib_search_path_spec \
31979 sys_lib_dlsearch_path_spec \
31980 reload_cmds_CXX \
31981 old_archive_cmds_CXX \
31982 old_archive_from_new_cmds_CXX \
31983 old_archive_from_expsyms_cmds_CXX \
31984 archive_cmds_CXX \
31985 archive_expsym_cmds_CXX \
31986 module_cmds_CXX \
31987 module_expsym_cmds_CXX \
31988 export_symbols_cmds_CXX \
31989 prelink_cmds_CXX \
31990 postlink_cmds_CXX; do
31991     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31992     *[\\\\\\\`\\"\\\$]*)
31993       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31994       ;;
31995     *)
31996       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31997       ;;
31998     esac
31999 done
32000
32001 ac_aux_dir='$ac_aux_dir'
32002 xsi_shell='$xsi_shell'
32003 lt_shell_append='$lt_shell_append'
32004
32005 # See if we are running on zsh, and set the options which allow our
32006 # commands through without removal of \ escapes INIT.
32007 if test -n "\${ZSH_VERSION+set}" ; then
32008    setopt NO_GLOB_SUBST
32009 fi
32010
32011
32012     PACKAGE='$PACKAGE'
32013     VERSION='$VERSION'
32014     TIMESTAMP='$TIMESTAMP'
32015     RM='$RM'
32016     ofile='$ofile'
32017
32018
32019
32020
32021
32022 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32023     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32024     # from automake.
32025     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32026     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32027     LINGUAS="${LINGUAS-%UNSET%}"
32028
32029
32030 _ACEOF
32031
32032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32033
32034 # Handling of arguments.
32035 for ac_config_target in $ac_config_targets
32036 do
32037   case $ac_config_target in
32038     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32039     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32040     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32041     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32042     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32043     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32044     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32045     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32046     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32047     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32048     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32049     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32050     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32051     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32052     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32053     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32054     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32055     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32056     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32057     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32058     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32059     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32060     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32061     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32062     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32063     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32064     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32065     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32066     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32067     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32068     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32069     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32070     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32071     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32072     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32073     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32074     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32075     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32076     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32077     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32078     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32079     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32080     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32081     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32082     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32083     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32084     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32085     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32086     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32087     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32088     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32089     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32090     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32091     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32092     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32093     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32094     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32095     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32096     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32097     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32098     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32099     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32100     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32101     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32102     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32103     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32104     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32105     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32106     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32107     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32108     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32109     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32110     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32111     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32112     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32113     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32114     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32115     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32116     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32117     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32118     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32119     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32120     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32121     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32122     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32123     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32124     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32125     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32126     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32127     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32128     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32129     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32130     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32131     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32132     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32133     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32134     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32135     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32136     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32137     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32138     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32139     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32140     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32141     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32142     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32143
32144   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32145   esac
32146 done
32147
32148
32149 # If the user did not use the arguments to specify the items to instantiate,
32150 # then the envvar interface is used.  Set only those that are not.
32151 # We use the long form for the default assignment because of an extremely
32152 # bizarre bug on SunOS 4.1.3.
32153 if $ac_need_defaults; then
32154   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32155   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32156   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32157 fi
32158
32159 # Have a temporary directory for convenience.  Make it in the build tree
32160 # simply because there is no reason against having it here, and in addition,
32161 # creating and moving files from /tmp can sometimes cause problems.
32162 # Hook for its removal unless debugging.
32163 # Note that there is a small window in which the directory will not be cleaned:
32164 # after its creation but before its name has been assigned to `$tmp'.
32165 $debug ||
32166 {
32167   tmp= ac_tmp=
32168   trap 'exit_status=$?
32169   : "${ac_tmp:=$tmp}"
32170   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32171 ' 0
32172   trap 'as_fn_exit 1' 1 2 13 15
32173 }
32174 # Create a (secure) tmp directory for tmp files.
32175
32176 {
32177   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32178   test -d "$tmp"
32179 }  ||
32180 {
32181   tmp=./conf$$-$RANDOM
32182   (umask 077 && mkdir "$tmp")
32183 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32184 ac_tmp=$tmp
32185
32186 # Set up the scripts for CONFIG_FILES section.
32187 # No need to generate them if there are no CONFIG_FILES.
32188 # This happens for instance with `./config.status config.h'.
32189 if test -n "$CONFIG_FILES"; then
32190
32191 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32192   ac_cs_awk_getline=:
32193   ac_cs_awk_pipe_init=
32194   ac_cs_awk_read_file='
32195       while ((getline aline < (F[key])) > 0)
32196         print(aline)
32197       close(F[key])'
32198   ac_cs_awk_pipe_fini=
32199 else
32200   ac_cs_awk_getline=false
32201   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32202   ac_cs_awk_read_file='
32203       print "|#_!!_#|"
32204       print "cat " F[key] " &&"
32205       '$ac_cs_awk_pipe_init
32206   # The final `:' finishes the AND list.
32207   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32208 fi
32209 ac_cr=`echo X | tr X '\015'`
32210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32211 # But we know of no other shell where ac_cr would be empty at this
32212 # point, so we can use a bashism as a fallback.
32213 if test "x$ac_cr" = x; then
32214   eval ac_cr=\$\'\\r\'
32215 fi
32216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32218   ac_cs_awk_cr='\\r'
32219 else
32220   ac_cs_awk_cr=$ac_cr
32221 fi
32222
32223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32224 _ACEOF
32225
32226 # Create commands to substitute file output variables.
32227 {
32228   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32229   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32230   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32231   echo "_ACAWK" &&
32232   echo "_ACEOF"
32233 } >conf$$files.sh &&
32234 . ./conf$$files.sh ||
32235   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32236 rm -f conf$$files.sh
32237
32238 {
32239   echo "cat >conf$$subs.awk <<_ACEOF" &&
32240   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32241   echo "_ACEOF"
32242 } >conf$$subs.sh ||
32243   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32245 ac_delim='%!_!# '
32246 for ac_last_try in false false false false false :; do
32247   . ./conf$$subs.sh ||
32248     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32249
32250   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32251   if test $ac_delim_n = $ac_delim_num; then
32252     break
32253   elif $ac_last_try; then
32254     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32255   else
32256     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32257   fi
32258 done
32259 rm -f conf$$subs.sh
32260
32261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32262 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32263 _ACEOF
32264 sed -n '
32265 h
32266 s/^/S["/; s/!.*/"]=/
32267 p
32268 g
32269 s/^[^!]*!//
32270 :repl
32271 t repl
32272 s/'"$ac_delim"'$//
32273 t delim
32274 :nl
32275 h
32276 s/\(.\{148\}\)..*/\1/
32277 t more1
32278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32279 p
32280 n
32281 b repl
32282 :more1
32283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32284 p
32285 g
32286 s/.\{148\}//
32287 t nl
32288 :delim
32289 h
32290 s/\(.\{148\}\)..*/\1/
32291 t more2
32292 s/["\\]/\\&/g; s/^/"/; s/$/"/
32293 p
32294 b
32295 :more2
32296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32297 p
32298 g
32299 s/.\{148\}//
32300 t delim
32301 ' <conf$$subs.awk | sed '
32302 /^[^""]/{
32303   N
32304   s/\n//
32305 }
32306 ' >>$CONFIG_STATUS || ac_write_fail=1
32307 rm -f conf$$subs.awk
32308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32309 _ACAWK
32310 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32311   for (key in S) S_is_set[key] = 1
32312   FS = "\a"
32313   \$ac_cs_awk_pipe_init
32314 }
32315 {
32316   line = $ 0
32317   nfields = split(line, field, "@")
32318   substed = 0
32319   len = length(field[1])
32320   for (i = 2; i < nfields; i++) {
32321     key = field[i]
32322     keylen = length(key)
32323     if (S_is_set[key]) {
32324       value = S[key]
32325       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32326       len += length(value) + length(field[++i])
32327       substed = 1
32328     } else
32329       len += 1 + keylen
32330   }
32331   if (nfields == 3 && !substed) {
32332     key = field[2]
32333     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32334       \$ac_cs_awk_read_file
32335       next
32336     }
32337   }
32338   print line
32339 }
32340 \$ac_cs_awk_pipe_fini
32341 _ACAWK
32342 _ACEOF
32343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32345   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32346 else
32347   cat
32348 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32349   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32350 _ACEOF
32351
32352 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32353 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32354 # trailing colons and then remove the whole line if VPATH becomes empty
32355 # (actually we leave an empty line to preserve line numbers).
32356 if test "x$srcdir" = x.; then
32357   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32358 h
32359 s///
32360 s/^/:/
32361 s/[      ]*$/:/
32362 s/:\$(srcdir):/:/g
32363 s/:\${srcdir}:/:/g
32364 s/:@srcdir@:/:/g
32365 s/^:*//
32366 s/:*$//
32367 x
32368 s/\(=[   ]*\).*/\1/
32369 G
32370 s/\n//
32371 s/^[^=]*=[       ]*$//
32372 }'
32373 fi
32374
32375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32376 fi # test -n "$CONFIG_FILES"
32377
32378 # Set up the scripts for CONFIG_HEADERS section.
32379 # No need to generate them if there are no CONFIG_HEADERS.
32380 # This happens for instance with `./config.status Makefile'.
32381 if test -n "$CONFIG_HEADERS"; then
32382 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32383 BEGIN {
32384 _ACEOF
32385
32386 # Transform confdefs.h into an awk script `defines.awk', embedded as
32387 # here-document in config.status, that substitutes the proper values into
32388 # config.h.in to produce config.h.
32389
32390 # Create a delimiter string that does not exist in confdefs.h, to ease
32391 # handling of long lines.
32392 ac_delim='%!_!# '
32393 for ac_last_try in false false :; do
32394   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32395   if test -z "$ac_tt"; then
32396     break
32397   elif $ac_last_try; then
32398     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32399   else
32400     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32401   fi
32402 done
32403
32404 # For the awk script, D is an array of macro values keyed by name,
32405 # likewise P contains macro parameters if any.  Preserve backslash
32406 # newline sequences.
32407
32408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32409 sed -n '
32410 s/.\{148\}/&'"$ac_delim"'/g
32411 t rset
32412 :rset
32413 s/^[     ]*#[    ]*define[       ][      ]*/ /
32414 t def
32415 d
32416 :def
32417 s/\\$//
32418 t bsnl
32419 s/["\\]/\\&/g
32420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32421 D["\1"]=" \3"/p
32422 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32423 d
32424 :bsnl
32425 s/["\\]/\\&/g
32426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32427 D["\1"]=" \3\\\\\\n"\\/p
32428 t cont
32429 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32430 t cont
32431 d
32432 :cont
32433 n
32434 s/.\{148\}/&'"$ac_delim"'/g
32435 t clear
32436 :clear
32437 s/\\$//
32438 t bsnlc
32439 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32440 d
32441 :bsnlc
32442 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32443 b cont
32444 ' <confdefs.h | sed '
32445 s/'"$ac_delim"'/"\\\
32446 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32447
32448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32449   for (key in D) D_is_set[key] = 1
32450   FS = "\a"
32451 }
32452 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32453   line = \$ 0
32454   split(line, arg, " ")
32455   if (arg[1] == "#") {
32456     defundef = arg[2]
32457     mac1 = arg[3]
32458   } else {
32459     defundef = substr(arg[1], 2)
32460     mac1 = arg[2]
32461   }
32462   split(mac1, mac2, "(") #)
32463   macro = mac2[1]
32464   prefix = substr(line, 1, index(line, defundef) - 1)
32465   if (D_is_set[macro]) {
32466     # Preserve the white space surrounding the "#".
32467     print prefix "define", macro P[macro] D[macro]
32468     next
32469   } else {
32470     # Replace #undef with comments.  This is necessary, for example,
32471     # in the case of _POSIX_SOURCE, which is predefined and required
32472     # on some systems where configure will not decide to define it.
32473     if (defundef == "undef") {
32474       print "/*", prefix defundef, macro, "*/"
32475       next
32476     }
32477   }
32478 }
32479 { print }
32480 _ACAWK
32481 _ACEOF
32482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32483   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32484 fi # test -n "$CONFIG_HEADERS"
32485
32486
32487 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32488 shift
32489 for ac_tag
32490 do
32491   case $ac_tag in
32492   :[FHLC]) ac_mode=$ac_tag; continue;;
32493   esac
32494   case $ac_mode$ac_tag in
32495   :[FHL]*:*);;
32496   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32497   :[FH]-) ac_tag=-:-;;
32498   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32499   esac
32500   ac_save_IFS=$IFS
32501   IFS=:
32502   set x $ac_tag
32503   IFS=$ac_save_IFS
32504   shift
32505   ac_file=$1
32506   shift
32507
32508   case $ac_mode in
32509   :L) ac_source=$1;;
32510   :[FH])
32511     ac_file_inputs=
32512     for ac_f
32513     do
32514       case $ac_f in
32515       -) ac_f="$ac_tmp/stdin";;
32516       *) # Look for the file first in the build tree, then in the source tree
32517          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32518          # because $ac_f cannot contain `:'.
32519          test -f "$ac_f" ||
32520            case $ac_f in
32521            [\\/$]*) false;;
32522            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32523            esac ||
32524            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32525       esac
32526       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32527       as_fn_append ac_file_inputs " '$ac_f'"
32528     done
32529
32530     # Let's still pretend it is `configure' which instantiates (i.e., don't
32531     # use $as_me), people would be surprised to read:
32532     #    /* config.h.  Generated by config.status.  */
32533     configure_input='Generated from '`
32534           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32535         `' by configure.'
32536     if test x"$ac_file" != x-; then
32537       configure_input="$ac_file.  $configure_input"
32538       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32539 $as_echo "$as_me: creating $ac_file" >&6;}
32540     fi
32541     # Neutralize special characters interpreted by sed in replacement strings.
32542     case $configure_input in #(
32543     *\&* | *\|* | *\\* )
32544        ac_sed_conf_input=`$as_echo "$configure_input" |
32545        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32546     *) ac_sed_conf_input=$configure_input;;
32547     esac
32548
32549     case $ac_tag in
32550     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32551       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32552     esac
32553     ;;
32554   esac
32555
32556   ac_dir=`$as_dirname -- "$ac_file" ||
32557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32558          X"$ac_file" : 'X\(//\)[^/]' \| \
32559          X"$ac_file" : 'X\(//\)$' \| \
32560          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32561 $as_echo X"$ac_file" |
32562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32563             s//\1/
32564             q
32565           }
32566           /^X\(\/\/\)[^/].*/{
32567             s//\1/
32568             q
32569           }
32570           /^X\(\/\/\)$/{
32571             s//\1/
32572             q
32573           }
32574           /^X\(\/\).*/{
32575             s//\1/
32576             q
32577           }
32578           s/.*/./; q'`
32579   as_dir="$ac_dir"; as_fn_mkdir_p
32580   ac_builddir=.
32581
32582 case "$ac_dir" in
32583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32584 *)
32585   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32586   # A ".." for each directory in $ac_dir_suffix.
32587   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32588   case $ac_top_builddir_sub in
32589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32591   esac ;;
32592 esac
32593 ac_abs_top_builddir=$ac_pwd
32594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32595 # for backward compatibility:
32596 ac_top_builddir=$ac_top_build_prefix
32597
32598 case $srcdir in
32599   .)  # We are building in place.
32600     ac_srcdir=.
32601     ac_top_srcdir=$ac_top_builddir_sub
32602     ac_abs_top_srcdir=$ac_pwd ;;
32603   [\\/]* | ?:[\\/]* )  # Absolute name.
32604     ac_srcdir=$srcdir$ac_dir_suffix;
32605     ac_top_srcdir=$srcdir
32606     ac_abs_top_srcdir=$srcdir ;;
32607   *) # Relative name.
32608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32609     ac_top_srcdir=$ac_top_build_prefix$srcdir
32610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32611 esac
32612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32613
32614
32615   case $ac_mode in
32616   :F)
32617   #
32618   # CONFIG_FILE
32619   #
32620
32621   case $INSTALL in
32622   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32623   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32624   esac
32625 _ACEOF
32626
32627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32628 # If the template does not know about datarootdir, expand it.
32629 # FIXME: This hack should be removed a few years after 2.60.
32630 ac_datarootdir_hack=; ac_datarootdir_seen=
32631 ac_sed_dataroot='
32632 /datarootdir/ {
32633   p
32634   q
32635 }
32636 /@datadir@/p
32637 /@docdir@/p
32638 /@infodir@/p
32639 /@localedir@/p
32640 /@mandir@/p'
32641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32642 *datarootdir*) ac_datarootdir_seen=yes;;
32643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32644   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32646 _ACEOF
32647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32648   ac_datarootdir_hack='
32649   s&@datadir@&$datadir&g
32650   s&@docdir@&$docdir&g
32651   s&@infodir@&$infodir&g
32652   s&@localedir@&$localedir&g
32653   s&@mandir@&$mandir&g
32654   s&\\\${datarootdir}&$datarootdir&g' ;;
32655 esac
32656 _ACEOF
32657
32658 # Neutralize VPATH when `$srcdir' = `.'.
32659 # Shell code in configure.ac might set extrasub.
32660 # FIXME: do we really want to maintain this feature?
32661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32662 ac_sed_extra="$ac_vpsub
32663 $extrasub
32664 _ACEOF
32665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32666 :t
32667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32668 s|@configure_input@|$ac_sed_conf_input|;t t
32669 s&@top_builddir@&$ac_top_builddir_sub&;t t
32670 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32671 s&@srcdir@&$ac_srcdir&;t t
32672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32673 s&@top_srcdir@&$ac_top_srcdir&;t t
32674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32675 s&@builddir@&$ac_builddir&;t t
32676 s&@abs_builddir@&$ac_abs_builddir&;t t
32677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32678 s&@INSTALL@&$ac_INSTALL&;t t
32679 $ac_datarootdir_hack
32680 "
32681 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32682 if $ac_cs_awk_getline; then
32683   $AWK -f "$ac_tmp/subs.awk"
32684 else
32685   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32686 fi \
32687   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32688
32689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32690   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32691   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32692       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32694 which seems to be undefined.  Please make sure it is defined" >&5
32695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32696 which seems to be undefined.  Please make sure it is defined" >&2;}
32697
32698   rm -f "$ac_tmp/stdin"
32699   case $ac_file in
32700   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32701   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32702   esac \
32703   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32704  ;;
32705   :H)
32706   #
32707   # CONFIG_HEADER
32708   #
32709   if test x"$ac_file" != x-; then
32710     {
32711       $as_echo "/* $configure_input  */" \
32712       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32713     } >"$ac_tmp/config.h" \
32714       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32715     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32716       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32717 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32718     else
32719       rm -f "$ac_file"
32720       mv "$ac_tmp/config.h" "$ac_file" \
32721         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32722     fi
32723   else
32724     $as_echo "/* $configure_input  */" \
32725       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32726       || as_fn_error $? "could not create -" "$LINENO" 5
32727   fi
32728  ;;
32729
32730   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32731 $as_echo "$as_me: executing $ac_file commands" >&6;}
32732  ;;
32733   esac
32734
32735
32736   case $ac_file$ac_mode in
32737     "libtool":C)
32738
32739     # See if we are running on zsh, and set the options which allow our
32740     # commands through without removal of \ escapes.
32741     if test -n "${ZSH_VERSION+set}" ; then
32742       setopt NO_GLOB_SUBST
32743     fi
32744
32745     cfgfile="${ofile}T"
32746     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32747     $RM "$cfgfile"
32748
32749     cat <<_LT_EOF >> "$cfgfile"
32750 #! $SHELL
32751
32752 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32753 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32755 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32756 #
32757 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32758 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32759 #                 Foundation, Inc.
32760 #   Written by Gordon Matzigkeit, 1996
32761 #
32762 #   This file is part of GNU Libtool.
32763 #
32764 # GNU Libtool is free software; you can redistribute it and/or
32765 # modify it under the terms of the GNU General Public License as
32766 # published by the Free Software Foundation; either version 2 of
32767 # the License, or (at your option) any later version.
32768 #
32769 # As a special exception to the GNU General Public License,
32770 # if you distribute this file as part of a program or library that
32771 # is built using GNU Libtool, you may include this file under the
32772 # same distribution terms that you use for the rest of that program.
32773 #
32774 # GNU Libtool is distributed in the hope that it will be useful,
32775 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32776 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32777 # GNU General Public License for more details.
32778 #
32779 # You should have received a copy of the GNU General Public License
32780 # along with GNU Libtool; see the file COPYING.  If not, a copy
32781 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32782 # obtained by writing to the Free Software Foundation, Inc.,
32783 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32784
32785
32786 # The names of the tagged configurations supported by this script.
32787 available_tags="CXX "
32788
32789 # ### BEGIN LIBTOOL CONFIG
32790
32791 # Which release of libtool.m4 was used?
32792 macro_version=$macro_version
32793 macro_revision=$macro_revision
32794
32795 # Whether or not to build shared libraries.
32796 build_libtool_libs=$enable_shared
32797
32798 # Whether or not to build static libraries.
32799 build_old_libs=$enable_static
32800
32801 # What type of objects to build.
32802 pic_mode=$pic_mode
32803
32804 # Whether or not to optimize for fast installation.
32805 fast_install=$enable_fast_install
32806
32807 # Shell to use when invoking shell scripts.
32808 SHELL=$lt_SHELL
32809
32810 # An echo program that protects backslashes.
32811 ECHO=$lt_ECHO
32812
32813 # The PATH separator for the build system.
32814 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32815
32816 # The host system.
32817 host_alias=$host_alias
32818 host=$host
32819 host_os=$host_os
32820
32821 # The build system.
32822 build_alias=$build_alias
32823 build=$build
32824 build_os=$build_os
32825
32826 # A sed program that does not truncate output.
32827 SED=$lt_SED
32828
32829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32830 Xsed="\$SED -e 1s/^X//"
32831
32832 # A grep program that handles long lines.
32833 GREP=$lt_GREP
32834
32835 # An ERE matcher.
32836 EGREP=$lt_EGREP
32837
32838 # A literal string matcher.
32839 FGREP=$lt_FGREP
32840
32841 # A BSD- or MS-compatible name lister.
32842 NM=$lt_NM
32843
32844 # Whether we need soft or hard links.
32845 LN_S=$lt_LN_S
32846
32847 # What is the maximum length of a command?
32848 max_cmd_len=$max_cmd_len
32849
32850 # Object file suffix (normally "o").
32851 objext=$ac_objext
32852
32853 # Executable file suffix (normally "").
32854 exeext=$exeext
32855
32856 # whether the shell understands "unset".
32857 lt_unset=$lt_unset
32858
32859 # turn spaces into newlines.
32860 SP2NL=$lt_lt_SP2NL
32861
32862 # turn newlines into spaces.
32863 NL2SP=$lt_lt_NL2SP
32864
32865 # convert \$build file names to \$host format.
32866 to_host_file_cmd=$lt_cv_to_host_file_cmd
32867
32868 # convert \$build files to toolchain format.
32869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32870
32871 # An object symbol dumper.
32872 OBJDUMP=$lt_OBJDUMP
32873
32874 # Method to check whether dependent libraries are shared objects.
32875 deplibs_check_method=$lt_deplibs_check_method
32876
32877 # Command to use when deplibs_check_method = "file_magic".
32878 file_magic_cmd=$lt_file_magic_cmd
32879
32880 # How to find potential files when deplibs_check_method = "file_magic".
32881 file_magic_glob=$lt_file_magic_glob
32882
32883 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32884 want_nocaseglob=$lt_want_nocaseglob
32885
32886 # DLL creation program.
32887 DLLTOOL=$lt_DLLTOOL
32888
32889 # Command to associate shared and link libraries.
32890 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32891
32892 # The archiver.
32893 AR=$lt_AR
32894
32895 # Flags to create an archive.
32896 AR_FLAGS=$lt_AR_FLAGS
32897
32898 # How to feed a file listing to the archiver.
32899 archiver_list_spec=$lt_archiver_list_spec
32900
32901 # A symbol stripping program.
32902 STRIP=$lt_STRIP
32903
32904 # Commands used to install an old-style archive.
32905 RANLIB=$lt_RANLIB
32906 old_postinstall_cmds=$lt_old_postinstall_cmds
32907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32908
32909 # Whether to use a lock for old archive extraction.
32910 lock_old_archive_extraction=$lock_old_archive_extraction
32911
32912 # A C compiler.
32913 LTCC=$lt_CC
32914
32915 # LTCC compiler flags.
32916 LTCFLAGS=$lt_CFLAGS
32917
32918 # Take the output of nm and produce a listing of raw symbols and C names.
32919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32920
32921 # Transform the output of nm in a proper C declaration.
32922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32923
32924 # Transform the output of nm in a C name address pair.
32925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32926
32927 # Transform the output of nm in a C name address pair when lib prefix is needed.
32928 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32929
32930 # Specify filename containing input files for \$NM.
32931 nm_file_list_spec=$lt_nm_file_list_spec
32932
32933 # The root where to search for dependent libraries,and in which our libraries should be installed.
32934 lt_sysroot=$lt_sysroot
32935
32936 # The name of the directory that contains temporary libtool files.
32937 objdir=$objdir
32938
32939 # Used to examine libraries when file_magic_cmd begins with "file".
32940 MAGIC_CMD=$MAGIC_CMD
32941
32942 # Must we lock files when doing compilation?
32943 need_locks=$lt_need_locks
32944
32945 # Manifest tool.
32946 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32947
32948 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32949 DSYMUTIL=$lt_DSYMUTIL
32950
32951 # Tool to change global to local symbols on Mac OS X.
32952 NMEDIT=$lt_NMEDIT
32953
32954 # Tool to manipulate fat objects and archives on Mac OS X.
32955 LIPO=$lt_LIPO
32956
32957 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32958 OTOOL=$lt_OTOOL
32959
32960 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32961 OTOOL64=$lt_OTOOL64
32962
32963 # Old archive suffix (normally "a").
32964 libext=$libext
32965
32966 # Shared library suffix (normally ".so").
32967 shrext_cmds=$lt_shrext_cmds
32968
32969 # The commands to extract the exported symbol list from a shared archive.
32970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32971
32972 # Variables whose values should be saved in libtool wrapper scripts and
32973 # restored at link time.
32974 variables_saved_for_relink=$lt_variables_saved_for_relink
32975
32976 # Do we need the "lib" prefix for modules?
32977 need_lib_prefix=$need_lib_prefix
32978
32979 # Do we need a version for libraries?
32980 need_version=$need_version
32981
32982 # Library versioning type.
32983 version_type=$version_type
32984
32985 # Shared library runtime path variable.
32986 runpath_var=$runpath_var
32987
32988 # Shared library path variable.
32989 shlibpath_var=$shlibpath_var
32990
32991 # Is shlibpath searched before the hard-coded library search path?
32992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32993
32994 # Format of library name prefix.
32995 libname_spec=$lt_libname_spec
32996
32997 # List of archive names.  First name is the real one, the rest are links.
32998 # The last name is the one that the linker finds with -lNAME
32999 library_names_spec=$lt_library_names_spec
33000
33001 # The coded name of the library, if different from the real name.
33002 soname_spec=$lt_soname_spec
33003
33004 # Permission mode override for installation of shared libraries.
33005 install_override_mode=$lt_install_override_mode
33006
33007 # Command to use after installation of a shared archive.
33008 postinstall_cmds=$lt_postinstall_cmds
33009
33010 # Command to use after uninstallation of a shared archive.
33011 postuninstall_cmds=$lt_postuninstall_cmds
33012
33013 # Commands used to finish a libtool library installation in a directory.
33014 finish_cmds=$lt_finish_cmds
33015
33016 # As "finish_cmds", except a single script fragment to be evaled but
33017 # not shown.
33018 finish_eval=$lt_finish_eval
33019
33020 # Whether we should hardcode library paths into libraries.
33021 hardcode_into_libs=$hardcode_into_libs
33022
33023 # Compile-time system search path for libraries.
33024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33025
33026 # Run-time system search path for libraries.
33027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33028
33029 # Whether dlopen is supported.
33030 dlopen_support=$enable_dlopen
33031
33032 # Whether dlopen of programs is supported.
33033 dlopen_self=$enable_dlopen_self
33034
33035 # Whether dlopen of statically linked programs is supported.
33036 dlopen_self_static=$enable_dlopen_self_static
33037
33038 # Commands to strip libraries.
33039 old_striplib=$lt_old_striplib
33040 striplib=$lt_striplib
33041
33042
33043 # The linker used to build libraries.
33044 LD=$lt_LD
33045
33046 # How to create reloadable object files.
33047 reload_flag=$lt_reload_flag
33048 reload_cmds=$lt_reload_cmds
33049
33050 # Commands used to build an old-style archive.
33051 old_archive_cmds=$lt_old_archive_cmds
33052
33053 # A language specific compiler.
33054 CC=$lt_compiler
33055
33056 # Is the compiler the GNU compiler?
33057 with_gcc=$GCC
33058
33059 # Compiler flag to turn off builtin functions.
33060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33061
33062 # Additional compiler flags for building library objects.
33063 pic_flag=$lt_lt_prog_compiler_pic
33064
33065 # How to pass a linker flag through the compiler.
33066 wl=$lt_lt_prog_compiler_wl
33067
33068 # Compiler flag to prevent dynamic linking.
33069 link_static_flag=$lt_lt_prog_compiler_static
33070
33071 # Does compiler simultaneously support -c and -o options?
33072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33073
33074 # Whether or not to add -lc for building shared libraries.
33075 build_libtool_need_lc=$archive_cmds_need_lc
33076
33077 # Whether or not to disallow shared libs when runtime libs are static.
33078 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33079
33080 # Compiler flag to allow reflexive dlopens.
33081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33082
33083 # Compiler flag to generate shared objects directly from archives.
33084 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33085
33086 # Whether the compiler copes with passing no objects directly.
33087 compiler_needs_object=$lt_compiler_needs_object
33088
33089 # Create an old-style archive from a shared archive.
33090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33091
33092 # Create a temporary old-style archive to link instead of a shared archive.
33093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33094
33095 # Commands used to build a shared archive.
33096 archive_cmds=$lt_archive_cmds
33097 archive_expsym_cmds=$lt_archive_expsym_cmds
33098
33099 # Commands used to build a loadable module if different from building
33100 # a shared archive.
33101 module_cmds=$lt_module_cmds
33102 module_expsym_cmds=$lt_module_expsym_cmds
33103
33104 # Whether we are building with GNU ld or not.
33105 with_gnu_ld=$lt_with_gnu_ld
33106
33107 # Flag that allows shared libraries with undefined symbols to be built.
33108 allow_undefined_flag=$lt_allow_undefined_flag
33109
33110 # Flag that enforces no undefined symbols.
33111 no_undefined_flag=$lt_no_undefined_flag
33112
33113 # Flag to hardcode \$libdir into a binary during linking.
33114 # This must work even if \$libdir does not exist
33115 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33116
33117 # Whether we need a single "-rpath" flag with a separated argument.
33118 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33119
33120 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33121 # DIR into the resulting binary.
33122 hardcode_direct=$hardcode_direct
33123
33124 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33125 # DIR into the resulting binary and the resulting library dependency is
33126 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33127 # library is relocated.
33128 hardcode_direct_absolute=$hardcode_direct_absolute
33129
33130 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33131 # into the resulting binary.
33132 hardcode_minus_L=$hardcode_minus_L
33133
33134 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33135 # into the resulting binary.
33136 hardcode_shlibpath_var=$hardcode_shlibpath_var
33137
33138 # Set to "yes" if building a shared library automatically hardcodes DIR
33139 # into the library and all subsequent libraries and executables linked
33140 # against it.
33141 hardcode_automatic=$hardcode_automatic
33142
33143 # Set to yes if linker adds runtime paths of dependent libraries
33144 # to runtime path list.
33145 inherit_rpath=$inherit_rpath
33146
33147 # Whether libtool must link a program against all its dependency libraries.
33148 link_all_deplibs=$link_all_deplibs
33149
33150 # Set to "yes" if exported symbols are required.
33151 always_export_symbols=$always_export_symbols
33152
33153 # The commands to list exported symbols.
33154 export_symbols_cmds=$lt_export_symbols_cmds
33155
33156 # Symbols that should not be listed in the preloaded symbols.
33157 exclude_expsyms=$lt_exclude_expsyms
33158
33159 # Symbols that must always be exported.
33160 include_expsyms=$lt_include_expsyms
33161
33162 # Commands necessary for linking programs (against libraries) with templates.
33163 prelink_cmds=$lt_prelink_cmds
33164
33165 # Commands necessary for finishing linking programs.
33166 postlink_cmds=$lt_postlink_cmds
33167
33168 # Specify filename containing input files.
33169 file_list_spec=$lt_file_list_spec
33170
33171 # How to hardcode a shared library path into an executable.
33172 hardcode_action=$hardcode_action
33173
33174 # The directories searched by this compiler when creating a shared library.
33175 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33176
33177 # Dependencies to place before and after the objects being linked to
33178 # create a shared library.
33179 predep_objects=$lt_predep_objects
33180 postdep_objects=$lt_postdep_objects
33181 predeps=$lt_predeps
33182 postdeps=$lt_postdeps
33183
33184 # The library search path used internally by the compiler when linking
33185 # a shared library.
33186 compiler_lib_search_path=$lt_compiler_lib_search_path
33187
33188 # ### END LIBTOOL CONFIG
33189
33190 _LT_EOF
33191
33192   case $host_os in
33193   aix3*)
33194     cat <<\_LT_EOF >> "$cfgfile"
33195 # AIX sometimes has problems with the GCC collect2 program.  For some
33196 # reason, if we set the COLLECT_NAMES environment variable, the problems
33197 # vanish in a puff of smoke.
33198 if test "X${COLLECT_NAMES+set}" != Xset; then
33199   COLLECT_NAMES=
33200   export COLLECT_NAMES
33201 fi
33202 _LT_EOF
33203     ;;
33204   esac
33205
33206
33207 ltmain="$ac_aux_dir/ltmain.sh"
33208
33209
33210   # We use sed instead of cat because bash on DJGPP gets confused if
33211   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33212   # text mode, it properly converts lines to CR/LF.  This bash problem
33213   # is reportedly fixed, but why not run on old versions too?
33214   sed '$q' "$ltmain" >> "$cfgfile" \
33215      || (rm -f "$cfgfile"; exit 1)
33216
33217   if test x"$xsi_shell" = xyes; then
33218   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33219 func_dirname ()\
33220 {\
33221 \    case ${1} in\
33222 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33223 \      *  ) func_dirname_result="${3}" ;;\
33224 \    esac\
33225 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33226   && mv -f "$cfgfile.tmp" "$cfgfile" \
33227     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33228 test 0 -eq $? || _lt_function_replace_fail=:
33229
33230
33231   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33232 func_basename ()\
33233 {\
33234 \    func_basename_result="${1##*/}"\
33235 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33236   && mv -f "$cfgfile.tmp" "$cfgfile" \
33237     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33238 test 0 -eq $? || _lt_function_replace_fail=:
33239
33240
33241   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33242 func_dirname_and_basename ()\
33243 {\
33244 \    case ${1} in\
33245 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33246 \      *  ) func_dirname_result="${3}" ;;\
33247 \    esac\
33248 \    func_basename_result="${1##*/}"\
33249 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33250   && mv -f "$cfgfile.tmp" "$cfgfile" \
33251     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33252 test 0 -eq $? || _lt_function_replace_fail=:
33253
33254
33255   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33256 func_stripname ()\
33257 {\
33258 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33259 \    # positional parameters, so assign one to ordinary parameter first.\
33260 \    func_stripname_result=${3}\
33261 \    func_stripname_result=${func_stripname_result#"${1}"}\
33262 \    func_stripname_result=${func_stripname_result%"${2}"}\
33263 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33264   && mv -f "$cfgfile.tmp" "$cfgfile" \
33265     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33266 test 0 -eq $? || _lt_function_replace_fail=:
33267
33268
33269   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33270 func_split_long_opt ()\
33271 {\
33272 \    func_split_long_opt_name=${1%%=*}\
33273 \    func_split_long_opt_arg=${1#*=}\
33274 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33275   && mv -f "$cfgfile.tmp" "$cfgfile" \
33276     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33277 test 0 -eq $? || _lt_function_replace_fail=:
33278
33279
33280   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33281 func_split_short_opt ()\
33282 {\
33283 \    func_split_short_opt_arg=${1#??}\
33284 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33285 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33286   && mv -f "$cfgfile.tmp" "$cfgfile" \
33287     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33288 test 0 -eq $? || _lt_function_replace_fail=:
33289
33290
33291   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33292 func_lo2o ()\
33293 {\
33294 \    case ${1} in\
33295 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33296 \      *)    func_lo2o_result=${1} ;;\
33297 \    esac\
33298 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33299   && mv -f "$cfgfile.tmp" "$cfgfile" \
33300     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33301 test 0 -eq $? || _lt_function_replace_fail=:
33302
33303
33304   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33305 func_xform ()\
33306 {\
33307     func_xform_result=${1%.*}.lo\
33308 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33309   && mv -f "$cfgfile.tmp" "$cfgfile" \
33310     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33311 test 0 -eq $? || _lt_function_replace_fail=:
33312
33313
33314   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33315 func_arith ()\
33316 {\
33317     func_arith_result=$(( $* ))\
33318 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33319   && mv -f "$cfgfile.tmp" "$cfgfile" \
33320     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33321 test 0 -eq $? || _lt_function_replace_fail=:
33322
33323
33324   sed -e '/^func_len ()$/,/^} # func_len /c\
33325 func_len ()\
33326 {\
33327     func_len_result=${#1}\
33328 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33329   && mv -f "$cfgfile.tmp" "$cfgfile" \
33330     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33331 test 0 -eq $? || _lt_function_replace_fail=:
33332
33333 fi
33334
33335 if test x"$lt_shell_append" = xyes; then
33336   sed -e '/^func_append ()$/,/^} # func_append /c\
33337 func_append ()\
33338 {\
33339     eval "${1}+=\\${2}"\
33340 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33341   && mv -f "$cfgfile.tmp" "$cfgfile" \
33342     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33343 test 0 -eq $? || _lt_function_replace_fail=:
33344
33345
33346   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33347 func_append_quoted ()\
33348 {\
33349 \    func_quote_for_eval "${2}"\
33350 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33351 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33352   && mv -f "$cfgfile.tmp" "$cfgfile" \
33353     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33354 test 0 -eq $? || _lt_function_replace_fail=:
33355
33356
33357   # Save a `func_append' function call where possible by direct use of '+='
33358   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33359     && mv -f "$cfgfile.tmp" "$cfgfile" \
33360       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33361   test 0 -eq $? || _lt_function_replace_fail=:
33362 else
33363   # Save a `func_append' function call even when '+=' is not available
33364   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33365     && mv -f "$cfgfile.tmp" "$cfgfile" \
33366       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33367   test 0 -eq $? || _lt_function_replace_fail=:
33368 fi
33369
33370 if test x"$_lt_function_replace_fail" = x":"; then
33371   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33372 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33373 fi
33374
33375
33376    mv -f "$cfgfile" "$ofile" ||
33377     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33378   chmod +x "$ofile"
33379
33380
33381     cat <<_LT_EOF >> "$ofile"
33382
33383 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33384
33385 # The linker used to build libraries.
33386 LD=$lt_LD_CXX
33387
33388 # How to create reloadable object files.
33389 reload_flag=$lt_reload_flag_CXX
33390 reload_cmds=$lt_reload_cmds_CXX
33391
33392 # Commands used to build an old-style archive.
33393 old_archive_cmds=$lt_old_archive_cmds_CXX
33394
33395 # A language specific compiler.
33396 CC=$lt_compiler_CXX
33397
33398 # Is the compiler the GNU compiler?
33399 with_gcc=$GCC_CXX
33400
33401 # Compiler flag to turn off builtin functions.
33402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33403
33404 # Additional compiler flags for building library objects.
33405 pic_flag=$lt_lt_prog_compiler_pic_CXX
33406
33407 # How to pass a linker flag through the compiler.
33408 wl=$lt_lt_prog_compiler_wl_CXX
33409
33410 # Compiler flag to prevent dynamic linking.
33411 link_static_flag=$lt_lt_prog_compiler_static_CXX
33412
33413 # Does compiler simultaneously support -c and -o options?
33414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33415
33416 # Whether or not to add -lc for building shared libraries.
33417 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33418
33419 # Whether or not to disallow shared libs when runtime libs are static.
33420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33421
33422 # Compiler flag to allow reflexive dlopens.
33423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33424
33425 # Compiler flag to generate shared objects directly from archives.
33426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33427
33428 # Whether the compiler copes with passing no objects directly.
33429 compiler_needs_object=$lt_compiler_needs_object_CXX
33430
33431 # Create an old-style archive from a shared archive.
33432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33433
33434 # Create a temporary old-style archive to link instead of a shared archive.
33435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33436
33437 # Commands used to build a shared archive.
33438 archive_cmds=$lt_archive_cmds_CXX
33439 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33440
33441 # Commands used to build a loadable module if different from building
33442 # a shared archive.
33443 module_cmds=$lt_module_cmds_CXX
33444 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33445
33446 # Whether we are building with GNU ld or not.
33447 with_gnu_ld=$lt_with_gnu_ld_CXX
33448
33449 # Flag that allows shared libraries with undefined symbols to be built.
33450 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33451
33452 # Flag that enforces no undefined symbols.
33453 no_undefined_flag=$lt_no_undefined_flag_CXX
33454
33455 # Flag to hardcode \$libdir into a binary during linking.
33456 # This must work even if \$libdir does not exist
33457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33458
33459 # Whether we need a single "-rpath" flag with a separated argument.
33460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33461
33462 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33463 # DIR into the resulting binary.
33464 hardcode_direct=$hardcode_direct_CXX
33465
33466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33467 # DIR into the resulting binary and the resulting library dependency is
33468 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33469 # library is relocated.
33470 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33471
33472 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33473 # into the resulting binary.
33474 hardcode_minus_L=$hardcode_minus_L_CXX
33475
33476 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33477 # into the resulting binary.
33478 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33479
33480 # Set to "yes" if building a shared library automatically hardcodes DIR
33481 # into the library and all subsequent libraries and executables linked
33482 # against it.
33483 hardcode_automatic=$hardcode_automatic_CXX
33484
33485 # Set to yes if linker adds runtime paths of dependent libraries
33486 # to runtime path list.
33487 inherit_rpath=$inherit_rpath_CXX
33488
33489 # Whether libtool must link a program against all its dependency libraries.
33490 link_all_deplibs=$link_all_deplibs_CXX
33491
33492 # Set to "yes" if exported symbols are required.
33493 always_export_symbols=$always_export_symbols_CXX
33494
33495 # The commands to list exported symbols.
33496 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33497
33498 # Symbols that should not be listed in the preloaded symbols.
33499 exclude_expsyms=$lt_exclude_expsyms_CXX
33500
33501 # Symbols that must always be exported.
33502 include_expsyms=$lt_include_expsyms_CXX
33503
33504 # Commands necessary for linking programs (against libraries) with templates.
33505 prelink_cmds=$lt_prelink_cmds_CXX
33506
33507 # Commands necessary for finishing linking programs.
33508 postlink_cmds=$lt_postlink_cmds_CXX
33509
33510 # Specify filename containing input files.
33511 file_list_spec=$lt_file_list_spec_CXX
33512
33513 # How to hardcode a shared library path into an executable.
33514 hardcode_action=$hardcode_action_CXX
33515
33516 # The directories searched by this compiler when creating a shared library.
33517 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33518
33519 # Dependencies to place before and after the objects being linked to
33520 # create a shared library.
33521 predep_objects=$lt_predep_objects_CXX
33522 postdep_objects=$lt_postdep_objects_CXX
33523 predeps=$lt_predeps_CXX
33524 postdeps=$lt_postdeps_CXX
33525
33526 # The library search path used internally by the compiler when linking
33527 # a shared library.
33528 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33529
33530 # ### END LIBTOOL TAG CONFIG: CXX
33531 _LT_EOF
33532
33533  ;;
33534     "default-1":C)
33535     for ac_file in $CONFIG_FILES; do
33536       # Support "outfile[:infile[:infile...]]"
33537       case "$ac_file" in
33538         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33539       esac
33540       # PO directories have a Makefile.in generated from Makefile.in.in.
33541       case "$ac_file" in */Makefile.in)
33542         # Adjust a relative srcdir.
33543         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33544         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33545         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33546         # In autoconf-2.13 it is called $ac_given_srcdir.
33547         # In autoconf-2.50 it is called $srcdir.
33548         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33549         case "$ac_given_srcdir" in
33550           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33551           /*) top_srcdir="$ac_given_srcdir" ;;
33552           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33553         esac
33554         # Treat a directory as a PO directory if and only if it has a
33555         # POTFILES.in file. This allows packages to have multiple PO
33556         # directories under different names or in different locations.
33557         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33558           rm -f "$ac_dir/POTFILES"
33559           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33560           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33561           POMAKEFILEDEPS="POTFILES.in"
33562           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33563           # on $ac_dir but don't depend on user-specified configuration
33564           # parameters.
33565           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33566             # The LINGUAS file contains the set of available languages.
33567             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33568               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33569             fi
33570             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33571             # Hide the ALL_LINGUAS assigment from automake.
33572             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33573             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33574           else
33575             # The set of available languages was given in configure.in.
33576             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33577           fi
33578           # Compute POFILES
33579           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33580           # Compute UPDATEPOFILES
33581           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33582           # Compute DUMMYPOFILES
33583           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33584           # Compute GMOFILES
33585           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33586           case "$ac_given_srcdir" in
33587             .) srcdirpre= ;;
33588             *) srcdirpre='$(srcdir)/' ;;
33589           esac
33590           POFILES=
33591           UPDATEPOFILES=
33592           DUMMYPOFILES=
33593           GMOFILES=
33594           for lang in $ALL_LINGUAS; do
33595             POFILES="$POFILES $srcdirpre$lang.po"
33596             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33597             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33598             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33599           done
33600           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33601           # environment variable.
33602           INST_LINGUAS=
33603           if test -n "$ALL_LINGUAS"; then
33604             for presentlang in $ALL_LINGUAS; do
33605               useit=no
33606               if test "%UNSET%" != "$LINGUAS"; then
33607                 desiredlanguages="$LINGUAS"
33608               else
33609                 desiredlanguages="$ALL_LINGUAS"
33610               fi
33611               for desiredlang in $desiredlanguages; do
33612                 # Use the presentlang catalog if desiredlang is
33613                 #   a. equal to presentlang, or
33614                 #   b. a variant of presentlang (because in this case,
33615                 #      presentlang can be used as a fallback for messages
33616                 #      which are not translated in the desiredlang catalog).
33617                 case "$desiredlang" in
33618                   "$presentlang"*) useit=yes;;
33619                 esac
33620               done
33621               if test $useit = yes; then
33622                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33623               fi
33624             done
33625           fi
33626           CATALOGS=
33627           if test -n "$INST_LINGUAS"; then
33628             for lang in $INST_LINGUAS; do
33629               CATALOGS="$CATALOGS $lang.gmo"
33630             done
33631           fi
33632           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33633           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"
33634           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33635             if test -f "$f"; then
33636               case "$f" in
33637                 *.orig | *.bak | *~) ;;
33638                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33639               esac
33640             fi
33641           done
33642         fi
33643         ;;
33644       esac
33645     done ;;
33646     "default":C)
33647  ;;
33648
33649   esac
33650 done # for ac_tag
33651
33652
33653 as_fn_exit 0
33654 _ACEOF
33655 ac_clean_files=$ac_clean_files_save
33656
33657 test $ac_write_fail = 0 ||
33658   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33659
33660
33661 # configure is writing to config.log, and then calls config.status.
33662 # config.status does its own redirection, appending to config.log.
33663 # Unfortunately, on DOS this fails, as config.log is still kept open
33664 # by configure, so config.status won't be able to write to it; its
33665 # output is simply discarded.  So we exec the FD to /dev/null,
33666 # effectively closing config.log, so it can be properly (re)opened and
33667 # appended to by config.status.  When coming back to configure, we
33668 # need to make the FD available again.
33669 if test "$no_create" != yes; then
33670   ac_cs_success=:
33671   ac_config_status_args=
33672   test "$silent" = yes &&
33673     ac_config_status_args="$ac_config_status_args --quiet"
33674   exec 5>/dev/null
33675   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33676   exec 5>>config.log
33677   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33678   # would make configure fail if this is the last instruction.
33679   $ac_cs_success || as_fn_exit 1
33680 fi
33681 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33682   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33683 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33684 fi
33685
33686
33687 if test "${support_bat}" = "yes" ; then
33688    if test "x$QMAKE" = "xnone"; then
33689       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33690    fi
33691
33692    cd src/qt-console
33693    echo "Creating bat Makefile"
33694    touch bat
33695    chmod 755 bat
33696    rm -f Makefile
33697    rm -rf moc32 obj32
33698    $QMAKE
33699    ${MAKE:-make} clean
33700    cd ${BUILD_DIR}
33701 fi
33702
33703 if test X"$GCC" = "Xyes" ; then
33704   echo "Doing make of dependencies"
33705   ${MAKE:-make} depend
33706 fi
33707
33708 cd src/qt-console
33709 chmod 755 install_conf_file build-depkgs-qt-console
33710 cd ${BUILD_DIR}
33711
33712 cd scripts
33713 chmod 755 bacula btraceback mtx-changer
33714 chmod 755 dvd-handler dvd-simulator
33715 chmod 755 bconsole disk-changer devel_bacula logrotate
33716 cd ..
33717
33718 c=updatedb
33719 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33720 chmod 755 $c/update_postgresql_tables_10_to_11
33721 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33722 chmod 755 $c/update_postgresql_tables_11_to_12
33723
33724
33725 c=src/cats
33726
33727 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33728 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33729
33730 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33731 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33732
33733 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33734 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33735
33736 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33737 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33738
33739 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33740 chmod 755 $c/sqlite
33741 chmod 755 $c/mysql
33742
33743 chmod 755 $c/install-default-backend
33744
33745 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33746    largefile_support="yes"
33747 fi
33748
33749 if test X"$GCC" = "Xyes" ; then
33750                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33751    if test "x${CCVERSION}" = "x" ; then
33752       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33753    fi
33754    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33755    if test x"${CXXVERSION}" = x ; then
33756       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33757    fi
33758 fi
33759
33760 # clean up any old junk
33761 echo " "
33762 echo "Cleaning up"
33763 echo " "
33764 ${MAKE:-make} clean
33765
33766 echo "
33767 Configuration on `date`:
33768
33769    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33770    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33771    Source code location:     ${srcdir}
33772    Install binaries:         ${sbindir}
33773    Install libraries:        ${libdir}
33774    Install config files:     ${sysconfdir}
33775    Scripts directory:        ${scriptdir}
33776    Archive directory:        ${archivedir}
33777    Working directory:        ${working_dir}
33778    PID directory:            ${piddir}
33779    Subsys directory:         ${subsysdir}
33780    Man directory:            ${mandir}
33781    Data directory:           ${datarootdir}
33782    Plugin directory:         ${plugindir}
33783    C Compiler:               ${CC} ${CCVERSION}
33784    C++ Compiler:             ${CXX} ${CXXVERSION}
33785    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33786    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33787    Libraries:                ${LIBS}
33788    Statically Linked Tools:  ${support_static_tools}
33789    Statically Linked FD:     ${support_static_fd}
33790    Statically Linked SD:     ${support_static_sd}
33791    Statically Linked DIR:    ${support_static_dir}
33792    Statically Linked CONS:   ${support_static_cons}
33793    Database backends:        ${db_backends}
33794    Database port:            ${db_port}
33795    Database name:            ${db_name}
33796    Database user:            ${db_user}
33797    Database SSL options:     ${db_ssl_options}
33798
33799    Job Output Email:         ${job_email}
33800    Traceback Email:          ${dump_email}
33801    SMTP Host Address:        ${smtp_host}
33802
33803    Director Port:            ${dir_port}
33804    File daemon Port:         ${fd_port}
33805    Storage daemon Port:      ${sd_port}
33806
33807    Director User:            ${dir_user}
33808    Director Group:           ${dir_group}
33809    Storage Daemon User:      ${sd_user}
33810    Storage DaemonGroup:      ${sd_group}
33811    File Daemon User:         ${fd_user}
33812    File Daemon Group:        ${fd_group}
33813
33814    Large file support:       $largefile_support
33815    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33816    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33817    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33818    TLS support:              ${support_tls}
33819    Encryption support:       ${support_crypto}
33820    ZLIB support:             ${have_zlib}
33821    LZO support:              ${have_lzo}
33822    enable-smartalloc:        ${support_smartalloc}
33823    enable-lockmgr:           ${support_lockmgr}
33824    bat support:              ${support_bat}
33825    client-only:              ${build_client_only}
33826    build-dird:               ${build_dird}
33827    build-stored:             ${build_stored}
33828    Plugin support:           ${have_plugins}
33829    AFS support:              ${have_afs}
33830    ACL support:              ${have_acl}
33831    XATTR support:            ${have_xattr}
33832    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33833    Batch insert enabled:     ${batch_insert_db_backends}
33834
33835   " > config.out
33836
33837 # create a small shell script useful for support with
33838 # configure options and config.out info
33839 cat > scripts/bacula_config << EOF
33840 #!/bin/sh
33841 cat << __EOC__
33842 $ $0 $ac_configure_args
33843 EOF
33844 cat config.out >> scripts/bacula_config
33845 echo __EOC__ >> scripts/bacula_config
33846 chmod 755 scripts/bacula_config
33847
33848 cat config.out